View | Details | Raw Unified | Return to bug 273461 | Differences between
and this patch

Collapse All | Expand All

(-)b/irc/unreal/Makefile (+115 lines)
Added Link Here
1
PORTNAME=	unreal
2
PORTVERSION=	6.1.1.1
3
CATEGORIES=	irc
4
MASTER_SITES=	https://www.unrealircd.org/downloads/
5
DISTNAME=	${PORTNAME}ircd-${PORTVERSION}
6
7
MAINTAINER=	tanawts@gmail.com
8
COMMENT=	Unreal - the next generation ircd
9
WWW=		https://www.unrealircd.org/
10
11
LICENSE=	GPLv2
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
LIB_DEPENDS=	libcares.so:dns/c-ares libpcre2-8.so:devel/pcre2
15
16
USES=		pkgconfig cpe gmake localbase
17
MODULESDIR=	${PREFIX}/lib/${PORTNAME}
18
CONFIGDIR=	${PREFIX}/etc/${PORTNAME}
19
RUNDIR=		/var/run/ircd
20
LOGDIR=		/var/log/ircd
21
CACHEDIR=	/var/cache/ircd
22
TMPDIR=		/tmp
23
24
HAS_CONFIGURE=	yes
25
USE_RC_SUBR=	unrealircd
26
27
USERS=		ircd
28
GROUPS=		ircd
29
CPE_VENDOR=	unrealircd
30
CPE_PRODUCT=	unrealircd
31
32
SUB_LIST+=	RUNDIR=${RUNDIR}
33
SUB_LIST+=	USERS=${USERS}
34
SUB_LIST+=	GROUPS=${GROUPS}
35
36
CONFIGURE_ARGS=	--with-nick-history=2000 \
37
		--with-bindir=${LOCALBASE}/bin \
38
		--with-scriptdir=${DATADIR} \
39
		--with-confdir=${CONFIGDIR} \
40
		--with-builddir=${WRKSRC} \
41
		--with-modulesdir=${MODULESDIR} \
42
		--with-logdir=${LOGDIR} \
43
		--with-cachedir=${CACHEDIR} \
44
		--with-tmpdir=${TMPDIR} \
45
		--with-datadir=${DATADIR}/data \
46
		--with-docdir=${DATADIR}/doc \
47
		--with-pidfile=${RUNDIR}/ircd.pid \
48
		--with-controlfile=${RUNDIR}/ircd.ctl \
49
		--with-privatelibdir=${DATADIR}/lib \
50
		--with-permissions=0600 \
51
		--with-system-cares \
52
		--enable-dynamic-linking \
53
		--enable-geoip-classic \
54
55
OPTIONS_DEFINE=	SSL IPV6 DOCS
56
OPTIONS_DEFAULT=	SSL
57
58
PORTDOCS=	*
59
DOCS=		doc/Donation doc/Authors doc/coding-guidelines \
60
		doc/conf/examples/example.conf doc/tao.of.irc \
61
		doc/translations.txt \
62
		doc/technical/005.txt doc/technical/base64.txt \
63
		doc/technical/serverprotocol.txt
64
65
SSL_CONFIGURE_ENABLE=	ssl
66
SSL_USES=		ssl
67
68
post-patch:
69
	@${REINPLACE_CMD} -e "/Your system does not support IPv6/ s|as_fn_error|echo|" ${WRKSRC}/configure
70
71
do-install:
72
	${INSTALL_PROGRAM} ${WRKSRC}/src/ircd ${STAGEDIR}${PREFIX}/libexec/ircd
73
	${MKDIR} ${STAGEDIR}${CACHEDIR}
74
	${MKDIR} ${STAGEDIR}${CONFIGDIR}
75
	${MKDIR} ${STAGEDIR}${CONFIGDIR}/aliases
76
	${MKDIR} ${STAGEDIR}${CONFIGDIR}/examples
77
	${MKDIR} ${STAGEDIR}${CONFIGDIR}/help
78
	${MKDIR} ${STAGEDIR}${CONFIGDIR}/tls
79
	${MKDIR} ${STAGEDIR}${LOGDIR}
80
	${MKDIR} ${STAGEDIR}${MODULESDIR}
81
	${MKDIR} ${STAGEDIR}${MODULESDIR}/chanmodes
82
	${MKDIR} ${STAGEDIR}${MODULESDIR}/extbans
83
	${MKDIR} ${STAGEDIR}${MODULESDIR}/rpc
84
	${MKDIR} ${STAGEDIR}${MODULESDIR}/usermodes
