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

(-)Makefile (-11 / +4 lines)
Lines 21-42 Link Here
21
USE_RC_SUBR=	${PORTNAME}
21
USE_RC_SUBR=	${PORTNAME}
22
MAKEFILE=	BSDmakefile
22
MAKEFILE=	BSDmakefile
23
23
24
USERS=		${INSPIRCD_USR}
24
USERS=	ircd
25
GROUPS=		${INSPIRCD_GRP}
25
GROUPS=	ircd
26
INSPIRCD_UID=	72
26
27
27
INSPIRCD_USR?=	ircd
28
INSPIRCD_UID?=	72
29
INSPIRCD_GRP?=	ircd
30
INSPIRCD_GID?=	72
31
INSPIRCD_RUN?=	/var/run/${PORTNAME}
28
INSPIRCD_RUN?=	/var/run/${PORTNAME}
32
INSPIRCD_LOG?=	/var/log/${PORTNAME}/ircd.log
29
INSPIRCD_LOG?=	/var/log/${PORTNAME}/ircd.log
33
SUB_LIST+=	PORTNAME=${PORTNAME}         \
30
SUB_LIST+=	PORTNAME=${PORTNAME} \
34
		INSPIRCD_USR=${INSPIRCD_USR} \
35
		INSPIRCD_GRP=${INSPIRCD_GRP} \
36
		INSPIRCD_LOG=${INSPIRCD_LOG} \
31
		INSPIRCD_LOG=${INSPIRCD_LOG} \
37
		INSPIRCD_RUN=${INSPIRCD_RUN}
32
		INSPIRCD_RUN=${INSPIRCD_RUN}
