wok-4.x diff samba-pam/receipt @ rev 2190

Add samba-pam
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 09 10:01:41 2009 +0000 (2009-02-09)
parents
children edc45fd54795
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/samba-pam/receipt	Mon Feb 09 10:01:41 2009 +0000
     1.3 @@ -0,0 +1,71 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="samba-pam"
     1.7 +VERSION="3.2.1"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="File and print services with SMB/CIFS using PAM."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +SOURCE="samba"
    1.12 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://samba.org/"
    1.14 +WGET_URL="${WEB_SITE}$PACKAGE/ftp/stable/$TARBALL"
    1.15 +BUILD_DEPENDS="libldap openldap-dev cups cups-dev pam pam-dev"
    1.16 +DEPENDS="libldap smbclient perl cups glibc-extra-samba pam"
    1.17 +CONFIG_FILES="/etc/samba"
    1.18 +PROVIDE="samba:pam"
    1.19 +BUGS="Open directory needs MIT kerberos support (krb5)"
    1.20 +
    1.21 +# Rules to configure and make the package.
    1.22 +compile_rules()
    1.23 +{
    1.24 +	cd $src/source
    1.25 +	./configure --prefix=/usr --infodir=/usr/share/info \
    1.26 +	--with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
    1.27 +	--with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
    1.28 +	--enable-shared-libs --with-libtalloc --with-libtdb \
    1.29 +	--with-libsmbsharemodes --with-libsmbclient \
    1.30 +	--with-pam --with-pammodulesdir=/lib/security \
    1.31 +	--sysconfdir=/etc --localstatedir=/var \
    1.32 +	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.33 +	make &&
    1.34 +	make DESTDIR=$PWD/../_pkg install || return 1
    1.35 +	rm -f ../_pkg/usr/*bin/*.old
    1.36 +	ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0
    1.37 +	cp ../../stuff/*.files-list ..
    1.38 +}
    1.39 +
    1.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 +genpkg_rules()
    1.42 +{
    1.43 +	mkdir -p $fs/usr
    1.44 +	cp -a $_pkg/etc $fs
    1.45 +	cp -a $_pkg/var $fs
    1.46 +	cp -a $_pkg/usr/lib $fs/usr
    1.47 +	cp -a $_pkg/usr/sbin $fs/usr
    1.48 +	cp -a $_pkg/usr/bin $fs/usr
    1.49 +	cp -a stuff/etc $fs
    1.50 +	cat $src/*.files-list | while read file; do
    1.51 +		rm -rf $fs$file
    1.52 +	done
    1.53 +	# Package all samba pkgs
    1.54 +	for i in $(cd $WOK; grep -l '^WANTED="samba"$' */receipt)
    1.55 +	do
    1.56 +    		tazwok cook ${i%/receipt}
    1.57 +	done
    1.58 +}
    1.59 +
    1.60 +# Pre and post install commands for Tazpkg.
    1.61 +post_install()
    1.62 +{
    1.63 +	cat <<EOF
    1.64 +----
    1.65 +The main configuration file is /etc/samba/smb.conf
    1.66 +----
    1.67 +To start $PACKAGE server you can run :
    1.68 +
    1.69 +    /etc/init.d/$PACKAGE start
    1.70 +
    1.71 +Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
    1.72 +----
    1.73 +EOF
    1.74 +}