wok-current view samba-pam/receipt @ rev 24462

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 16 21:07:01 2022 +0000 (2022-02-16)
parents c13c64d88162
children e4cc6a0d37f0
line source
1 # SliTaz package receipt.
3 PACKAGE="samba-pam"
4 VERSION="3.6.7"
5 CATEGORY="system-tools"
6 SHORT_DESC="File and print services with SMB/CIFS using PAM."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 SOURCE="samba"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://samba.org/"
12 WGET_URL="${WEB_SITE}$SOURCE/ftp/stable/$TARBALL"
13 TAZPANEL_DAEMON="man::samba|edit::/etc/samba/smb.conf|web::$WEB_SITE"
14 SUGGESTED="gamin"
15 CONFIG_FILES="/etc/samba"
16 PROVIDE="samba:pam"
17 BUGS="Open directory needs MIT kerberos support (krb5)"
19 BUILD_DEPENDS="libldap openldap openldap-dev cups cups-dev pam pam-dev krb5"
20 DEPENDS="libldap samba-common glibc-base ncursesw popt zlib cifs-utils acl pam \
21 perl libcups krb5"
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - ${WGET_URL%/*} 2>/dev/null | \
27 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 patch -p0 < $WOK/$SOURCE/stuff/CVE-2017-7494.u
34 cd $src/source3
35 ./configure --prefix=/usr --infodir=/usr/share/info \
36 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \
37 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \
38 --enable-shared-libs --with-libtalloc --with-libtdb \
39 --with-libsmbsharemodes --with-libsmbclient \
40 --with-pam --with-pammodulesdir=/lib/security \
41 --sysconfdir=/etc --localstatedir=/var \
42 --mandir=/usr/share/man $CONFIGURE_ARGS &&
43 make $MAKEFLAGS &&
44 make 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/lib $fs
56 cp -a $install/usr/lib $fs/usr
57 cp -a $install/usr/sbin $fs/usr
58 cp -a $install/usr/bin $fs/usr
59 cp -a $WOK/$SOURCE/stuff/etc $fs
60 cat $WOK/$SOURCE/stuff/*.files-list | while read file; do
61 rm -rf $fs$file
62 done
63 }
65 # Pre and post install commands for Tazpkg.
66 post_install()
67 {
68 cat <<EOF
69 ----
70 The main configuration file is /etc/samba/smb.conf
71 ----
72 To start $PACKAGE server you can run :
74 /etc/init.d/$PACKAGE start
76 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
77 ----
78 EOF
79 }