# SliTaz package receipt. PACKAGE="samba-pam" VERSION="3.5.8" CATEGORY="system-tools" SHORT_DESC="File and print services with SMB/CIFS using PAM." MAINTAINER="pascal.bellard@slitaz.org" SOURCE="samba" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://samba.org/" WGET_URL="${WEB_SITE}$SOURCE/ftp/stable/$TARBALL" BUILD_DEPENDS="libldap openldap openldap-dev cups cups-dev pam pam-dev" DEPENDS="libldap samba-common glibc-extra-samba ncursesw popt zlib smbfs acl pam perl cups krb5" SUGGESTED="gamin" CONFIG_FILES="/etc/samba" PROVIDE="samba:pam" BUGS="Open directory needs MIT kerberos support (krb5)" # Rules to configure and make the package. compile_rules() { patch -p0 < $WOK/$SOURCE/stuff/CVE-2017-7494.u cd $src/source3 ./configure --prefix=/usr --infodir=/usr/share/info \ --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \ --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \ --enable-shared-libs --with-libtalloc --with-libtdb --with-cifsumount \ --with-libsmbsharemodes --with-libsmbclient \ --with-pam --with-pammodulesdir=/lib/security \ --sysconfdir=/etc --localstatedir=/var \ --mandir=/usr/share/man $CONFIGURE_ARGS && make $MAKEFLAGS && make DESTDIR=$DESTDIR install || return 1 #rm -f ../_pkg/usr/*bin/*.old #ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0 } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $_pkg/etc $fs cp -a $_pkg/var $fs cp -a $_pkg/lib $fs cp -a $_pkg/usr/lib $fs/usr cp -a $_pkg/usr/sbin $fs/usr cp -a $_pkg/usr/bin $fs/usr cp -a $WOK/$SOURCE/stuff/etc $fs cat $WOK/$SOURCE/stuff/*.files-list | while read file; do rm -rf $fs$file done } # Pre and post install commands for Tazpkg. post_install() { cat <