wok-6.x view samba/receipt @ rev 23591
python-pysol-cards: added build dependency
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 08 10:35:39 2020 +0100 (2020-04-08) |
parents | 72f9047facba |
children | 2a0479881723 |
line source
1 # SliTaz package receipt.
3 PACKAGE="samba"
4 VERSION="3.6.7"
5 CATEGORY="system-tools"
6 SHORT_DESC="File and print services with SMB/CIFS."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://samba.org/"
11 WGET_URL="${WEB_SITE}$PACKAGE/ftp/stable/$TARBALL"
12 TAZPANEL_DAEMON="man|edit::/etc/samba/smb.conf|web::$WEB_SITE"
13 SUGGESTED="gamin cups perl"
14 CONFIG_FILES="/etc/samba"
15 BUGS="Open directory needs MIT kerberos support (krb5)"
17 BUILD_DEPENDS="openldap openldap-dev libcomerr-dev cups-dev talloc-dev \
18 pkg-config libldap krb5"
19 DEPENDS="libldap samba-common glibc-base ncursesw popt zlib cifs-utils acl \
20 krb5 libcups"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 patch -p0 < $stuff/CVE-2017-7494.u
26 cd $src/source3
27 ./configure --prefix=/usr --infodir=/usr/share/info \
28 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
29 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
30 --enable-shared-libs --enable-external-libtalloc --with-libtdb \
31 --with-libsmbsharemodes --with-libsmbclient --without-pam \
32 --sysconfdir=/etc --localstatedir=/var \
33 --mandir=/usr/share/man $CONFIGURE_ARGS &&
34 make -j1 &&
35 make -j1 DESTDIR=$DESTDIR install || return 1
36 #rm -f $DESTDIR/usr/*bin/*.old
37 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $install/etc $fs
45 cp -a $install/var $fs
46 cp -a $install/usr/lib $fs/usr
47 cp -a $install/usr/sbin $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 cp -a $stuff/etc $fs
50 cat $stuff/*.files-list | while read file; do
51 rm -rf $fs$file
52 done
53 }
55 # Pre and post install commands for Tazpkg.
56 post_install()
57 {
58 cat <<EOF
59 ----
60 The main configuration file is /etc/samba/smb.conf
61 ----
62 To start $PACKAGE server you can run :
64 /etc/init.d/$PACKAGE start
66 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
67 ----
68 EOF
69 }