[arch-commits] Commit in unrealircd/repos (12 files)
Sergej Pupykin
spupykin at archlinux.org
Fri Feb 17 21:20:16 UTC 2017
Date: Friday, February 17, 2017 @ 21:20:15
Author: spupykin
Revision: 212988
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
unrealircd/repos/community-staging-i686/
unrealircd/repos/community-staging-i686/PKGBUILD
(from rev 212987, unrealircd/trunk/PKGBUILD)
unrealircd/repos/community-staging-i686/install.pl
(from rev 212987, unrealircd/trunk/install.pl)
unrealircd/repos/community-staging-i686/unrealircd.install
(from rev 212987, unrealircd/trunk/unrealircd.install)
unrealircd/repos/community-staging-i686/unrealircd.service
(from rev 212987, unrealircd/trunk/unrealircd.service)
unrealircd/repos/community-staging-i686/unrealircd.tmpfiles.d
(from rev 212987, unrealircd/trunk/unrealircd.tmpfiles.d)
unrealircd/repos/community-staging-x86_64/
unrealircd/repos/community-staging-x86_64/PKGBUILD
(from rev 212987, unrealircd/trunk/PKGBUILD)
unrealircd/repos/community-staging-x86_64/install.pl
(from rev 212987, unrealircd/trunk/install.pl)
unrealircd/repos/community-staging-x86_64/unrealircd.install
(from rev 212987, unrealircd/trunk/unrealircd.install)
unrealircd/repos/community-staging-x86_64/unrealircd.service
(from rev 212987, unrealircd/trunk/unrealircd.service)
unrealircd/repos/community-staging-x86_64/unrealircd.tmpfiles.d
(from rev 212987, unrealircd/trunk/unrealircd.tmpfiles.d)
------------------------------------------------+
community-staging-i686/PKGBUILD | 68 +++++++++++++++++++++++
community-staging-i686/install.pl | 5 +
community-staging-i686/unrealircd.install | 11 +++
community-staging-i686/unrealircd.service | 12 ++++
community-staging-i686/unrealircd.tmpfiles.d | 1
community-staging-x86_64/PKGBUILD | 68 +++++++++++++++++++++++
community-staging-x86_64/install.pl | 5 +
community-staging-x86_64/unrealircd.install | 11 +++
community-staging-x86_64/unrealircd.service | 12 ++++
community-staging-x86_64/unrealircd.tmpfiles.d | 1
10 files changed, 194 insertions(+)
Copied: unrealircd/repos/community-staging-i686/PKGBUILD (from rev 212987, unrealircd/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-02-17 21:20:15 UTC (rev 212988)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Zerial <fernando at zerial.org>
+
+pkgname=unrealircd
+pkgver=4.0.11
+pkgrel=2
+pkgdesc="Open Source IRC Server"
+arch=('i686' 'x86_64')
+url="http://unrealircd.com"
+license=('GPL2')
+depends=('openssl' 'curl' 'c-ares' 'tre' 'pcre2')
+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
+ install.pl)
+sha256sums=('6733dad62ce29fa082c9901cfadd79f0fdbfcde204979c1264ab29791d2a67ff'
+ '0a6d3c269ba5379f967b2ec035ad4c6226d42ce22ffaaf8c3e5b37ba8ee02ddd'
+ '2b2efb4b87b5b270e87fc0187ac1c559d41a41e6c81615182dc2bdd18bfcaccd'
+ '43f07093ada8eb5c954f9e2e189610575906c690c0953fec041d4f2d31210d85')
+
+prepare() {
+ cd "$srcdir"/unrealircd-$pkgver
+ sed -i \
+ -e 's|$(INSTALL) -m 0700|$(INSTALL) -m 0755|g' \
+ -e 's|$(INSTALL) -m 0600|$(INSTALL) -m 0644|g' \
+ Makefile.in
+}
+
+build() {
+ cd "$srcdir"/unrealircd-$pkgver
+ ./configure \
+ --with-pidfile=/run/unrealircd/ircd.pid \
+ --with-showlistmodes \
+ --enable-ssl=/usr \
+ --with-bindir=/usr/bin \
+ --with-datadir=/var/lib/unrealircd \
+ --with-confdir=/etc/unrealircd \
+ --with-modulesdir=/usr/lib/unrealircd \
+ --with-logdir=/var/log/unrealircd \
+ --with-cachedir=/var/cache/unrealircd \
+ --with-docdir=/usr/share/doc/unrealircd \
+ --with-tmpdir=/tmp \
+ --with-scriptdir=/usr \
+ --with-nick-history=2000 \
+ --with-sendq=3000000 \
+ --with-permissions=0644 \
+ --with-fd-setsize=1024 \
+ --enable-dynamic-linking
+ make
+}
+
+package() {
+ cd "$srcdir"/unrealircd-$pkgver
+
+ export pkgdir
+ make INSTALL="$srcdir"/install.pl install
+ mv "$pkgdir"/usr/unrealircd "$pkgdir"/etc/unrealircd/unrealircd
+ cp "$pkgdir"/etc/unrealircd/examples/example.conf "$pkgdir"/etc/unrealircd/unrealircd.conf
+ rm -rf "$pkgdir"/tmp
+
+ 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-staging-i686/install.pl (from rev 212987, unrealircd/trunk/install.pl)
===================================================================
--- community-staging-i686/install.pl (rev 0)
+++ community-staging-i686/install.pl 2017-02-17 21:20:15 UTC (rev 212988)
@@ -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);
Copied: unrealircd/repos/community-staging-i686/unrealircd.install (from rev 212987, unrealircd/trunk/unrealircd.install)
===================================================================
--- community-staging-i686/unrealircd.install (rev 0)
+++ community-staging-i686/unrealircd.install 2017-02-17 21:20:15 UTC (rev 212988)
@@ -0,0 +1,11 @@
+post_install() {
+ getent passwd ircd >/dev/null || useradd -r ircd -d /var/empty
+ chown -R ircd {etc,var/{cache,log,lib}}/unrealircd
+ 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-staging-i686/unrealircd.service (from rev 212987, unrealircd/trunk/unrealircd.service)
===================================================================
--- community-staging-i686/unrealircd.service (rev 0)
+++ community-staging-i686/unrealircd.service 2017-02-17 21:20:15 UTC (rev 212988)
@@ -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
Copied: unrealircd/repos/community-staging-i686/unrealircd.tmpfiles.d (from rev 212987, unrealircd/trunk/unrealircd.tmpfiles.d)
===================================================================
--- community-staging-i686/unrealircd.tmpfiles.d (rev 0)
+++ community-staging-i686/unrealircd.tmpfiles.d 2017-02-17 21:20:15 UTC (rev 212988)
@@ -0,0 +1 @@
+d /run/unrealircd 0755 ircd root -
Copied: unrealircd/repos/community-staging-x86_64/PKGBUILD (from rev 212987, unrealircd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-02-17 21:20:15 UTC (rev 212988)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Zerial <fernando at zerial.org>
+
+pkgname=unrealircd
+pkgver=4.0.11
+pkgrel=2
+pkgdesc="Open Source IRC Server"
+arch=('i686' 'x86_64')
+url="http://unrealircd.com"
+license=('GPL2')
+depends=('openssl' 'curl' 'c-ares' 'tre' 'pcre2')
+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
+ install.pl)
+sha256sums=('6733dad62ce29fa082c9901cfadd79f0fdbfcde204979c1264ab29791d2a67ff'
+ '0a6d3c269ba5379f967b2ec035ad4c6226d42ce22ffaaf8c3e5b37ba8ee02ddd'
+ '2b2efb4b87b5b270e87fc0187ac1c559d41a41e6c81615182dc2bdd18bfcaccd'
+ '43f07093ada8eb5c954f9e2e189610575906c690c0953fec041d4f2d31210d85')
+
+prepare() {
+ cd "$srcdir"/unrealircd-$pkgver
+ sed -i \
+ -e 's|$(INSTALL) -m 0700|$(INSTALL) -m 0755|g' \
+ -e 's|$(INSTALL) -m 0600|$(INSTALL) -m 0644|g' \
+ Makefile.in
+}
+
+build() {
+ cd "$srcdir"/unrealircd-$pkgver
+ ./configure \
+ --with-pidfile=/run/unrealircd/ircd.pid \
+ --with-showlistmodes \
+ --enable-ssl=/usr \
+ --with-bindir=/usr/bin \
+ --with-datadir=/var/lib/unrealircd \
+ --with-confdir=/etc/unrealircd \
+ --with-modulesdir=/usr/lib/unrealircd \
+ --with-logdir=/var/log/unrealircd \
+ --with-cachedir=/var/cache/unrealircd \
+ --with-docdir=/usr/share/doc/unrealircd \
+ --with-tmpdir=/tmp \
+ --with-scriptdir=/usr \
+ --with-nick-history=2000 \
+ --with-sendq=3000000 \
+ --with-permissions=0644 \
+ --with-fd-setsize=1024 \
+ --enable-dynamic-linking
+ make
+}
+
+package() {
+ cd "$srcdir"/unrealircd-$pkgver
+
+ export pkgdir
+ make INSTALL="$srcdir"/install.pl install
+ mv "$pkgdir"/usr/unrealircd "$pkgdir"/etc/unrealircd/unrealircd
+ cp "$pkgdir"/etc/unrealircd/examples/example.conf "$pkgdir"/etc/unrealircd/unrealircd.conf
+ rm -rf "$pkgdir"/tmp
+
+ 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-staging-x86_64/install.pl (from rev 212987, unrealircd/trunk/install.pl)
===================================================================
--- community-staging-x86_64/install.pl (rev 0)
+++ community-staging-x86_64/install.pl 2017-02-17 21:20:15 UTC (rev 212988)
@@ -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);
Copied: unrealircd/repos/community-staging-x86_64/unrealircd.install (from rev 212987, unrealircd/trunk/unrealircd.install)
===================================================================
--- community-staging-x86_64/unrealircd.install (rev 0)
+++ community-staging-x86_64/unrealircd.install 2017-02-17 21:20:15 UTC (rev 212988)
@@ -0,0 +1,11 @@
+post_install() {
+ getent passwd ircd >/dev/null || useradd -r ircd -d /var/empty
+ chown -R ircd {etc,var/{cache,log,lib}}/unrealircd
+ 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-staging-x86_64/unrealircd.service (from rev 212987, unrealircd/trunk/unrealircd.service)
===================================================================
--- community-staging-x86_64/unrealircd.service (rev 0)
+++ community-staging-x86_64/unrealircd.service 2017-02-17 21:20:15 UTC (rev 212988)
@@ -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
Copied: unrealircd/repos/community-staging-x86_64/unrealircd.tmpfiles.d (from rev 212987, unrealircd/trunk/unrealircd.tmpfiles.d)
===================================================================
--- community-staging-x86_64/unrealircd.tmpfiles.d (rev 0)
+++ community-staging-x86_64/unrealircd.tmpfiles.d 2017-02-17 21:20:15 UTC (rev 212988)
@@ -0,0 +1 @@
+d /run/unrealircd 0755 ircd root -
More information about the arch-commits
mailing list