1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/irc/nefarious/Makefile
Adam Weinberger 95786c7af1 Remove backslashes from single- and double-quotes in COMMENT and _DESC
strings, that were passed through rather than escaping anything.

Approved by:	portmgr (not really, but it touches unstaged ports)
2014-07-23 01:45:47 +00:00

83 lines
2.3 KiB
Makefile

# Created by: Frank J. Laszlo <laszlof@FreeBSD.org>
# $FreeBSD$
PORTNAME= Nefarious
PORTVERSION= 1.2.0
PORTREVISION= 1
CATEGORIES= irc
MASTER_SITES= SF/evilnet/${PORTNAME}%20IRCu/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= IRC server used by evilnet based off of Undernet's ircu
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
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 DOCS
CHROOT_DESC= Chroot the irc daemon within INSTALL_PREFIX
SSL_CONFIGURE_ENABLE= ssl
.include <bsd.port.options.mk>
.if defined(NEFARIUS_INSTALL_PREFIX)
INSTALL_PREFIX=${NEFARIUS_INSTALL_PREFIX}
.else
INSTALL_PREFIX=${PREFIX}/${PORTNAME}
.endif
STAGEPREFIX=${STAGEDIR}${INSTALL_PREFIX}
.if ${PORT_OPTIONS:MSSL}
USE_OPENSSL= yes
.endif
.if ${PORT_OPTIONS:MCHROOT}
CONFIGURE_ARGS+= --with-chroot=${INSTALL_PREFIX}
.endif
.if defined(NEFARIOUS_DOMAIN)
CONFIGURE_ARGS+= --with-domain=${NEFARIOUS_DOMAIN}
.endif
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} "User configurable options for ${PORTNAME}:"
@${ECHO_CMD} "NEFARIOUS_INSTALL_PREFIX - Install location for Nefarious"
@${ECHO_CMD} " (default: ${PREFIX}/Nefarious)"
@${ECHO_CMD} "NEFARIOUS_DOMAIN - Domain to use for IRCd"
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>