85
	${MKDIR} ${STAGEDIR}${RUNDIR}
86
	${TOUCH} ${STAGEDIR}${CONFIGDIR}/ircd.motd.sample
87
	${TOUCH} ${STAGEDIR}${CONFIGDIR}/ircd.rules.sample
88
	${INSTALL_DATA} ${WRKSRC}/doc/conf/modules.sources.list ${STAGEDIR}${CONFIGDIR}/modules.sources.list.sample
89
	cd ${WRKSRC}/doc/conf && for f in *.conf ; do \
90
		${INSTALL_DATA} ${WRKSRC}/doc/conf/$$f ${STAGEDIR}${CONFIGDIR}/$$f.sample; \
91
	done
92
	cd ${WRKSRC}/doc/conf/aliases && for f in *.conf ; do \
93
		${INSTALL_DATA} ${WRKSRC}/doc/conf/aliases/$$f ${STAGEDIR}${CONFIGDIR}/aliases/$$f.sample; \
94
	done
95
	cd ${WRKSRC}/doc/conf/examples && for f in *.conf ; do \
96
		${INSTALL_DATA} ${WRKSRC}/doc/conf/examples/$$f ${STAGEDIR}${CONFIGDIR}/examples/$$f.sample; \
97
	done
98
	cd ${WRKSRC}/doc/conf/help && for f in *.conf ; do \
99
		${INSTALL_DATA} ${WRKSRC}/doc/conf/help/$$f ${STAGEDIR}${CONFIGDIR}/help/$$f.sample; \
100
	done
101
	cd ${WRKSRC}/doc/conf/tls && for f in * ; do \
102
		${INSTALL_DATA} ${WRKSRC}/doc/conf/tls/$$f ${STAGEDIR}${CONFIGDIR}/tls/$$f.sample; \
103
	done
