samba: added systemd build option (off).
This commit is contained in:
parent
3056edb6ab
commit
7301c13195
1 changed files with 10 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'samba'
|
# Template file for 'samba'
|
||||||
pkgname=samba
|
pkgname=samba
|
||||||
version=3.6.24
|
version=3.6.24
|
||||||
revision=1
|
revision=2
|
||||||
build_wrksrc=source3
|
build_wrksrc=source3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-fhs --with-pam --with-pam_smbpass --with-ldap
|
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
|
checksum=11d0bd04b734731970259efc6692b8e749ff671a9b56d8cc5fa98c192ab234a7
|
||||||
|
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
|
build_options="systemd"
|
||||||
conf_files="/etc/pam.d/samba"
|
conf_files="/etc/pam.d/samba"
|
||||||
hostmakedepends="pkg-config perl python-devel"
|
hostmakedepends="pkg-config perl python-devel"
|
||||||
makedepends="readline-devel>=6.3 libcap-devel popt-devel e2fsprogs-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*
|
rm -f ${DESTDIR}/usr/include/samba/tevent*
|
||||||
|
|
||||||
# systemd units
|
# systemd units
|
||||||
for f in ${FILESDIR}/*.{service,socket}; do
|
if [ "$build_option_systemd" ]; then
|
||||||
vinstall ${f} 644 usr/lib/systemd/system
|
for f in ${FILESDIR}/*.{service,socket}; do
|
||||||
done
|
vinstall ${f} 644 usr/lib/systemd/system
|
||||||
# systemd tmpfiles
|
done
|
||||||
vinstall ${FILESDIR}/samba.tmpfiles 644 usr/lib/tmpfiles.d samba.conf
|
# systemd tmpfiles
|
||||||
|
vinstall ${FILESDIR}/samba.tmpfiles 644 usr/lib/tmpfiles.d samba.conf
|
||||||
|
fi
|
||||||
|
|
||||||
# PAM support
|
# PAM support
|
||||||
vinstall ${FILESDIR}/samba.pam 644 etc/pam.d samba
|
vinstall ${FILESDIR}/samba.pam 644 etc/pam.d samba
|
||||||
|
@ -90,26 +93,22 @@ post_install() {
|
||||||
smbclient_package() {
|
smbclient_package() {
|
||||||
short_desc="Command-line SMB/CIFS clients for Unix"
|
short_desc="Command-line SMB/CIFS clients for Unix"
|
||||||
conf_files="/etc/samba/smb.conf"
|
conf_files="/etc/samba/smb.conf"
|
||||||
replaces="samba<3.6.20"
|
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove etc/samba/smb.conf
|
vmove etc/samba/smb.conf
|
||||||
vmove usr/bin
|
vmove usr/bin
|
||||||
vmove usr/share/man/man1
|
vmove usr/share/man/man1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
libsmbclient_package() {
|
libsmbclient_package() {
|
||||||
short_desc="Shared libraries for communication with SMB/CIFS servers"
|
short_desc="Shared libraries for communication with SMB/CIFS servers"
|
||||||
depends="mit-krb5-libs>=1.10.1"
|
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/libwbclient.so.*"
|
vmove "usr/lib/libwbclient.so.*"
|
||||||
vmove "usr/lib/libsmbclient.so.*"
|
vmove "usr/lib/libsmbclient.so.*"
|
||||||
vmove usr/share/man/man7/libsmbclient.7
|
vmove usr/share/man/man7/libsmbclient.7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
samba-devel_package() {
|
samba-devel_package() {
|
||||||
depends="libsmbclient>=${version}"
|
depends="libsmbclient>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
|
Loading…
Reference in a new issue