From 7301c13195e146344865e2d5d1fa48d7fd788783 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 12 Oct 2014 11:10:34 +0200 Subject: [PATCH] samba: added systemd build option (off). --- srcpkgs/samba/template | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/srcpkgs/samba/template b/srcpkgs/samba/template index 81c998bf9d6..29fa3d210db 100644 --- a/srcpkgs/samba/template +++ b/srcpkgs/samba/template @@ -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