summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2008-01-28 16:42:40 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2008-01-28 16:42:40 +0000
commitbd601c7c022600773605f1a18ce58dddd29c97a0 (patch)
tree2719cd3c88580257e93ea5fc104e793fe911f35c /net-mgmt
parent- Update to 2008.01.02.1043 (diff)
- create default config when build by port
package not changed, it does create default config
Notes
Notes: svn path=/head/; revision=206326
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/hobbit-client/Makefile7
-rw-r--r--net-mgmt/xymon-client/Makefile7
2 files changed, 14 insertions, 0 deletions
diff --git a/net-mgmt/hobbit-client/Makefile b/net-mgmt/hobbit-client/Makefile
index 8432be3d2205..104b772864d2 100644
--- a/net-mgmt/hobbit-client/Makefile
+++ b/net-mgmt/hobbit-client/Makefile
@@ -25,6 +25,7 @@ MAKE_ENV+= BBUSER="${BBUSER}"
MAKE_ENV+= BBHOSTIP="${BBHOSTIP}"
USE_RC_SUBR= hobbit-client.sh
PLIST_SUB+= BBUSER="${BBUSER}"
+CONFIG_FILES= clientlaunch.cfg hobbitclient.cfg localclient.cfg
# Configure script is interactive
do-configure:
@@ -35,4 +36,10 @@ pre-install:
if ! pw usershow ${BBUSER}; then pw useradd ${BBUSER} -g ${BBUSER} -u 280 \
-h - -d ${NONEXISTENT} -s /usr/sbin/nologin -c "Hobbit Monitor"; fi
+post-install:
+.for i in ${CONFIG_FILES}
+ ${CP} -np ${WWWDIR}/client/etc/${i}-dist \
+ ${WWWDIR}/client/etc/${i}
+.endfor
+
.include <bsd.port.mk>
diff --git a/net-mgmt/xymon-client/Makefile b/net-mgmt/xymon-client/Makefile
index 8432be3d2205..104b772864d2 100644
--- a/net-mgmt/xymon-client/Makefile
+++ b/net-mgmt/xymon-client/Makefile
@@ -25,6 +25,7 @@ MAKE_ENV+= BBUSER="${BBUSER}"
MAKE_ENV+= BBHOSTIP="${BBHOSTIP}"
USE_RC_SUBR= hobbit-client.sh
PLIST_SUB+= BBUSER="${BBUSER}"
+CONFIG_FILES= clientlaunch.cfg hobbitclient.cfg localclient.cfg
# Configure script is interactive
do-configure:
@@ -35,4 +36,10 @@ pre-install:
if ! pw usershow ${BBUSER}; then pw useradd ${BBUSER} -g ${BBUSER} -u 280 \
-h - -d ${NONEXISTENT} -s /usr/sbin/nologin -c "Hobbit Monitor"; fi
+post-install:
+.for i in ${CONFIG_FILES}
+ ${CP} -np ${WWWDIR}/client/etc/${i}-dist \
+ ${WWWDIR}/client/etc/${i}
+.endfor
+
.include <bsd.port.mk>