mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Reserve a user and group ID for the stunnel daemon.
Loosely based on the PR, although I just used the next available UID/GID. PR: 108784 Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>
This commit is contained in:
parent
040d1b21b9
commit
4afa9507f4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198434
4 changed files with 5 additions and 2 deletions
1
GIDs
1
GIDs
|
@ -91,6 +91,7 @@ prelude:*:281:
|
||||||
_sphinx:*:312:
|
_sphinx:*:312:
|
||||||
dkfilter:*:325:
|
dkfilter:*:325:
|
||||||
wildfire:*:340:
|
wildfire:*:340:
|
||||||
|
stunnel:*:341:
|
||||||
ldap:*:389:
|
ldap:*:389:
|
||||||
tiarra:*:398:
|
tiarra:*:398:
|
||||||
drweb:*:426:
|
drweb:*:426:
|
||||||
|
|
1
UIDs
1
UIDs
|
@ -101,6 +101,7 @@ prelude:*:281:281:Prelude user:/nonexistent:/sbin/nologin
|
||||||
_sphinx:*:312:312::0:0:Sphinxsearch Owner:/nonexistent:/sbin/nologin
|
_sphinx:*:312:312::0:0:Sphinxsearch Owner:/nonexistent:/sbin/nologin
|
||||||
dkfilter:*:325:325:DK Filter Owner:/nonexistent:/sbin/nologin
|
dkfilter:*:325:325:DK Filter Owner:/nonexistent:/sbin/nologin
|
||||||
wildfire:*:340:340::0:0:Wildfire Daemon:/nonexistent:/sbin/nologin
|
wildfire:*:340:340::0:0:Wildfire Daemon:/nonexistent:/sbin/nologin
|
||||||
|
stunnel:*:341:341::0:0:Stunnel Daemon:/nonexistent:/sbin/nologin
|
||||||
ldap:*:389:389:OpenLDAP Server:/nonexistent:/sbin/nologin
|
ldap:*:389:389:OpenLDAP Server:/nonexistent:/sbin/nologin
|
||||||
tiarra:*:398:398:Tiarra IRC Proxy:/nonexistent:/usr/sbin/nologin
|
tiarra:*:398:398:Tiarra IRC Proxy:/nonexistent:/usr/sbin/nologin
|
||||||
drweb:*:426:426:Dr.Web Mail Scanner:/nonexistent:/sbin/nologin
|
drweb:*:426:426:Dr.Web Mail Scanner:/nonexistent:/sbin/nologin
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= stunnel
|
PORTNAME= stunnel
|
||||||
PORTVERSION= 4.20
|
PORTVERSION= 4.20
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= security
|
CATEGORIES= security
|
||||||
MASTER_SITES= http://www.stunnel.org/download/stunnel/src/ \
|
MASTER_SITES= http://www.stunnel.org/download/stunnel/src/ \
|
||||||
ftp://stunnel.mirt.net/stunnel/ \
|
ftp://stunnel.mirt.net/stunnel/ \
|
||||||
|
|
|
@ -16,7 +16,7 @@ POST-INSTALL)
|
||||||
if pw group show "${GROUP}" 2>/dev/null; then
|
if pw group show "${GROUP}" 2>/dev/null; then
|
||||||
echo "You already have a group \"${GROUP}\", so I will use it."
|
echo "You already have a group \"${GROUP}\", so I will use it."
|
||||||
else
|
else
|
||||||
if pw groupadd ${GROUP} ; then
|
if pw groupadd -g 341 -n ${GROUP} ; then
|
||||||
echo "Added group \"${GROUP}\"."
|
echo "Added group \"${GROUP}\"."
|
||||||
else
|
else
|
||||||
echo "Adding group \"${GROUP}\" failed..."
|
echo "Adding group \"${GROUP}\" failed..."
|
||||||
|
@ -27,7 +27,7 @@ POST-INSTALL)
|
||||||
if pw user show "${USER}" 2>/dev/null; then
|
if pw user show "${USER}" 2>/dev/null; then
|
||||||
echo "You already have a user \"${USER}\", so I will use it."
|
echo "You already have a user \"${USER}\", so I will use it."
|
||||||
else
|
else
|
||||||
if pw useradd ${USER} -g ${GROUP} -h - \
|
if pw useradd -u 341 -n ${USER} -g ${GROUP} -h - \
|
||||||
-d /nonexistent -c "stunnel Daemon" -s /sbin/nologin
|
-d /nonexistent -c "stunnel Daemon" -s /sbin/nologin
|
||||||
then
|
then
|
||||||
echo "Added user \"${USER}\"."
|
echo "Added user \"${USER}\"."
|
||||||
|
|
Loading…
Add table
Reference in a new issue