ports/69344: Update Port: irc/unreal
Gerrit Beine
tux at pinguru.net
Tue Jul 20 15:30:22 UTC 2004
>Number: 69344
>Category: ports
>Synopsis: Update Port: irc/unreal
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 20 15:30:21 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Gerrit Beine
>Release: FreeBSD 5.2.1-RELEASE-p8
>Organization:
pitcom GmbH
>Environment:
FreeBSD asus.intern.beine-computer.de 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 #4: Mon Jul 5 12:53:28 CEST 2004 root at asus.intern.beine-computer.de:/usr/src/sys/i386/compile/ASUS i386
>Description:
Update Unreal IRCd to version 3.2.1.
This adds a new API and some bug fixes.
There is also support for the SQLMod (not official, but it should work).
>How-To-Repeat:
>Fix:
diff -ur unreal.orig/Makefile unreal/Makefile
--- unreal.orig/Makefile Wed Jun 2 23:02:31 2004
+++ unreal/Makefile Tue Jul 20 17:15:03 2004
@@ -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 at 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 @@
--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 @@
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 -ur unreal.orig/distinfo unreal/distinfo
--- unreal.orig/distinfo Mon May 31 15:33:19 2004
+++ unreal/distinfo Tue Jul 20 17:12:31 2004
@@ -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 -ur unreal.orig/pkg-plist unreal/pkg-plist
--- unreal.orig/pkg-plist Mon May 31 15:33:19 2004
+++ unreal/pkg-plist Tue Jul 20 17:18:54 2004
@@ -57,6 +57,7 @@
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_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_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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list