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

Sergej Pupykin spupykin at archlinux.org
Mon Jan 4 16:33:01 UTC 2016


    Date: Monday, January 4, 2016 @ 17:33:00
  Author: spupykin
Revision: 155456

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

Added:
  unrealircd/repos/community-i686/PKGBUILD
    (from rev 155455, unrealircd/trunk/PKGBUILD)
  unrealircd/repos/community-i686/arch-fixes.patch
    (from rev 155455, unrealircd/trunk/arch-fixes.patch)
  unrealircd/repos/community-i686/config.settings
    (from rev 155455, unrealircd/trunk/config.settings)
  unrealircd/repos/community-i686/install.pl
    (from rev 155455, unrealircd/trunk/install.pl)
  unrealircd/repos/community-i686/unrealircd.install
    (from rev 155455, unrealircd/trunk/unrealircd.install)
  unrealircd/repos/community-i686/unrealircd.service
    (from rev 155455, unrealircd/trunk/unrealircd.service)
  unrealircd/repos/community-i686/unrealircd.tmpfiles.d
    (from rev 155455, unrealircd/trunk/unrealircd.tmpfiles.d)
  unrealircd/repos/community-x86_64/PKGBUILD
    (from rev 155455, unrealircd/trunk/PKGBUILD)
  unrealircd/repos/community-x86_64/arch-fixes.patch
    (from rev 155455, unrealircd/trunk/arch-fixes.patch)
  unrealircd/repos/community-x86_64/config.settings
    (from rev 155455, unrealircd/trunk/config.settings)
  unrealircd/repos/community-x86_64/install.pl
    (from rev 155455, unrealircd/trunk/install.pl)
  unrealircd/repos/community-x86_64/unrealircd.install
    (from rev 155455, unrealircd/trunk/unrealircd.install)
  unrealircd/repos/community-x86_64/unrealircd.service
    (from rev 155455, unrealircd/trunk/unrealircd.service)
  unrealircd/repos/community-x86_64/unrealircd.tmpfiles.d
    (from rev 155455, unrealircd/trunk/unrealircd.tmpfiles.d)
Deleted:
  unrealircd/repos/community-i686/PKGBUILD
  unrealircd/repos/community-i686/arch-fixes.patch
  unrealircd/repos/community-i686/unrealircd.install
  unrealircd/repos/community-i686/unrealircd.service
  unrealircd/repos/community-i686/unrealircd.tmpfiles.d
  unrealircd/repos/community-x86_64/PKGBUILD
  unrealircd/repos/community-x86_64/arch-fixes.patch
  unrealircd/repos/community-x86_64/unrealircd.install
  unrealircd/repos/community-x86_64/unrealircd.service
  unrealircd/repos/community-x86_64/unrealircd.tmpfiles.d

----------------------------------------+
 /PKGBUILD                              |  100 +++++++++++++++++++++++++++
 /arch-fixes.patch                      |  112 +++++++++++++++++++++++++++++++
 /unrealircd.install                    |   24 ++++++
 /unrealircd.service                    |   24 ++++++
 /unrealircd.tmpfiles.d                 |    2 
 community-i686/PKGBUILD                |   76 ---------------------
 community-i686/arch-fixes.patch        |   56 ---------------
 community-i686/config.settings         |   28 +++++++
 community-i686/install.pl              |    5 +
 community-i686/unrealircd.install      |   12 ---
 community-i686/unrealircd.service      |   12 ---
 community-i686/unrealircd.tmpfiles.d   |    1 
 community-x86_64/PKGBUILD              |   76 ---------------------
 community-x86_64/arch-fixes.patch      |   56 ---------------
 community-x86_64/config.settings       |   28 +++++++
 community-x86_64/install.pl            |    5 +
 community-x86_64/unrealircd.install    |   12 ---
 community-x86_64/unrealircd.service    |   12 ---
 community-x86_64/unrealircd.tmpfiles.d |    1 
 19 files changed, 328 insertions(+), 314 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2016-01-04 16:28:48 UTC (rev 155455)
