[arch-commits] Commit in unrealircd/repos (14 files)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 13 14:39:47 UTC 2013


    Date: Monday, May 13, 2013 @ 16:39:46
  Author: spupykin
Revision: 90731

archrelease: copy trunk to community-i686, community-x86_64

Added:
  unrealircd/repos/community-i686/PKGBUILD
    (from rev 90730, unrealircd/trunk/PKGBUILD)
  unrealircd/repos/community-i686/arch-fixes.patch
    (from rev 90730, unrealircd/trunk/arch-fixes.patch)
  unrealircd/repos/community-i686/unrealircd.service
    (from rev 90730, unrealircd/trunk/unrealircd.service)
  unrealircd/repos/community-x86_64/PKGBUILD
    (from rev 90730, unrealircd/trunk/PKGBUILD)
  unrealircd/repos/community-x86_64/arch-fixes.patch
    (from rev 90730, unrealircd/trunk/arch-fixes.patch)
  unrealircd/repos/community-x86_64/unrealircd.service
    (from rev 90730, unrealircd/trunk/unrealircd.service)
Deleted:
  unrealircd/repos/community-i686/PKGBUILD
  unrealircd/repos/community-i686/arch-fixes.patch
  unrealircd/repos/community-i686/unrealircd.rc
  unrealircd/repos/community-i686/unrealircd.service
  unrealircd/repos/community-x86_64/PKGBUILD
  unrealircd/repos/community-x86_64/arch-fixes.patch
  unrealircd/repos/community-x86_64/unrealircd.rc
  unrealircd/repos/community-x86_64/unrealircd.service

-------------------------------------+
 /PKGBUILD                           |  142 +++++++++++++++++++++++++++
 /arch-fixes.patch                   |  178 ++++++++++++++++++++++++++++++++++
 /unrealircd.service                 |   24 ++++
 community-i686/PKGBUILD             |   68 ------------
 community-i686/arch-fixes.patch     |   89 -----------------
 community-i686/unrealircd.rc        |   62 -----------
 community-i686/unrealircd.service   |   12 --
 community-x86_64/PKGBUILD           |   68 ------------
 community-x86_64/arch-fixes.patch   |   89 -----------------
 community-x86_64/unrealircd.rc      |   62 -----------
 community-x86_64/unrealircd.service |   12 --
 11 files changed, 344 insertions(+), 462 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2013-05-13 14:39:25 UTC (rev 90730)
+++ community-i686/PKGBUILD	2013-05-13 14:39:46 UTC (rev 90731)
@@ -1,68 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Zerial <fernando at zerial.org>
-
-pkgname=unrealircd
-pkgver=3.2.10
-pkgrel=1
-pkgdesc="Open Source IRC Server"
-arch=('i686' 'x86_64')
-url="http://unrealircd.com"
-license=('GPL2')
-depends=('openssl' 'curl' 'c-ares')
-conflicts=('ircd')
-provides=('ircd')
-backup=('etc/unrealircd/unrealircd.conf'
-	'etc/conf.d/unrealircd')
-source=(http://www.unrealircd.com/downloads/Unreal$pkgver.tar.gz
-	unrealircd.rc
-	unrealircd.service
-	arch-fixes.patch)
-md5sums=('05b0bbdbfab9ffc2304f7595951d7cec'
-         '07ffa1e82a01f319a8b997e155d2af1d'
-         '2103ce8a4a4e79f6955920bfebea0202'
-         '77807313c4578f2c30286b9f9e3fb21c')
-
-build() {
-  mkdir -p $pkgdir/etc/unrealircd
-  mkdir -p $pkgdir/usr/bin
-  cd $srcdir/Unreal$pkgver
-
-  patch -p1 <$srcdir/arch-fixes.patch
-
-  ./configure --with-showlistmodes \
-      --enable-hub --enable-prefixaq --with-listen=5 \
-      --with-dpath=/etc/unrealircd \
-      --with-spath=/usr/bin \
-      --with-nick-history=2000 --with-sendq=3000000 \
-      --with-bufferpool=18 --with-hostname=archlinux \
-      --with-permissions=0600 --with-fd-setsize=1024 \
-      --enable-dynamic-linking \
-      --enable-ziplinks \
-      --enable-ssl \
-      --enable-libcurl=/usr \
-      --with-system-cares
-
-  make
-  make IRCDDIR=$pkgdir/etc/unrealircd BINDIR=$pkgdir/usr/bin install
-
-  mv $srcdir/Unreal$pkgver/src/ircd $pkgdir/usr/bin/unrealircd
-  mv $srcdir/Unreal$pkgver/doc/example.conf $pkgdir/etc/unrealircd/unrealircd.conf
-  mkdir -p $pkgdir/usr/lib/unrealircd
-  mv $pkgdir/etc/unrealircd/modules $pkgdir/usr/lib/unrealircd/
-  ln -s /usr/lib/unrealircd/modules $pkgdir/etc/unrealircd/modules
-  install -D -m0755 $srcdir/unrealircd.rc $pkgdir/etc/rc.d/unrealircd
-
-  # log
-  mkdir -p $pkgdir/var/log/unrealircd/
-  touch $pkgdir/var/log/unrealircd/ircd.log
-  ln -s /var/log/unrealircd/ircd.log $pkgdir/etc/unrealircd/ircd.log
-
-  mkdir -p $pkgdir/etc/conf.d/
-  echo 'UNREALIRCD_USER=root' >$pkgdir/etc/conf.d/unrealircd
-
-  find $pkgdir/usr -type f -exec chmod ugo+r {} \;
-  find $pkgdir/usr -type d -exec chmod ugo+rx {} \;
-
-  install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
-}

