summaryrefslogtreecommitdiff
path: root/community/unrealircd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-18 01:24:49 -0700
committerroot <root@rshg054.dnsready.net>2012-10-18 01:24:49 -0700
commit9e3985ed7c9851da65023a0ab3d0739cce1858e2 (patch)
tree817050bac0aea21506bd81fde0bd6a07d7e2d3e4 /community/unrealircd
parentc84b2cd310f86dc50c4f52a5907cb17652e8c87c (diff)
Thu Oct 18 01:23:58 PDT 2012
Diffstat (limited to 'community/unrealircd')
-rw-r--r--community/unrealircd/PKGBUILD8
-rw-r--r--community/unrealircd/unrealircd.service12
2 files changed, 18 insertions, 2 deletions
diff --git a/community/unrealircd/PKGBUILD b/community/unrealircd/PKGBUILD
index 6e0d58232..052a65379 100644
--- a/community/unrealircd/PKGBUILD
+++ b/community/unrealircd/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 60367 2011-12-12 09:58:46Z spupykin $
+# $Id: PKGBUILD 78360 2012-10-17 15:21:03Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Zerial <fernando@zerial.org>
pkgname=unrealircd
pkgver=3.2.9
-pkgrel=2
+pkgrel=3
pkgdesc="Open Source IRC Server"
arch=('i686' 'x86_64')
url="http://unrealircd.com"
@@ -15,9 +15,11 @@ provides=('ircd')
backup=(etc/unrealircd/unrealircd.conf)
source=(http://www.unrealircd.com/downloads/Unreal$pkgver.tar.gz
unrealircd.rc
+ unrealircd.service
arch-fixes.patch)
md5sums=('bde023695347969f545ce5f2a9ac9aed'
'07ffa1e82a01f319a8b997e155d2af1d'
+ '2103ce8a4a4e79f6955920bfebea0202'
'77807313c4578f2c30286b9f9e3fb21c')
build() {
@@ -60,4 +62,6 @@ build() {
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
}
diff --git a/community/unrealircd/unrealircd.service b/community/unrealircd/unrealircd.service
new file mode 100644
index 000000000..42279fae0
--- /dev/null
+++ b/community/unrealircd/unrealircd.service
@@ -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