+++ community-i686/PKGBUILD	2016-01-04 16:33:00 UTC (rev 155456)
@@ -1,76 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Zerial <fernando at zerial.org>
-
-pkgname=unrealircd
-pkgver=3.2.10.4
-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')
-install=unrealircd.install
-source=(http://www.unrealircd.com/downloads/Unreal$pkgver.tar.gz
-	unrealircd.service
-	unrealircd.tmpfiles.d
-	arch-fixes.patch)
-md5sums=('ea4e303a9783f703ecf7769d4c07a124'
-         '677d8de0bae770488a2c1730f9475a51'
-         '3ec519ea7dbe99696eb6c51dfc0d382a'
-         '5f4bf9f99f6c78bc9e6ee4ec66b021fa')
-
-prepare() {
-  cd $srcdir/Unreal$pkgver
-  patch -p1 <$srcdir/arch-fixes.patch
-}
-
-build() {
-  cd $srcdir/Unreal$pkgver
-
-  ac_cv_ip6=yes ./configure --with-showlistmodes \
-      --enable-prefixaq --with-listen=5 \
-      --with-dpath=/etc/unrealircd \
-      --with-spath=/usr/bin \
-      --with-nick-history=2000 --with-sendq=3000000 \
-      --with-bufferpool=18 \
-      --with-permissions=0600 --with-fd-setsize=1024 \
-      --enable-dynamic-linking \
-      --enable-ziplinks \
-      --enable-ssl \
-      --enable-inet6 \
-      --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
-
-  find $pkgdir/usr -type f -exec chmod ugo+r {} \;
-  find $pkgdir/usr -type d -exec chmod ugo+rx {} \;
-
-  rm -f $pkgdir/etc/unrealircd/unreal
-  install -Dm0644 $srcdir/unrealircd.service $pkgdir/usr/lib/systemd/system/unrealircd.service
-  install -Dm0644 $srcdir/unrealircd.tmpfiles.d $pkgdir/usr/lib/tmpfiles.d/unrealircd.conf
-}

