Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=openjava.git;a=commitdiff;h=4bad39e91d2f680a2defdf464d7714a5a729868c

commit 4bad39e91d2f680a2defdf464d7714a5a729868c
Author: James Buren <[email protected]>
Date:   Thu Jun 7 22:19:20 2012 -0500

oidentd-2.0.8-3-x86_64
* convert to systemd schema

diff --git a/source/network-extra/oidentd/FrugalBuild 
b/source/network-extra/oidentd/FrugalBuild
index 3e6979b..f9cd9f8 100644
--- a/source/network-extra/oidentd/FrugalBuild
+++ b/source/network-extra/oidentd/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=oidentd
pkgver=2.0.8
-pkgrel=2
+pkgrel=3
pkgdesc="Another (RFC1413 compliant) ident daemon"
_F_sourceforge_dirname="ojnk"
Finclude sourceforge
@@ -13,11 +13,15 @@ groups=('network-extra')
backup=('etc/oidentd.conf' 'etc/sysconfig/oidentd')
archs=('i686' 'x86_64')
up2date="lynx -dump $url |grep oidentd|sed -n 's/.*d \(.*\) [0-9].*/\1/; 1 p'"
-source=($source $pkgname.conf $pkgname rc.$pkgname)
+source=($source $pkgname.conf $pkgname rc.$pkgname $pkgname.service)
sha1sums=('e14f72075612fc04b40119e3784740d9a2300d4b' \
-         '6a26f6d1dfe9c3141d7b251f314e9a138634005d' \
-         '914e06536f0bd8f89072a0087a060838cf0ff300' \
-         '637e3d0a46ddf9f2832ee8a83d51eb8851960bd7')
+          '6a26f6d1dfe9c3141d7b251f314e9a138634005d' \
+          '914e06536f0bd8f89072a0087a060838cf0ff300' \
+          '637e3d0a46ddf9f2832ee8a83d51eb8851960bd7' \
+          '8e390934c1db6798cc4a6277f8df1faeddfaf42d')
+_F_sysvinit_units=($pkgname)
+_F_systemd_units=($pkgname=)
+Finclude systemd

build()
{
@@ -25,6 +29,8 @@ build()
Ffile /etc/oidentd.conf
Ffile /etc/sysconfig/oidentd
Frcd2
+       Ffile /lib/systemd/system/$pkgname.service
+       Fgenscriptlet
}

# optimization OK
diff --git a/source/network-extra/oidentd/oidentd.service 
b/source/network-extra/oidentd/oidentd.service
new file mode 100644
index 0000000..92e95b6
--- /dev/null
+++ b/source/network-extra/oidentd/oidentd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=oidentd ident daemon
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/sysconfig/oidentd
+ExecStart=/usr/sbin/oidentd -u $USER -g $GROUP $OPTIONS
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to