pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/nagios-plugin-milter net/nagios-plugin-milter: Cre...
details: https://anonhg.NetBSD.org/pkgsrc/rev/955d5eadfefb
branches: trunk
changeset: 366398:955d5eadfefb
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Aug 14 15:24:42 2017 +0000
description:
net/nagios-plugin-milter: Create necessary users and groups.
This package installs a binary that is setuid-executable to the
"smmsp" user and it also needs to be owned by the "nagios" group.
Add hooks to create these users and groups in the package install
scripts when the binary package is installed.
Bump the PKGREVISION due to changes in the package install scripts.
diffstat:
net/nagios-plugin-milter/Makefile | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diffs (39 lines):
diff -r eb7731975c21 -r 955d5eadfefb net/nagios-plugin-milter/Makefile
--- a/net/nagios-plugin-milter/Makefile Mon Aug 14 15:24:30 2017 +0000
+++ b/net/nagios-plugin-milter/Makefile Mon Aug 14 15:24:42 2017 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2017/03/09 23:47:47 manu Exp $
+# $NetBSD: Makefile,v 1.3 2017/08/14 15:24:42 jlam Exp $
#
PKGNAME= nagios-plugin-milter-${DISTNAME:C/.*-//}
+PKGREVISION= 1
DISTNAME= check_milter-0.2
CATEGORIES= net
MASTER_SITES= http://ftp.espci.fr/pub/nagios-local/
@@ -14,10 +15,23 @@
INSTALLATION_DIRS+= libexec/nagios
-SMMSP_USER?= smmsp
+BUILD_DEFS+= NAGIOS_GROUP
+PKG_GROUPS_VARS= NAGIOS_GROUP
+PKG_GROUPS= ${NAGIOS_GROUP}
+
+# The default `smmsp' username and group match the ones hardcoded
+# into mail/sendmail/Makefile.
+#
+SMMSP_USER?= smmsp
+BUILD_DEFS+= SMMSP_USER
+PKG_GROUPS_VARS= SMMSP_USER
+PKG_USERS_VARS= SMMSP_USER
+PKG_GROUPS= ${SMMSP_USER}
+PKG_USERS= ${SMMSP_USER}:${SMMSP_USER}
+PKG_GECOS.${SMMSP_USER}=Sendmail Message Submission Program
+
SPECIAL_PERMS+= ${PREFIX}/libexec/nagios/check_milter \
${SMMSP_USER} ${NAGIOS_GROUP} 4554
-BUILD_DEFS+= ${NAGIOS_GROUP}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/check_milter \
Home |
Main Index |
Thread Index |
Old Index