Date: Sun, 17 Feb 2008 21:19:17 +0800 (CST) From: Gea-Suan Lin <gslin@gslin.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: gslin@gslin.org, des@FreeBSD.org Subject: ports/120755: [PATCH] sysutils/munin-main: Use fixed UID/GID Message-ID: <20080217131917.5841C1CC1D@ccreader.NCTU.edu.tw> Resent-Message-ID: <200802171320.m1HDK6lo023592@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 120755 >Category: ports >Synopsis: [PATCH] sysutils/munin-main: Use fixed UID/GID >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Feb 17 13:20:06 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Gea-Suan Lin >Release: FreeBSD 6.3-PRERELEASE i386 >Organization: >Environment: System: FreeBSD ccreader.NCTU.edu.tw 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #3: Tue Jan 15 11:22:08 CST 2008 >Description: - Use fixed UID/GID 842. - Please add /usr/ports/UIDs and /usr/ports/GIDs. Port maintainer (des@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- munin-main-1.2.5_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/sysutils/munin-main/Makefile /home/staff/gslin/work/ports/munin-main/Makefile --- /usr/ports/sysutils/munin-main/Makefile 2008-02-07 18:41:12.000000000 +0800 +++ /home/staff/gslin/work/ports/munin-main/Makefile 2008-02-17 21:18:22.000000000 +0800 @@ -7,6 +7,7 @@ PORTNAME= munin PORTVERSION= 1.2.5 +PORTREVISION= 1 CATEGORIES= sysutils perl5 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= munin diff -ruN --exclude=CVS /usr/ports/sysutils/munin-main/pkg-install /home/staff/gslin/work/ports/munin-main/pkg-install --- /usr/ports/sysutils/munin-main/pkg-install 2006-11-07 06:52:45.000000000 +0800 +++ /home/staff/gslin/work/ports/munin-main/pkg-install 2008-02-17 21:18:10.000000000 +0800 @@ -33,15 +33,17 @@ local u g gcos u=$1 - g=$2 - gcos=$3 + uid=$2 + g=$3 + gid=$4 + gcos=$5 if pw group show "${g}" >/dev/null 2>&1; then echo "You already have a group \"${g}\", so I will use it." else echo "You need a group \"${g}\"." if which -s pw && yesno "Would you like me to create it" y; then - pw groupadd ${g} || exit + pw groupadd -g ${gid} ${g} || exit echo "Done." else echo "Please create it, and try again." @@ -58,7 +60,7 @@ else echo "You need a user \"${u}\"." if which -s pw && yesno "Would you like me to create it" y; then - pw useradd ${u} -g ${g} -h - \ + pw useradd ${u} -g ${g} -h -u ${uid} - \ -s /bin/sh -c "${gcos}" || exit echo "Done." else @@ -109,7 +111,7 @@ case $2 in PRE-INSTALL) - make_account munin munin "Munin owner" + make_account munin 842 munin 842 "Munin owner" move_www_dir # at some point in the installation, the www dir is created ;; POST-INSTALL) --- munin-main-1.2.5_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080217131917.5841C1CC1D>