Copied: unrealircd/repos/community-i686/PKGBUILD (from rev 155455, unrealircd/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Zerial <fernando at zerial.org>
+
+pkgname=unrealircd
+pkgver=4.0.0
+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')
+install=unrealircd.install
+source=(https://www.unrealircd.org/unrealircd4/unrealircd-$pkgver.tar.gz
+	unrealircd.service
+	unrealircd.tmpfiles.d
+	config.settings
+	install.pl
+	arch-fixes.patch)
+md5sums=('ea5922554cda40e39a2d6fd7520284f1'
+         '677d8de0bae770488a2c1730f9475a51'
+         '3ec519ea7dbe99696eb6c51dfc0d382a'
+         'fad1a30c32bf0c75b23e6813d062e19a'
+         '3a23792b03420fc578cf6688b1574ae3'
+         '5f4bf9f99f6c78bc9e6ee4ec66b021fa')
+
+prepare() {
+  cd $srcdir/unrealircd-$pkgver
+  cp $srcdir/config.settings .
+}
+
+build() {
+  cd $srcdir/unrealircd-$pkgver
+  ./Config -quick
+  make
+}
+
+package() {
+  cd $srcdir/unrealircd-$pkgver
+
+  export pkgdir
+  make INSTALL=$srcdir/install.pl install
+  rm -rf $pkgdir/tmp $pkgdir/usr/unrealircd
+
+  install -Dm0644 $srcdir/unrealircd.service $pkgdir/usr/lib/systemd/system/unrealircd.service
+  install -Dm0644 $srcdir/unrealircd.tmpfiles.d $pkgdir/usr/lib/tmpfiles.d/unrealircd.conf
+}

Deleted: community-i686/arch-fixes.patch
===================================================================
--- community-i686/arch-fixes.patch	2016-01-04 16:28:48 UTC (rev 155455)
+++ community-i686/arch-fixes.patch	2016-01-04 16:33:00 UTC (rev 155456)
@@ -1,56 +0,0 @@
-diff -wbBur Unreal3.2.10.2.org/doc/example.conf Unreal3.2.10.2/doc/example.conf
---- Unreal3.2.10.2.org/doc/example.conf	2013-11-24 23:24:26.000000000 +0400
-+++ Unreal3.2.10.2/doc/example.conf	2014-01-27 14:38:16.669081776 +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.10.2.org/include/config.h Unreal3.2.10.2/include/config.h
---- Unreal3.2.10.2.org/include/config.h	2013-11-24 23:24:26.000000000 +0400
-+++ Unreal3.2.10.2/include/config.h	2014-01-27 14:38:53.349081379 +0400
-@@ -248,7 +248,7 @@
- #define RPATH   	"ircd.rules"	/* server rules file */
- #define OPATH   	"oper.motd"	/* Operators MOTD file */
- #define	LPATH		"debug.log"	/* Where the debug file lives, if DEBUGMODE */
--#define	PPATH		"ircd.pid"	/* file for server pid */
-+#define	PPATH		"/run/unrealircd/ircd.pid"	/* file for server pid */
- #define VPATH		"ircd.svsmotd"	/* Services MOTD append. */
- #define BPATH		"bot.motd"	/* Bot MOTD */
- #define IRCDTUNE 	"ircd.tune"	/* tuning .. */
-diff -wbBur Unreal3.2.10.2.org/src/ircd.c Unreal3.2.10.2/src/ircd.c
---- Unreal3.2.10.2.org/src/ircd.c	2013-11-24 23:24:26.000000000 +0400
-+++ Unreal3.2.10.2/src/ircd.c	2014-01-27 14:38:16.669081776 +0400
-@@ -840,7 +840,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))
-@@ -850,7 +850,7 @@
- 		error=1;
- 	}
- #endif
--#ifdef ZIP_LINKS
-+#if 0
- 	runtime = zlibVersion();
- 	compiledfor = ZLIB_VERSION;
- 	if (*compiledfor != *runtime)
-@@ -860,7 +860,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'.

Copied: unrealircd/repos/community-i686/arch-fixes.patch (from rev 155455, unrealircd/trunk/arch-fixes.patch)
===================================================================
--- community-i686/arch-fixes.patch	                        (rev 0)
+++ community-i686/arch-fixes.patch	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1,56 @@
+diff -wbBur Unreal3.2.10.2.org/doc/example.conf Unreal3.2.10.2/doc/example.conf
+--- Unreal3.2.10.2.org/doc/example.conf	2013-11-24 23:24:26.000000000 +0400
++++ Unreal3.2.10.2/doc/example.conf	2014-01-27 14:38:16.669081776 +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.10.2.org/include/config.h Unreal3.2.10.2/include/config.h
+--- Unreal3.2.10.2.org/include/config.h	2013-11-24 23:24:26.000000000 +0400
++++ Unreal3.2.10.2/include/config.h	2014-01-27 14:38:53.349081379 +0400
+@@ -248,7 +248,7 @@
+ #define RPATH   	"ircd.rules"	/* server rules file */
+ #define OPATH   	"oper.motd"	/* Operators MOTD file */
+ #define	LPATH		"debug.log"	/* Where the debug file lives, if DEBUGMODE */
+-#define	PPATH		"ircd.pid"	/* file for server pid */
++#define	PPATH		"/run/unrealircd/ircd.pid"	/* file for server pid */
+ #define VPATH		"ircd.svsmotd"	/* Services MOTD append. */
+ #define BPATH		"bot.motd"	/* Bot MOTD */
+ #define IRCDTUNE 	"ircd.tune"	/* tuning .. */
+diff -wbBur Unreal3.2.10.2.org/src/ircd.c Unreal3.2.10.2/src/ircd.c
+--- Unreal3.2.10.2.org/src/ircd.c	2013-11-24 23:24:26.000000000 +0400
++++ Unreal3.2.10.2/src/ircd.c	2014-01-27 14:38:16.669081776 +0400
+@@ -840,7 +840,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))
+@@ -850,7 +850,7 @@
+ 		error=1;
+ 	}
+ #endif
+-#ifdef ZIP_LINKS
++#if 0
+ 	runtime = zlibVersion();
+ 	compiledfor = ZLIB_VERSION;
+ 	if (*compiledfor != *runtime)
+@@ -860,7 +860,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'.

