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

(-)ircd-ratbox/Makefile (-12 / +27 lines)
Lines 12-31 Link Here
12
MASTER_SITES=	http://www.ratbox.org/download/				\
12
MASTER_SITES=	http://www.ratbox.org/download/				\
13
		ftp://ftp.parodius.com/pub/ircd-ratbox/			\
13
		ftp://ftp.parodius.com/pub/ircd-ratbox/			\
14
		http://www.ratbox.org/download/old/
14
		http://www.ratbox.org/download/old/
15
PKGNAMESUFFIX=	-devel
16
15
17
MAINTAINER=	moggie@elasticmind.net
16
MAINTAINER=	moggie@elasticmind.net
18
COMMENT=	Advanced, stable IRC daemon, used widely on EFnet ('testing' release)
17
COMMENT=	Advanced, stable IRC daemon, used widely on EFnet
19
18
20
LICENSE=	GPLv2
19
LICENSE=	GPLv2
21
20
22
CONFLICTS=	ircd-ratbox-[0-9]*
21
CONFLICTS=	ircd-ratbox-devel-[0-9]*
23
22
24
USE_BZIP2=	yes
23
USE_BZIP2=	yes
25
#MAN8=		ircd.8
24
#MAN8=		ircd.8
26
USE_RC_SUBR=	ircd-ratbox.sh
25
USE_RC_SUBR=	ircd-ratbox.sh
27
USE_SQLITE=	3
26
USE_SQLITE=	3
28
USE_PERL5_BUILD=	yes
29
USE_LDCONFIG=	${PREFIX}/lib/ircd-ratbox
27
USE_LDCONFIG=	${PREFIX}/lib/ircd-ratbox
30
28
31
USERS=		ircd
29
USERS=		ircd
Lines 58-64 Link Here
58
		SHARED_MODULES	"Enable shared modules support"			on  \
56
		SHARED_MODULES	"Enable shared modules support"			on  \
59
		ASSERT		"Enable debugging code"				off \
57
		ASSERT		"Enable debugging code"				off \
60
		SMALL_NET	"Tune server for small networks"		off \
58
		SMALL_NET	"Tune server for small networks"		off \
61
		SERVICES	"Enable ratbox-services compatibility code"	off
59
		SERVICES	"Enable ratbox-services compatibility code"	off \
60
		SHORTCUTS	"Build with ircd-shortcut commands"		off
62
61
63
#----------------------------------------------------------------------
62
#----------------------------------------------------------------------
64
63
Lines 95-100 Link Here
95
94
96
.if defined(WITH_SERVICES)
95
.if defined(WITH_SERVICES)
97
CONFIGURE_ARGS+=	--enable-services
96
CONFIGURE_ARGS+=	--enable-services
97
PLIST_SUB+=		SERVICES=""
98
.else
99
PLIST_SUB+=		SERVICES="@comment "
100
.endif
101
102
.if defined(WITH_SHORTCUTS)
103
USE_PERL5_BUILD=	yes
104
PLIST_SUB+=		SHORTCUTS=""
105
.else
106
PLIST_SUB+=		SHORTCUTS="@comment "
98
.endif
107
.endif
99
108
100
#-- User Configuration -------------------------------------------------
109
#-- User Configuration -------------------------------------------------
Lines 126-139 Link Here
126
pre-build:
135
pre-build:
127
	@${REINPLACE_CMD} -e "s#-O2##" ${WRKSRC}/configure
136
	@${REINPLACE_CMD} -e "s#-O2##" ${WRKSRC}/configure
128
	@${REINPLACE_CMD} -e "s#%%PREFIX%%#${PREFIX}#g"		\
137
	@${REINPLACE_CMD} -e "s#%%PREFIX%%#${PREFIX}#g"		\
129
			  ${WRKSRC}/doc/example.conf		\
138
			${WRKSRC}/doc/example.conf		\
130
			  ${WRKSRC}/doc/example.efnet.conf
139
			${WRKSRC}/doc/example.efnet.conf
131
	@${REINPLACE_CMD} -e "s#%%LOGDIR%%#${LOGDIR}#g"		\
140
	@${REINPLACE_CMD} -e "s#%%LOGDIR%%#${LOGDIR}#g"		\
