aboutsummaryrefslogtreecommitdiff
path: root/irc/unreal
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2004-07-22 02:01:55 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2004-07-22 02:01:55 +0000
commitbd4d4e7163cde312170f1d6ae9301592bd25a709 (patch)
tree837ac1f6f00af409718fbcc7c0cb44f16d52b211 /irc/unreal
parent6489506adec80b9f2336a9ad67feaa9546185efd (diff)
downloadports-bd4d4e7163cde312170f1d6ae9301592bd25a709.tar.gz
ports-bd4d4e7163cde312170f1d6ae9301592bd25a709.zip
Notes
Diffstat (limited to 'irc/unreal')
-rw-r--r--irc/unreal/Makefile41
-rw-r--r--irc/unreal/distinfo4
-rw-r--r--irc/unreal/pkg-plist3
3 files changed, 43 insertions, 5 deletions
diff --git a/irc/unreal/Makefile b/irc/unreal/Makefile
index 93dfde15fba0..17c36055e821 100644
--- a/irc/unreal/Makefile
+++ b/irc/unreal/Makefile
@@ -8,17 +8,20 @@
#
PORTNAME= Unreal
-PORTVERSION= 3.2
+PORTVERSION= 3.2.1
CATEGORIES= irc
MASTER_SITES= http://mirror.nimsay-networks.com/unrealircd/ \
http://unrealircd.za.net/ \
ftp://unrealircd.za.net/pub/UnrealIRCd/
DISTNAME= ${PORTNAME}${PORTVERSION}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= tux@pinguru.net
COMMENT= Unreal - the next generation ircd
-WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
+SQLMOD= Unreal/SQLMod.tar.gz
+
+WRKSRC= ${WRKDIR}/${PORTNAME}3.2
HAS_CONFIGURE= yes
@@ -35,6 +38,17 @@ CONFIGURE_ARGS= --enable-nospoof \
--with-fd-setsize=1024 \
--enable-dynamic-linking
+.include <bsd.port.pre.mk>
+
+.if exists(${DISTDIR}/${SQLMOD})
+USE_MYSQL= yes
+WITH_SQLMOD= yes
+MAKE_ARGS= all custommodule MODULEFILE=m_sqlmod
+PLIST_FILES+= Unreal/modules/m_sqlmod.so Unreal/m_sqlmod.conf \
+ Unreal/doc/Changes.sqlmod Unreal/doc/README.sqlmod \
+ Unreal/doc/LICENSE.sqlmod
+.endif
+
.if defined(WITH_IPV6)
CONFIGURE_ARGS+= --enable-inet6
.endif
@@ -44,4 +58,25 @@ CONFIGURE_ARGS+= --enable-ssl
USE_OPENSSL= yes
.endif
-.include <bsd.port.mk>
+post-extract:
+.if defined(WITH_SQLMOD)
+ @${TAR} xfz ${DISTDIR}/${SQLMOD} -C ${WRKSRC}
+ @${MV} ${WRKSRC}/SQLMod* ${WRKSRC}/SQLMod
+ @${CP} -r ${WRKSRC}/SQLMod/m_sqlmod.c ${WRKSRC}/src/modules
+.endif
+
+post-patch:
+.if defined(WITH_SQLMOD)
+ @${PATCH} -d ${WRKSRC} < ${WRKSRC}/SQLMod/patch
+.endif
+
+post-install:
+.if defined(WITH_SQLMOD)
+ @${CP} ${WRKSRC}/SQLMod/sample.conf ${PREFIX}/Unreal/m_sqlmod.conf
+ @${CP} ${WRKSRC}/SQLMod/Changes ${PREFIX}/Unreal/doc/Changes.sqlmod
+ @${CP} ${WRKSRC}/SQLMod/README ${PREFIX}/Unreal/doc/README.sqlmod
+ @${CP} ${WRKSRC}/SQLMod/LICENSE ${PREFIX}/Unreal/doc/LICENSE.sqlmod
+ @${INSTALL} ${WRKSRC}/src/modules/m_sqlmod.so ${PREFIX}/Unreal/modules/m_sqlmod.so
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/irc/unreal/distinfo b/irc/unreal/distinfo
index 7fac8f1f1066..0abb099d349f 100644
--- a/irc/unreal/distinfo
+++ b/irc/unreal/distinfo
@@ -1,2 +1,2 @@
-MD5 (Unreal3.2.tar.gz) = cc24872a1382bc11e2fac96ac6b016f2
-SIZE (Unreal3.2.tar.gz) = 1477195
+MD5 (Unreal3.2.1.tar.gz) = ebe56fd42fc229681f527932eaa173cc
+SIZE (Unreal3.2.1.tar.gz) = 1614434
diff --git a/irc/unreal/pkg-plist b/irc/unreal/pkg-plist
index c6ae4ccd4e50..f5e367011f29 100644
--- a/irc/unreal/pkg-plist
+++ b/irc/unreal/pkg-plist
@@ -57,6 +57,7 @@ Unreal/help.conf
Unreal/LICENSE
Unreal/Donation
Unreal/unreal
+Unreal/modules/cloak.so
Unreal/modules/commands.so
Unreal/modules/m_addline.so
Unreal/modules/m_addomotd.so
@@ -71,6 +72,7 @@ Unreal/modules/m_chgname.so
Unreal/modules/m_close.so
Unreal/modules/m_connect.so
Unreal/modules/m_cycle.so
+Unreal/modules/m_dccallow.so
Unreal/modules/m_dccdeny.so
Unreal/modules/m_eos.so
Unreal/modules/m_globops.so
@@ -144,6 +146,7 @@ Unreal/modules/m_wallops.so
Unreal/modules/m_who.so
Unreal/modules/m_whois.so
Unreal/modules/m_whowas.so
+Unreal/modules/oldcloak.so
@dirrm Unreal/networks
@dirrm Unreal/modules
@dirrm Unreal/doc