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

Add finch & btop (thanks ceel)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 30 08:50:05 2022 +0000 (23 months ago)
parents c13c64d88162
children e4cc6a0d37f0
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 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/*} 2>/dev/null | \
26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 patch -p0 < $stuff/CVE-2017-7494.u
33 cd $src/source3
34 ./configure --prefix=/usr --infodir=/usr/share/info \
35 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
36 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
37 --enable-shared-libs --enable-external-libtalloc --with-libtdb \
38 --with-libsmbsharemodes --with-libsmbclient --without-pam \
39 --sysconfdir=/etc --localstatedir=/var \
40 --mandir=/usr/share/man $CONFIGURE_ARGS &&
41 make -j1 &&
42 make -j1 DESTDIR=$DESTDIR install || return 1
43 #rm -f $DESTDIR/usr/*bin/*.old
44 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr
51 cp -a $install/etc $fs
52 cp -a $install/var $fs
53 cp -a $install/usr/lib $fs/usr
54 cp -a $install/usr/sbin $fs/usr
55 cp -a $install/usr/bin $fs/usr
56 cp -a $stuff/etc $fs
57 cat $stuff/*.files-list | while read file; do
58 rm -rf $fs$file
59 done
60 }
62 # Pre and post install commands for Tazpkg.
63 post_install()
64 {
65 cat <<EOF
66 ----
67 The main configuration file is /etc/samba/smb.conf
68 ----
69 To start $PACKAGE server you can run :
71 /etc/init.d/$PACKAGE start
73 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
74 ----
75 EOF
76 }