extra sanity checking, ensure that the rc.d scripts run by the meta script
are executable, I needed it for the bacula script which runs daemons split between two packages, ajacoutot suggested applying to other similar scripts.
This commit is contained in:
parent
b468cf0d0b
commit
4a7a77a640
@ -1,10 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.147 2013/03/31 13:01:19 robert Exp $
|
||||
# $OpenBSD: Makefile,v 1.148 2013/05/03 18:43:26 sthen Exp $
|
||||
|
||||
COMMENT-main= MS Exchange groupware suite replacement
|
||||
COMMENT-web= zarafa webaccess frontend and MAPI extensions for PHP
|
||||
|
||||
PKGNAME= zarafa-${V}
|
||||
PKGNAME-main= zarafa-${V}
|
||||
REVISION-main= 0
|
||||
PKGNAME-web= zarafa-webaccess-${V}
|
||||
|
||||
CATEGORIES= mail www productivity
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: zarafa.rc,v 1.12 2012/08/30 14:28:22 ajacoutot Exp $
|
||||
# $OpenBSD: zarafa.rc,v 1.13 2013/05/03 18:43:27 sthen Exp $
|
||||
|
||||
# "meta" script running the following rc.d(8) scripts with the given argument;
|
||||
# note that daemon_flags, daemon_user and daemon_class are not passed to
|
||||
@ -12,4 +12,4 @@ if [ "$1" = stop ]; then
|
||||
_pkg_scripts=${_l% }
|
||||
fi
|
||||
|
||||
for _i in ${_pkg_scripts}; do ${RCDIR}/${_i} $1; done
|
||||
for _i in ${_pkg_scripts}; do [[ -x ${RCDIR}/${_i} ]] && ${RCDIR}/${_i} $1; done
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.182 2013/05/03 03:06:08 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.183 2013/05/03 18:43:28 sthen Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
@ -9,6 +9,7 @@ DISTNAME= samba-3.6.14
|
||||
PKGNAME-main= ${DISTNAME}
|
||||
FULLPKGNAME-docs= ${DISTNAME:S/-/-docs-/}
|
||||
FULLPKGPATH-docs= net/samba,-docs
|
||||
REVISION-main= 0
|
||||
|
||||
SHARED_LIBS= smbclient 3.0 \
|
||||
smbsharemodes 1.0 \
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: samba.rc,v 1.6 2012/08/25 10:14:37 ajacoutot Exp $
|
||||
# $OpenBSD: samba.rc,v 1.7 2013/05/03 18:43:28 sthen Exp $
|
||||
|
||||
# "meta" script running the following rc.d(8) scripts with the given argument;
|
||||
# note that daemon_flags, daemon_user and daemon_class are not passed to
|
||||
@ -12,4 +12,4 @@ if [ "$1" = stop ]; then
|
||||
_pkg_scripts=${_l% }
|
||||
fi
|
||||
|
||||
for _i in ${_pkg_scripts}; do ${RCDIR}/${_i} $1; done
|
||||
for _i in ${_pkg_scripts}; do [[ -x ${RCDIR}/${_i} ]] && ${RCDIR}/${_i} $1; done
|
||||
|
Loading…
Reference in New Issue
Block a user