summaryrefslogtreecommitdiff
path: root/community/fssos-nsvs
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/fssos-nsvs
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/fssos-nsvs')
-rw-r--r--community/fssos-nsvs/PKGBUILD30
-rw-r--r--community/fssos-nsvs/fssos-nsvs.install17
-rw-r--r--community/fssos-nsvs/nsvsd.service8
3 files changed, 55 insertions, 0 deletions
diff --git a/community/fssos-nsvs/PKGBUILD b/community/fssos-nsvs/PKGBUILD
new file mode 100644
index 000000000..d9e7a0399
--- /dev/null
+++ b/community/fssos-nsvs/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 90505 2013-05-12 23:35:37Z eric $
+# Maintainer: Dale Blount <dale@archlinux.org>
+
+pkgname=fssos-nsvs
+pkgver=0.5
+pkgrel=11
+pkgdesc="NSVS for FSSOS"
+arch=('i686' 'x86_64')
+url="http://fssos.sourceforge.net/"
+license=('GPL')
+depends=('bash' 'mariadb')
+backup=('etc/nsvsd.conf')
+options=('!libtool' '!makeflags')
+install=$pkgname.install
+source=("http://downloads.sourceforge.net/sourceforge/fssos/nsvs-$pkgver.tar.gz"
+ 'nsvsd.service')
+md5sums=('3f17c2f6339f1a322b712b467023d825'
+ '9c791d2086e13f774548d9d6ba2cf9d5')
+
+build() {
+ cd nsvs-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
+ make CFLAGS="${CFLAGS} -D_GNU_SOURCE"
+}
+
+package() {
+ cd nsvs-$pkgver
+ make DESTDIR="$pkgdir" install
+ install -D -m644 "$srcdir/nsvsd.service" "$pkgdir/usr/lib/systemd/system/nsvsd.service"
+}
diff --git a/community/fssos-nsvs/fssos-nsvs.install b/community/fssos-nsvs/fssos-nsvs.install
new file mode 100644
index 000000000..253ae64d2
--- /dev/null
+++ b/community/fssos-nsvs/fssos-nsvs.install
@@ -0,0 +1,17 @@
+post_install() {
+ if [ -z "`grep '^nsvsd::' /etc/group`" ]; then
+ groupadd -g 83 nsvsd
+ fi
+ if [ -z "`grep '^nsvsd:' /etc/passwd`" ]; then
+ useradd -u 83 -d /tmp -g nsvsd -s /bin/false nsvsd
+ fi
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ userdel nsvsd &> /dev/null
+ groupdel nsvsd &> /dev/null
+}
diff --git a/community/fssos-nsvs/nsvsd.service b/community/fssos-nsvs/nsvsd.service
new file mode 100644
index 000000000..8c3d12b67
--- /dev/null
+++ b/community/fssos-nsvs/nsvsd.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Name Service Via Sockets Daemon
+
+[Service]
+ExecStart=/usr/bin/nsvsd -f /etc/nsvsd.conf
+
+[Install]
+WantedBy=multi-user.target