SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "samba"

# SliTaz package receipt.

PACKAGE="samba"
VERSION="3.5.8"
CATEGORY="system-tools"
SHORT_DESC="File and print services with SMB/CIFS."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://samba.org/"
WGET_URL="${WEB_SITE}$PACKAGE/ftp/stable/$TARBALL"

SUGGESTED="gamin cups perl"
CONFIG_FILES="/etc/samba"
BUGS="Open directory needs MIT kerberos support (krb5)"

BUILD_DEPENDS="openldap openldap-dev libcomerr-dev cups-dev talloc-dev pkg-config libldap"
DEPENDS="libldap samba-common glibc-extra-samba ncursesw popt zlib smbfs 
acl krb5 cups"

# Rules to configure and make the package.
compile_rules()
{
    patch -p0 < $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 --enable-external-libtalloc --with-libtdb --with-cifsumount \
    --with-libsmbsharemodes --with-libsmbclient --without-pam \
    --sysconfdir=/etc --localstatedir=/var \
    --mandir=/usr/share/man $CONFIGURE_ARGS &&
    make -j1 &&
    make -j1 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/usr/lib $fs/usr
    cp -a $_pkg/usr/sbin $fs/usr
    cp -a $_pkg/usr/bin $fs/usr
    cp -a $stuff/etc $fs
    cat $stuff/*.files-list | while read file; do
        rm -rf $fs$file
    done
}

# Pre and post install commands for Tazpkg.
post_install()
{
    cat <<EOF
----
The main configuration file is /etc/samba/smb.conf
----
To start $PACKAGE server you can run :

    /etc/init.d/$PACKAGE start

Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
----
EOF
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)