wok-4.x annotate samba/receipt @ rev 4124
Up: samba* (3.2.14)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Sep 20 13:01:23 2009 +0000 (2009-09-20) |
parents | 8032bcdd3044 |
children | b2f5f8681d26 |
rev | line source |
---|---|
pascal@1250 | 1 # SliTaz package receipt. |
pascal@1250 | 2 |
pascal@1250 | 3 PACKAGE="samba" |
erjo@4124 | 4 VERSION="3.2.14" |
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@2433 | 12 DEPENDS="libldap smbclient perl cups glibc-extra-samba ncurses popt zlib" |
pascal@2610 | 13 SUGGESTED="gamin" |
pascal@1250 | 14 CONFIG_FILES="/etc/samba" |
pascal@1250 | 15 BUGS="Open directory needs MIT kerberos support (krb5)" |
pascal@1250 | 16 |
pascal@1250 | 17 # Rules to configure and make the package. |
pascal@1250 | 18 compile_rules() |
pascal@1250 | 19 { |
pascal@1250 | 20 cd $src/source |
pascal@1250 | 21 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1250 | 22 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \ |
pascal@1250 | 23 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \ |
pascal@1250 | 24 --enable-shared-libs --with-libtalloc --with-libtdb \ |
pascal@2190 | 25 --with-libsmbsharemodes --with-libsmbclient --without-pam \ |
pascal@1250 | 26 --sysconfdir=/etc --localstatedir=/var \ |
pascal@1520 | 27 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1520 | 28 make && |
pascal@1520 | 29 make DESTDIR=$PWD/../_pkg install || return 1 |
pascal@1520 | 30 rm -f ../_pkg/usr/*bin/*.old |
erjo@4124 | 31 #ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0 |
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@2611 | 37 cp stuff/*.files-list $src |
pascal@1250 | 38 mkdir -p $fs/usr |
pascal@1250 | 39 cp -a $_pkg/etc $fs |
pascal@1250 | 40 cp -a $_pkg/var $fs |
pascal@1250 | 41 cp -a $_pkg/usr/lib $fs/usr |
pascal@1250 | 42 cp -a $_pkg/usr/sbin $fs/usr |
pascal@1250 | 43 cp -a $_pkg/usr/bin $fs/usr |
pascal@1250 | 44 cp -a stuff/etc $fs |
pascal@1250 | 45 cat $src/*.files-list | while read file; do |
pascal@1250 | 46 rm -rf $fs$file |
pascal@1250 | 47 done |
pascal@1250 | 48 # Package all samba pkgs |
pascal@1250 | 49 for i in $(cd $WOK; grep -l '^WANTED="samba"$' */receipt) |
pascal@1250 | 50 do |
pascal@1250 | 51 tazwok cook ${i%/receipt} |
pascal@1250 | 52 done |
pascal@1250 | 53 } |
pascal@1250 | 54 |
pascal@1250 | 55 # Pre and post install commands for Tazpkg. |
pascal@1250 | 56 post_install() |
pascal@1250 | 57 { |
pascal@1250 | 58 cat <<EOF |
pascal@1250 | 59 ---- |
pascal@1250 | 60 The main configuration file is /etc/samba/smb.conf |
pascal@1250 | 61 ---- |
pascal@1250 | 62 To start $PACKAGE server you can run : |
pascal@1250 | 63 |
pascal@1250 | 64 /etc/init.d/$PACKAGE start |
pascal@1250 | 65 |
pascal@1250 | 66 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@1250 | 67 ---- |
pascal@1250 | 68 EOF |
pascal@1250 | 69 } |