summaryrefslogtreecommitdiff
path: root/community/ngircd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/ngircd
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/ngircd')
-rw-r--r--community/ngircd/PKGBUILD40
-rw-r--r--community/ngircd/ngircd.service11
2 files changed, 51 insertions, 0 deletions
diff --git a/community/ngircd/PKGBUILD b/community/ngircd/PKGBUILD
new file mode 100644
index 000000000..be8677c53
--- /dev/null
+++ b/community/ngircd/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 92045 2013-05-31 00:26:55Z seblu $
+# Maintainer: Kyle Keen <keenerd@gmail.com>
+# Contributor: Mateusz Herych <heniekk@gmail.com>
+# Contributor: Alexander Rødseth <rodseth@gmail.com>
+
+pkgname=ngircd
+pkgver=20.2
+pkgrel=2
+pkgdesc="Next Generation IRC Daemon"
+arch=('x86_64' 'i686')
+backup=(etc/ngircd.conf)
+url="http://ngircd.barton.de/"
+license=('GPL')
+depends=('openssl' 'libident')
+source=("http://ngircd.barton.de/pub/ngircd/ngircd-$pkgver.tar.gz"
+ ngircd.service)
+sha256sums=('306c0ef0d2ceac0836a84ecf871a6bc4dd16c25683aa87c0f172b6e68b93357d'
+ 'f02e30f6864ba1130bcc85bedc44ad782687f572c06f10e0501b0ddcf532b404')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --sbindir=/usr/bin \
+ --mandir=/usr/share/man \
+ --with-ident \
+ --with-openssl \
+ --enable-ipv6
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+ install -Dm 755 ../ngircd.service "$pkgdir/usr/lib/systemd/system/ngircd.service"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/community/ngircd/ngircd.service b/community/ngircd/ngircd.service
new file mode 100644
index 000000000..b75382ea9
--- /dev/null
+++ b/community/ngircd/ngircd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Next Generation IRC Daemon
+After=network.target
+
+[Service]
+# don't daemonize to simplify stuff
+ExecStart=/usr/bin/ngircd -n
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target