Copied: unrealircd/repos/community-i686/config.settings (from rev 155455, unrealircd/trunk/config.settings)
===================================================================
--- community-i686/config.settings	                        (rev 0)
+++ community-i686/config.settings	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1,28 @@
+#
+BASEPATH="/usr"
+BINDIR="/usr/bin"
+DATADIR="/usr/share/unrealircd"
+CONFDIR="/etc/unrealircd"
+MODULESDIR="/usr/lib/unrealircd"
+LOGDIR="/var/log/unrealircd"
+CACHEDIR="/var/cache/unrealircd"
+DOCDIR="/usr/share/doc/unrealircd"
+TMPDIR="/tmp"
+PREFIXAQ="1"
+MAXSENDQLENGTH="3000000"
+MAXCONNECTIONS="1024"
+NICKNAMEHISTORYLENGTH="2000"
+DEFPERM="0600"
+SSLDIR="/usr"
+REMOTEINC=""
+CURLDIR="/usr"
+SHOWLISTMODES="1"
+TOPICNICKISNUH=""
+SHUNNOTICES=""
+NOOPEROVERRIDE=""
+DISABLEUSERMOD=""
+OPEROVERRIDEVERIFY=""
+DISABLEEXTBANSTACKING=""
+GENCERTIFICATE="1"
+EXTRAPARA=""
+ADVANCED=""

Copied: unrealircd/repos/community-i686/install.pl (from rev 155455, unrealircd/trunk/install.pl)
===================================================================
--- community-i686/install.pl	                        (rev 0)
+++ community-i686/install.pl	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1,5 @@
+#!/usr/bin/perl -w
+use Env qw(pkgdir);
+my $last = pop @ARGV;
+my $cmd = "/usr/bin/install ".(join ' ', at ARGV)." $pkgdir/$last";
+system($cmd);

Deleted: community-i686/unrealircd.install
===================================================================
--- community-i686/unrealircd.install	2016-01-04 16:28:48 UTC (rev 155455)
+++ community-i686/unrealircd.install	2016-01-04 16:33:00 UTC (rev 155456)
@@ -1,12 +0,0 @@
-post_install() {
-  getent passwd ircd >/dev/null || useradd -r ircd
-  chown -R ircd etc/unrealircd var/log/unrealircd
-  systemd-tmpfiles --create unrealircd.conf
-  echo "SSL is enabled by default, so you need to create pem files"
-  echo "unrealircd.conf needs adjustments"
-  echo "See also: https://wiki.archlinux.org/index.php/UnrealIRCd"
-}
-
-post_upgrade() {
-  post_install
-}

Copied: unrealircd/repos/community-i686/unrealircd.install (from rev 155455, unrealircd/trunk/unrealircd.install)
===================================================================
--- community-i686/unrealircd.install	                        (rev 0)
+++ community-i686/unrealircd.install	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1,12 @@
+post_install() {
+  getent passwd ircd >/dev/null || useradd -r ircd
+  chown -R ircd {etc,var/{cache,log}}/unrealircd
+  systemd-tmpfiles --create unrealircd.conf
+  echo "SSL is enabled by default, so you need to create pem files"
+  echo "unrealircd.conf needs adjustments"
+  echo "See also: https://wiki.archlinux.org/index.php/UnrealIRCd"
+}
+
+post_upgrade() {
+  post_install
+}

