wok annotate samba/receipt @ rev 14957

Up: enlightenment-backgrounds (0.17.4)
author Dominique Corbex <domcox@slitaz.org>
date Thu Aug 08 19:20:58 2013 +0200 (2013-08-08)
parents 4cba4433d0b7
children 2b9f96603415
rev   line source
pascal@1250 1 # SliTaz package receipt.
pascal@1250 2
pascal@1250 3 PACKAGE="samba"
slaxemulator@13268 4 VERSION="3.6.7"
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@14772 11 TAZPANEL_DAEMON="man|edit::/etc/samba/smb.conf|web::$WEB_SITE"
pascal@5135 12 SUGGESTED="gamin cups perl"
pascal@1250 13 CONFIG_FILES="/etc/samba"
pascal@1250 14 BUGS="Open directory needs MIT kerberos support (krb5)"
pascal@1250 15
pascal@10595 16 BUILD_DEPENDS="openldap openldap-dev libcomerr-dev cups-dev talloc-dev pkg-config libldap"
slaxemulator@13268 17 DEPENDS="libldap samba-common glibc-extra-samba ncursesw popt zlib cifs-utils
devl547@10828 18 acl krb5 cups"
pascal@10454 19
pascal@1250 20 # Rules to configure and make the package.
pascal@1250 21 compile_rules()
pascal@1250 22 {
erjo@4784 23 cd $src/source3
pascal@1250 24 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1250 25 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
pascal@1250 26 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
slaxemulator@13268 27 --enable-shared-libs --enable-external-libtalloc --with-libtdb \
pascal@2190 28 --with-libsmbsharemodes --with-libsmbclient --without-pam \
pascal@1250 29 --sysconfdir=/etc --localstatedir=/var \
slaxemulator@10342 30 --mandir=/usr/share/man $CONFIGURE_ARGS &&
slaxemulator@8460 31 make -j1 &&
slaxemulator@8458 32 make -j1 DESTDIR=$DESTDIR install || return 1
slaxemulator@13268 33 #rm -f $DESTDIR/usr/*bin/*.old
slaxemulator@13268 34 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0
pascal@1250 35 }
pascal@1250 36
pascal@1250 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1250 38 genpkg_rules()
pascal@1250 39 {
pascal@1250 40 mkdir -p $fs/usr
slaxemulator@13268 41 cp -a $install/etc $fs
slaxemulator@13268 42 cp -a $install/var $fs
slaxemulator@13268 43 cp -a $install/usr/lib $fs/usr
slaxemulator@13268 44 cp -a $install/usr/sbin $fs/usr
slaxemulator@13268 45 cp -a $install/usr/bin $fs/usr
slaxemulator@8928 46 cp -a $stuff/etc $fs
slaxemulator@8928 47 cat $stuff/*.files-list | while read file; do
pascal@1250 48 rm -rf $fs$file
pascal@1250 49 done
pascal@1250 50 }
pascal@1250 51
pascal@1250 52 # Pre and post install commands for Tazpkg.
pascal@1250 53 post_install()
pascal@1250 54 {
pascal@1250 55 cat <<EOF
pascal@1250 56 ----
pascal@1250 57 The main configuration file is /etc/samba/smb.conf
pascal@1250 58 ----
pascal@1250 59 To start $PACKAGE server you can run :
pascal@1250 60
pascal@1250 61 /etc/init.d/$PACKAGE start
pascal@1250 62
pascal@1250 63 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1250 64 ----
pascal@1250 65 EOF
pascal@1250 66 }