samba: added runit services.

This commit is contained in:
Juan RP 2014-10-13 17:00:21 +02:00
parent 3fac07b466
commit 062b622c5d
5 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec logger -p nmbd.notice

2
srcpkgs/samba/files/nmbd/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec nmbd -F -S

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec logger -p smbd.notice

2
srcpkgs/samba/files/smbd/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec smbd -F -S

View file

@ -1,7 +1,7 @@
# Template file for 'samba'
pkgname=samba
version=3.6.24
revision=2
revision=3
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
replaces="runit-void<20141013_2"
build_options="systemd"
conf_files="/etc/pam.d/samba"
hostmakedepends="pkg-config perl python-devel"
@ -41,7 +42,6 @@ fi
pre_configure() {
sed -e 's,XFS_QUOTA_,FS_QUOTA_,g' -i lib/sysquotas_xfs.c
}
post_install() {
cd ${wrksrc}
# conf file
@ -82,6 +82,9 @@ post_install() {
vinstall ${FILESDIR}/samba.tmpfiles 644 usr/lib/tmpfiles.d samba.conf
fi
vsv nmbd
vsv smbd
# PAM support
vinstall ${FILESDIR}/samba.pam 644 etc/pam.d samba