summaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2004-07-02 06:51:46 +0000
committerErwin Lansing <erwin@FreeBSD.org>2004-07-02 06:51:46 +0000
commitc311a288cf3b0b49abd7267024cab0cc6b2e9b5b (patch)
tree12f60437e6c483bd032d6c0009670d8ea78a8510 /irc
parentMake dependency on p5-Digest conditional on perl version (diff)
Yet another file that had the version number hardcoded in it. Patch
the patch on the fly to use PORTVERSION. The version number should probably be removed alltogether. Approved by: maintainer
Notes
Notes: svn path=/head/; revision=112724
Diffstat (limited to 'irc')
-rw-r--r--irc/ircd-hybrid/Makefile6
-rw-r--r--irc/ircd-hybrid/files/include-config.h.pre-patch (renamed from irc/ircd-hybrid/files/patch-include-config.h)10
2 files changed, 11 insertions, 5 deletions
diff --git a/irc/ircd-hybrid/Makefile b/irc/ircd-hybrid/Makefile
index c8e380b284ae..dbc301d73812 100644
--- a/irc/ircd-hybrid/Makefile
+++ b/irc/ircd-hybrid/Makefile
@@ -84,6 +84,9 @@ CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/ircd-hybrid \
--ohelpdir=${PREFIX}/share/${PORTNAME}-${PORTVERSION}/help/opers \
--messagedir=${PREFIX}/share/${PORTNAME}-${PORTVERSION}/messages \
+pre-patch:
+ @${SED} -e "s#%%PORTVERSION%%#${PORTVERSION}#" ${FILESDIR}/include-config.h.pre-patch > ${FILESDIR}/patch-include-config.h
+
post-patch:
@${REINPLACE_CMD} -e "s#man8#man/man8#" ${WRKSRC}/doc/Makefile.in
@${MV} ${WRKSRC}/doc/ircd.motd ${WRKSRC}/doc/ircd.motd.sample
@@ -100,4 +103,7 @@ post-install:
@${INSTALL_SCRIPT} ${WRKDIR}/ircd-hybrid.sh ${PREFIX}/etc/rc.d
@${SED} -e "s#/usr/local/#${PREFIX}/#" ${PKGMESSAGE}
+pre-clean:
+ @${RM} -f ${FILESDIR}/patch-include-config.h
+
.include <bsd.port.mk>
diff --git a/irc/ircd-hybrid/files/patch-include-config.h b/irc/ircd-hybrid/files/include-config.h.pre-patch
index 440943eed349..af4df1dee821 100644
--- a/irc/ircd-hybrid/files/patch-include-config.h
+++ b/irc/ircd-hybrid/files/include-config.h.pre-patch
@@ -18,15 +18,15 @@
-#define AUTOMODPATH IRCD_PREFIX "/modules/autoload/"
-#define MSGPATH IRCD_PREFIX "/messages/"
-#define ETCPATH IRCD_PREFIX "/etc"
-+#define MODPATH IRCD_PREFIX "/share/ircd-hybrid-7.0/modules/"
-+#define AUTOMODPATH IRCD_PREFIX "/share/ircd-hybrid-7.0/modules/autoload/"
-+#define MSGPATH IRCD_PREFIX "/share/ircd-hybrid-7.0/messages/"
++#define MODPATH IRCD_PREFIX "/share/ircd-hybrid-%%PORTVERSION%%/modules/"
++#define AUTOMODPATH IRCD_PREFIX "/share/ircd-hybrid-%%PORTVERSION%%/modules/autoload/"
++#define MSGPATH IRCD_PREFIX "/share/ircd-hybrid-%%PORTVERSION%%/messages/"
+#define ETCPATH IRCD_PREFIX "/etc/ircd-hybrid"
#define LOGPATH IRCD_PREFIX "/logs"
-#define UHPATH IRCD_PREFIX "/help/users"
-#define HPATH IRCD_PREFIX "/help/opers"
-+#define UHPATH IRCD_PREFIX "/share/ircd-hybrid-7.0/help/users"
-+#define HPATH IRCD_PREFIX "/share/ircd-hybrid-7.0/help/opers"
++#define UHPATH IRCD_PREFIX "/share/ircd-hybrid-%%PORTVERSION%%/help/users"
++#define HPATH IRCD_PREFIX "/share/ircd-hybrid-%%PORTVERSION%%/help/opers"
/* files */
#define SPATH BINPATH "/ircd" /* ircd executable */