From 062b622c5d003d836442dfd0e1f11ab333210841 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 13 Oct 2014 17:00:21 +0200 Subject: [PATCH] samba: added runit services. --- srcpkgs/samba/files/nmbd/log/run | 2 ++ srcpkgs/samba/files/nmbd/run | 2 ++ srcpkgs/samba/files/smbd/log/run | 2 ++ srcpkgs/samba/files/smbd/run | 2 ++ srcpkgs/samba/template | 7 +++++-- 5 files changed, 13 insertions(+), 2 deletions(-) create mode 100755 srcpkgs/samba/files/nmbd/log/run create mode 100755 srcpkgs/samba/files/nmbd/run create mode 100755 srcpkgs/samba/files/smbd/log/run create mode 100755 srcpkgs/samba/files/smbd/run diff --git a/srcpkgs/samba/files/nmbd/log/run b/srcpkgs/samba/files/nmbd/log/run new file mode 100755 index 0000000000..ea5ff8e218 --- /dev/null +++ b/srcpkgs/samba/files/nmbd/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec logger -p nmbd.notice diff --git a/srcpkgs/samba/files/nmbd/run b/srcpkgs/samba/files/nmbd/run new file mode 100755 index 0000000000..dfd75fcf7d --- /dev/null +++ b/srcpkgs/samba/files/nmbd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec nmbd -F -S diff --git a/srcpkgs/samba/files/smbd/log/run b/srcpkgs/samba/files/smbd/log/run new file mode 100755 index 0000000000..f58842d487 --- /dev/null +++ b/srcpkgs/samba/files/smbd/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec logger -p smbd.notice diff --git a/srcpkgs/samba/files/smbd/run b/srcpkgs/samba/files/smbd/run new file mode 100755 index 0000000000..a7b7453729 --- /dev/null +++ b/srcpkgs/samba/files/smbd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec smbd -F -S diff --git a/srcpkgs/samba/template b/srcpkgs/samba/template index 29fa3d210d..71d7895455 100644 --- a/srcpkgs/samba/template +++ b/srcpkgs/samba/template @@ -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