diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2014-12-16 23:53:33 +0800 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2014-12-16 23:53:33 +0800 |
commit | 37983bc554ec680d0d4407ac23e5203ae588b650 (patch) | |
tree | 29a9a247b4351cd28662c5860237431ba5253ecb /japanese | |
parent | 24fd3f154b102d410a1b14c2fddf44d4ca1c8227 (diff) | |
download | freebsd-ports-gnome-37983bc554ec680d0d4407ac23e5203ae588b650.tar.gz freebsd-ports-gnome-37983bc554ec680d0d4407ac23e5203ae588b650.tar.zst freebsd-ports-gnome-37983bc554ec680d0d4407ac23e5203ae588b650.zip |
japanese/ebnetd add user and group for daemon processes
PR: 195523
Submitted by: maintainer
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/ebnetd/Makefile | 16 | ||||
-rw-r--r-- | japanese/ebnetd/files/patch-ebnetd.conf.sample.in | 16 | ||||
-rw-r--r-- | japanese/ebnetd/pkg-plist | 2 |
3 files changed, 31 insertions, 3 deletions
diff --git a/japanese/ebnetd/Makefile b/japanese/ebnetd/Makefile index ca241b18ac8a..ab90cca80b03 100644 --- a/japanese/ebnetd/Makefile +++ b/japanese/ebnetd/Makefile @@ -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} diff --git a/japanese/ebnetd/files/patch-ebnetd.conf.sample.in b/japanese/ebnetd/files/patch-ebnetd.conf.sample.in new file mode 100644 index 000000000000..86c63a6bdc45 --- /dev/null +++ b/japanese/ebnetd/files/patch-ebnetd.conf.sample.in @@ -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) diff --git a/japanese/ebnetd/pkg-plist b/japanese/ebnetd/pkg-plist index ec663f4cdc29..184e8b0d8c57 100644 --- a/japanese/ebnetd/pkg-plist +++ b/japanese/ebnetd/pkg-plist @@ -13,4 +13,4 @@ sbin/ebnupgrade sbin/ndtpcheck sbin/ndtpcontrol sbin/ndtpd -@dir(,,0755) %%EBNETD_RUNDIR%% +@dir(%%EBNETD_USER%%,%%EBNETD_GROUP%%,0755) %%EBNETD_RUNDIR%% |