aboutsummaryrefslogtreecommitdiffstats
path: root/net/cacti
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-05-31 17:14:29 +0800
committerpav <pav@FreeBSD.org>2004-05-31 17:14:29 +0800
commitf4eb5f0a688f1b0775c75d8eebf5864f7a80cf9f (patch)
treebaf6e5d211ab808fe80bcb38f603f6a247431416 /net/cacti
parent8cc9d2e564e3eb67d752242781582925c543273d (diff)
downloadfreebsd-ports-gnome-f4eb5f0a688f1b0775c75d8eebf5864f7a80cf9f.tar.gz
freebsd-ports-gnome-f4eb5f0a688f1b0775c75d8eebf5864f7a80cf9f.tar.zst
freebsd-ports-gnome-f4eb5f0a688f1b0775c75d8eebf5864f7a80cf9f.zip
- Use fixed UID/GID
Diffstat (limited to 'net/cacti')
-rw-r--r--net/cacti/Makefile2
-rw-r--r--net/cacti/pkg-install6
2 files changed, 4 insertions, 4 deletions
diff --git a/net/cacti/Makefile b/net/cacti/Makefile
index d7cb132cce5f..01e39ad43f1d 100644
--- a/net/cacti/Makefile
+++ b/net/cacti/Makefile
@@ -17,8 +17,6 @@ RUN_DEPENDS= php:${PORTSDIR}/lang/php4 \
rrdtool:${PORTSDIR}/net/rrdtool \
net-snmp-config:${PORTSDIR}/net-mgmt/net-snmp
-IGNORE= uses an unregistered uid/gid.
-
USE_MYSQL= yes
NO_BUILD= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
diff --git a/net/cacti/pkg-install b/net/cacti/pkg-install
index df78f670ea23..9c6d7bb893ae 100644
--- a/net/cacti/pkg-install
+++ b/net/cacti/pkg-install
@@ -1,6 +1,8 @@
#!/bin/sh
PW=/usr/sbin/pw
+UID=107
+GID=${UID}
case $2 in
@@ -9,7 +11,7 @@ PRE-INSTALL)
if ${PW} group show "${CACTIGROUP}" 2>/dev/null; then
echo "You already have a group \"${CACTIGROUP}\", so I will use it."
else
- if ${PW} groupadd ${CACTIGROUP}; then
+ if ${PW} groupadd ${CACTIGROUP} -g ${GID}; then
echo "Added group \"${CACTIGROUP}\"."
else
echo "Adding group \"${CACTIGROUP}\" failed..."
@@ -20,7 +22,7 @@ PRE-INSTALL)
if ${PW} user show "${CACTIUSER}" 2>/dev/null; then
echo "You already have a user \"${CACTIUSER}\", so I will use it."
else
- if ${PW} useradd ${CACTIUSER} -g ${CACTIGROUP} -h - \
+ if ${PW} useradd ${CACTIUSER} -u ${UID} -g ${CACTIGROUP} -h - \
-d "/nonexistent" -s /sbin/nologin -c "Cacti Sandbox"
then
echo "Added user \"${CACTIUSER}\"."