wok annotate samba/receipt @ rev 2432
wormux, wv, wxWidgets-dev, wxWidgets: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 12 15:32:16 2009 +0000 (2009-03-12) |
parents | bd6010223726 |
children | a4af2b62bb67 |
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@1911 | 12 DEPENDS="libldap smbclient perl cups glibc-extra-samba" |
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@2190 | 24 --with-libsmbsharemodes --with-libsmbclient --without-pam \ |
pascal@1250 | 25 --sysconfdir=/etc --localstatedir=/var \ |
pascal@1520 | 26 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1520 | 27 make && |
pascal@1520 | 28 make DESTDIR=$PWD/../_pkg install || return 1 |
pascal@1520 | 29 rm -f ../_pkg/usr/*bin/*.old |
pascal@1250 | 30 ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0 |
pascal@1250 | 31 cp ../../stuff/*.files-list .. |
pascal@1250 | 32 } |
pascal@1250 | 33 |
pascal@1250 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1250 | 35 genpkg_rules() |
pascal@1250 | 36 { |
pascal@1250 | 37 mkdir -p $fs/usr |
pascal@1250 | 38 cp -a $_pkg/etc $fs |
pascal@1250 | 39 cp -a $_pkg/var $fs |
pascal@1250 | 40 cp -a $_pkg/usr/lib $fs/usr |
pascal@1250 | 41 cp -a $_pkg/usr/sbin $fs/usr |
pascal@1250 | 42 cp -a $_pkg/usr/bin $fs/usr |
pascal@1250 | 43 cp -a stuff/etc $fs |
pascal@1250 | 44 cat $src/*.files-list | while read file; do |
pascal@1250 | 45 rm -rf $fs$file |
pascal@1250 | 46 done |
pascal@1250 | 47 # Package all samba pkgs |
pascal@1250 | 48 for i in $(cd $WOK; grep -l '^WANTED="samba"$' */receipt) |
pascal@1250 | 49 do |
pascal@1250 | 50 tazwok cook ${i%/receipt} |
pascal@1250 | 51 done |
pascal@1250 | 52 } |
pascal@1250 | 53 |
pascal@1250 | 54 # Pre and post install commands for Tazpkg. |
pascal@1250 | 55 post_install() |
pascal@1250 | 56 { |
pascal@1250 | 57 cat <<EOF |
pascal@1250 | 58 ---- |
pascal@1250 | 59 The main configuration file is /etc/samba/smb.conf |
pascal@1250 | 60 ---- |
pascal@1250 | 61 To start $PACKAGE server you can run : |
pascal@1250 | 62 |
pascal@1250 | 63 /etc/init.d/$PACKAGE start |
pascal@1250 | 64 |
pascal@1250 | 65 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@1250 | 66 ---- |
pascal@1250 | 67 EOF |
pascal@1250 | 68 } |