Copied: unrealircd/repos/community-i686/PKGBUILD (from rev 90730, unrealircd/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2013-05-13 14:39:46 UTC (rev 90731)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Zerial <fernando at zerial.org>
+
+pkgname=unrealircd
+pkgver=3.2.10
+pkgrel=2
+pkgdesc="Open Source IRC Server"
+arch=('i686' 'x86_64')
+url="http://unrealircd.com"
+license=('GPL2')
+depends=('openssl' 'curl' 'c-ares')
+conflicts=('ircd')
+provides=('ircd')
+backup=('etc/unrealircd/unrealircd.conf'
+	'etc/conf.d/unrealircd')
+source=(http://www.unrealircd.com/downloads/Unreal$pkgver.tar.gz
+	unrealircd.service
+	arch-fixes.patch)
+md5sums=('05b0bbdbfab9ffc2304f7595951d7cec'
+         '2103ce8a4a4e79f6955920bfebea0202'
+         '77807313c4578f2c30286b9f9e3fb21c')
+
+build() {
+  cd $srcdir/Unreal$pkgver
+
+  patch -p1 <$srcdir/arch-fixes.patch
+
+  ./configure --with-showlistmodes \
+      --enable-hub --enable-prefixaq --with-listen=5 \
+      --with-dpath=/etc/unrealircd \
+      --with-spath=/usr/bin \
+      --with-nick-history=2000 --with-sendq=3000000 \
+      --with-bufferpool=18 --with-hostname=archlinux \
+      --with-permissions=0600 --with-fd-setsize=1024 \
+      --enable-dynamic-linking \
+      --enable-ziplinks \
+      --enable-ssl \
+      --enable-libcurl=/usr \
+      --with-system-cares
+
+  make
+}
+
+package() {
+  cd $srcdir/Unreal$pkgver
+
+  mkdir -p $pkgdir/etc/unrealircd
+  mkdir -p $pkgdir/usr/bin
+
+  make IRCDDIR=$pkgdir/etc/unrealircd BINDIR=$pkgdir/usr/bin install
+
+  mv $srcdir/Unreal$pkgver/src/ircd $pkgdir/usr/bin/unrealircd
+  mv $srcdir/Unreal$pkgver/doc/example.conf $pkgdir/etc/unrealircd/unrealircd.conf
+  mkdir -p $pkgdir/usr/lib/unrealircd
+  mv $pkgdir/etc/unrealircd/modules $pkgdir/usr/lib/unrealircd/
+  ln -s /usr/lib/unrealircd/modules $pkgdir/etc/unrealircd/modules
+
+  # log
+  mkdir -p $pkgdir/var/log/unrealircd/
+  touch $pkgdir/var/log/unrealircd/ircd.log
+  ln -s /var/log/unrealircd/ircd.log $pkgdir/etc/unrealircd/ircd.log
+
+  mkdir -p $pkgdir/etc/conf.d/
+  echo 'UNREALIRCD_USER=root' >$pkgdir/etc/conf.d/unrealircd
+
+  find $pkgdir/usr -type f -exec chmod ugo+r {} \;
+  find $pkgdir/usr -type d -exec chmod ugo+rx {} \;
+
+  install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+}

Deleted: community-i686/arch-fixes.patch
===================================================================
--- community-i686/arch-fixes.patch	2013-05-13 14:39:25 UTC (rev 90730)
+++ community-i686/arch-fixes.patch	2013-05-13 14:39:46 UTC (rev 90731)
@@ -1,89 +0,0 @@
-diff -wbBur Unreal3.2.org/doc/example.conf Unreal3.2/doc/example.conf
---- Unreal3.2.org/doc/example.conf	2009-04-13 15:03:55.000000000 +0400
-+++ Unreal3.2/doc/example.conf	2011-08-29 13:39:25.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.org/src/ircd.c Unreal3.2/src/ircd.c
---- Unreal3.2.org/src/ircd.c	2009-03-01 21:37:58.000000000 +0300
-+++ Unreal3.2/src/ircd.c	2011-08-29 13:39:25.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.org/unreal.in Unreal3.2/unreal.in
---- Unreal3.2.org/unreal.in	2009-03-01 21:37:55.000000000 +0300
-+++ Unreal3.2/unreal.in	2011-08-29 13:39:37.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)"	
-@@ -31,11 +31,11 @@
- 	echo "Restarting UnrealIRCd"
- 	kill -2 `cat $PID_FILE`
- elif [ "$1" = "mkpasswd" ] ; then
--	@BINDIR@ -P $2 $3
-+	@BINDIR@/ircd -P $2 $3
- elif [ "$1" = "version" ] ; then
--	@BINDIR@ -v
-+	@BINDIR@/ircd -v
- elif [ "$1" = "gencloak" ] ; then
--	@BINDIR@ -k
-+	@BINDIR@/ircd -k
- elif [ "$1" = "backtrace" ] ; then
- 	cd @IRCDDIR@
- 
-@@ -90,7 +90,7 @@
- 	fi
- 
- 	# Some ugly prepare work -- ignore errors
--	(echo quit|gdb @BINDIR@ $corefile 2>&1)|\
-+	(echo quit|gdb @BINDIR@/ircd $corefile 2>&1)|\
- 	grep -i 'no such file'|\
- 	awk -F ':' '{ print $1 }'|sort|uniq|\
- 	awk -F '.' "{ system(\"ln -s ../$modpath/\" \$2 \".so \" \$0) }"
-@@ -110,7 +110,7 @@
- quit
- __EOF__
- 
--	gdb -batch -x gdb.commands @BINDIR@ $corefile
-+	gdb -batch -x gdb.commands @BINDIR@/ircd $corefile
- 	rm -f gdb.commands
- 	echo "GCC: `gcc -v 2>&1|tail -n 1`"
- 	echo "UNAME: `uname -a`"