104
	${INSTALL} ${WRKSRC}/src/modules/*.so ${STAGEDIR}${MODULESDIR}
105
	${INSTALL} ${WRKSRC}/src/modules/chanmodes/*.so ${STAGEDIR}${MODULESDIR}/chanmodes/
106
	${INSTALL} ${WRKSRC}/src/modules/extbans/*.so ${STAGEDIR}${MODULESDIR}/extbans/
107
	${INSTALL} ${WRKSRC}/src/modules/rpc/*.so ${STAGEDIR}${MODULESDIR}/rpc/
108
	${INSTALL} ${WRKSRC}/src/modules/usermodes/*.so ${STAGEDIR}${MODULESDIR}/usermodes/
109
do-install-DOCS-on:
110
${MKDIR} ${STAGEDIR}${DOCSDIR}
111
.for file in ${DOCS}
112
	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
113
.endfor
114
115
.include <bsd.port.mk>
(-)b/irc/unreal/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1473082474
2
SHA256 (unrealircd-6.1.1.1.tar.gz) = 0c8e4164f499f0f6a72ed6032acb034bd7e9bd10308f556a0d919a00c2eeb334
3
SIZE (unrealircd-6.1.1.1.tar.gz) = 10341432
(-)b/irc/unreal/files/unrealircd.in (+38 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: unrealircd
4
# REQUIRE: NETWORKING SERVERS
5
# BEFORE: DAEMON
6
# KEYWORD: shutdown
7
8
#
9
# Add the following line to /etc/rc.conf to enable Unreal IRCd:
10
# unrealircd_enable (bool):	Set to "NO" by default.
11
#				Set it to "YES" to enable Unreal IRCd
12
#
13
14
. /etc/rc.subr
15
16
name=unrealircd
17
rcvar=unrealircd_enable
18
load_rc_config $name
19
20
: ${unrealircd_enable=NO}
21
: ${unrealircd_pidfile="/var/run/ircd/ircd.pid"}
22
: ${unrealircd_user="ircd"}
23
24
command=%%PREFIX%%/libexec/ircd
25
pidfile=%%RUNDIR%%/ircd.pid
26
start_precmd=unreal_prestart
27
28
required_files="%%PREFIX%%/etc/unreal/unrealircd.conf"
29
30
unreal_prestart()
31
{
32
	if [ ! -d ${pidfile%/*} ]; then
33
		install -d -o %%USERS%% -g %%GROUPS%% ${pidfile%/*}
34
		install -d -o %%USERS%% -g %%GROUPS%% ${pidfile%/*}/tmp
35
	fi
36
}
37
38
run_rc_command "$1"
(-)b/irc/unreal/pkg-descr (+6 lines)
Added Link Here
1
Unreal IRCd - the next generation ircd
2
3
A highly advanced IRCd with a strong focus on modularity and security.
4
Other key features include: full IRCv3 support, SSL/TLS, cloaking,
5
advanced anti-flood and anti-spam systems, GeoIP, remote includes,
6
and lots of other features.
(-)b/irc/unreal/pkg-plist (-1 / +280 lines)
Added Link Here
0
- 
1
@owner ircd
2
@group ircd
3
@sample %%ETCDIR%%/aliases/aliases.conf.sample
4
@sample %%ETCDIR%%/aliases/anope.conf.sample
5
@sample %%ETCDIR%%/aliases/atheme.conf.sample
6
@sample %%ETCDIR%%/aliases/auspice.conf.sample
7
@sample %%ETCDIR%%/aliases/cygnus.conf.sample
8
@sample %%ETCDIR%%/aliases/epona.conf.sample
9
@sample %%ETCDIR%%/aliases/generic.conf.sample
10
@sample %%ETCDIR%%/aliases/genericstats.conf.sample
11
@sample %%ETCDIR%%/aliases/ircservices.conf.sample
12
@sample %%ETCDIR%%/aliases/operstats.conf.sample
13
@sample %%ETCDIR%%/badwords.conf.sample
14
@sample %%ETCDIR%%/dccallow.conf.sample
15
@sample %%ETCDIR%%/examples/example.conf.sample
16
@sample %%ETCDIR%%/examples/example.es.conf.sample
17
@sample %%ETCDIR%%/examples/example.fr.conf.sample
18
@sample %%ETCDIR%%/examples/example.tr.conf.sample
19
@sample %%ETCDIR%%/help/help.conf.sample
20
@sample %%ETCDIR%%/help/help.de.conf.sample
21
@sample %%ETCDIR%%/help/help.es.conf.sample
22
@sample %%ETCDIR%%/help/help.fr.conf.sample
23
@sample %%ETCDIR%%/help/help.it.conf.sample
24
@sample %%ETCDIR%%/help/help.nl.conf.sample
25
@sample %%ETCDIR%%/help/help.pl.conf.sample
26
@sample %%ETCDIR%%/help/help.ru.conf.sample
27
@sample %%ETCDIR%%/help/help.tr.conf.sample
28
@sample %%ETCDIR%%/ircd.motd.sample
29
@sample %%ETCDIR%%/ircd.rules.sample
30
@sample %%ETCDIR%%/modules.default.conf.sample
31
@sample %%ETCDIR%%/modules.optional.conf.sample
32
@sample %%ETCDIR%%/modules.sources.list.sample
33
@sample %%ETCDIR%%/operclass.default.conf.sample
34
@sample %%ETCDIR%%/rpc.modules.default.conf.sample
35
@sample %%ETCDIR%%/snomasks.default.conf.sample
36
@sample %%ETCDIR%%/spamfilter.conf.sample
37
@sample %%ETCDIR%%/tls/curl-ca-bundle.crt.sample
38
lib/unreal/account-notify.so
39
lib/unreal/account-tag.so
40
lib/unreal/addmotd.so
41
lib/unreal/addomotd.so
42
lib/unreal/admin.so
43
lib/unreal/antimixedutf8.so
44
lib/unreal/antirandom.so
45
lib/unreal/authprompt.so
46
lib/unreal/away.so
47
lib/unreal/batch.so
48
lib/unreal/blacklist.so
49
lib/unreal/bot-tag.so
50
lib/unreal/botmotd.so
51
lib/unreal/cap.so
52
lib/unreal/certfp.so
53
lib/unreal/chanmodes/censor.so
54
lib/unreal/chanmodes/chanadmin.so
55
lib/unreal/chanmodes/chanop.so
56
lib/unreal/chanmodes/chanowner.so
57
lib/unreal/chanmodes/delayjoin.so
58
lib/unreal/chanmodes/floodprot.so
59
lib/unreal/chanmodes/halfop.so
60
lib/unreal/chanmodes/history.so
61
lib/unreal/chanmodes/inviteonly.so
62
lib/unreal/chanmodes/isregistered.so
63
lib/unreal/chanmodes/issecure.so
64
lib/unreal/chanmodes/key.so
65
lib/unreal/chanmodes/limit.so
66
lib/unreal/chanmodes/link.so
67
lib/unreal/chanmodes/moderated.so
68
lib/unreal/chanmodes/nocolor.so
69
lib/unreal/chanmodes/noctcp.so
70
lib/unreal/chanmodes/noexternalmsgs.so
71
lib/unreal/chanmodes/noinvite.so
72
lib/unreal/chanmodes/nokick.so
73
lib/unreal/chanmodes/noknock.so
74
lib/unreal/chanmodes/nonickchange.so
75
lib/unreal/chanmodes/nonotice.so
76
lib/unreal/chanmodes/operonly.so
77
lib/unreal/chanmodes/permanent.so
78
lib/unreal/chanmodes/private.so
79
lib/unreal/chanmodes/regonly.so
80
lib/unreal/chanmodes/regonlyspeak.so
81
lib/unreal/chanmodes/secret.so
82
lib/unreal/chanmodes/secureonly.so
83
lib/unreal/chanmodes/stripcolor.so
84
lib/unreal/chanmodes/topiclimit.so
85
lib/unreal/chanmodes/voice.so
86
lib/unreal/channel-context.so
87
lib/unreal/channeldb.so
88
lib/unreal/charsys.so
89
lib/unreal/chathistory.so
90
lib/unreal/chghost.so
91
lib/unreal/chgident.so
92
lib/unreal/chgname.so
93
lib/unreal/clienttagdeny.so
94
lib/unreal/cloak_md5.so
95
lib/unreal/cloak_none.so
96
lib/unreal/cloak_sha256.so
97
lib/unreal/close.so
98
lib/unreal/connect-flood.so
99
lib/unreal/connect.so
100
lib/unreal/connthrottle.so
101
lib/unreal/creationtime.so
102
lib/unreal/cycle.so
103
lib/unreal/dccallow.so
104
lib/unreal/dccdeny.so
105
lib/unreal/echo-message.so
106
lib/unreal/eos.so
107
lib/unreal/extbans/account.so
108
lib/unreal/extbans/certfp.so
109
lib/unreal/extbans/country.so
110
lib/unreal/extbans/flood.so
111
lib/unreal/extbans/inchannel.so
112
lib/unreal/extbans/join.so
113
lib/unreal/extbans/msgbypass.so
114
lib/unreal/extbans/nickchange.so
115
lib/unreal/extbans/operclass.so
116
lib/unreal/extbans/partmsg.so
117
lib/unreal/extbans/quiet.so
118
lib/unreal/extbans/realname.so
119
lib/unreal/extbans/securitygroup.so
120
lib/unreal/extbans/textban.so
121
lib/unreal/extbans/timedban.so
122
lib/unreal/extended-monitor.so
123
lib/unreal/extjwt.so
124
lib/unreal/geoip-tag.so
125
lib/unreal/geoip_base.so
126
lib/unreal/geoip_classic.so
127
lib/unreal/geoip_csv.so
128
lib/unreal/globops.so
129
lib/unreal/help.so
130
lib/unreal/hideserver.so
131
lib/unreal/history.so
132
lib/unreal/history_backend_mem.so
133
lib/unreal/history_backend_null.so
134
lib/unreal/ident_lookup.so
135
lib/unreal/invite.so
136
lib/unreal/ircops.so
137
lib/unreal/ison.so
138
lib/unreal/issued-by-tag.so
139
lib/unreal/join.so
140
lib/unreal/jointhrottle.so
141
lib/unreal/json-log-tag.so
142
lib/unreal/jumpserver.so
143
lib/unreal/kick.so
144
lib/unreal/kill.so
145
lib/unreal/knock.so
146
lib/unreal/labeled-response.so
147
lib/unreal/lag.so
148
lib/unreal/link-security.so
149
lib/unreal/links.so
150
lib/unreal/list.so
151
lib/unreal/locops.so
152
lib/unreal/lusers.so
153
lib/unreal/map.so
154
lib/unreal/max-unknown-connections-per-ip.so
155
lib/unreal/md.so
156
lib/unreal/message-ids.so
157
lib/unreal/message-tags.so
158
lib/unreal/message.so
159
lib/unreal/mkpasswd.so
160
lib/unreal/mode.so
161
lib/unreal/monitor.so
162
lib/unreal/motd.so
163
lib/unreal/names.so
164
lib/unreal/netinfo.so
165
lib/unreal/nick.so
166
lib/unreal/nocodes.so
167
lib/unreal/oper.so
168
lib/unreal/operinfo.so
169
lib/unreal/opermotd.so
170
lib/unreal/part.so
171
lib/unreal/pass.so
172
lib/unreal/pingpong.so
173
lib/unreal/plaintext-policy.so
174
lib/unreal/protoctl.so
175
lib/unreal/quit.so
176
lib/unreal/real-quit-reason.so
177
lib/unreal/reply-tag.so
178
lib/unreal/reputation.so
179
lib/unreal/require-module.so
180
lib/unreal/restrict-commands.so
181
lib/unreal/rmtkl.so
182
lib/unreal/rpc/channel.so
183
lib/unreal/rpc/log.so
184
lib/unreal/rpc/name_ban.so
185
lib/unreal/rpc/rpc.so
186
lib/unreal/rpc/server.so
187
lib/unreal/rpc/server_ban.so
188
lib/unreal/rpc/server_ban_exception.so
189
lib/unreal/rpc/spamfilter.so
190
lib/unreal/rpc/stats.so
191
lib/unreal/rpc/user.so
192
lib/unreal/rpc/whowas.so
193
lib/unreal/rules.so
194
lib/unreal/sajoin.so
195
lib/unreal/samode.so
196
lib/unreal/sapart.so
197
lib/unreal/sasl.so
198
lib/unreal/sdesc.so
199
lib/unreal/sendsno.so
200
lib/unreal/sendumode.so
201
lib/unreal/server-time.so
202
lib/unreal/server.so
203
lib/unreal/sethost.so
204
lib/unreal/setident.so
205
lib/unreal/setname.so
206
lib/unreal/silence.so
207
lib/unreal/sinfo.so
208
lib/unreal/sjoin.so
209
lib/unreal/slog.so
210
lib/unreal/sqline.so
211
lib/unreal/squit.so
212
lib/unreal/sreply.so
213
lib/unreal/staff.so
214
lib/unreal/standard-replies.so
215
lib/unreal/starttls.so
216
lib/unreal/stats.so
217
lib/unreal/sts.so
218
lib/unreal/svsjoin.so
219
lib/unreal/svskill.so
220
lib/unreal/svslogin.so
221
lib/unreal/svslusers.so
222
lib/unreal/svsmode.so
223
lib/unreal/svsmotd.so
224
lib/unreal/svsnick.so
225
lib/unreal/svsnline.so
226
lib/unreal/svsnolag.so
227
lib/unreal/svsnoop.so
228
lib/unreal/svso.so
229
lib/unreal/svspart.so
230
lib/unreal/svssilence.so
231
lib/unreal/svssno.so
232
lib/unreal/svswatch.so
233
lib/unreal/swhois.so
234
lib/unreal/targetfloodprot.so
235
lib/unreal/time.so
236
lib/unreal/tkl.so
237
lib/unreal/tkldb.so
238
lib/unreal/tline.so
239
lib/unreal/tls_antidos.so
240
lib/unreal/tls_cipher.so
241
lib/unreal/topic.so
242
lib/unreal/trace.so
243
lib/unreal/tsctl.so
244
lib/unreal/typing-indicator.so
245
lib/unreal/umode2.so
246
lib/unreal/unreal_server_compat.so
247
lib/unreal/unsqline.so
248
lib/unreal/user.so
249
lib/unreal/userhost-tag.so
250
lib/unreal/userhost.so
251
lib/unreal/userip-tag.so
252
lib/unreal/userip.so
253
lib/unreal/usermodes/bot.so
254
lib/unreal/usermodes/censor.so
255
lib/unreal/usermodes/noctcp.so
256
lib/unreal/usermodes/nokick.so
257
lib/unreal/usermodes/privacy.so
258
lib/unreal/usermodes/privdeaf.so
259
lib/unreal/usermodes/regonlymsg.so
260
lib/unreal/usermodes/secureonlymsg.so
261
lib/unreal/usermodes/servicebot.so
262
lib/unreal/usermodes/showwhois.so
263
lib/unreal/usermodes/wallops.so
264
lib/unreal/vhost.so
265
lib/unreal/watch-backend.so
266
lib/unreal/watch.so
267
lib/unreal/webirc.so
268
lib/unreal/webredir.so
269
lib/unreal/webserver.so
270
lib/unreal/websocket.so
271
lib/unreal/websocket_common.so
272
lib/unreal/who_old.so
273
lib/unreal/whois.so
274
lib/unreal/whowas.so
275
lib/unreal/whowasdb.so
276
lib/unreal/whox.so
277
libexec/ircd
278
@dir /var/cache/ircd
279
@dir /var/log/ircd
280
@dir /var/run/ircd

Return to bug 273461