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

(-)ircd-ratbox/Makefile (-3 / +6 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	ircd-ratbox
4
PORTNAME=	ircd-ratbox
5
PORTVERSION=	3.0.8
5
PORTVERSION=	3.0.8
6
PORTREVISION=	5
6
PORTREVISION=	6
7
CATEGORIES=	irc ipv6
7
CATEGORIES=	irc ipv6
8
MASTER_SITES=	http://www.ratbox.org/download/				\
8
MASTER_SITES=	http://www.ratbox.org/download/				\
9
		http://www.ratbox.org/download/old/
9
		http://www.ratbox.org/download/old/
Lines 17-23 Link Here
17
17
18
USES=		cpe libtool tar:bzip2
18
USES=		cpe libtool tar:bzip2
19
CPE_VENDOR=	ratbox
19
CPE_VENDOR=	ratbox
20
#MAN8=		ircd.8
21
USE_RC_SUBR=	ircd-ratbox
20
USE_RC_SUBR=	ircd-ratbox
22
USE_SQLITE=	3
21
USE_SQLITE=	3
23
USE_LDCONFIG=	${PREFIX}/lib/ircd-ratbox
22
USE_LDCONFIG=	${PREFIX}/lib/ircd-ratbox
Lines 30-36 Link Here
30
LOGDIR?=	/var/log/${PORTNAME}
29
LOGDIR?=	/var/log/${PORTNAME}
31
RUNDIR?=	/var/run/${PORTNAME}
30
RUNDIR?=	/var/run/${PORTNAME}
32
DBDIR?=		/var/db/${PORTNAME}
31
DBDIR?=		/var/db/${PORTNAME}
33
SUB_FILES=	pkg-message pkg-install
32
SUB_FILES=	pkg-message
34
PLIST_SUB=	LOGDIR=${LOGDIR} RUNDIR=${RUNDIR} DBDIR=${DBDIR}
33
PLIST_SUB=	LOGDIR=${LOGDIR} RUNDIR=${RUNDIR} DBDIR=${DBDIR}
35
SUB_LIST=	LOGDIR=${LOGDIR} RUNDIR=${RUNDIR} DBDIR=${DBDIR}
34
SUB_LIST=	LOGDIR=${LOGDIR} RUNDIR=${RUNDIR} DBDIR=${DBDIR}
36
35
Lines 226-231 Link Here
226
225
227
post-install:
226
post-install:
228
	${MKDIR} ${STAGEDIR}${DOCSDIR}
227
	${MKDIR} ${STAGEDIR}${DOCSDIR}
228
	${MKDIR} ${STAGEDIR}${RUNDIR}
229
	${MKDIR} ${STAGEDIR}${DBDIR}
230
	${MKDIR} ${STAGEDIR}${LOGDIR}
231
229
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
232
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
230
	cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
233
	cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
231
		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}
234
		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}
(-)ircd-ratbox/files/pkg-install.in (-44 lines)
Lines 1-44 Link Here
1
#!/bin/sh
2
#
3
# Adapted from irc/ircd-hybrid's script
4
#
5
6
#-----------------------------------------------------------------------
7
if [ "x$2" = "xPRE-INSTALL" ]; then
8
#-----------------------------------------------------------------------
9
10
# ${DO_NADA}
11
12
#-----------------------------------------------------------------------
13
elif [ "x$2" = "xPOST-INSTALL" ]; then
14
#-----------------------------------------------------------------------
15
16
mkdir -p %%LOGDIR%%           \
17
&& chown ircd:ircd %%LOGDIR%% \
18
&& chmod 750 %%LOGDIR%% 
19
20
mkdir -p %%RUNDIR%%           \
21
&& chown ircd:ircd %%RUNDIR%% \
22
&& chmod 750 %%RUNDIR%%
23
24
mkdir -p %%DBDIR%%		\
25
&& chown ircd:ircd %%DBDIR%%	\
26
&& chmod 750 %%DBDIR%%
27
28
# Secure permissions if we think this is a fresh install
29
conffile="%%PREFIX%%/etc/ircd-ratbox/ircd.conf"
30
samplefile="%%PREFIX%%/etc/ircd-ratbox/ircd.conf.sample"
31
if cmp -s $conffile $samplefile; then
32
	echo "Setting default permissions for config dir and files."
33
	chown -R root:ircd %%PREFIX%%/etc/ircd-ratbox/
34
	chmod 750 %%PREFIX%%/etc/ircd-ratbox/