Deleted: community-i686/unrealircd.service
===================================================================
--- community-i686/unrealircd.service	2016-01-04 16:28:48 UTC (rev 155455)
+++ community-i686/unrealircd.service	2016-01-04 16:33:00 UTC (rev 155456)
@@ -1,12 +0,0 @@
-[Unit]
-Description=IRC daemon
-After=network.target remote-fs.target nss-lookup.target
-
-[Service]
-Type=forking
-User=ircd
-PIDFile=/run/unrealircd/ircd.pid
-ExecStart=/usr/bin/unrealircd
-
-[Install]
-WantedBy=multi-user.target

Copied: unrealircd/repos/community-i686/unrealircd.service (from rev 155455, unrealircd/trunk/unrealircd.service)
===================================================================
--- community-i686/unrealircd.service	                        (rev 0)
+++ community-i686/unrealircd.service	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1,12 @@
+[Unit]
+Description=IRC daemon
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+User=ircd
+PIDFile=/run/unrealircd/ircd.pid
+ExecStart=/usr/bin/unrealircd
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-i686/unrealircd.tmpfiles.d
===================================================================
--- community-i686/unrealircd.tmpfiles.d	2016-01-04 16:28:48 UTC (rev 155455)
+++ community-i686/unrealircd.tmpfiles.d	2016-01-04 16:33:00 UTC (rev 155456)
@@ -1 +0,0 @@
-d /run/unrealircd 0755 ircd root -

Copied: unrealircd/repos/community-i686/unrealircd.tmpfiles.d (from rev 155455, unrealircd/trunk/unrealircd.tmpfiles.d)
===================================================================
--- community-i686/unrealircd.tmpfiles.d	                        (rev 0)
+++ community-i686/unrealircd.tmpfiles.d	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1 @@
+d /run/unrealircd 0755 ircd root -

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2016-01-04 16:28:48 UTC (rev 155455)
+++ community-x86_64/PKGBUILD	2016-01-04 16:33:00 UTC (rev 155456)
@@ -1,76 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Zerial <fernando at zerial.org>
-
-pkgname=unrealircd
-pkgver=3.2.10.4
-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')
-install=unrealircd.install
-source=(http://www.unrealircd.com/downloads/Unreal$pkgver.tar.gz
-	unrealircd.service
-	unrealircd.tmpfiles.d
-	arch-fixes.patch)
-md5sums=('ea4e303a9783f703ecf7769d4c07a124'
-         '677d8de0bae770488a2c1730f9475a51'
-         '3ec519ea7dbe99696eb6c51dfc0d382a'
-         '5f4bf9f99f6c78bc9e6ee4ec66b021fa')
-
-prepare() {
-  cd $srcdir/Unreal$pkgver
-  patch -p1 <$srcdir/arch-fixes.patch
-}
-
-build() {
-  cd $srcdir/Unreal$pkgver
-
-  ac_cv_ip6=yes ./configure --with-showlistmodes \
-      --enable-prefixaq --with-listen=5 \
-      --with-dpath=/etc/unrealircd \
-      --with-spath=/usr/bin \
-      --with-nick-history=2000 --with-sendq=3000000 \
-      --with-bufferpool=18 \
-      --with-permissions=0600 --with-fd-setsize=1024 \
-      --enable-dynamic-linking \
-      --enable-ziplinks \
-      --enable-ssl \
-      --enable-inet6 \
-      --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
-
-  find $pkgdir/usr -type f -exec chmod ugo+r {} \;
-  find $pkgdir/usr -type d -exec chmod ugo+rx {} \;
-
-  rm -f $pkgdir/etc/unrealircd/unreal
-  install -Dm0644 $srcdir/unrealircd.service $pkgdir/usr/lib/systemd/system/unrealircd.service
-  install -Dm0644 $srcdir/unrealircd.tmpfiles.d $pkgdir/usr/lib/tmpfiles.d/unrealircd.conf
-}

