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