[arch-commits] Commit in unrealircd/trunk (4 files)

Sergej Pupykin spupykin at archlinux.org
Mon Jan 4 16:28:49 UTC 2016


    Date: Monday, January 4, 2016 @ 17:28:48
  Author: spupykin
Revision: 155455

Added:
  unrealircd/trunk/config.settings
  unrealircd/trunk/install.pl
Modified:
  unrealircd/trunk/PKGBUILD
  unrealircd/trunk/unrealircd.install

--------------------+
 PKGBUILD           |   58 ++++++++++++++-------------------------------------
 config.settings    |   28 ++++++++++++++++++++++++
 install.pl         |    5 ++++
 unrealircd.install |    2 -
 4 files changed, 50 insertions(+), 43 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-01-04 16:21:14 UTC (rev 155454)
+++ PKGBUILD	2016-01-04 16:28:48 UTC (rev 155455)
@@ -3,8 +3,8 @@
 # Contributor: Zerial <fernando at zerial.org>
 
 pkgname=unrealircd
-pkgver=3.2.10.4
-pkgrel=2
+pkgver=4.0.0
+pkgrel=1
 pkgdesc="Open Source IRC Server"
 arch=('i686' 'x86_64')
 url="http://unrealircd.com"
@@ -14,63 +14,37 @@
 provides=('ircd')
 backup=('etc/unrealircd/unrealircd.conf')
 install=unrealircd.install
-source=(http://www.unrealircd.com/downloads/Unreal$pkgver.tar.gz
+source=(https://www.unrealircd.org/unrealircd4/unrealircd-$pkgver.tar.gz
 	unrealircd.service
 	unrealircd.tmpfiles.d
+	config.settings
+	install.pl
 	arch-fixes.patch)
-md5sums=('ea4e303a9783f703ecf7769d4c07a124'
+md5sums=('ea5922554cda40e39a2d6fd7520284f1'
          '677d8de0bae770488a2c1730f9475a51'
          '3ec519ea7dbe99696eb6c51dfc0d382a'
+         'fad1a30c32bf0c75b23e6813d062e19a'
+         '3a23792b03420fc578cf6688b1574ae3'
          '5f4bf9f99f6c78bc9e6ee4ec66b021fa')
 
 prepare() {
-  cd $srcdir/Unreal$pkgver
-  patch -p1 <$srcdir/arch-fixes.patch
+  cd $srcdir/unrealircd-$pkgver
+  cp $srcdir/config.settings .
 }
 
 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
-
+  cd $srcdir/unrealircd-$pkgver
+  ./Config -quick
   make
 }
 
 package() {
-  cd $srcdir/Unreal$pkgver
+  cd $srcdir/unrealircd-$pkgver
 
-  mkdir -p $pkgdir/etc/unrealircd
-  mkdir -p $pkgdir/usr/bin
+  export pkgdir
+  make INSTALL=$srcdir/install.pl install
+  rm -rf $pkgdir/tmp $pkgdir/usr/unrealircd
 
-  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
 }

Added: config.settings
===================================================================
--- config.settings	                        (rev 0)
+++ config.settings	2016-01-04 16:28:48 UTC (rev 155455)
@@ -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=""

Added: install.pl
===================================================================
--- install.pl	                        (rev 0)
+++ install.pl	2016-01-04 16:28:48 UTC (rev 155455)
@@ -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);


Property changes on: unrealircd/trunk/install.pl
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id Date Url Revision Author
\ No newline at end of property
Modified: unrealircd.install
===================================================================
--- unrealircd.install	2016-01-04 16:21:14 UTC (rev 155454)
+++ unrealircd.install	2016-01-04 16:28:48 UTC (rev 155455)
@@ -1,6 +1,6 @@
 post_install() {
   getent passwd ircd >/dev/null || useradd -r ircd
-  chown -R ircd etc/unrealircd var/log/unrealircd
+  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"



More information about the arch-commits mailing list