Copied: unrealircd/repos/community-x86_64/PKGBUILD (from rev 155455, unrealircd/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Zerial <fernando at zerial.org>
+
+pkgname=unrealircd
+pkgver=4.0.0
+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')
+install=unrealircd.install
+source=(https://www.unrealircd.org/unrealircd4/unrealircd-$pkgver.tar.gz
+	unrealircd.service
+	unrealircd.tmpfiles.d
+	config.settings
+	install.pl
+	arch-fixes.patch)
+md5sums=('ea5922554cda40e39a2d6fd7520284f1'
+         '677d8de0bae770488a2c1730f9475a51'
+         '3ec519ea7dbe99696eb6c51dfc0d382a'
+         'fad1a30c32bf0c75b23e6813d062e19a'
+         '3a23792b03420fc578cf6688b1574ae3'
+         '5f4bf9f99f6c78bc9e6ee4ec66b021fa')
+
+prepare() {
+  cd $srcdir/unrealircd-$pkgver
+  cp $srcdir/config.settings .
+}
+
+build() {
+  cd $srcdir/unrealircd-$pkgver
+  ./Config -quick
+  make
+}
+
+package() {
+  cd $srcdir/unrealircd-$pkgver
+
+  export pkgdir
+  make INSTALL=$srcdir/install.pl install
+  rm -rf $pkgdir/tmp $pkgdir/usr/unrealircd
+
+  install -Dm0644 $srcdir/unrealircd.service $pkgdir/usr/lib/systemd/system/unrealircd.service
+  install -Dm0644 $srcdir/unrealircd.tmpfiles.d $pkgdir/usr/lib/tmpfiles.d/unrealircd.conf
+}

Deleted: community-x86_64/arch-fixes.patch
===================================================================
--- community-x86_64/arch-fixes.patch	2016-01-04 16:28:48 UTC (rev 155455)
+++ community-x86_64/arch-fixes.patch	2016-01-04 16:33:00 UTC (rev 155456)
@@ -1,56 +0,0 @@
-diff -wbBur Unreal3.2.10.2.org/doc/example.conf Unreal3.2.10.2/doc/example.conf
---- Unreal3.2.10.2.org/doc/example.conf	2013-11-24 23:24:26.000000000 +0400
-+++ Unreal3.2.10.2/doc/example.conf	2014-01-27 14:38:16.669081776 +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.10.2.org/include/config.h Unreal3.2.10.2/include/config.h
---- Unreal3.2.10.2.org/include/config.h	2013-11-24 23:24:26.000000000 +0400
-+++ Unreal3.2.10.2/include/config.h	2014-01-27 14:38:53.349081379 +0400
-@@ -248,7 +248,7 @@
- #define RPATH   	"ircd.rules"	/* server rules file */
- #define OPATH   	"oper.motd"	/* Operators MOTD file */
- #define	LPATH		"debug.log"	/* Where the debug file lives, if DEBUGMODE */
--#define	PPATH		"ircd.pid"	/* file for server pid */
-+#define	PPATH		"/run/unrealircd/ircd.pid"	/* file for server pid */
- #define VPATH		"ircd.svsmotd"	/* Services MOTD append. */
- #define BPATH		"bot.motd"	/* Bot MOTD */
- #define IRCDTUNE 	"ircd.tune"	/* tuning .. */
-diff -wbBur Unreal3.2.10.2.org/src/ircd.c Unreal3.2.10.2/src/ircd.c
---- Unreal3.2.10.2.org/src/ircd.c	2013-11-24 23:24:26.000000000 +0400
-+++ Unreal3.2.10.2/src/ircd.c	2014-01-27 14:38:16.669081776 +0400
-@@ -840,7 +840,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))
-@@ -850,7 +850,7 @@
- 		error=1;
- 	}
- #endif
--#ifdef ZIP_LINKS
-+#if 0
- 	runtime = zlibVersion();
- 	compiledfor = ZLIB_VERSION;
- 	if (*compiledfor != *runtime)
-@@ -860,7 +860,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'.