38
PLIST_SUB+=	INSPIRCD_GRP=${INSPIRCD_GRP}
39
SUB_FILES+=	pkg-deinstall
40
33
41
# Configure script is written in perl
34
# Configure script is written in perl
42
USE_PERL5_BUILD=yes
35
USE_PERL5_BUILD=yes
(-)pkg-plist (-4 / +1 lines)
Lines 206-213 Link Here
206
@dirrm lib/inspircd/logs
206
@dirrm lib/inspircd/logs
207
@dirrm lib/inspircd/data
207
@dirrm lib/inspircd/data
208
@dirrm lib/inspircd
208
@dirrm lib/inspircd
209
@mode 640
210
@group %%INSPIRCD_GRP%%
211
@unexec if cmp -s %D/%%ETCDIR%%/inspircd.censor.example %D/%%ETCDIR%%/inspircd.censor; then rm -f %D/%%ETCDIR%%/inspircd.censor; fi
209
@unexec if cmp -s %D/%%ETCDIR%%/inspircd.censor.example %D/%%ETCDIR%%/inspircd.censor; then rm -f %D/%%ETCDIR%%/inspircd.censor; fi
212
%%ETCDIR%%/inspircd.censor.example
210
%%ETCDIR%%/inspircd.censor.example
213
@exec if [ ! -f %B/inspircd.censor ] ; then cp -p %D/%F %B/inspircd.censor; fi
211
@exec if [ ! -f %B/inspircd.censor ] ; then cp -p %D/%F %B/inspircd.censor; fi
Lines 241-246 Link Here
241
@unexec if cmp -s %D/%%ETCDIR%%/opers.conf.example %D/%%ETCDIR%%/opers.conf; then rm -f %D/%%ETCDIR%%/opers.conf; fi
239
@unexec if cmp -s %D/%%ETCDIR%%/opers.conf.example %D/%%ETCDIR%%/opers.conf; then rm -f %D/%%ETCDIR%%/opers.conf; fi
242
%%ETCDIR%%/opers.conf.example
240
%%ETCDIR%%/opers.conf.example
243
@exec if [ ! -f %B/opers.conf.example ] ; then cp -p %D/%F %B/opers.conf.example; fi
241
@exec if [ ! -f %B/opers.conf.example ] ; then cp -p %D/%F %B/opers.conf.example; fi
242
@unexec echo "If permanently removing software, you may wish to remove the configuration directory by running \"rm -rf %%LOCALBASE%%/%%ETCDIR%%\""
244
@dirrmtry %%ETCDIR%%
243
@dirrmtry %%ETCDIR%%
245
@mode
246
@group
(-)files/inspircd.in (-6 / +2 lines)
Lines 20-29 Link Here
20
# %%PORTNAME%%_pidfile="%%INSPIRCD_RUN%%/%%PORTNAME%%.pid"
20
# %%PORTNAME%%_pidfile="%%INSPIRCD_RUN%%/%%PORTNAME%%.pid"
21
#                          -- location of pidfile: must match setting
21
#                          -- location of pidfile: must match setting
22
#                             in ${%%PORTNAME%%_conffile}
22
#                             in ${%%PORTNAME%%_conffile}
23
# %%PORTNAME%%_user="%%INSPIRCD_USR%%"
24
#                          -- user to run %%PORTNAME%% as
25
# %%PORTNAME%%_group="%%INSPIRCD_GRP%%"
26
#                          -- group to run %%PORTNAME%% as
27
# %%PORTNAME%%_logfile="%%INSPIRCD_LOG%%"
23
# %%PORTNAME%%_logfile="%%INSPIRCD_LOG%%"
28
#                          -- file %%PORTNAME%% writes logs to
24
#                          -- file %%PORTNAME%% writes logs to
29
#
25
#
Lines 37-44 Link Here
37
: ${%%PORTNAME%%_enable="NO"}
33
: ${%%PORTNAME%%_enable="NO"}
38
: ${%%PORTNAME%%_config="%%ETCDIR%%/%%PORTNAME%%.conf"}
34
: ${%%PORTNAME%%_config="%%ETCDIR%%/%%PORTNAME%%.conf"}
39
: ${%%PORTNAME%%_pidfile="%%INSPIRCD_RUN%%/%%PORTNAME%%.pid"}
35
: ${%%PORTNAME%%_pidfile="%%INSPIRCD_RUN%%/%%PORTNAME%%.pid"}
40
: ${%%PORTNAME%%_user="%%INSPIRCD_USR%%"}
36
: ${%%PORTNAME%%_user=ircd}
41
: ${%%PORTNAME%%_group="%%INSPIRCD_GRP%%"}
37
: ${%%PORTNAME%%_group=ircd}
42
: ${%%PORTNAME%%_logfile="%%INSPIRCD_LOG%%"}
38
: ${%%PORTNAME%%_logfile="%%INSPIRCD_LOG%%"}
43
39
44
command=%%PREFIX%%/bin/%%PORTNAME%%
40
command=%%PREFIX%%/bin/%%PORTNAME%%
(-)files/pkg-deinstall.in (-32 lines)
Removed Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/irc/inspircd/files/pkg-deinstall.in,v 1.1 2008/05/19 07:01:38 beech Exp $
4
#
5
6
inspircd_usr=%%INSPIRCD_USR%%
7
inspircd_grp=%%INSPIRCD_GRP%%
8
etcdir=%%ETCDIR%%
9
inspircd_name=%%PORTNAME%%
10
11
case $2 in
12
    POST-DEINSTALL)
13
14
    cat <<EOMSG
15
16
The $inspircd_name port has been deleted.  If you are not
17
upgrading and don't intend to use $inspircd_name any more
18
then you may wish to delete the $inspircd_usr account,
19
and the $inspircd_grp group together with the configuration
20
directory ${etcdir}; which can be done with the
21
following commands:
22
23
    # pw userdel -n $inspircd_usr
24
    # rm -rf $etcdir
25
EOMSG
26
    echo
27
    ;;
28
esac
29
30
#
31
# That's All Folks!
32
#

Return to bug 168821