pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils sysutils/bareos{,-clientonly}: rework config ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8d73cf5a861c
branches: trunk
changeset: 446529:8d73cf5a861c
user: kardel <kardel%pkgsrc.org@localhost>
date: Wed Feb 10 11:27:19 2021 +0000
description:
sysutils/bareos{,-clientonly}: rework config file permissions and users
bareos-clientonly does not need to install the bareosdir and bareossd users.
avoid installing config files twice
adjust sysutils/bareos/Makefile{,.common} for the above.
diffstat:
sysutils/bareos-clientonly/Makefile | 7 +------
sysutils/bareos/Makefile | 14 +++++++++++++-
sysutils/bareos/Makefile.common | 13 +------------
3 files changed, 15 insertions(+), 19 deletions(-)
diffs (77 lines):
diff -r 362b4722892f -r 8d73cf5a861c sysutils/bareos-clientonly/Makefile
--- a/sysutils/bareos-clientonly/Makefile Wed Feb 10 11:23:31 2021 +0000
+++ b/sysutils/bareos-clientonly/Makefile Wed Feb 10 11:27:19 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2021/02/01 09:08:44 kardel Exp $
+# $NetBSD: Makefile,v 1.3 2021/02/10 11:27:19 kardel Exp $
COMMENT= Backup Archiving REcovery Open Sourced - client
@@ -21,11 +21,6 @@
.include "../../mk/bsd.pkg.mk"
CONFIG_TEMPLATES!= ${EGREP} "^"${CONFIG_TEMPLATE_PATH:Q} PLIST 2>/dev/null | sed -e 's/ /\\ /g'
-CONF_FILES?=
-
-.for l in ${CONFIG_TEMPLATES}
-CONF_FILES+= ${l} ${PKG_SYSCONFDIR}${l:S/^${CONFIG_TEMPLATE_PATH}//}
-.endfor
BUILD_DEFS+= VARBASE # to keep pkglint happy
diff -r 362b4722892f -r 8d73cf5a861c sysutils/bareos/Makefile
--- a/sysutils/bareos/Makefile Wed Feb 10 11:23:31 2021 +0000
+++ b/sysutils/bareos/Makefile Wed Feb 10 11:27:19 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2021/02/01 09:08:43 kardel Exp $
+# $NetBSD: Makefile,v 1.5 2021/02/10 11:27:19 kardel Exp $
CONFLICTS= bareos-clientonly-[0-9]* bacula-clientonly-[0-9]* bacula-[0-9]*
@@ -11,6 +11,18 @@
# strange: pkglint complains about VARBASE not defined in BUILD_DEFS, but it is defined in Makefile.common
BUILD_DEFS+= VARBASE
+BAREOS_SD_USER?= bareossd
+PKG_GECOS.${BAREOS_SD_USER}= Bareos Storage User
+PKG_HOME.${BAREOS_SD_USER}= ${BAREOS_WORKINGDIR}
+PKG_SHELL.${BAREOS_SD_USER}= /bin/sh
+
+BAREOS_DIR_USER?= bareosdir
+PKG_GECOS.${BAREOS_DIR_USER}= Bareos Director User
+PKG_HOME.${BAREOS_DIR_USER}= ${BAREOS_WORKINGDIR}
+PKG_SHELL.${BAREOS_DIR_USER}= /bin/sh
+
+PKG_USERS= ${BAREOS_DIR_USER}:${BAREOS_GROUP} ${BAREOS_SD_USER}:${BAREOS_GROUP}
+
.include "options.mk"
.include "Makefile.common"
diff -r 362b4722892f -r 8d73cf5a861c sysutils/bareos/Makefile.common
--- a/sysutils/bareos/Makefile.common Wed Feb 10 11:23:31 2021 +0000
+++ b/sysutils/bareos/Makefile.common Wed Feb 10 11:27:19 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.2 2021/02/01 09:08:43 kardel Exp $
+# $NetBSD: Makefile.common,v 1.3 2021/02/10 11:27:19 kardel Exp $
# used by sysutils/bareos-clientonly/Makefile
GITHUB_PROJECT= bareos
@@ -52,18 +52,7 @@
# user/group information
BAREOS_GROUP?= bareos
-BAREOS_SD_USER?= bareossd
-PKG_GECOS.${BAREOS_SD_USER}= Bareos Storage User
-PKG_HOME.${BAREOS_SD_USER}= ${BAREOS_WORKINGDIR}
-PKG_SHELL.${BAREOS_SD_USER}= /bin/sh
-
-BAREOS_DIR_USER?= bareosdir
-PKG_GECOS.${BAREOS_DIR_USER}= Bareos Director User
-PKG_HOME.${BAREOS_DIR_USER}= ${BAREOS_WORKINGDIR}
-PKG_SHELL.${BAREOS_DIR_USER}= /bin/sh
-
PKG_GROUPS= ${BAREOS_GROUP}
-PKG_USERS= ${BAREOS_DIR_USER}:${BAREOS_GROUP} ${BAREOS_SD_USER}:${BAREOS_GROUP}
CONFIG_TEMPLATE_PATH= share/examples/${PKG_SYSCONFSUBDIR}/configtemplates
Home |
Main Index |
Thread Index |
Old Index