37f93590d8
The previously bundled libraries are now individual ports, therefore manual action is needed to upgrade. IE: pkgrm samba; prt-get depinst samba /etc/rc.d/samba will now start all samba daemons: smbd, nmbd and winbindd, previously it didn't start winbindd. In most cases not all of them are needed, so now there are also individual scripts to suit all needs.
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
# Description: SMB server and client for unix
|
|
# URL: http://www.samba.org
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
# Packager: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: ncurses openssl readline zlib libcap acl libaio popt p5-parse-yapp krb5 ldb ntdb iniparser subunit py-subunit
|
|
# Optional: cups
|
|
|
|
name=samba
|
|
version=4.1.16
|
|
release=2
|
|
source=(
|
|
http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz
|
|
samba.rc
|
|
nmbd.rc
|
|
smbd.rc
|
|
winbindd.rc
|
|
)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
|
|
./configure \
|
|
--enable-fhs \
|
|
--prefix=/usr \
|
|
--localstatedir=/var \
|
|
--mandir=/usr/man \
|
|
--sysconfdir=/etc \
|
|
--with-privatedir=/etc/samba/private \
|
|
--bundled-libraries=NONE \
|
|
--with-system-mitkrb5
|
|
|
|
# we should define vendorlib in our perl port
|
|
sed -ri 's/(vendor)(arch|lib|prefix)/site\2/' buildtools/wafsamba/samba_perl.py
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
# man pages
|
|
for i in docs/manpages/*; do
|
|
install -D -m 644 $i $PKG/usr/man/man${i##*.}/${i##*/}
|
|
done
|
|
|
|
# cleanup
|
|
chmod 1777 $PKG/var/lock
|
|
|
|
# config-file and start-script
|
|
install -d $PKG/etc/{samba,rc.d}
|
|
install -m 0600 packaging/LSB/smb.conf $PKG/etc/samba/smb.conf.default
|
|
|
|
# startup scripts
|
|
for i in samba nmbd smbd winbindd; do
|
|
install -m 0755 $SRC/$i.rc $PKG/etc/rc.d/$i
|
|
done
|
|
}
|