35
	chmod 640 %%PREFIX%%/etc/ircd-ratbox/*
36
else
37
	echo "Modified ircd.conf file found, permissions unchanged."
38
fi
39
40
#-----------------------------------------------------------------------
41
fi
42
#-----------------------------------------------------------------------
43
44
exit 0
(-)ircd-ratbox/pkg-plist (-3 / +7 lines)
Lines 227-232 Link Here
227
lib/ircd-ratbox/modules/m_server.so
227
lib/ircd-ratbox/modules/m_server.so
228
lib/ircd-ratbox/modules/m_squit.so
228
lib/ircd-ratbox/modules/m_squit.so
229
etc/ircd-ratbox/genssl.sh
229
etc/ircd-ratbox/genssl.sh
230
@sample etc/ircd-ratbox/ircd-efnet.conf.sample
230
@sample(,ircd,640) etc/ircd-ratbox/ircd-efnet.conf.sample
231
@sample etc/ircd-ratbox/ircd.conf.sample
231
@sample(,ircd,640) etc/ircd-ratbox/ircd.conf.sample
232
@sample etc/ircd-ratbox/ircd.motd.sample
232
@sample(,ircd,640) etc/ircd-ratbox/ircd.motd.sample
233
@dir(,ircd,750) etc/ircd-ratbox
234
@dir(ircd,ircd,750) %%RUNDIR%%
235
@dir(ircd,ircd,750) %%LOGDIR%%
236
@dir(ircd,ircd,750) %%DBDIR%%
(-)ircd-ratbox-devel/Makefile (-3 / +2 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	ircd-ratbox
4
PORTNAME=	ircd-ratbox
5
PORTVERSION=	3.0.7
5
PORTVERSION=	3.0.7
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	irc ipv6
7
CATEGORIES=	irc ipv6
8
MASTER_SITES=	http://www.ratbox.org/download/				\
8
MASTER_SITES=	http://www.ratbox.org/download/				\
9
		http://www.ratbox.org/download/old/
9
		http://www.ratbox.org/download/old/
Lines 17-23 Link Here
17
CONFLICTS=	ircd-ratbox-[0-9]* charybdis-[0-9]*
17
CONFLICTS=	ircd-ratbox-[0-9]* charybdis-[0-9]*
18
18
19
USES=		libtool perl5 tar:bzip2
19
USES=		libtool perl5 tar:bzip2
20
#MAN8=		ircd.8
21
USE_RC_SUBR=	ircd-ratbox
20
USE_RC_SUBR=	ircd-ratbox
22
USE_SQLITE=	3
21
USE_SQLITE=	3
23
USE_PERL5=	build
22
USE_PERL5=	build
Lines 29-35 Link Here
29
LOGDIR?=	/var/log/${PORTNAME}
28
LOGDIR?=	/var/log/${PORTNAME}
30
RUNDIR?=	/var/run/${PORTNAME}
29
RUNDIR?=	/var/run/${PORTNAME}
31
DBDIR?=		/var/db/${PORTNAME}
30
DBDIR?=		/var/db/${PORTNAME}
32
SUB_FILES=	pkg-message pkg-install
31
SUB_FILES=	pkg-message
33
PLIST_SUB=	LOGDIR=${LOGDIR} RUNDIR=${RUNDIR} DBDIR=${DBDIR}
32
PLIST_SUB=	LOGDIR=${LOGDIR} RUNDIR=${RUNDIR} DBDIR=${DBDIR}
34
SUB_LIST=	LOGDIR=${LOGDIR} RUNDIR=${RUNDIR} DBDIR=${DBDIR}
33
SUB_LIST=	LOGDIR=${LOGDIR} RUNDIR=${RUNDIR} DBDIR=${DBDIR}
35
34
(-)ircd-ratbox-devel/files/pkg-install.in (-44 lines)
Lines 1-44 Link Here
1
#!/bin/sh
2
#
3
# Adapted from irc/ircd-hybrid's script
4
#
5
6
#-----------------------------------------------------------------------
7
if [ "x$2" = "xPRE-INSTALL" ]; then
8
#-----------------------------------------------------------------------
9
10
# ${DO_NADA}
11
12
#-----------------------------------------------------------------------
13
elif [ "x$2" = "xPOST-INSTALL" ]; then
14
#-----------------------------------------------------------------------
15
16
mkdir -p %%LOGDIR%%           \
17
&& chown ircd:ircd %%LOGDIR%% \
18
&& chmod 750 %%LOGDIR%% 
19
20
mkdir -p %%RUNDIR%%           \
21
&& chown ircd:ircd %%RUNDIR%% \
22
&& chmod 750 %%RUNDIR%%
23
24
mkdir -p %%DBDIR%%		\
25
&& chown ircd:ircd %%DBDIR%%	\
26
&& chmod 750 %%DBDIR%%
27
28
# Secure permissions if we think this is a fresh install
29
conffile="%%PREFIX%%/etc/ircd-ratbox/ircd.conf"
30
samplefile="%%PREFIX%%/etc/ircd-ratbox/ircd.conf.sample"
31
if cmp -s $conffile $samplefile; then
32
	echo "Setting permissions for config dir and files."
33
	chown -R root:ircd %%PREFIX%%/etc/ircd-ratbox/
34
	chmod 750 %%PREFIX%%/etc/ircd-ratbox/
35
	chmod 640 %%PREFIX%%/etc/ircd-ratbox/*
36
else
37
	echo "Modified ircd.conf file found, skipping perms setting."
38
fi
39
40
#-----------------------------------------------------------------------
41
fi
42
#-----------------------------------------------------------------------
43
44
exit 0
(-)ircd-ratbox-devel/pkg-plist (-3 / +7 lines)
Lines 227-232 Link Here
227
lib/ircd-ratbox/modules/m_server.so
227
lib/ircd-ratbox/modules/m_server.so
228
lib/ircd-ratbox/modules/m_squit.so
228
lib/ircd-ratbox/modules/m_squit.so
229
etc/ircd-ratbox/genssl.sh
229
etc/ircd-ratbox/genssl.sh
230
@sample etc/ircd-ratbox/ircd-efnet.conf.sample
230
@sample(,ircd,640) etc/ircd-ratbox/ircd-efnet.conf.sample
231
@sample etc/ircd-ratbox/ircd.conf.sample
231
@sample(,ircd,640) etc/ircd-ratbox/ircd.conf.sample
232
@sample etc/ircd-ratbox/ircd.motd.sample
232
@sample(,ircd,640) etc/ircd-ratbox/ircd.motd.sample
233
@dir(,ircd,750) etc/ircd-ratbox
234
@dir(ircd,ircd,750) %%RUNDIR%%
235
@dir(ircd,ircd,750) %%LOGDIR%%
236
@dir(ircd,ircd,750) %%DBDIR%%                                                                                                                                                                                                 

Return to bug 203564