Copied: unrealircd/repos/community-i686/arch-fixes.patch (from rev 90730, unrealircd/trunk/arch-fixes.patch)
===================================================================
--- community-i686/arch-fixes.patch	                        (rev 0)
+++ community-i686/arch-fixes.patch	2013-05-13 14:39:46 UTC (rev 90731)
@@ -0,0 +1,89 @@
+diff -wbBur Unreal3.2.org/doc/example.conf Unreal3.2/doc/example.conf
+--- Unreal3.2.org/doc/example.conf	2009-04-13 15:03:55.000000000 +0400
++++ Unreal3.2/doc/example.conf	2011-08-29 13:39:25.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.org/src/ircd.c Unreal3.2/src/ircd.c
+--- Unreal3.2.org/src/ircd.c	2009-03-01 21:37:58.000000000 +0300
++++ Unreal3.2/src/ircd.c	2011-08-29 13:39:25.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.org/unreal.in Unreal3.2/unreal.in
+--- Unreal3.2.org/unreal.in	2009-03-01 21:37:55.000000000 +0300
++++ Unreal3.2/unreal.in	2011-08-29 13:39:37.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)"	
+@@ -31,11 +31,11 @@
+ 	echo "Restarting UnrealIRCd"
+ 	kill -2 `cat $PID_FILE`
+ elif [ "$1" = "mkpasswd" ] ; then
+-	@BINDIR@ -P $2 $3
++	@BINDIR@/ircd -P $2 $3
+ elif [ "$1" = "version" ] ; then
+-	@BINDIR@ -v
++	@BINDIR@/ircd -v
+ elif [ "$1" = "gencloak" ] ; then
+-	@BINDIR@ -k
++	@BINDIR@/ircd -k
+ elif [ "$1" = "backtrace" ] ; then
+ 	cd @IRCDDIR@
+ 
+@@ -90,7 +90,7 @@
+ 	fi
+ 
+ 	# Some ugly prepare work -- ignore errors
+-	(echo quit|gdb @BINDIR@ $corefile 2>&1)|\
++	(echo quit|gdb @BINDIR@/ircd $corefile 2>&1)|\
+ 	grep -i 'no such file'|\
+ 	awk -F ':' '{ print $1 }'|sort|uniq|\
+ 	awk -F '.' "{ system(\"ln -s ../$modpath/\" \$2 \".so \" \$0) }"
+@@ -110,7 +110,7 @@
+ quit
+ __EOF__
+ 
+-	gdb -batch -x gdb.commands @BINDIR@ $corefile
++	gdb -batch -x gdb.commands @BINDIR@/ircd $corefile
+ 	rm -f gdb.commands
+ 	echo "GCC: `gcc -v 2>&1|tail -n 1`"
+ 	echo "UNAME: `uname -a`"

