mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
japanese/ebnetd add user and group for daemon processes
PR: 195523 Submitted by: maintainer
This commit is contained in:
parent
24fd3f154b
commit
37983bc554
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374809
1
GIDs
1
GIDs
@ -302,5 +302,6 @@ puppetdb:*:985:
|
||||
kamailio:*:986:
|
||||
spark:*:987:
|
||||
mediabrowser:*:989:
|
||||
ebnetd:*:999:
|
||||
nogroup:*:65533:
|
||||
nobody:*:65534:
|
||||
|
1
UIDs
1
UIDs
@ -311,4 +311,5 @@ kamailio:*:986:986::0:0:kamailio daemon:/nonexistent:/usr/sbin/nologin
|
||||
spark:*:987:987::0:0:Apache Spark user:/nonexistent:/usr/sbin/nologin
|
||||
toxdht:*:988:65534::0:0:Tox DHT bootstrap user:/nonexistent:/usr/sbin/nologin
|
||||
mediabrowser:*:989:989::0:0:MediaBrowser:/nonexistent:/usr/sbin/nologin
|
||||
ebnetd:*:999:999::0:0:EBNETD:/nonexistent:/usr/sbin/nologin
|
||||
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= ebnetd
|
||||
PORTVERSION= 1.0
|
||||
PORTREVISION= 9
|
||||
PORTREVISION= 10
|
||||
CATEGORIES= japanese ipv6
|
||||
MASTER_SITES= ftp://ftp.sra.co.jp/pub/misc/eb/
|
||||
|
||||
@ -18,16 +18,28 @@ GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --localstatedir=${RUNDIR} --with-logdir=${LOGDIR}
|
||||
CONFIGURE_ENV= PERL=${PREFIX}/bin/perl
|
||||
|
||||
USERS= ${EBNETD_USER}
|
||||
GROUPS= ${EBNETD_GROUP}
|
||||
|
||||
# Local variables
|
||||
LOGDIR= /var/log
|
||||
RUNDIR= /var/run
|
||||
EBNETD_USER= ebnetd
|
||||
EBNETD_GROUP= ebnetd
|
||||
|
||||
USE_RC_SUBR= ebhttpd ebnetd ndtpd
|
||||
SUB_FILES= pkg-message
|
||||
PLIST_SUB= EBNETD_RUNDIR=${RUNDIR}/${PORTNAME}
|
||||
PLIST_SUB= EBNETD_RUNDIR=${RUNDIR}/${PORTNAME} \
|
||||
EBNETD_USER=${EBNETD_USER} \
|
||||
EBNETD_GROUP=${EBNETD_GROUP}
|
||||
|
||||
INFO= ebnetd ebnetd-ja
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e "s/%%EBNETD_USER%%/${EBNETD_USER}/" \
|
||||
-e "s/%%EBNETD_GROUP%%/${EBNETD_GROUP}/" \
|
||||
${WRKSRC}/ebnetd.conf.sample.in
|
||||
|
||||
post-stage:
|
||||
${MKDIR} -m 0755 ${STAGEDIR}${RUNDIR}/${PORTNAME}
|
||||
|
||||
|
16
japanese/ebnetd/files/patch-ebnetd.conf.sample.in
Normal file
16
japanese/ebnetd/files/patch-ebnetd.conf.sample.in
Normal file
@ -0,0 +1,16 @@
|
||||
--- ebnetd.conf.sample.in.orig 2003-06-15 20:39:55.000000000 +0900
|
||||
+++ ebnetd.conf.sample.in 2014-11-30 18:17:51.227415186 +0900
|
||||
@@ -17,11 +17,11 @@
|
||||
|
||||
### Owner of the server process.
|
||||
### (default: none)
|
||||
-user ndtpuser
|
||||
+user %%EBNETD_USER%%
|
||||
|
||||
### Group of the server process.
|
||||
### (default: none)
|
||||
-group ndtpgrp
|
||||
+group %%EBNETD_GROUP%%
|
||||
|
||||
### How many clients can be connected to the server at the same time.
|
||||
### (default: 1)
|
@ -13,4 +13,4 @@ sbin/ebnupgrade
|
||||
sbin/ndtpcheck
|
||||
sbin/ndtpcontrol
|
||||
sbin/ndtpd
|
||||
@dir(,,0755) %%EBNETD_RUNDIR%%
|
||||
@dir(%%EBNETD_USER%%,%%EBNETD_GROUP%%,0755) %%EBNETD_RUNDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user