diff options
author | stas <stas@FreeBSD.org> | 2007-04-11 03:32:35 +0800 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2007-04-11 03:32:35 +0800 |
commit | de46f08ba2851c6c428ae346292c40499eb5b8ec (patch) | |
tree | 4978ae2b108ff8524cb801f31fed55a2eb7bed5b /net-mgmt | |
parent | 0e84e3ac978e0e6f4501523acfd05405c2ef3cbb (diff) | |
download | freebsd-ports-gnome-de46f08ba2851c6c428ae346292c40499eb5b8ec.tar.gz freebsd-ports-gnome-de46f08ba2851c6c428ae346292c40499eb5b8ec.tar.zst freebsd-ports-gnome-de46f08ba2851c6c428ae346292c40499eb5b8ec.zip |
- Use static gid/uid.
Submitted by: kris
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/flow-tools/Makefile | 4 | ||||
-rw-r--r-- | net-mgmt/flow-tools/files/pkg-install.in | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/net-mgmt/flow-tools/Makefile b/net-mgmt/flow-tools/Makefile index 2adb7e0f827f..dff324563ff8 100644 --- a/net-mgmt/flow-tools/Makefile +++ b/net-mgmt/flow-tools/Makefile @@ -30,6 +30,8 @@ SUB_FILES= pkg-install pkg-deinstall SUB_LIST= FLOW_CAPTURE_SPOOL="${FLOW_CAPTURE_SPOOL}" \ FLOW_CAPTURE_USER="${FLOW_CAPTURE_USER}" \ FLOW_CAPTURE_GROUP="${FLOW_CAPTURE_GROUP}" \ + FLOW_CAPTURE_UID="${FLOW_CAPTURE_UID}" \ + FLOW_CAPTURE_GID="${FLOW_CAPTURE_GID}" \ FLOW_CAPTURE_PIDDIR="${FLOW_CAPTURE_PIDDIR}" USE_RC_SUBR= flow_capture @@ -37,6 +39,8 @@ VARDIR?= ${DESTDIR}/var FLOW_CAPTURE_SPOOL= ${VARDIR}/db/flows FLOW_CAPTURE_USER= flowtools FLOW_CAPTURE_GROUP= flowtools +FLOW_CAPTURE_UID= 174 +FLOW_CAPTURE_GID= 174 FLOW_CAPTURE_PIDDIR= ${VARDIR}/run/flow-capture .if defined(WITH_PGSQL) diff --git a/net-mgmt/flow-tools/files/pkg-install.in b/net-mgmt/flow-tools/files/pkg-install.in index dc913ca32fd8..3efd6d271982 100644 --- a/net-mgmt/flow-tools/files/pkg-install.in +++ b/net-mgmt/flow-tools/files/pkg-install.in @@ -8,6 +8,8 @@ PATH=/bin:/usr/sbin:/usr/bin:/usr/sbin FLOW_CAPTURE_SPOOL="%%FLOW_CAPTURE_SPOOL%%" FLOW_CAPTURE_USER="%%FLOW_CAPTURE_USER%%" FLOW_CAPTURE_GROUP="%%FLOW_CAPTURE_GROUP%%" +FLOW_CAPTURE_UID="%%FLOW_CAPTURE_UID%%" +FLOW_CAPTURE_GID="%%FLOW_CAPTURE_GID%%" FLOW_CAPTURE_PIDDIR="%%FLOW_CAPTURE_PIDDIR%%" if [ -x /usr/sbin/nologin ]; then @@ -23,7 +25,7 @@ pre-install() { pw groupshow ${FLOW_CAPTURE_GROUP} > /dev/null 2>&1 if [ $? -ne 0 ]; then echo -n "Creating '${FLOW_CAPTURE_GROUP}' group... " - pw groupadd ${FLOW_CAPTURE_GROUP} -q + pw groupadd -n ${FLOW_CAPTURE_GROUP} -g ${FLOW_CAPTURE_GID} -q if [ $? -eq 0 ]; then echo "ok" @@ -44,6 +46,7 @@ pre-install() { if [ $? -ne 0 ]; then echo -n "Creating '${FLOW_CAPTURE_USER}' user... " pw useradd -n ${FLOW_CAPTURE_USER} -g ${FLOW_CAPTURE_GROUP} \ + -u ${FLOW_CAPTURE_UID} \ -c "Flow-tools collector pseudo-user" \ -d "/var/empty" -s "${NOLOGIN}" -h - -q |