Deleted: community-i686/unrealircd.rc
===================================================================
--- community-i686/unrealircd.rc	2013-05-13 14:39:25 UTC (rev 90730)
+++ community-i686/unrealircd.rc	2013-05-13 14:39:46 UTC (rev 90731)
@@ -1,62 +0,0 @@
-#!/bin/bash
-
-daemon_name=unrealircd
-
-. /etc/conf.d/unrealircd
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-get_pid() {
-	pidof ircd unrealircd
-}
-
-case "$1" in
-  start)
-    stat_busy "Starting $daemon_name daemon"
-
-    PID=`get_pid`
-    if [ -z "$PID" ]; then
-      [ -f /var/run/$daemon_name.pid ] && rm -f /var/run/$daemon_name.pid
-      # RUN
-      export PID_FILE="/var/run/unrealircd.pid"
-      su -c /usr/bin/unrealircd -p - $UNREALIRCD_USER 1>>/var/log/unrealircd/ircd.log 2>>/var/log/unrealircd/ircd.log
-      #
-      if [ $? -gt 0 ]; then
-        stat_fail
-        exit 1
-      else
-        echo `get_pid` > /var/run/$daemon_name.pid
-        add_daemon $daemon_name
-        stat_done
-      fi
-    else
-      stat_fail
-      exit 1
-    fi
-    ;;
-
-  stop)
-    stat_busy "Stopping $daemon_name daemon"
-    PID=`get_pid`
-    # KILL
-    [ ! -z "$PID" ] && kill $PID &> /dev/null
-    #
-    if [ $? -gt 0 ]; then
-      stat_fail
-      exit 1
-    else
-      rm -f /var/run/$daemon_name.pid &> /dev/null
-      rm_daemon $daemon_name
-      stat_done
-    fi
-    ;;
-
-  restart)
-    $0 stop
-    sleep 3
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac
-exit 0

