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