wok annotate samba/receipt @ rev 8475
Fix libevent-dev by adding pkgconfig.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Feb 07 18:10:30 2011 +0000 (2011-02-07) |
parents | 45dc731b6310 |
children | 3a98b7d0c6f1 |
rev | line source |
---|---|
pascal@1250 | 1 # SliTaz package receipt. |
pascal@1250 | 2 |
pascal@1250 | 3 PACKAGE="samba" |
slaxemulator@6618 | 4 VERSION="3.5.6" |
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" |
slaxemulator@7220 | 11 BUILD_DEPENDS="openldap-dev libcomerr-dev cups-dev talloc-dev pkg-config" |
slaxemulator@7157 | 12 DEPENDS="libldap samba-common glibc-extra-samba ncurses popt zlib smbfs acl" |
erjo@5147 | 13 |
pascal@5135 | 14 SUGGESTED="gamin cups perl" |
pascal@1250 | 15 CONFIG_FILES="/etc/samba" |
pascal@1250 | 16 BUGS="Open directory needs MIT kerberos support (krb5)" |
pascal@1250 | 17 |
pascal@1250 | 18 # Rules to configure and make the package. |
pascal@1250 | 19 compile_rules() |
pascal@1250 | 20 { |
erjo@4784 | 21 cd $src/source3 |
pascal@1250 | 22 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1250 | 23 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \ |
pascal@1250 | 24 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \ |
slaxemulator@7157 | 25 --enable-shared-libs --enable-external-libtalloc --with-libtdb --with-cifsumount \ |
pascal@2190 | 26 --with-libsmbsharemodes --with-libsmbclient --without-pam \ |
pascal@1250 | 27 --sysconfdir=/etc --localstatedir=/var \ |
slaxemulator@8458 | 28 --mandir=/usr/share/man && |
slaxemulator@8460 | 29 make -j1 && |
slaxemulator@8458 | 30 make -j1 DESTDIR=$DESTDIR install || return 1 |
pascal@1520 | 31 rm -f ../_pkg/usr/*bin/*.old |
erjo@4124 | 32 #ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0 |
pascal@1250 | 33 } |
pascal@1250 | 34 |
pascal@1250 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1250 | 36 genpkg_rules() |
pascal@1250 | 37 { |
pascal@2611 | 38 cp stuff/*.files-list $src |
pascal@1250 | 39 mkdir -p $fs/usr |
pascal@1250 | 40 cp -a $_pkg/etc $fs |
pascal@1250 | 41 cp -a $_pkg/var $fs |
pascal@1250 | 42 cp -a $_pkg/usr/lib $fs/usr |
pascal@1250 | 43 cp -a $_pkg/usr/sbin $fs/usr |
pascal@1250 | 44 cp -a $_pkg/usr/bin $fs/usr |
pascal@1250 | 45 cp -a stuff/etc $fs |
pascal@1250 | 46 cat $src/*.files-list | while read file; do |
pascal@1250 | 47 rm -rf $fs$file |
pascal@1250 | 48 done |
pascal@1250 | 49 } |
pascal@1250 | 50 |
pascal@1250 | 51 # Pre and post install commands for Tazpkg. |
pascal@1250 | 52 post_install() |
pascal@1250 | 53 { |
pascal@1250 | 54 cat <<EOF |
pascal@1250 | 55 ---- |
pascal@1250 | 56 The main configuration file is /etc/samba/smb.conf |
pascal@1250 | 57 ---- |
pascal@1250 | 58 To start $PACKAGE server you can run : |
pascal@1250 | 59 |
pascal@1250 | 60 /etc/init.d/$PACKAGE start |
pascal@1250 | 61 |
pascal@1250 | 62 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@1250 | 63 ---- |
pascal@1250 | 64 EOF |
pascal@1250 | 65 } |