Deleted: community-i686/unrealircd.service
===================================================================
--- community-i686/unrealircd.service	2013-05-13 14:39:25 UTC (rev 90730)
+++ community-i686/unrealircd.service	2013-05-13 14:39:46 UTC (rev 90731)
@@ -1,12 +0,0 @@
-[Unit]
-Description=IRC daemon
-After=network.target remote-fs.target nss-lookup.target
-
-[Service]
-Type=forking
-User=ircd
-PIDFile=/var/run/unrealircd.pid
-ExecStart=/usr/bin/unrealircd -p
-
-[Install]
-WantedBy=multi-user.target

Copied: unrealircd/repos/community-i686/unrealircd.service (from rev 90730, unrealircd/trunk/unrealircd.service)
===================================================================
--- community-i686/unrealircd.service	                        (rev 0)
+++ community-i686/unrealircd.service	2013-05-13 14:39:46 UTC (rev 90731)
@@ -0,0 +1,12 @@
+[Unit]
+Description=IRC daemon
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+User=ircd
+PIDFile=/var/run/unrealircd.pid
+ExecStart=/usr/bin/unrealircd -p
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2013-05-13 14:39:25 UTC (rev 90730)
+++ community-x86_64/PKGBUILD	2013-05-13 14:39:46 UTC (rev 90731)
@@ -1,68 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Zerial <fernando at zerial.org>
-
-pkgname=unrealircd
-pkgver=3.2.10
-pkgrel=1
-pkgdesc="Open Source IRC Server"
-arch=('i686' 'x86_64')
-url="http://unrealircd.com"
-license=('GPL2')
-depends=('openssl' 'curl' 'c-ares')
-conflicts=('ircd')
-provides=('ircd')
-backup=('etc/unrealircd/unrealircd.conf'
-	'etc/conf.d/unrealircd')
-source=(http://www.unrealircd.com/downloads/Unreal$pkgver.tar.gz
-	unrealircd.rc
-	unrealircd.service
-	arch-fixes.patch)
-md5sums=('05b0bbdbfab9ffc2304f7595951d7cec'
-         '07ffa1e82a01f319a8b997e155d2af1d'
-         '2103ce8a4a4e79f6955920bfebea0202'
-         '77807313c4578f2c30286b9f9e3fb21c')
-
-build() {
-  mkdir -p $pkgdir/etc/unrealircd
-  mkdir -p $pkgdir/usr/bin
-  cd $srcdir/Unreal$pkgver
-
-  patch -p1 <$srcdir/arch-fixes.patch
-
-  ./configure --with-showlistmodes \
-      --enable-hub --enable-prefixaq --with-listen=5 \
-      --with-dpath=/etc/unrealircd \
-      --with-spath=/usr/bin \
-      --with-nick-history=2000 --with-sendq=3000000 \
-      --with-bufferpool=18 --with-hostname=archlinux \
-      --with-permissions=0600 --with-fd-setsize=1024 \
-      --enable-dynamic-linking \
-      --enable-ziplinks \
-      --enable-ssl \
-      --enable-libcurl=/usr \
-      --with-system-cares
-
-  make
-  make IRCDDIR=$pkgdir/etc/unrealircd BINDIR=$pkgdir/usr/bin install
-
-  mv $srcdir/Unreal$pkgver/src/ircd $pkgdir/usr/bin/unrealircd
-  mv $srcdir/Unreal$pkgver/doc/example.conf $pkgdir/etc/unrealircd/unrealircd.conf
-  mkdir -p $pkgdir/usr/lib/unrealircd
-  mv $pkgdir/etc/unrealircd/modules $pkgdir/usr/lib/unrealircd/
-  ln -s /usr/lib/unrealircd/modules $pkgdir/etc/unrealircd/modules
-  install -D -m0755 $srcdir/unrealircd.rc $pkgdir/etc/rc.d/unrealircd
-
-  # log
-  mkdir -p $pkgdir/var/log/unrealircd/
-  touch $pkgdir/var/log/unrealircd/ircd.log
-  ln -s /var/log/unrealircd/ircd.log $pkgdir/etc/unrealircd/ircd.log
-
-  mkdir -p $pkgdir/etc/conf.d/
-  echo 'UNREALIRCD_USER=root' >$pkgdir/etc/conf.d/unrealircd
-
-  find $pkgdir/usr -type f -exec chmod ugo+r {} \;
-  find $pkgdir/usr -type d -exec chmod ugo+rx {} \;
-
-  install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
-}

