# HG changeset patch
# User Pascal Bellard <pascal.bellard@slitaz.org>
# Date 1234439603 0
# Node ID 7a6ae52b92fa7ba02cb8d3d1b703df55f993ed89
# Parent  df867b6428419b0abba30e38b4de5006d854a71b
Add freeradius-pam

diff -r df867b642841 -r 7a6ae52b92fa freeradius-pam/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/freeradius-pam/receipt	Thu Feb 12 11:53:23 2009 +0000
@@ -0,0 +1,21 @@
+Taz package receipt.
+
+PACKAGE="freeradius-pam"
+VERSION="2.1.1"
+CATEGORY="security"
+SHORT_DESC="pam module for radius server"
+MAINTAINER="pascal.bellard@slitaz.org"
+DEPENDS="freeradius pam"
+WEB_SITE="http://www.freeradius.org/"
+WANTED="freeradius"
+SOURCE="freeradius-server"
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/lib $fs/etc/raddb/modules
+	_pkg=$WOK/$WANTED/$SOURCE-$VERSION/_pkg
+	cp -a $_pkg/usr/lib/rlm_pam*.so* $fs/usr/lib
+	cp -a $_pkg/etc/raddb/modules/pam $fs/etc/raddb/modules
+}
+                
diff -r df867b642841 -r 7a6ae52b92fa freeradius/receipt
--- a/freeradius/receipt	Thu Feb 12 10:24:10 2009 +0000
+++ b/freeradius/receipt	Thu Feb 12 11:53:23 2009 +0000
@@ -6,7 +6,7 @@
 SHORT_DESC="radius server"
 MAINTAINER="Serge Daigle sdaigl@lacitec.on.ca"
 DEPENDS="openssl"
-BUILD_DEPENDS="libtool openldap-dev openssl-dev"
+BUILD_DEPENDS="libtool openldap-dev openssl-dev pam-dev krb5-dev"
 SOURCE="freeradius-server"
 TARBALL="$SOURCE-$VERSION.tar.gz"
 WEB_SITE="http://www.freeradius.org/"
@@ -38,4 +38,5 @@
 	cp -a $_pkg/usr/share/freeradius $fs/usr/share
 	cp -a $_pkg/etc $fs
 	cp -a $_pkg/var $fs
+	rm -f $fs/usr/lib/rlm_pam* $fs/etc/raddb/modules/pam
 }