# HG changeset patch # User Pascal Bellard # Date 1234173701 0 # Node ID 89fb9e5371cd678bf74e4b9b07e8d5577b602d6b # Parent 93807258554637aada961e0c0423cf3ba3720476 Add samba-pam diff -r 938072585546 -r 89fb9e5371cd samba-pam/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samba-pam/receipt Mon Feb 09 10:01:41 2009 +0000 @@ -0,0 +1,71 @@ +# SliTaz package receipt. + +PACKAGE="samba-pam" +VERSION="3.2.1" +CATEGORY="system-tools" +SHORT_DESC="File and print services with SMB/CIFS using PAM." +MAINTAINER="pascal.bellard@slitaz.org" +SOURCE="samba" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://samba.org/" +WGET_URL="${WEB_SITE}$PACKAGE/ftp/stable/$TARBALL" +BUILD_DEPENDS="libldap openldap-dev cups cups-dev pam pam-dev" +DEPENDS="libldap smbclient perl cups glibc-extra-samba pam" +CONFIG_FILES="/etc/samba" +PROVIDE="samba:pam" +BUGS="Open directory needs MIT kerberos support (krb5)" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src/source + ./configure --prefix=/usr --infodir=/usr/share/info \ + --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \ + --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \ + --enable-shared-libs --with-libtalloc --with-libtdb \ + --with-libsmbsharemodes --with-libsmbclient \ + --with-pam --with-pammodulesdir=/lib/security \ + --sysconfdir=/etc --localstatedir=/var \ + --mandir=/usr/share/man $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/../_pkg install || return 1 + rm -f ../_pkg/usr/*bin/*.old + ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0 + cp ../../stuff/*.files-list .. +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/etc $fs + cp -a $_pkg/var $fs + cp -a $_pkg/usr/lib $fs/usr + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a stuff/etc $fs + cat $src/*.files-list | while read file; do + rm -rf $fs$file + done + # Package all samba pkgs + for i in $(cd $WOK; grep -l '^WANTED="samba"$' */receipt) + do + tazwok cook ${i%/receipt} + done +} + +# Pre and post install commands for Tazpkg. +post_install() +{ + cat <