Copied: unrealircd/repos/community-x86_64/PKGBUILD (from rev 90730, unrealircd/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2013-05-13 14:39:46 UTC (rev 90731)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Zerial <fernando at zerial.org>
+
+pkgname=unrealircd
+pkgver=3.2.10
+pkgrel=2
+pkgdesc="Open Source IRC Server"
+arch=('i686' 'x86_64')
+url="http://unrealircd.com"
+license=('GPL2')
+depends=('openssl' 'curl' 'c-ares')
+conflicts=('ircd')
+provides=('ircd')
+backup=('etc/unrealircd/unrealircd.conf'
+	'etc/conf.d/unrealircd')
+source=(http://www.unrealircd.com/downloads/Unreal$pkgver.tar.gz
+	unrealircd.service
+	arch-fixes.patch)
+md5sums=('05b0bbdbfab9ffc2304f7595951d7cec'
+         '2103ce8a4a4e79f6955920bfebea0202'
+         '77807313c4578f2c30286b9f9e3fb21c')
+
+build() {
+  cd $srcdir/Unreal$pkgver
+
+  patch -p1 <$srcdir/arch-fixes.patch
+
+  ./configure --with-showlistmodes \
+      --enable-hub --enable-prefixaq --with-listen=5 \
+      --with-dpath=/etc/unrealircd \
+      --with-spath=/usr/bin \
+      --with-nick-history=2000 --with-sendq=3000000 \
+      --with-bufferpool=18 --with-hostname=archlinux \
+      --with-permissions=0600 --with-fd-setsize=1024 \
+      --enable-dynamic-linking \
+      --enable-ziplinks \
+      --enable-ssl \
+      --enable-libcurl=/usr \
+      --with-system-cares
+
+  make
+}
+
+package() {
+  cd $srcdir/Unreal$pkgver
+
+  mkdir -p $pkgdir/etc/unrealircd
+  mkdir -p $pkgdir/usr/bin
+
+  make IRCDDIR=$pkgdir/etc/unrealircd BINDIR=$pkgdir/usr/bin install
+
+  mv $srcdir/Unreal$pkgver/src/ircd $pkgdir/usr/bin/unrealircd
+  mv $srcdir/Unreal$pkgver/doc/example.conf $pkgdir/etc/unrealircd/unrealircd.conf
+  mkdir -p $pkgdir/usr/lib/unrealircd
+  mv $pkgdir/etc/unrealircd/modules $pkgdir/usr/lib/unrealircd/
+  ln -s /usr/lib/unrealircd/modules $pkgdir/etc/unrealircd/modules
+
+  # log
+  mkdir -p $pkgdir/var/log/unrealircd/
+  touch $pkgdir/var/log/unrealircd/ircd.log
+  ln -s /var/log/unrealircd/ircd.log $pkgdir/etc/unrealircd/ircd.log
+
+  mkdir -p $pkgdir/etc/conf.d/
+  echo 'UNREALIRCD_USER=root' >$pkgdir/etc/conf.d/unrealircd
+
+  find $pkgdir/usr -type f -exec chmod ugo+r {} \;
+  find $pkgdir/usr -type d -exec chmod ugo+rx {} \;
+
+  install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+}

Deleted: community-x86_64/arch-fixes.patch
===================================================================
--- community-x86_64/arch-fixes.patch	2013-05-13 14:39:25 UTC (rev 90730)
+++ community-x86_64/arch-fixes.patch	2013-05-13 14:39:46 UTC (rev 90731)
@@ -1,89 +0,0 @@
-diff -wbBur Unreal3.2.org/doc/example.conf Unreal3.2/doc/example.conf
---- Unreal3.2.org/doc/example.conf	2009-04-13 15:03:55.000000000 +0400
-+++ Unreal3.2/doc/example.conf	2011-08-29 13:39:25.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.org/src/ircd.c Unreal3.2/src/ircd.c
---- Unreal3.2.org/src/ircd.c	2009-03-01 21:37:58.000000000 +0300
-+++ Unreal3.2/src/ircd.c	2011-08-29 13:39:25.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.org/unreal.in Unreal3.2/unreal.in
---- Unreal3.2.org/unreal.in	2009-03-01 21:37:55.000000000 +0300
-+++ Unreal3.2/unreal.in	2011-08-29 13:39:37.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)"	
-@@ -31,11 +31,11 @@
- 	echo "Restarting UnrealIRCd"
- 	kill -2 `cat $PID_FILE`
- elif [ "$1" = "mkpasswd" ] ; then
--	@BINDIR@ -P $2 $3
-+	@BINDIR@/ircd -P $2 $3
- elif [ "$1" = "version" ] ; then
--	@BINDIR@ -v
-+	@BINDIR@/ircd -v
- elif [ "$1" = "gencloak" ] ; then
--	@BINDIR@ -k
-+	@BINDIR@/ircd -k
- elif [ "$1" = "backtrace" ] ; then
- 	cd @IRCDDIR@
- 
-@@ -90,7 +90,7 @@
- 	fi
- 
- 	# Some ugly prepare work -- ignore errors
--	(echo quit|gdb @BINDIR@ $corefile 2>&1)|\
-+	(echo quit|gdb @BINDIR@/ircd $corefile 2>&1)|\
- 	grep -i 'no such file'|\
- 	awk -F ':' '{ print $1 }'|sort|uniq|\
- 	awk -F '.' "{ system(\"ln -s ../$modpath/\" \$2 \".so \" \$0) }"
-@@ -110,7 +110,7 @@
- quit
- __EOF__
- 
--	gdb -batch -x gdb.commands @BINDIR@ $corefile
-+	gdb -batch -x gdb.commands @BINDIR@/ircd $corefile
- 	rm -f gdb.commands
- 	echo "GCC: `gcc -v 2>&1|tail -n 1`"
- 	echo "UNAME: `uname -a`"