132
				${WRKSRC}/doc/example.conf	\
141
			${WRKSRC}/doc/example.conf		\
133
				${WRKSRC}/doc/example.efnet.conf
142
			${WRKSRC}/doc/example.efnet.conf
134
	@${REINPLACE_CMD} -e "s#%%DBDIR%%#${DBDIR}#g"		\
143
	@${REINPLACE_CMD} -e "s#%%DBDIR%%#${DBDIR}#g"		\
135
				${WRKSRC}/doc/example.conf	\
144
			${WRKSRC}/doc/example.conf		\
136
				${WRKSRC}/doc/example.efnet.conf
145
			${WRKSRC}/doc/example.efnet.conf
137
	@${REINPLACE_CMD} -e "s#%%RUNDIR%%#${RUNDIR}#g" ${WRKSRC}/include/config.h
146
	@${REINPLACE_CMD} -e "s#%%RUNDIR%%#${RUNDIR}#g" ${WRKSRC}/include/config.h
138
	@${REINPLACE_CMD} -e "s#%%DBDIR%%#${DBDIR}#g" ${WRKSRC}/include/config.h
147
	@${REINPLACE_CMD} -e "s#%%DBDIR%%#${DBDIR}#g" ${WRKSRC}/include/config.h
139
	@${REINPLACE_CMD} -e "s#%%WRKSRC%%#${WRKSRC}#g" ${WRKSRC}/contrib/ircd-shortcut.pl
148
	@${REINPLACE_CMD} -e "s#%%WRKSRC%%#${WRKSRC}#g" ${WRKSRC}/contrib/ircd-shortcut.pl
Lines 177-194 Link Here
177
	${WRKSRC}/contrib/ircd-shortcut.pl
186
	${WRKSRC}/contrib/ircd-shortcut.pl
178
.endif
187
.endif
179
188
180
#------ Execute ircd-shortcut perl script to generate the .c file. -----
189
# ----- Execute ircd-shortcut perl script to generate the .c file. -----
190
.if defined(WITH_SHORTCUTS)
181
	@${ECHO_MSG} "Executing ircd-shortcut.pl for ircd-shortcuts generation."
191
	@${ECHO_MSG} "Executing ircd-shortcut.pl for ircd-shortcuts generation."
182
	${PERL} ${WRKSRC}/contrib/ircd-shortcut.pl
192
	${PERL} ${WRKSRC}/contrib/ircd-shortcut.pl
193
.endif
183
194
184
post-build:
195
post-build:
185
	@cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE} \
196
	@cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE} \
186
		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
197
		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
187
198
188
# ----- Need to build the m_rsshortcut.so module for ircd-shortcut.pl ----
199
# ----- Need to build the m_rsshortcut.so module for ircd-shortcut.pl ----
200
.if defined(WITH_SHORTCUTS)
189
	@${ECHO_MSG} "Building m_rsshortcut.la for ircd-shortcuts."
201
	@${ECHO_MSG} "Building m_rsshortcut.la for ircd-shortcuts."
190
	@cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE} \
202
	@cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE} \
191
		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} m_rsshortcut.la
203
		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} m_rsshortcut.la
204
.endif
192
205
193
pre-su-install:
206
pre-su-install:
194
	${MKDIR} ${PREFIX}/etc/${PORTNAME}
207
	${MKDIR} ${PREFIX}/etc/${PORTNAME}
Lines 208-216 Link Here
208
	${INSTALL_DATA} ${WRKSRC}/doc/genssl.sh ${PREFIX}/etc/${PORTNAME}/genssl.sh
221
	${INSTALL_DATA} ${WRKSRC}/doc/genssl.sh ${PREFIX}/etc/${PORTNAME}/genssl.sh
209
222
210
# ----- We need to install the shortcut.pl module ----
223
# ----- We need to install the shortcut.pl module ----
224
.if defined(WITH_SHORTCUTS)
211
	@${ECHO_MSG} "Executing install-mod.sh for ircd-shortcuts module installation."
225
	@${ECHO_MSG} "Executing install-mod.sh for ircd-shortcuts module installation."
