ngircd: added runit service.

This commit is contained in:
Juan RP 2014-10-13 16:38:24 +02:00
parent 7ca2cb50cd
commit 0a8a731444
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec ngircd -n

View File

@ -1,8 +1,10 @@
# Template build file for 'ngircd' # Template build file for 'ngircd'
pkgname=ngircd pkgname=ngircd
version=21.1 version=21.1
revision=3 revision=4
build_style=gnu-configure build_style=gnu-configure
build_options="systemd"
replaces="runit-void<20141013_2"
configure_args="--enable-ipv6 --with-openssl --without-ident" configure_args="--enable-ipv6 --with-openssl --without-ident"
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="zlib-devel libressl-devel" makedepends="zlib-devel libressl-devel"
@ -18,5 +20,8 @@ post_configure() {
echo "#define HAVE_WORKING_GETADDRINFO 1" >>src/config.h echo "#define HAVE_WORKING_GETADDRINFO 1" >>src/config.h
} }
post_install() { post_install() {
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system vsv ngircd
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
fi
} }