Lines 3-13
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= undernet-ircu |
4 |
PORTNAME= undernet-ircu |
5 |
PORTVERSION= 2.10.12.14 |
5 |
PORTVERSION= 2.10.12.14 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= irc net |
7 |
CATEGORIES= irc net |
7 |
MASTER_SITES= SF/${PORTNAME}/ircu/ircu${PORTVERSION} |
8 |
MASTER_SITES= SF/${PORTNAME}/ircu/ircu${PORTVERSION} \ |
|
|
9 |
ftp://ftpmirror.uk/freebsd-ports/undernet-ircu/ |
8 |
DISTNAME= ircu${PORTVERSION} |
10 |
DISTNAME= ircu${PORTVERSION} |
9 |
|
11 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
12 |
MAINTAINER= freebsd-ports@dan.me.uk |
11 |
COMMENT= Undernet IRCU irc daemon |
13 |
COMMENT= Undernet IRCU irc daemon |
12 |
|
14 |
|
13 |
CONFLICTS= ircd-hybrid-7.[0-9]* |
15 |
CONFLICTS= ircd-hybrid-7.[0-9]* |
Lines 15-100
Link Here
|
15 |
USERS= undernet |
17 |
USERS= undernet |
16 |
GROUPS= ${USERS} |
18 |
GROUPS= ${USERS} |
17 |
|
19 |
|
18 |
GNU_CONFIGURE= yes |
20 |
GNU_CONFIGURE= yes |
19 |
USE_RC_SUBR= undernet |
21 |
USE_RC_SUBR= undernet |
20 |
CONFIGURE_ARGS= --with-dpath=${PREFIX}/etc/ --with-symlink=no |
22 |
SUB_FILES= pkg-message |
|
|
23 |
PORTDOCS= * |
24 |
PLIST_FILES= bin/undernet-convert-conf \ |
25 |
bin/undernet-umkpasswd \ |
26 |
etc/ircd.conf.sample \ |
27 |
sbin/ircd |
21 |
|
28 |
|
22 |
PLIST_FILES= bin/ircd bin/umkpasswd bin/convert-conf etc/ircd.conf.example |
29 |
CONFIGURE_ARGS+= --with-dpath=${PREFIX}/etc/ --with-symlink=no |
23 |
|
30 |
|
24 |
OPTIONS_DEFINE= IPV6 POLL DEBUG ASSERTS PROFILE PEDANTIC WARNINGS INLINES DEVPOLL KQUEUE \ |
31 |
OPTIONS_DEFINE= DOCS EXAMPLES IPV6 POLL DEBUG ASSERTS PEDANTIC WARNINGS \ |
25 |
EPOLL LEAKDETECT |
32 |
INLINES DEVPOLL KQUEUE EPOLL LEAKDETECT |
|
|
33 |
OPTIONS_DEFAULT=ASSERTS INLINES DEVPOLL KQUEUE EPOLL |
26 |
POLL_DESC= Force poll to be used even if not a sys call |
34 |
POLL_DESC= Force poll to be used even if not a sys call |
27 |
ASSERTS_DESC= Disable assertion checking |
35 |
ASSERTS_DESC= Enable assertion checking |
28 |
PEDANTIC_DESC= Enable pedantic warnings |
36 |
PEDANTIC_DESC= Enable pedantic warnings |
29 |
WARNINGS_DESC= Enable warnings (add -Wall to CFLAGS) |
37 |
WARNINGS_DESC= Enable warnings (add -Wall to CFLAGS) |
30 |
INLINES_DESC= Disable inlining for a few critical functions |
38 |
INLINES_DESC= Enable inlining for a few critical functions |
31 |
DEVPOLL_DESC= Disable the /dev/poll-based engine |
39 |
DEVPOLL_DESC= Enable the /dev/poll-based engine |
32 |
KQUEUE_DESC= Disable the kqueue-based engine |
40 |
KQUEUE_DESC= Enable the kqueue-based engine |
33 |
EPOLL_DESC= Disable the epoll-based engine |
41 |
EPOLL_DESC= Enable the epoll-based engine |
34 |
LEAKDETECT_DESC= Turn on the leak detector (reqs patched boehm) |
42 |
LEAKDETECT_DESC= Turn on the leak detector (reqs patched boehm) |
35 |
|
43 |
|
36 |
NO_STAGE= yes |
44 |
IPV6_CONFIGURE_WITH= ipv6 |
37 |
.include <bsd.port.options.mk> |
45 |
POLL_CONFIGURE_ENABLE= poll |
|
|
46 |
DEBUG_CONFIGURE_ENABLE= debug |
47 |
EPOLL_CONFIGURE_ENABLE= epoll |
48 |
KQUEUE_CONFIGURE_ENABLE= kqueue |
49 |
ASSERTS_CONFIGURE_ENABLE= asserts |
50 |
INLINES_CONFIGURE_ENABLE= inlines |
51 |
DEVPOLL_CONFIGURE_ENABLE= devpoll |
52 |
PEDANTIC_CONFIGURE_ENABLE= pedantic |
53 |
WARNINGS_CONFIGURE_ENABLE= warnings |
54 |
LEAKDETECT_CONFIGURE_WITH= leak-detect |
38 |
|
55 |
|
39 |
.if ${PORT_OPTIONS:MIPV6} |
56 |
.if !defined(NO_PROFILE) |
40 |
CONFIGURE_ARGS+= --with-ipv6 |
|
|
41 |
.else |
42 |
CONFIGURE_ARGS+= --without-ipv6 |
43 |
.endif |
44 |
|
45 |
.if ${PORT_OPTIONS:MPOLL} |
46 |
CONFIGURE_ARGS+= --enable-poll |
47 |
.endif |
48 |
|
49 |
.if ${PORT_OPTIONS:MDEBUG} |
50 |
CONFIGURE_ARGS+= --enable-debug |
51 |
.endif |
52 |
|
53 |
.if ${PORT_OPTIONS:MASSERTS} |
54 |
CONFIGURE_ARGS+= --disable-asserts |
55 |
.endif |
56 |
|
57 |
.if ${PORT_OPTIONS:MPROFILE} |
58 |
CONFIGURE_ARGS+= --enable-profile |
57 |
CONFIGURE_ARGS+= --enable-profile |
59 |
.endif |
58 |
.endif |
60 |
|
59 |
|
61 |
.if ${PORT_OPTIONS:MPEDANTIC} |
60 |
.include <bsd.port.options.mk> |
62 |
CONFIGURE_ARGS+= --enable-pedantic |
|
|
63 |
.endif |
64 |
|
61 |
|
65 |
.if ${PORT_OPTIONS:MWARNINGS} |
62 |
do-install: |
66 |
CONFIGURE_ARGS+= --enable-warnings |
63 |
${INSTALL_PROGRAM} ${WRKSRC}/ircd/ircd ${STAGEDIR}${PREFIX}/sbin |
|
|
64 |
${INSTALL_PROGRAM} ${WRKSRC}/ircd/convert-conf \ |
65 |
${STAGEDIR}${PREFIX}/bin/undernet-convert-conf |
66 |
${INSTALL_PROGRAM} ${WRKSRC}/ircd/umkpasswd \ |
67 |
${STAGEDIR}${PREFIX}/bin/undernet-umkpasswd |
68 |
.if ${PORT_OPTIONS:MEXAMPLES} |
69 |
${INSTALL_DATA} ${WRKSRC}/doc/example.conf \ |
70 |
${STAGEDIR}${PREFIX}/etc/ircd.conf.sample |
67 |
.endif |
71 |
.endif |
68 |
|
72 |
.if ${PORT_OPTIONS:MDOCS} |
69 |
.if ${PORT_OPTIONS:MINLINES} |
73 |
${MKDIR} ${STAGEDIR}${DOCSDIR}/api ${STAGEDIR}${DOCSDIR}/history |
70 |
CONFIGURE_ARGS+= --disable-inlines |
74 |
(cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog ChangeLog.11 INSTALL \ |
|
|
75 |
INSTALL_FR README RELEASE.NOTES ${STAGEDIR}${DOCSDIR}) |
76 |
(cd ${WRKSRC}/doc && ${INSTALL_DATA} Authors debug_memleak_gc.patch \ |
77 |
example.conf fda.txt features.txt freebsd.txt iso-time.html \ |
78 |
linux-poll.patch p10.html readme.asll readme.chroot \ |
79 |
readme.crules readme.cvs readme.features readme.gline \ |
80 |
readme.iauth readme.indent readme.jupe readme.log readme.who \ |
81 |
readme.www readme.xquery rfc1413.txt rfc1459.unet \ |
82 |
snomask.html strings.txt ${STAGEDIR}${DOCSDIR}) |
83 |
(cd ${WRKSRC}/doc/api && ${INSTALL_DATA} api.txt events.txt \ |
84 |
features.txt gline.txt ircd_snprintf.txt joinbuf.txt \ |
85 |
jupe.txt log.txt modebuf.txt motd.txt msgq.txt \ |
86 |
privileges.txt send.txt ${STAGEDIR}${DOCSDIR}/api) |
87 |
(cd ${WRKSRC}/doc/history && ${INSTALL_DATA} 2.4.notes README-2.6 \ |
88 |
2.7-New ChangeLog.07 ChangeLog.10 Manual README.patches \ |
89 |
history.pre24 overview.u2.9 ${STAGEDIR}${DOCSDIR}/history) |
71 |
.endif |
90 |
.endif |
72 |
|
91 |
|
73 |
.if ${PORT_OPTIONS:MDEVPOLL} |
|
|
74 |
CONFIGURE_ARGS+= --disable-devpoll |
75 |
.endif |
76 |
|
77 |
.if ${PORT_OPTIONS:MKQUEUE} |
78 |
CONFIGURE_ARGS+= --disable-kqueue |
79 |
.endif |
80 |
|
81 |
.if ${PORT_OPTIONS:MEPOLL} |
82 |
CONFIGURE_ARGS+= --disable-epoll |
83 |
.endif |
84 |
|
85 |
.if ${PORT_OPTIONS:MLEAKDETECT} |
86 |
CONFIGURE_ARGS+= --with-leak-detect |
87 |
.endif |
88 |
|
89 |
post-install: |
90 |
@${ECHO_MSG} "" |
91 |
@${ECHO_MSG} " To run undernet ircu you must add 'undernet_enable=\"YES\" to" |
92 |
@${ECHO_MSG} " \"/etc/rc.conf\" . It can then be started with" |
93 |
@${ECHO_MSG} " \"${PREFIX}/etc/rc.d/undernet start\"" |
94 |
@${ECHO_MSG} "" |
95 |
@${ECHO_MSG} " You must also copy \"${PREFIX}/etc/ircd.conf.example\" to" |
96 |
@${ECHO_MSG} " \"${PREFIX}/etc/ircd.conf\" and modify its settings according to" |
97 |
@${ECHO_MSG} " your needs. See documentation at http://coder-com.undernet.org." |
98 |
@${ECHO_MSG} "" |
99 |
|
100 |
.include <bsd.port.mk> |
92 |
.include <bsd.port.mk> |