Copied: unrealircd/repos/community-x86_64/arch-fixes.patch (from rev 90730, unrealircd/trunk/arch-fixes.patch)
===================================================================
--- community-x86_64/arch-fixes.patch	                        (rev 0)
+++ community-x86_64/arch-fixes.patch	2013-05-13 14:39:46 UTC (rev 90731)
@@ -0,0 +1,89 @@
+diff -wbBur Unreal3.2.org/doc/example.conf Unreal3.2/doc/example.conf
+--- Unreal3.2.org/doc/example.conf	2009-04-13 15:03:55.000000000 +0400
++++ Unreal3.2/doc/example.conf	2011-08-29 13:39:25.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.org/src/ircd.c Unreal3.2/src/ircd.c
+--- Unreal3.2.org/src/ircd.c	2009-03-01 21:37:58.000000000 +0300
++++ Unreal3.2/src/ircd.c	2011-08-29 13:39:25.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.org/unreal.in Unreal3.2/unreal.in
+--- Unreal3.2.org/unreal.in	2009-03-01 21:37:55.000000000 +0300
++++ Unreal3.2/unreal.in	2011-08-29 13:39:37.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)"	
+@@ -31,11 +31,11 @@
+ 	echo "Restarting UnrealIRCd"
+ 	kill -2 `cat $PID_FILE`
+ elif [ "$1" = "mkpasswd" ] ; then
+-	@BINDIR@ -P $2 $3
++	@BINDIR@/ircd -P $2 $3
+ elif [ "$1" = "version" ] ; then
+-	@BINDIR@ -v
++	@BINDIR@/ircd -v
+ elif [ "$1" = "gencloak" ] ; then
+-	@BINDIR@ -k
++	@BINDIR@/ircd -k
+ elif [ "$1" = "backtrace" ] ; then
+ 	cd @IRCDDIR@
+ 
+@@ -90,7 +90,7 @@
+ 	fi
+ 
+ 	# Some ugly prepare work -- ignore errors
+-	(echo quit|gdb @BINDIR@ $corefile 2>&1)|\
++	(echo quit|gdb @BINDIR@/ircd $corefile 2>&1)|\
+ 	grep -i 'no such file'|\
+ 	awk -F ':' '{ print $1 }'|sort|uniq|\
+ 	awk -F '.' "{ system(\"ln -s ../$modpath/\" \$2 \".so \" \$0) }"
+@@ -110,7 +110,7 @@
+ quit
+ __EOF__
+ 
+-	gdb -batch -x gdb.commands @BINDIR@ $corefile
++	gdb -batch -x gdb.commands @BINDIR@/ircd $corefile
+ 	rm -f gdb.commands
+ 	echo "GCC: `gcc -v 2>&1|tail -n 1`"
+ 	echo "UNAME: `uname -a`"