212
	${SH} ${WRKSRC}/install-mod.sh ${WRKSRC}/contrib/m_rsshortcut.la \
226
	${SH} ${WRKSRC}/install-mod.sh ${WRKSRC}/contrib/m_rsshortcut.la \
213
		${PREFIX}/lib/${PORTNAME}/modules/contrib
227
		${PREFIX}/lib/${PORTNAME}/modules/contrib
228
.endif
214
229
215
	@if [ ! -f ${PREFIX}/etc/${PORTNAME}/ircd.conf ]; then \
230
	@if [ ! -f ${PREFIX}/etc/${PORTNAME}/ircd.conf ]; then \
216
		${ECHO} "Installing default configuration file."; \
231
		${ECHO} "Installing default configuration file."; \
(-)ircd-ratbox/files/pkg-install.in (-2 / +2 lines)
Lines 29-40 Link Here
29
conffile="%%PREFIX%%/etc/ircd-ratbox/ircd.conf"
29
conffile="%%PREFIX%%/etc/ircd-ratbox/ircd.conf"
30
samplefile="%%PREFIX%%/etc/ircd-ratbox/ircd.conf.sample"
30
samplefile="%%PREFIX%%/etc/ircd-ratbox/ircd.conf.sample"
31
if cmp -s $conffile $samplefile; then
31
if cmp -s $conffile $samplefile; then
32
	echo "Setting permissions for config dir and files."
32
	echo "Setting default permissions for config dir and files."
33
	chown -R root:ircd %%PREFIX%%/etc/ircd-ratbox/
33
	chown -R root:ircd %%PREFIX%%/etc/ircd-ratbox/
34
	chmod 750 %%PREFIX%%/etc/ircd-ratbox/
34
	chmod 750 %%PREFIX%%/etc/ircd-ratbox/