Copied: unrealircd/repos/community-x86_64/arch-fixes.patch (from rev 155455, unrealircd/trunk/arch-fixes.patch)
===================================================================
--- community-x86_64/arch-fixes.patch	                        (rev 0)
+++ community-x86_64/arch-fixes.patch	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1,56 @@
+diff -wbBur Unreal3.2.10.2.org/doc/example.conf Unreal3.2.10.2/doc/example.conf
+--- Unreal3.2.10.2.org/doc/example.conf	2013-11-24 23:24:26.000000000 +0400
++++ Unreal3.2.10.2/doc/example.conf	2014-01-27 14:38:16.669081776 +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.10.2.org/include/config.h Unreal3.2.10.2/include/config.h
+--- Unreal3.2.10.2.org/include/config.h	2013-11-24 23:24:26.000000000 +0400
++++ Unreal3.2.10.2/include/config.h	2014-01-27 14:38:53.349081379 +0400
+@@ -248,7 +248,7 @@
+ #define RPATH   	"ircd.rules"	/* server rules file */
+ #define OPATH   	"oper.motd"	/* Operators MOTD file */
+ #define	LPATH		"debug.log"	/* Where the debug file lives, if DEBUGMODE */
+-#define	PPATH		"ircd.pid"	/* file for server pid */
++#define	PPATH		"/run/unrealircd/ircd.pid"	/* file for server pid */
+ #define VPATH		"ircd.svsmotd"	/* Services MOTD append. */
+ #define BPATH		"bot.motd"	/* Bot MOTD */
+ #define IRCDTUNE 	"ircd.tune"	/* tuning .. */
+diff -wbBur Unreal3.2.10.2.org/src/ircd.c Unreal3.2.10.2/src/ircd.c
+--- Unreal3.2.10.2.org/src/ircd.c	2013-11-24 23:24:26.000000000 +0400
++++ Unreal3.2.10.2/src/ircd.c	2014-01-27 14:38:16.669081776 +0400
+@@ -840,7 +840,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))
+@@ -850,7 +850,7 @@
+ 		error=1;
+ 	}
+ #endif
+-#ifdef ZIP_LINKS
++#if 0
+ 	runtime = zlibVersion();
+ 	compiledfor = ZLIB_VERSION;
+ 	if (*compiledfor != *runtime)
+@@ -860,7 +860,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'.

Copied: unrealircd/repos/community-x86_64/config.settings (from rev 155455, unrealircd/trunk/config.settings)
===================================================================
--- community-x86_64/config.settings	                        (rev 0)
+++ community-x86_64/config.settings	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1,28 @@
+#
+BASEPATH="/usr"
+BINDIR="/usr/bin"
+DATADIR="/usr/share/unrealircd"
+CONFDIR="/etc/unrealircd"
+MODULESDIR="/usr/lib/unrealircd"
+LOGDIR="/var/log/unrealircd"
+CACHEDIR="/var/cache/unrealircd"
+DOCDIR="/usr/share/doc/unrealircd"
+TMPDIR="/tmp"
+PREFIXAQ="1"
+MAXSENDQLENGTH="3000000"
+MAXCONNECTIONS="1024"
+NICKNAMEHISTORYLENGTH="2000"
+DEFPERM="0600"
+SSLDIR="/usr"
+REMOTEINC=""
+CURLDIR="/usr"
+SHOWLISTMODES="1"
+TOPICNICKISNUH=""
+SHUNNOTICES=""
+NOOPEROVERRIDE=""
+DISABLEUSERMOD=""
+OPEROVERRIDEVERIFY=""
+DISABLEEXTBANSTACKING=""
+GENCERTIFICATE="1"
+EXTRAPARA=""
+ADVANCED=""