Deleted: community-x86_64/unrealircd.rc
===================================================================
--- community-x86_64/unrealircd.rc	2013-05-13 14:39:25 UTC (rev 90730)
+++ community-x86_64/unrealircd.rc	2013-05-13 14:39:46 UTC (rev 90731)
@@ -1,62 +0,0 @@
-#!/bin/bash
-
-daemon_name=unrealircd
-
-. /etc/conf.d/unrealircd
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-get_pid() {
-	pidof ircd unrealircd
-}
-
-case "$1" in
-  start)
-    stat_busy "Starting $daemon_name daemon"
-
-    PID=`get_pid`
-    if [ -z "$PID" ]; then
-      [ -f /var/run/$daemon_name.pid ] && rm -f /var/run/$daemon_name.pid
-      # RUN
-      export PID_FILE="/var/run/unrealircd.pid"
-      su -c /usr/bin/unrealircd -p - $UNREALIRCD_USER 1>>/var/log/unrealircd/ircd.log 2>>/var/log/unrealircd/ircd.log
-      #
-      if [ $? -gt 0 ]; then
-        stat_fail
-        exit 1
-      else
-        echo `get_pid` > /var/run/$daemon_name.pid
-        add_daemon $daemon_name
-        stat_done
-      fi
-    else
-      stat_fail
-      exit 1
-    fi
-    ;;
-
-  stop)
-    stat_busy "Stopping $daemon_name daemon"
-    PID=`get_pid`
-    # KILL
-    [ ! -z "$PID" ] && kill $PID &> /dev/null
-    #
-    if [ $? -gt 0 ]; then
-      stat_fail
-      exit 1
-    else
-      rm -f /var/run/$daemon_name.pid &> /dev/null
-      rm_daemon $daemon_name
-      stat_done
-    fi
-    ;;
-
-  restart)
-    $0 stop
-    sleep 3
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac
-exit 0

Deleted: community-x86_64/unrealircd.service
===================================================================
--- community-x86_64/unrealircd.service	2013-05-13 14:39:25 UTC (rev 90730)
+++ community-x86_64/unrealircd.service	2013-05-13 14:39:46 UTC (rev 90731)
@@ -1,12 +0,0 @@
-[Unit]
-Description=IRC daemon
-After=network.target remote-fs.target nss-lookup.target
-
-[Service]
-Type=forking
-User=ircd
-PIDFile=/var/run/unrealircd.pid
-ExecStart=/usr/bin/unrealircd -p
-
-[Install]
-WantedBy=multi-user.target

Copied: unrealircd/repos/community-x86_64/unrealircd.service (from rev 90730, unrealircd/trunk/unrealircd.service)
===================================================================
--- community-x86_64/unrealircd.service	                        (rev 0)
+++ community-x86_64/unrealircd.service	2013-05-13 14:39:46 UTC (rev 90731)
@@ -0,0 +1,12 @@
+[Unit]
+Description=IRC daemon
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+User=ircd
+PIDFile=/var/run/unrealircd.pid
+ExecStart=/usr/bin/unrealircd -p
+
+[Install]
+WantedBy=multi-user.target




More information about the arch-commits mailing list