summaryrefslogtreecommitdiff
path: root/community/ultimate-ircd
diff options
context:
space:
mode:
Diffstat (limited to 'community/ultimate-ircd')
-rw-r--r--community/ultimate-ircd/PKGBUILD14
-rw-r--r--community/ultimate-ircd/ultimate-ircd.service12
-rw-r--r--community/ultimate-ircd/ultimate-ircd.tmpfiles1
3 files changed, 23 insertions, 4 deletions
diff --git a/community/ultimate-ircd/PKGBUILD b/community/ultimate-ircd/PKGBUILD
index 48583050c..cdbe120c7 100644
--- a/community/ultimate-ircd/PKGBUILD
+++ b/community/ultimate-ircd/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 65335 2012-02-21 02:11:06Z spupykin $
+# $Id: PKGBUILD 78358 2012-10-17 15:20:09Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=ultimate-ircd
pkgver=3.0.2
-pkgrel=5
+pkgrel=6
pkgdesc="ultimate irc server"
arch=(i686 x86_64 'mips64el')
url="http://www.shadow-realm.org/"
@@ -16,10 +16,14 @@ provides=(ircd)
backup=()
install=ircd.install
source=(http://downloads.sourceforge.net/sourceforge/ultimate/Ultimate$pkgver.tar.bz2
- ultimate-ircd
- conf-fix.patch)
+ ultimate-ircd
+ ultimate-ircd.service
+ ultimate-ircd.tmpfiles
+ conf-fix.patch)
md5sums=('8bc14b97d22a3ce3415cc0540ae459f6'
'cf6ab14d8dd8805342b70a9beb01c9af'
+ '526fd78018b9b011787e4e9012437116'
+ 'e51723ab29e7a3ddc3589846815de0c9'
'5e0f2a02e12675ac070a148c3234e111')
build() {
@@ -52,4 +56,6 @@ build() {
mv ssl-search.sh irc-ssl-search.sh
install -D -m 0755 $srcdir/ultimate-ircd $pkgdir/etc/rc.d/ultimate-ircd
install -d -m 0755 $pkgdir/var/lib/ircd
+ install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+ install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf
}
diff --git a/community/ultimate-ircd/ultimate-ircd.service b/community/ultimate-ircd/ultimate-ircd.service
new file mode 100644
index 000000000..4b79c371d
--- /dev/null
+++ b/community/ultimate-ircd/ultimate-ircd.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/ircd/ircd.pid
+ExecStart=/usr/bin/ircd -f /etc/ircd/ircd.conf
+
+[Install]
+WantedBy=multi-user.target
diff --git a/community/ultimate-ircd/ultimate-ircd.tmpfiles b/community/ultimate-ircd/ultimate-ircd.tmpfiles
new file mode 100644
index 000000000..c9a9c98e3
--- /dev/null
+++ b/community/ultimate-ircd/ultimate-ircd.tmpfiles
@@ -0,0 +1 @@
+d /run/ircd 0755 ircd irc -