35
	chmod 640 %%PREFIX%%/etc/ircd-ratbox/*
35
	chmod 640 %%PREFIX%%/etc/ircd-ratbox/*
36
else
36
else
37
	echo "Modified ircd.conf file found, skipping perms setting."
37
	echo "Modified ircd.conf file found, permissions unchanged."
38
fi
38
fi
39
39
40
#-----------------------------------------------------------------------
40
#-----------------------------------------------------------------------
(-)ircd-ratbox/files/pkg-message.in (-7 / +12 lines)
Lines 1-5 Link Here
1
------------------------------------------------------------------------
1
------------------------------------------------------------------------
2
ircd-ratbox-devel has been successfully installed.
2
ircd-ratbox has been successfully installed.
3
3
4
Sample 'ircd.conf' and 'ircd.motd' files have been created in the
4
Sample 'ircd.conf' and 'ircd.motd' files have been created in the
5
ircd-ratbox configuration directory. A sample configuration file is
5
ircd-ratbox configuration directory. A sample configuration file is
Lines 17-31 Link Here
17
17
18
	%%PREFIX%%/etc/rc.d/ircd-ratbox conftest
18
	%%PREFIX%%/etc/rc.d/ircd-ratbox conftest
19
19
20
The ban.db database can be checked and updated using 'bantool -u'.
20
The ban.db database should be checked and updated using 'bantool -u'.
21
For safety, updates should be done while no ircd is running and before
21
For safety, bantool updates must be done while no ircd is running and
22
starting the new version.
22
before starting the new version.
23
23
24
	%%PREFIX%%/bin/bantool -u
24
	%%PREFIX%%/bin/bantool -u
25
25
26
Note that the ssl_only_channel compile option has been removed, and
26
Notice: ircd-ratbox has been updated to follow the current stable
27
should be added as a configuration setting (use_sslonly) in the
27
release branch (3.0.x). All previous branches are no longer supported
28
ircd.conf file in order to activate the +S channel mode. 
28
by the ratbox team. Users of ircd-ratbox are advised to create new ircd
29
configuration files based on the examples provided.
30
31
For more information on upgrading, see:
32
33
	http://svn.ratbox.org/svnroot/ircd-ratbox/trunk/INSTALL
29
34
30
Be sure to check out 'ratbox-services' if you need a services package.
35
Be sure to check out 'ratbox-services' if you need a services package.
31
------------------------------------------------------------------------
36
------------------------------------------------------------------------
(-)ircd-ratbox/pkg-descr (-5 lines)
Lines 1-10 Link Here
1
This is a port of the ircd-ratbox IRC daemon.
1
This is a port of the ircd-ratbox IRC daemon.
2
2
3
This version is the 'testing' branch; it usually contains more features,
4
but may contain as of yet unidentified bugs. Admins wishing to try out new
5
features or test the development release may prefer to use it over the
6
standard production release.
7
8
ircd-ratbox is the primary ircd used on EFnet; it combines the stability
3
ircd-ratbox is the primary ircd used on EFnet; it combines the stability
9
of an ircd required for a large production network together with a rich
4
of an ircd required for a large production network together with a rich
10
set of features, making it also suitable for use on smaller networks.
5
set of features, making it also suitable for use on smaller networks.
(-)ircd-ratbox/pkg-plist (-3 / +3 lines)
Lines 142-149 Link Here
142
lib/ircd-ratbox/libcore.so
142
lib/ircd-ratbox/libcore.so
143
lib/ircd-ratbox/libratbox.la
143
lib/ircd-ratbox/libratbox.la
144
lib/ircd-ratbox/libratbox.so
144
lib/ircd-ratbox/libratbox.so
145
@unexec f="%D/lib/ircd-ratbox/modules/autoload/m_services.so"; if [ -f "$f" ]; then rm -f "$f"; fi
145
%%SERVICES%%/lib/ircd-ratbox/modules/autoload/m_services.so
146
@unexec f="%D/lib/ircd-ratbox/modules/autoload/m_services.la"; if [ -f "$f" ]; then rm -f "$f"; fi
146
%%SERVICES%%/lib/ircd-ratbox/modules/autoload/m_services.la
147
lib/ircd-ratbox/modules/autoload/m_accept.so
147
lib/ircd-ratbox/modules/autoload/m_accept.so
148
lib/ircd-ratbox/modules/autoload/m_admin.so
148
lib/ircd-ratbox/modules/autoload/m_admin.so
149
lib/ircd-ratbox/modules/autoload/m_adminwall.so
149
lib/ircd-ratbox/modules/autoload/m_adminwall.so
Lines 198-203 Link Here
198
lib/ircd-ratbox/modules/autoload/m_whois.so
198
lib/ircd-ratbox/modules/autoload/m_whois.so
199
lib/ircd-ratbox/modules/autoload/m_whowas.so
199
lib/ircd-ratbox/modules/autoload/m_whowas.so
200
lib/ircd-ratbox/modules/autoload/m_xline.so
200
lib/ircd-ratbox/modules/autoload/m_xline.so
201
%%SHORTCUTS%%lib/ircd-ratbox/modules/contrib/m_rsshortcut.so
201
lib/ircd-ratbox/modules/contrib/example_module.so
202
lib/ircd-ratbox/modules/contrib/example_module.so
202
lib/ircd-ratbox/modules/contrib/m_42.so
203
lib/ircd-ratbox/modules/contrib/m_42.so
203
lib/ircd-ratbox/modules/contrib/m_clearchan.so
204
lib/ircd-ratbox/modules/contrib/m_clearchan.so
Lines 216-222 Link Here
216
lib/ircd-ratbox/modules/contrib/spy_stats_p_notice.so
217
lib/ircd-ratbox/modules/contrib/spy_stats_p_notice.so
217
lib/ircd-ratbox/modules/contrib/spy_whois_notice.so
218
lib/ircd-ratbox/modules/contrib/spy_whois_notice.so
218
lib/ircd-ratbox/modules/contrib/spy_whois_notice_global.so
219
lib/ircd-ratbox/modules/contrib/spy_whois_notice_global.so
219
lib/ircd-ratbox/modules/contrib/m_rsshortcut.so
220
lib/ircd-ratbox/modules/m_die.so
220
lib/ircd-ratbox/modules/m_die.so
221
lib/ircd-ratbox/modules/m_error.so
221
lib/ircd-ratbox/modules/m_error.so
222
lib/ircd-ratbox/modules/m_join.so
222
lib/ircd-ratbox/modules/m_join.so

Return to bug 166931