wok-6.x view samba/receipt @ rev 1526

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