wok-current view samba/receipt @ rev 25728

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