wok annotate samba/receipt @ rev 1335

Add krb5
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 31 11:58:29 2008 +0000 (2008-08-31)
parents
children bfd918db2ced
rev   line source
pascal@1250 1 # SliTaz package receipt.
pascal@1250 2
pascal@1250 3 PACKAGE="samba"
pascal@1250 4 VERSION="3.2.1"
pascal@1250 5 CATEGORY="system-tools"
pascal@1250 6 SHORT_DESC="File and print services with SMB/CIFS."
pascal@1250 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@1250 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1250 9 WEB_SITE="http://samba.org/"
pascal@1250 10 WGET_URL="${WEB_SITE}$PACKAGE/ftp/stable/$TARBALL"
pascal@1250 11 BUILD_DEPENDS="libldap openldap-dev cups cups-dev"
pascal@1250 12 DEPENDS="libldap smbclient perl cups"
pascal@1250 13 CONFIG_FILES="/etc/samba"
pascal@1250 14 BUGS="Open directory needs MIT kerberos support (krb5)"
pascal@1250 15
pascal@1250 16 # Rules to configure and make the package.
pascal@1250 17 compile_rules()
pascal@1250 18 {
pascal@1250 19 cd $src/source
pascal@1250 20 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1250 21 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
pascal@1250 22 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
pascal@1250 23 --enable-shared-libs --with-libtalloc --with-libtdb \
pascal@1250 24 --with-libsmbsharemodes --with-libsmbclient \
pascal@1250 25 --sysconfdir=/etc --localstatedir=/var \
pascal@1250 26 --mandir=/usr/share/man $CONFIGURE_ARGS
pascal@1250 27 make
pascal@1250 28 make DESTDIR=$PWD/../_pkg install
pascal@1250 29 ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0
pascal@1250 30 cp ../../stuff/*.files-list ..
pascal@1250 31 }
pascal@1250 32
pascal@1250 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1250 34 genpkg_rules()
pascal@1250 35 {
pascal@1250 36 mkdir -p $fs/usr
pascal@1250 37 cp -a $_pkg/etc $fs
pascal@1250 38 cp -a $_pkg/var $fs
pascal@1250 39 cp -a $_pkg/usr/lib $fs/usr
pascal@1250 40 cp -a $_pkg/usr/sbin $fs/usr
pascal@1250 41 cp -a $_pkg/usr/bin $fs/usr
pascal@1250 42 cp -a stuff/etc $fs
pascal@1250 43 cat $src/*.files-list | while read file; do
pascal@1250 44 rm -rf $fs$file
pascal@1250 45 done
pascal@1250 46 # Package all samba pkgs
pascal@1250 47 for i in $(cd $WOK; grep -l '^WANTED="samba"$' */receipt)
pascal@1250 48 do
pascal@1250 49 tazwok cook ${i%/receipt}
pascal@1250 50 done
pascal@1250 51 }
pascal@1250 52
pascal@1250 53 # Pre and post install commands for Tazpkg.
pascal@1250 54 post_install()
pascal@1250 55 {
pascal@1250 56 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
pascal@1250 57 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
pascal@1250 58 etc/samba
pascal@1250 59 EOT
pascal@1250 60 cat <<EOF
pascal@1250 61 ----
pascal@1250 62 The main configuration file is /etc/samba/smb.conf
pascal@1250 63 ----
pascal@1250 64 To start $PACKAGE server you can run :
pascal@1250 65
pascal@1250 66 /etc/init.d/$PACKAGE start
pascal@1250 67
pascal@1250 68 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1250 69 ----
pascal@1250 70 EOF
pascal@1250 71 }
pascal@1250 72
pascal@1250 73 repack_cleanup()
pascal@1250 74 {
pascal@1250 75 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
pascal@1250 76 }