summaryrefslogtreecommitdiff
path: root/community/unrealircd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-24 23:14:38 +0000
committerroot <root@rshg054.dnsready.net>2011-08-24 23:14:38 +0000
commitf53c212680c1817ef2337855ef8814dea6b07e4e (patch)
treec93db9dbaade4f2c86a8d550c237edf7d574f6da /community/unrealircd
parent9254c2bc6500471b22eead69781ddef84f87e2bf (diff)
Wed Aug 24 23:14:37 UTC 2011
Diffstat (limited to 'community/unrealircd')
-rw-r--r--community/unrealircd/PKGBUILD25
-rw-r--r--community/unrealircd/arch-fixes.patch56
2 files changed, 63 insertions, 18 deletions
diff --git a/community/unrealircd/PKGBUILD b/community/unrealircd/PKGBUILD
index 3ad0f297a..bcb80f277 100644
--- a/community/unrealircd/PKGBUILD
+++ b/community/unrealircd/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 33887 2010-11-29 08:54:01Z spupykin $
+# $Id: PKGBUILD 54707 2011-08-23 12:04:07Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Zerial <fernando@zerial.org>
pkgname=unrealircd
pkgver=3.2.8.1
-pkgrel=6
+pkgrel=7
pkgdesc="Open Source IRC Server."
arch=('i686' 'x86_64')
url="http://unrealircd.com"
@@ -14,29 +14,18 @@ conflicts=(ircd)
provides=(ircd)
backup=(etc/unrealircd/unrealircd.conf)
source=(http://www.unrealircd.com/downloads/Unreal$pkgver.tar.gz
- unrealircd.rc)
+ unrealircd.rc
+ arch-fixes.patch)
md5sums=('7b741e94e867c0a7370553fd01506c66'
- '0d728240132a97a2cef61be9558750b1')
+ '0d728240132a97a2cef61be9558750b1'
+ '670f0a5ecd60789cd5f296a1901cf1b7')
build() {
mkdir -p $pkgdir/etc/unrealircd
mkdir -p $pkgdir/usr/bin
cd $srcdir/Unreal3.2
- patch src/ircd.c <<EOF
-847c847
-< #ifdef USE_SSL
----
-> #if 0
-857c857
-< #ifdef ZIP_LINKS
----
-> #if 0
-867c867
-< #ifdef USE_LIBCURL
----
-> #if 0
-EOF
+ patch -p1 <$srcdir/arch-fixes.patch
./configure --with-showlistmodes \
--enable-hub --enable-prefixaq --with-listen=5 \
diff --git a/community/unrealircd/arch-fixes.patch b/community/unrealircd/arch-fixes.patch
new file mode 100644
index 000000000..02bbb18b3
--- /dev/null
+++ b/community/unrealircd/arch-fixes.patch
@@ -0,0 +1,56 @@
+diff -wbBur Unreal3.2/doc/example.conf Unreal3.2.my/doc/example.conf
+--- Unreal3.2/doc/example.conf 2009-04-13 15:03:55.000000000 +0400
++++ Unreal3.2.my/doc/example.conf 2011-08-23 15:48:46.000000000 +0400
+@@ -33,8 +33,8 @@
+ */
+
+ /* FOR *NIX, uncomment the following 2lines: */
+-//loadmodule "src/modules/commands.so";
+-//loadmodule "src/modules/cloak.so";
++loadmodule "modules/commands.so";
++loadmodule "modules/cloak.so";
+
+ /* FOR Windows, uncomment the following 2 lines: */
+ //loadmodule "modules/commands.dll";
+diff -wbBur Unreal3.2/src/ircd.c Unreal3.2.my/src/ircd.c
+--- Unreal3.2/src/ircd.c 2009-03-01 21:37:58.000000000 +0300
++++ Unreal3.2.my/src/ircd.c 2011-08-23 15:44:30.000000000 +0400
+@@ -844,7 +844,7 @@
+ const char *compiledfor, *runtime;
+ int error = 0;
+
+-#ifdef USE_SSL
++#if 0
+ compiledfor = OPENSSL_VERSION_TEXT;
+ runtime = SSLeay_version(SSLEAY_VERSION);
+ if (strcasecmp(compiledfor, runtime))
+@@ -854,7 +854,7 @@
+ error=1;
+ }
+ #endif
+-#ifdef ZIP_LINKS
++#if 0
+ runtime = zlibVersion();
+ compiledfor = ZLIB_VERSION;
+ if (*compiledfor != *runtime)
+@@ -864,7 +864,7 @@
+ error = 1;
+ }
+ #endif
+-#ifdef USE_LIBCURL
++#if 0
+ /* Perhaps someone should tell them to do this a bit more easy ;)
+ * problem is runtime output is like: 'libcurl/7.11.1 zlib/1.2.1 c-ares/1.2.0'
+ * while header output is like: '7.11.1'.
+diff -wbBur Unreal3.2/unreal.in Unreal3.2.my/unreal.in
+--- Unreal3.2/unreal.in 2009-03-01 21:37:55.000000000 +0300
++++ Unreal3.2.my/unreal.in 2011-08-23 15:49:20.000000000 +0400
+@@ -7,7 +7,7 @@
+ if [ -r $PID_FILE ] ; then
+ mv -f $PID_FILE $PID_BACKUP
+ fi
+- @BINDIR@
++ @BINDIR@/ircd
+ sleep 1
+ if [ ! -r $PID_FILE ] ; then
+ echo "Possible error encountered (IRCd seemingly not started)"