View | Details | Raw Unified | Return to bug 120755
Collapse All | Expand All

(-)/home/staff/gslin/work/ports/munin-main/Makefile (+1 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	munin
8
PORTNAME=	munin
9
PORTVERSION=	1.2.5
9
PORTVERSION=	1.2.5
10
PORTREVISION=	1
10
CATEGORIES=	sysutils perl5
11
CATEGORIES=	sysutils perl5
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	munin
13
MASTER_SITE_SUBDIR=	munin
(-)/home/staff/gslin/work/ports/munin-main/pkg-install (-5 / +7 lines)
Lines 33-47 Link Here
33
    local u g gcos
33
    local u g gcos
34
34
35
    u=$1
35
    u=$1
36
    g=$2
36
    uid=$2
37
    gcos=$3
37
    g=$3
38
    gid=$4
39
    gcos=$5
38
40
39
    if pw group show "${g}" >/dev/null 2>&1; then
41
    if pw group show "${g}" >/dev/null 2>&1; then
40
	echo "You already have a group \"${g}\", so I will use it."
42
	echo "You already have a group \"${g}\", so I will use it."
41
    else
43
    else
42
	echo "You need a group \"${g}\"."
44
	echo "You need a group \"${g}\"."
43
	if which -s pw && yesno "Would you like me to create it" y; then
45
	if which -s pw && yesno "Would you like me to create it" y; then
44
	    pw groupadd ${g} || exit
46
	    pw groupadd -g ${gid} ${g} || exit
45
	    echo "Done."
47
	    echo "Done."
46
	else
48
	else
47
	    echo "Please create it, and try again."
49
	    echo "Please create it, and try again."
Lines 58-64 Link Here
58
    else
60
    else
59
	echo "You need a user \"${u}\"."
61
	echo "You need a user \"${u}\"."
60
	if which -s pw && yesno "Would you like me to create it" y; then
62
	if which -s pw && yesno "Would you like me to create it" y; then
61
	    pw useradd ${u} -g ${g} -h - \
63
	    pw useradd ${u} -g ${g} -h -u ${uid} - \
62
		-s /bin/sh -c "${gcos}" || exit
64
		-s /bin/sh -c "${gcos}" || exit
63
	    echo "Done."
65
	    echo "Done."
64
	else
66
	else
Lines 109-115 Link Here
109
111
110
case $2 in
112
case $2 in
111
    PRE-INSTALL)
113
    PRE-INSTALL)
112
	make_account munin munin "Munin owner"
114
	make_account munin 842 munin 842 "Munin owner"
113
	move_www_dir # at some point in the installation, the www dir is created
115
	move_www_dir # at some point in the installation, the www dir is created
114
	;;      
116
	;;      
115
    POST-INSTALL)
117
    POST-INSTALL)

Return to bug 120755