Copied: unrealircd/repos/community-x86_64/install.pl (from rev 155455, unrealircd/trunk/install.pl)
===================================================================
--- community-x86_64/install.pl	                        (rev 0)
+++ community-x86_64/install.pl	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1,5 @@
+#!/usr/bin/perl -w
+use Env qw(pkgdir);
+my $last = pop @ARGV;
+my $cmd = "/usr/bin/install ".(join ' ', at ARGV)." $pkgdir/$last";
+system($cmd);

Deleted: community-x86_64/unrealircd.install
===================================================================
--- community-x86_64/unrealircd.install	2016-01-04 16:28:48 UTC (rev 155455)
+++ community-x86_64/unrealircd.install	2016-01-04 16:33:00 UTC (rev 155456)
@@ -1,12 +0,0 @@
-post_install() {
-  getent passwd ircd >/dev/null || useradd -r ircd
-  chown -R ircd etc/unrealircd var/log/unrealircd
-  systemd-tmpfiles --create unrealircd.conf
-  echo "SSL is enabled by default, so you need to create pem files"
-  echo "unrealircd.conf needs adjustments"
-  echo "See also: https://wiki.archlinux.org/index.php/UnrealIRCd"
-}
-
-post_upgrade() {
-  post_install
-}

Copied: unrealircd/repos/community-x86_64/unrealircd.install (from rev 155455, unrealircd/trunk/unrealircd.install)
===================================================================
--- community-x86_64/unrealircd.install	                        (rev 0)
+++ community-x86_64/unrealircd.install	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1,12 @@
+post_install() {
+  getent passwd ircd >/dev/null || useradd -r ircd
+  chown -R ircd {etc,var/{cache,log}}/unrealircd
+  systemd-tmpfiles --create unrealircd.conf
+  echo "SSL is enabled by default, so you need to create pem files"
+  echo "unrealircd.conf needs adjustments"
+  echo "See also: https://wiki.archlinux.org/index.php/UnrealIRCd"
+}
+
+post_upgrade() {
+  post_install
+}

Deleted: community-x86_64/unrealircd.service
===================================================================
--- community-x86_64/unrealircd.service	2016-01-04 16:28:48 UTC (rev 155455)
+++ community-x86_64/unrealircd.service	2016-01-04 16:33:00 UTC (rev 155456)
@@ -1,12 +0,0 @@
-[Unit]
-Description=IRC daemon
-After=network.target remote-fs.target nss-lookup.target
-
-[Service]
-Type=forking
-User=ircd
-PIDFile=/run/unrealircd/ircd.pid
-ExecStart=/usr/bin/unrealircd
-
-[Install]
-WantedBy=multi-user.target

Copied: unrealircd/repos/community-x86_64/unrealircd.service (from rev 155455, unrealircd/trunk/unrealircd.service)
===================================================================
--- community-x86_64/unrealircd.service	                        (rev 0)
+++ community-x86_64/unrealircd.service	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1,12 @@
+[Unit]
+Description=IRC daemon
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+User=ircd
+PIDFile=/run/unrealircd/ircd.pid
+ExecStart=/usr/bin/unrealircd
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-x86_64/unrealircd.tmpfiles.d
===================================================================
--- community-x86_64/unrealircd.tmpfiles.d	2016-01-04 16:28:48 UTC (rev 155455)
+++ community-x86_64/unrealircd.tmpfiles.d	2016-01-04 16:33:00 UTC (rev 155456)
@@ -1 +0,0 @@
-d /run/unrealircd 0755 ircd root -

Copied: unrealircd/repos/community-x86_64/unrealircd.tmpfiles.d (from rev 155455, unrealircd/trunk/unrealircd.tmpfiles.d)
===================================================================
--- community-x86_64/unrealircd.tmpfiles.d	                        (rev 0)
+++ community-x86_64/unrealircd.tmpfiles.d	2016-01-04 16:33:00 UTC (rev 155456)
@@ -0,0 +1 @@
+d /run/unrealircd 0755 ircd root -



More information about the arch-commits mailing list