Date: Mon, 20 Sep 2010 20:10:03 GMT From: Michael Graziano <michael.graziano@premierheart.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/150765: [Maintainer Update] Give sysutils/radmind its own UID/GID Message-ID: <201009202010.o8KKA3Od077005@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/150765; it has been noted by GNATS. From: Michael Graziano <michael.graziano@premierheart.com> To: bug-followup@FreeBSD.org, mikeg@bsd-box.net Cc: Subject: Re: ports/150765: [Maintainer Update] Give sysutils/radmind its own UID/GID Date: Mon, 20 Sep 2010 15:40:15 -0400 --Apple-Mail-2--385745636 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Second patch (the changes to the port itself) --Apple-Mail-2--385745636 Content-Disposition: attachment; filename=radmind.patch.txt Content-Type: text/plain; x-unix-mode=0644; name="radmind.patch.txt" Content-Transfer-Encoding: 7bit --- sysutils/radmind/Makefile 2010-09-20 14:30:01.000000000 -0400 +++ sysutils/radmind/Makefile 2010-09-20 14:57:42.000000000 -0400 @@ -7,7 +7,7 @@ PORTNAME= radmind PORTVERSION= 1.13.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} @@ -23,6 +23,8 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-radminddir=${RADMIND_BASE_DIR} +USERS= radmind +GROUPS= radmind RADMIND_BASE_DIR?= /var/radmind MAN1= fsdiff.1 ktcheck.1 lapply.1 lcksum.1 lcreate.1 lfdiff.1 \ @@ -35,6 +37,9 @@ # Ugly hack to remove generated man pages ${RM} -rf ${WRKSRC}/tmp + ${CHOWN} -R radmind:radmind ${RADMIND_BASE_DIR} + @${CAT} ${PKGMESSAGE} + .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} --- sysutils/radmind/pkg-plist 2010-09-20 14:48:43.000000000 -0400 +++ sysutils/radmind/pkg-plist 2010-09-20 14:49:08.000000000 -0400 @@ -19,6 +19,7 @@ @exec mkdir -p -m 755 %%RADMIND_BASE_DIR%%/client @exec mkdir -p -m 755 %%RADMIND_BASE_DIR%%/preapply @exec mkdir -p -m 755 %%RADMIND_BASE_DIR%%/postapply +@exec chown -R radmind:radmind %%RADMIND_BASE_DIR%% @cwd / @dirrmtry %%RADMIND_BASE_DIR%%/transcript @dirrmtry %%RADMIND_BASE_DIR%%/tmp/transcript --- /dev/null 2010-09-20 15:00:01.000000000 -0400 +++ sysutils/radmind/pkg-message 2010-09-20 14:42:10.000000000 -0400 @@ -0,0 +1,17 @@ +#################### + +Important Note: +The radmind daemon now runs as user "radmind" +by default. +If you have installed an older version of +the radmind port you may need to chown +/var/radmind appropriately. + + +You may restore the previous behavior by +setting + radmind_user="root" +in /etc/rc.conf + +#################### + --- sysutils/radmind/files/radmind.sh.in 2010-09-20 14:31:59.000000000 -0400 +++ sysutils/radmind/files/radmind.sh.in 2010-09-20 14:33:03.000000000 -0400 @@ -12,8 +12,9 @@ # #radmind_enable="YES" # -# You may also override the default flags: +# You may also override the default daemon user & flags: # +#radmind_user="radmind" #radmind_flags="-D /var/radmind -m 5 -u 077 -Llocal7 -w 0" # # See radmind(8) for flags @@ -31,6 +32,7 @@ # set defaults radmind_enable=${radmind_enable:-"NO"} +radmind_user=${radmind_user:-"radmind"} radmind_flags=${radmind_flags:-"-D %%RADMIND_BASE_DIR%% -m 5 -u 077 -Llocal7 -w 0"} load_rc_config ${name} --Apple-Mail-2--385745636 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-2--385745636--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009202010.o8KKA3Od077005>