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."; \ |