Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=1c4b0c638dd18f4b8024c71481fa1d6d68365df9

commit 1c4b0c638dd18f4b8024c71481fa1d6d68365df9
Author: James Buren <[email protected]>
Date:   Fri Jul 27 02:07:32 2012 -0500

courier-authlib-0.63.0-6-x86_64
* convert to systemd schema

diff --git a/source/network-extra/courier-authlib/FrugalBuild 
b/source/network-extra/courier-authlib/FrugalBuild
index 88f93d9..1e5f289 100644
--- a/source/network-extra/courier-authlib/FrugalBuild
+++ b/source/network-extra/courier-authlib/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=courier-authlib
pkgver=0.63.0
-pkgrel=5
+pkgrel=6
pkgdesc="The Courier authentication library & daemon"
_F_sourceforge_dirname="courier"
_F_sourceforge_ext=".tar.bz2"
@@ -17,13 +17,17 @@ groups=('network-extra')
archs=('i686' 'x86_64')
backup=('etc/courier/authdaemonrc' 'etc/courier/authlib/userdb')
up2date="lynx -dump 'http://www.courier-mta.org/download.php'|grep authlib|sed 
-n 's/.*-\(.*\)\.t.*/\1/;1 p'"
-source=($source rc.courier-authlib rc.courier-authlib-de.po 
authdaemonrc.frugal \
-       README.frugalware)
+source=($source rc.courier-authlib rc.courier-authlib-de.po 
courier-authlib.service \
+       authdaemonrc.frugal README.frugalware)
sha1sums=('c0877274de8b58ec4c7a41cfd87ad9b37c408304' \
'0f9b61c096dc7d164c1c2733cdd9742534731c79' \
'2ac194885e90df15d3d7fc3f38f3822cd931fa9a' \
+          'f287368010cd1a7a76e527f84470764dd0587702' \
'57669b3fd1d3dda9d4e00d91a6a53ab31fd8e5a0' \
-          '752746ca155da14869eeaaee0062da8e9f0ba05e')
+          '8dbd5e9407bec436810ae537e94c0bb856d16db8')
+_F_sysvinit_units=(courier-authlib)
+_F_systemd_units=(courier-authlib=)
+Finclude systemd

build()
{
@@ -77,6 +81,8 @@ d $Flocalstatedir/run 0755 root root -
d $Flocalstatedir/run/courier 0755 root root -
d $Flocalstatedir/run/courier/authdaemon 0755 root root -
EOF
+       Ffile /lib/systemd/system/courier-authlib.service
+       Fgenscriptlet
}

# optimization OK
diff --git a/source/network-extra/courier-authlib/courier-authlib.service 
b/source/network-extra/courier-authlib/courier-authlib.service
new file mode 100644
index 0000000..9d0f2f9
--- /dev/null
+++ b/source/network-extra/courier-authlib/courier-authlib.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=courier-authdaemon
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/courier/authdaemonrc
+PIDFile=/var/run/courier/pid
+ExecStart=/usr/sbin/courierlogger -pid=/var/run/courier/pid -start 
/usr/libexec/courier-authlib/authdaemond
+ExecStop=/usr/sbin/courierlogger -pid=/var/run/courier/pid -stop 
/usr/libexec/courier-authlib/authdaemond
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to