aboutsummaryrefslogtreecommitdiff
path: root/irc/tr-ircd
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-08-21 11:40:40 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-08-21 11:40:40 +0000
commit5faa5fa4576459bdf88be88cc04d0e1ae67df47a (patch)
tree4bd9102a84b914497cde209815016c99b05886b9 /irc/tr-ircd
parentf77d3f13d367432c94aab0901c66700eea74a279 (diff)
downloadports-5faa5fa4576459bdf88be88cc04d0e1ae67df47a.tar.gz
ports-5faa5fa4576459bdf88be88cc04d0e1ae67df47a.zip
Notes
Diffstat (limited to 'irc/tr-ircd')
-rw-r--r--irc/tr-ircd/Makefile17
-rw-r--r--irc/tr-ircd/files/patch-ircsprintf.c12
-rw-r--r--irc/tr-ircd/files/patch-wordfilter-Makefile.in11
3 files changed, 31 insertions, 9 deletions
diff --git a/irc/tr-ircd/Makefile b/irc/tr-ircd/Makefile
index 95f0c47c2863..8a2add8e0ab1 100644
--- a/irc/tr-ircd/Makefile
+++ b/irc/tr-ircd/Makefile
@@ -17,11 +17,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= An irc daeemon based on Bahamut and hybrid-7
USE_GMAKE= yes
-
-MAN1= md5sum.1
-MAN5= ircd.conf.5
-MAN8= ircd.8
-
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var \
--libdir=${PREFIX}/lib/tr-ircd \
@@ -30,6 +26,10 @@ CONFIGURE_ARGS= --localstatedir=/var \
--enable-root \
--with-fakehost-postfix=COM
+MAN1= md5sum.1
+MAN5= ircd.conf.5
+MAN8= ircd.8
+
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
CONFIGURE_ARGS+=--enable-openssl=${OPENSSLBASE}
@@ -41,14 +41,13 @@ CONFIGURE_ARGS+=--enable-small-nets
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64"
-BROKEN= "Does not compile on amd64"
-.endif
-
.if ${OSVERSION} >= 400014 && !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=--enable-ipv6
.endif
+post-patch:
+ ${REINPLACE_CMD} -e "s,-O2,${CFLAGS}," ${WRKSRC}/configure
+
post-install:
@${ECHO} "Installing ${PREFIX}/etc/rc.d/tr-ircd.sh.sample startup file."
@${INSTALL_SCRIPT} ${FILESDIR}/tr-ircd.sh \
diff --git a/irc/tr-ircd/files/patch-ircsprintf.c b/irc/tr-ircd/files/patch-ircsprintf.c
new file mode 100644
index 000000000000..b988c2d2df40
--- /dev/null
+++ b/irc/tr-ircd/files/patch-ircsprintf.c
@@ -0,0 +1,12 @@
+--- src/ircsprintf.c.orig Sat Aug 21 13:36:50 2004
++++ src/ircsprintf.c Sat Aug 21 13:37:15 2004
+@@ -316,7 +316,8 @@
+ const char *format = pattern;
+ char *buf = str;
+ int len = 0;
+- va_list ap = vl;
++ va_list ap;
++ va_copy(ap,vl);
+
+ while (*format) {
+ switch (*format) {
diff --git a/irc/tr-ircd/files/patch-wordfilter-Makefile.in b/irc/tr-ircd/files/patch-wordfilter-Makefile.in
new file mode 100644
index 000000000000..3b727453d226
--- /dev/null
+++ b/irc/tr-ircd/files/patch-wordfilter-Makefile.in
@@ -0,0 +1,11 @@
+--- contrib/wordfilter/Makefile.in.orig Sat Aug 21 13:34:23 2004
++++ contrib/wordfilter/Makefile.in Sat Aug 21 13:34:39 2004
+@@ -16,7 +16,7 @@
+ RANLIB = @RANLIB@
+ MD5SUMS = @MD5SUMS@
+ LEXLIB = @LEXLIB@
+-CFLAGS = @IRC_CFLAGS@ -DBASENAME=\"$(BN1)$(BN2)$(BN3)\" -DIRCD_PREFIX=\"@prefix@\"
++CFLAGS = @IRC_CFLAGS@ -DBASENAME=\"$(BN1)$(BN2)$(BN3)\" -DIRCD_PREFIX=\"@prefix@\" -fPIC
+ LDFLAGS = @LDFLAGS@
+ MKDEP = @MKDEP@ -DBASENAME=\"$(BN1)$(BN2)$(BN3)\" -DIRCD_PREFIX=\"@prefix@\"
+ MV = @MV@