diff options
Diffstat (limited to 'irc/nefarious/Makefile')
-rw-r--r-- | irc/nefarious/Makefile | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/irc/nefarious/Makefile b/irc/nefarious/Makefile index 14bba1457bd1..16b774266141 100644 --- a/irc/nefarious/Makefile +++ b/irc/nefarious/Makefile @@ -3,6 +3,7 @@ PORTNAME= Nefarious PORTVERSION= 1.2.0 +PORTREVISION= 1 CATEGORIES= irc MASTER_SITES= SF/evilnet/${PORTNAME}%20IRCu/${PORTVERSION} @@ -14,9 +15,10 @@ RUN_DEPENDS= bash:${PORTSDIR}/shells/bash USES= tar:bzip2 HAS_CONFIGURE= yes +BINMODE= 711 PLIST_SUB+= INSTALL_PREFIX=${INSTALL_PREFIX:S/${PREFIX}\///} -OPTIONS_DEFINE= SSL CHROOT +OPTIONS_DEFINE= SSL CHROOT DOCS CHROOT_DESC= Chroot the irc daemon within INSTALL_PREFIX SSL_CONFIGURE_ENABLE= ssl @@ -28,6 +30,7 @@ INSTALL_PREFIX=${NEFARIUS_INSTALL_PREFIX} .else INSTALL_PREFIX=${PREFIX}/${PORTNAME} .endif +STAGEPREFIX=${STAGEDIR}${INSTALL_PREFIX} .if ${PORT_OPTIONS:MSSL} USE_OPENSSL= yes @@ -41,17 +44,39 @@ CONFIGURE_ARGS+= --with-chroot=${INSTALL_PREFIX} CONFIGURE_ARGS+= --with-domain=${NEFARIOUS_DOMAIN} .endif -CONFIGURE_ARGS+= --prefix=${STAGEDIR}${INSTALL_PREFIX} \ - --mandir=${STAGEDIR}${MANPREFIX}/man +CONFIGURE_ARGS+= --prefix=${INSTALL_PREFIX} \ + --mandir=${MANPREFIX}/man + +SYMLINKS= admin away challenge invite names nick version \ + join kick motd oper part quit time cnotice \ + cprivmsg credits copyright info ircops ison links \ + lusers map notice pass rules silence sethost topic \ + userhost userip wallchops wallhops wallvoices whois \ + commands + +post-extract: + @${FIND} ${WRKSRC} -type d -name ".svn" | ${XARGS} ${RM} -rf post-patch: @${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|g' ${WRKSRC}/configure pre-configure: - @${ECHO_CMD} @${ECHO_CMD} "User configurable options for ${PORTNAME}:" - @${ECHO_CMD} "NEFARIOUS_INSTALL_PREFIX - Install location for Nefarious (default: ${PREFIX}/Nefarious)" + @${ECHO_CMD} "NEFARIOUS_INSTALL_PREFIX - Install location for Nefarious" + @${ECHO_CMD} " (default: ${PREFIX}/Nefarious)" @${ECHO_CMD} "NEFARIOUS_DOMAIN - Domain to use for IRCd" - @${ECHO_CMD} + +do-install: + ${MKDIR} ${STAGEPREFIX}/bin ${STAGEPREFIX}/lib/help + ${INSTALL_PROGRAM} ${WRKSRC}/ircd/ircd ${STAGEPREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/ircd/chkconf ${STAGEPREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/doc/example.conf ${STAGEPREFIX}/lib + ${INSTALL_MAN} ${WRKSRC}/doc/ircd.8 ${STAGEDIR}${MANPREFIX}/man/man8 +.if ${PORT_OPTIONS:MDOCS} + cd ${WRKSRC}/help && \ + ${COPYTREE_SHARE} users ${STAGEPREFIX}/lib/help && \ + ${COPYTREE_SHARE} opers ${STAGEPREFIX}/lib/help + cd ${STAGEPREFIX}/lib/help/opers && ${CP} ${SYMLINKS} ../users +.endif .include <bsd.port.mk> |