opt/samba/Pkgfile
Fun 16abcdab67 remove redundant deps
apache: zlib
aterm: xorg-libsm xorg-libxext
conky: glib xorg-libxext
cups-filters: cups
evilwm: xorg-libxext
geeqie: intltool
gtk-engines: intltool
gutenprint: ncurses readline
lcms2: libjpeg-turbo zlib
libpcap: eudev
mc: ncurses
mod_php: libxml2 xz
mutt: ncurses
mysql: ncurses openssl zlib
nfs-utils: eudev
ocaml: zlib
php-fcgi: xz
php-fpm: xz
php: readline xz
ruby: readline
samba: talloc
socat: ncurses
sqlite3: ncurses
sylpheed: openssl
transmission-gtk: curl intltool
2017-11-01 11:39:34 +01:00

49 lines
1.4 KiB
Plaintext

# Description: SMB server and client for unix
# URL: http://www.samba.org
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: e2fsprogs libarchive tdb tevent libcap libaio popt
name=samba
version=4.6.9
release=1
source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
samba)
build () {
cd $name-$version
./configure --enable-fhs \
--prefix=/usr \
--libexecdir=/usr/lib \
--localstatedir=/var \
--sysconfdir=/etc \
--with-privatedir=/etc/samba/private \
--bundled-libraries=!tdb,!talloc,!tevent,!popt \
--without-{ad-dc,ads,ldap,pam}
python ./buildtools/bin/waf build --jobs=${JOBS:-1}
python ./buildtools/bin/waf install --destdir=$PKG
# man pages
local p
for p in docs/manpages/*; do
install -D -m 644 $p $PKG/usr/share/man/man${p##*.}/${p##*/}
done
# cleanup
chmod 1777 $PKG/var/lock
# remove pidl
find $PKG -iname '*pidl*' -type f -delete
find $PKG -depth -name perl5 -type d -exec rm -r {} \;
# 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
install -m 0755 $SRC/samba $PKG/etc/rc.d
# revdep
install -d $PKG/etc/revdep.d
echo '/usr/lib/samba' > $PKG/etc/revdep.d/samba
}