wok-stable diff samba/receipt @ rev 1413

Add WEB_SITE for libedit-dev nomad pygobject pygobject-dev xpat2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 25 08:02:56 2008 +0000 (2008-09-25)
parents
children bfd918db2ced
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/samba/receipt	Thu Sep 25 08:02:56 2008 +0000
     1.3 @@ -0,0 +1,76 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="samba"
     1.7 +VERSION="3.2.1"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="File and print services with SMB/CIFS."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://samba.org/"
    1.13 +WGET_URL="${WEB_SITE}$PACKAGE/ftp/stable/$TARBALL"
    1.14 +BUILD_DEPENDS="libldap openldap-dev cups cups-dev"
    1.15 +DEPENDS="libldap smbclient perl cups"
    1.16 +CONFIG_FILES="/etc/samba"
    1.17 +BUGS="Open directory needs MIT kerberos support (krb5)"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	cd $src/source
    1.23 +	./configure --prefix=/usr --infodir=/usr/share/info \
    1.24 +	--with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
    1.25 +	--with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
    1.26 +	--enable-shared-libs --with-libtalloc --with-libtdb \
    1.27 +	--with-libsmbsharemodes --with-libsmbclient \
    1.28 +	--sysconfdir=/etc --localstatedir=/var \
    1.29 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    1.30 +	make
    1.31 +	make DESTDIR=$PWD/../_pkg install
    1.32 +	ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0
    1.33 +	cp ../../stuff/*.files-list ..
    1.34 +}
    1.35 +
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	mkdir -p $fs/usr
    1.40 +	cp -a $_pkg/etc $fs
    1.41 +	cp -a $_pkg/var $fs
    1.42 +	cp -a $_pkg/usr/lib $fs/usr
    1.43 +	cp -a $_pkg/usr/sbin $fs/usr
    1.44 +	cp -a $_pkg/usr/bin $fs/usr
    1.45 +	cp -a stuff/etc $fs
    1.46 +	cat $src/*.files-list | while read file; do
    1.47 +		rm -rf $fs$file
    1.48 +	done
    1.49 +	# Package all samba pkgs
    1.50 +	for i in $(cd $WOK; grep -l '^WANTED="samba"$' */receipt)
    1.51 +	do
    1.52 +    		tazwok cook ${i%/receipt}
    1.53 +	done
    1.54 +}
    1.55 +
    1.56 +# Pre and post install commands for Tazpkg.
    1.57 +post_install()
    1.58 +{
    1.59 +	( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
    1.60 +		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
    1.61 +etc/samba
    1.62 +EOT
    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 +}
    1.75 +
    1.76 +repack_cleanup()
    1.77 +{
    1.78 +        zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
    1.79 +}