samba: added systemd build option (off).

This commit is contained in:
Juan RP 2014-10-12 11:10:34 +02:00
parent 3056edb6ab
commit 7301c13195

View file

@ -1,7 +1,7 @@
# Template file for 'samba'
pkgname=samba
version=3.6.24
revision=1
revision=2
build_wrksrc=source3
build_style=gnu-configure
configure_args="--with-fhs --with-pam --with-pam_smbpass --with-ldap
@ -20,6 +20,7 @@ distfiles="http://us1.samba.org/samba/ftp/stable/$pkgname-$version.tar.gz"
checksum=11d0bd04b734731970259efc6692b8e749ff671a9b56d8cc5fa98c192ab234a7
lib32disabled=yes
build_options="systemd"
conf_files="/etc/pam.d/samba"
hostmakedepends="pkg-config perl python-devel"
makedepends="readline-devel>=6.3 libcap-devel popt-devel e2fsprogs-devel
@ -73,11 +74,13 @@ post_install() {
rm -f ${DESTDIR}/usr/include/samba/tevent*
# systemd units
for f in ${FILESDIR}/*.{service,socket}; do
vinstall ${f} 644 usr/lib/systemd/system
done
# systemd tmpfiles
vinstall ${FILESDIR}/samba.tmpfiles 644 usr/lib/tmpfiles.d samba.conf
if [ "$build_option_systemd" ]; then
for f in ${FILESDIR}/*.{service,socket}; do
vinstall ${f} 644 usr/lib/systemd/system
done
# systemd tmpfiles
vinstall ${FILESDIR}/samba.tmpfiles 644 usr/lib/tmpfiles.d samba.conf
fi
# PAM support
vinstall ${FILESDIR}/samba.pam 644 etc/pam.d samba
@ -90,26 +93,22 @@ post_install() {
smbclient_package() {
short_desc="Command-line SMB/CIFS clients for Unix"
conf_files="/etc/samba/smb.conf"
replaces="samba<3.6.20"
pkg_install() {
vmove etc/samba/smb.conf
vmove usr/bin
vmove usr/share/man/man1
}
}
libsmbclient_package() {
short_desc="Shared libraries for communication with SMB/CIFS servers"
depends="mit-krb5-libs>=1.10.1"
pkg_install() {
vmove "usr/lib/libwbclient.so.*"
vmove "usr/lib/libsmbclient.so.*"
vmove usr/share/man/man7/libsmbclient.7
}
}
samba-devel_package() {
depends="libsmbclient>=${version}"
depends="libsmbclient>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include