Date: Tue, 16 Dec 2014 15:53:34 +0000 (UTC) From: Pawel Pekala <pawel@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r374809 - in head: . japanese/ebnetd japanese/ebnetd/files Message-ID: <201412161553.sBGFrYS5057377@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pawel Date: Tue Dec 16 15:53:33 2014 New Revision: 374809 URL: https://svnweb.freebsd.org/changeset/ports/374809 QAT: https://qat.redports.org/buildarchive/r374809/ Log: japanese/ebnetd add user and group for daemon processes PR: 195523 Submitted by: maintainer Added: head/japanese/ebnetd/files/patch-ebnetd.conf.sample.in (contents, props changed) Modified: head/GIDs head/UIDs head/japanese/ebnetd/Makefile head/japanese/ebnetd/pkg-plist Modified: head/GIDs ============================================================================== --- head/GIDs Tue Dec 16 15:28:16 2014 (r374808) +++ head/GIDs Tue Dec 16 15:53:33 2014 (r374809) @@ -302,5 +302,6 @@ puppetdb:*:985: kamailio:*:986: spark:*:987: mediabrowser:*:989: +ebnetd:*:999: nogroup:*:65533: nobody:*:65534: Modified: head/UIDs ============================================================================== --- head/UIDs Tue Dec 16 15:28:16 2014 (r374808) +++ head/UIDs Tue Dec 16 15:53:33 2014 (r374809) @@ -311,4 +311,5 @@ kamailio:*:986:986::0:0:kamailio daemon: 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 Modified: head/japanese/ebnetd/Makefile ============================================================================== --- head/japanese/ebnetd/Makefile Tue Dec 16 15:28:16 2014 (r374808) +++ head/japanese/ebnetd/Makefile Tue Dec 16 15:53:33 2014 (r374809) @@ -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} Added: head/japanese/ebnetd/files/patch-ebnetd.conf.sample.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/ebnetd/files/patch-ebnetd.conf.sample.in Tue Dec 16 15:53:33 2014 (r374809) @@ -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) Modified: head/japanese/ebnetd/pkg-plist ============================================================================== --- head/japanese/ebnetd/pkg-plist Tue Dec 16 15:28:16 2014 (r374808) +++ head/japanese/ebnetd/pkg-plist Tue Dec 16 15:53:33 2014 (r374809) @@ -13,4 +13,4 @@ sbin/ebnupgrade sbin/ndtpcheck sbin/ndtpcontrol sbin/ndtpd -@dir(,,0755) %%EBNETD_RUNDIR%% +@dir(%%EBNETD_USER%%,%%EBNETD_GROUP%%,0755) %%EBNETD_RUNDIR%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412161553.sBGFrYS5057377>