aboutsummaryrefslogtreecommitdiff
path: root/irc/ircd-ratbox
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-07-01 23:25:12 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-07-01 23:25:12 +0000
commitf934a2a100d800d5fa3d314556ab995a0a4d7d66 (patch)
tree66e59f8f3db59cbf64025dda86458ed334d2615f /irc/ircd-ratbox
parentcceb30915ef272b118c8669f8d38af07765365a5 (diff)
downloadports-f934a2a100d800d5fa3d314556ab995a0a4d7d66.tar.gz
ports-f934a2a100d800d5fa3d314556ab995a0a4d7d66.zip
Notes
Diffstat (limited to 'irc/ircd-ratbox')
-rw-r--r--irc/ircd-ratbox/Makefile54
-rw-r--r--irc/ircd-ratbox/pkg-plist13
2 files changed, 23 insertions, 44 deletions
diff --git a/irc/ircd-ratbox/Makefile b/irc/ircd-ratbox/Makefile
index 76fab3b72c6e..c6f37556f9ce 100644
--- a/irc/ircd-ratbox/Makefile
+++ b/irc/ircd-ratbox/Makefile
@@ -14,7 +14,7 @@ LICENSE= GPLv2
CONFLICTS= ircd-ratbox-devel-[0-9]* charybdis-[0-9]*
-USE_BZIP2= yes
+USES= libtool tar:bzip2
#MAN8= ircd.8
USE_RC_SUBR= ircd-ratbox
USE_SQLITE= 3
@@ -39,6 +39,7 @@ CONFIGURE_ARGS= --with-confdir=${PREFIX}/etc/${PORTNAME} \
--libdir=${PREFIX}/lib/${PORTNAME} \
--with-sqlite3=${LOCALBASE} \
--disable-backups
+INSTALL_TARGET= install-strip
PORTDOCS= [^i]*.txt README.* technical/[^i]*.txt Tao-of-IRC.*
@@ -60,7 +61,6 @@ OPTIONS_EXCLUDE= NLS EXAMPLES
#----------------------------------------------------------------------
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENSSL}
@@ -194,53 +194,39 @@ pre-build:
.endif
post-build:
- @cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE} \
+ @cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
# ----- Need to build the m_rsshortcut.so module for ircd-shortcut.pl ----
.if ${PORT_OPTIONS:MSHORTCUTS}
@${ECHO_MSG} "Building m_rsshortcut.la for ircd-shortcuts."
- @cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE} \
+ @cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} m_rsshortcut.la
.endif
-pre-su-install:
- ${MKDIR} ${PREFIX}/etc/${PORTNAME}
- ${MKDIR} ${DATADIR}/help
- ${MKDIR} ${PREFIX}/lib/${PORTNAME}/modules
+pre-install:
+ ${MKDIR} ${STAGEDIR}${ETCDIR}
+ ${MKDIR} ${STAGEDIR}${DATADIR}/help
+ ${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/modules
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
- @cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE} \
- ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install
- ${INSTALL_DATA} ${WRKSRC}/doc/ircd.motd ${PREFIX}/etc/${PORTNAME}/ircd.motd.sample
- ${INSTALL_DATA} ${WRKSRC}/doc/example.conf ${PREFIX}/etc/${PORTNAME}/ircd.conf.sample
- ${INSTALL_DATA} ${WRKSRC}/doc/example.efnet.conf ${PREFIX}/etc/${PORTNAME}/ircd-efnet.conf.sample
- ${INSTALL_DATA} ${WRKSRC}/doc/genssl.sh ${PREFIX}/etc/${PORTNAME}/genssl.sh
+ ${MKDIR} ${STAGEDIR}${DBDIR}
+ ${MKDIR} ${STAGEDIR}${RUNDIR}
+ ${MKDIR} ${STAGEDIR}${LOGDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+ cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
+ ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}
+ ${INSTALL_DATA} ${WRKSRC}/doc/ircd.motd ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/ircd.motd.sample
+ ${INSTALL_DATA} ${WRKSRC}/doc/example.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/ircd.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/doc/example.efnet.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/ircd-efnet.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/doc/genssl.sh ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/genssl.sh
# ----- We need to install the shortcut.pl module ----
.if ${PORT_OPTIONS:MSHORTCUTS}
@${ECHO_MSG} "Executing install-mod.sh for ircd-shortcuts module installation."
${SH} ${WRKSRC}/install-mod.sh ${WRKSRC}/contrib/m_rsshortcut.la \
- ${PREFIX}/lib/${PORTNAME}/modules/contrib
+ ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/modules/contrib
.endif
- @if [ ! -f ${PREFIX}/etc/${PORTNAME}/ircd.conf ]; then \
- ${ECHO} "Installing default configuration file."; \
- ${CP} -p ${PREFIX}/etc/${PORTNAME}/ircd.conf.sample ${PREFIX}/etc/${PORTNAME}/ircd.conf ; \
- fi
-
- @if [ ! -f ${PREFIX}/etc/${PORTNAME}/ircd.motd ]; then \
- ${ECHO} "Installing default motd file."; \
- ${CP} -p ${PREFIX}/etc/${PORTNAME}/ircd.motd.sample ${PREFIX}/etc/${PORTNAME}/ircd.motd ; \
- fi
-
- @${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
- @${CAT} ${PKGMESSAGE}
-
-#-----------------------------------------------------------------------
-
.include <bsd.port.mk>
diff --git a/irc/ircd-ratbox/pkg-plist b/irc/ircd-ratbox/pkg-plist
index 1dbc6b2dc6e4..8c68488e0c32 100644
--- a/irc/ircd-ratbox/pkg-plist
+++ b/irc/ircd-ratbox/pkg-plist
@@ -138,12 +138,9 @@ libexec/ircd-ratbox/ssld
%%DATADIR%%/help/users/who
%%DATADIR%%/help/users/whois
%%DATADIR%%/help/users/whowas
-lib/ircd-ratbox/libcore.la
lib/ircd-ratbox/libcore.so
-lib/ircd-ratbox/libratbox.la
lib/ircd-ratbox/libratbox.so
%%SERVICES%%lib/ircd-ratbox/modules/autoload/m_services.so
-%%SERVICES%%lib/ircd-ratbox/modules/autoload/m_services.la
lib/ircd-ratbox/modules/autoload/m_accept.so
lib/ircd-ratbox/modules/autoload/m_admin.so
lib/ircd-ratbox/modules/autoload/m_adminwall.so
@@ -239,13 +236,9 @@ lib/ircd-ratbox/modules/m_squit.so
@dirrm %%DATADIR%%/help
@dirrm %%DATADIR%%
etc/ircd-ratbox/genssl.sh
-etc/ircd-ratbox/ircd-efnet.conf.sample
-@unexec if cmp -s "%D/etc/ircd-ratbox/ircd.conf.sample" "%D/etc/ircd-ratbox/ircd.conf"; then rm -f "%D/etc/ircd-ratbox/ircd.conf"; fi
-etc/ircd-ratbox/ircd.conf.sample
-@exec if [ ! -f "%D/etc/ircd-ratbox/ircd.conf" ] ; then cp -p "%D/%F" "%B/ircd.conf"; fi
-@unexec if cmp -s "%D/etc/ircd-ratbox/ircd.motd.sample" "%D/etc/ircd-ratbox/ircd.motd"; then rm -f "%D/etc/ircd-ratbox/ircd.motd"; fi
-etc/ircd-ratbox/ircd.motd.sample
-@exec if [ ! -f "%D/etc/ircd-ratbox/ircd.motd" ] ; then cp -p "%D/%F" "%B/ircd.motd"; fi
+@sample etc/ircd-ratbox/ircd-efnet.conf.sample
+@sample etc/ircd-ratbox/ircd.conf.sample
+@sample etc/ircd-ratbox/ircd.motd.sample
@dirrmtry etc/ircd-ratbox
@cwd /
@dirrmtry %%LOGDIR%%