aboutsummaryrefslogtreecommitdiffstats
path: root/irc/nefarious
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-30 09:23:54 +0800
committeradamw <adamw@FreeBSD.org>2014-07-30 09:23:54 +0800
commitd9a80d9471cd50aa3e55480afe8c34651426bc19 (patch)
tree5e9075c1370142b92c1b0d8fb53ee95c7d0df240 /irc/nefarious
parent1abe81a8da0558b0ec261f3d42f1bd6a009d328a (diff)
downloadfreebsd-ports-gnome-d9a80d9471cd50aa3e55480afe8c34651426bc19.tar.gz
freebsd-ports-gnome-d9a80d9471cd50aa3e55480afe8c34651426bc19.tar.zst
freebsd-ports-gnome-d9a80d9471cd50aa3e55480afe8c34651426bc19.zip
OPTIONS helpers and strip all the binaries.
Diffstat (limited to 'irc/nefarious')
-rw-r--r--irc/nefarious/Makefile25
1 files changed, 9 insertions, 16 deletions
diff --git a/irc/nefarious/Makefile b/irc/nefarious/Makefile
index 620109d318ed..8d5994d52a1b 100644
--- a/irc/nefarious/Makefile
+++ b/irc/nefarious/Makefile
@@ -22,8 +22,8 @@ OPTIONS_DEFINE= SSL CHROOT DOCS
CHROOT_DESC= Chroot the irc daemon within INSTALL_PREFIX
SSL_CONFIGURE_ENABLE= ssl
-
-.include <bsd.port.options.mk>
+SSL_USE= OPENSSL=yes
+CHROOT_CONFIGURE_ON= --with-chroot=${INSTALL_PREFIX}
.if defined(NEFARIUS_INSTALL_PREFIX)
INSTALL_PREFIX=${NEFARIUS_INSTALL_PREFIX}
@@ -32,14 +32,6 @@ 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
@@ -67,16 +59,17 @@ pre-configure:
@${ECHO_CMD} "NEFARIOUS_DOMAIN - Domain to use for IRCd"
do-install:
- ${MKDIR} ${STAGEPREFIX}/bin ${STAGEPREFIX}/lib/help
+ @${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 && \
+ (cd ${WRKSRC}/help && \
${COPYTREE_SHARE} users ${STAGEPREFIX}/lib/help && \
- ${COPYTREE_SHARE} opers ${STAGEPREFIX}/lib/help
- cd ${STAGEPREFIX}/lib/help/opers && ${CP} ${SYMLINKS} ../users
-.endif
+ ${COPYTREE_SHARE} opers ${STAGEPREFIX}/lib/help)
+ (cd ${STAGEPREFIX}/lib/help/opers && ${CP} ${SYMLINKS} ../users)
+
+post-install:
+ ${STRIP_CMD} ${STAGEPREFIX}/bin/chkconf
.include <bsd.port.mk>