mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
- Use static gid/uid.
Submitted by: kris
This commit is contained in:
parent
38c7ca20d1
commit
cb49ebd8e8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=189708
1
GIDs
1
GIDs
@ -66,6 +66,7 @@ rbldns:*:153:
|
||||
sfs:*:171:
|
||||
agk:*:172:
|
||||
polipo:*:173:
|
||||
flowtools:*:174:
|
||||
nagios:*:181:
|
||||
moinmoin:*:192:
|
||||
cups:*:193:
|
||||
|
1
UIDs
1
UIDs
@ -74,6 +74,7 @@ rbldns:*:153:153:rbldnsd pseudo-user:/nonexistent:/sbin/nologin
|
||||
sfs:*:171:171:Self-Certifying File System:/nonexistent:/sbin/nologin
|
||||
agk:*:172:172:AquaGateKeeper:/nonexistent:/nonexistent
|
||||
polipo:*:173:173:polipo web cache:/nonexistent:/sbin/nologin
|
||||
flowtools:*:174:174:Flow-tools collector pseudo-user:/nonexistent:/sbin/nologin
|
||||
nagios:*:181:181:Nagios pseudo-user:/var/spool/nagios:/sbin/nologin
|
||||
moinmoin:*:192:192:MoinMoin User:/nonexistent:/sbin/nologin
|
||||
cups:*:193:193:Cups Owner:/nonexistent:/sbin/nologin
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user