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

commit ea8f446f06575ef6f032bdbb14aa245f9212b0a3
Author: James Buren <[email protected]>
Date:   Thu Jun 7 02:15:32 2012 -0500

varnish-3.0.2-2-x86_64
* convert to systemd schema

diff --git a/source/network-extra/varnish/FrugalBuild 
b/source/network-extra/varnish/FrugalBuild
index 302ce04..4fad967 100644
--- a/source/network-extra/varnish/FrugalBuild
+++ b/source/network-extra/varnish/FrugalBuild
@@ -3,17 +3,21 @@

pkgname=varnish
pkgver=3.0.2
-pkgrel=1
+pkgrel=2
pkgdesc="Varnish is an high-performance HTTP accelerator."
url="http://varnish-cache.org/";
depends=('glibc')
groups=('network-extra')
archs=('i686' 'x86_64')
-source=("http://repo.varnish-cache.org/source/$pkgname-$pkgver.tar.gz"; 
rc.varnish $pkgname.conf)
+source=("http://repo.varnish-cache.org/source/$pkgname-$pkgver.tar.gz"; 
rc.$pkgname $pkgname.service $pkgname.conf)
up2date=("Flasttar http://repo.varnish-cache.org/source/";)
sha1sums=('906f1536cb7e728d18d9425677907ae723943df7' \
'e6187471f9aa23c6495ba78cbb02215c7bfad1b2' \
+          '5278161f50c5053ab11268a1edf209a38b56a1a4' \
'f3f8293aa460d1fa7a0b73db2b896a4bfeb71699')
+_F_sysvinit_units=($pkgname)
+_F_systemd_units=($pkgname=)
+Finclude systemd

build()
{
@@ -25,6 +29,9 @@ build()

# Install the varnish initscript
Frcd2
+
+       Ffile /lib/systemd/system/$pkgname.service
+       Fgenscriptlet
}

# optimization OK
diff --git a/source/network-extra/varnish/varnish.service 
b/source/network-extra/varnish/varnish.service
new file mode 100644
index 0000000..e399b12
--- /dev/null
+++ b/source/network-extra/varnish/varnish.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Varnish HTTP Accelerator
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/varnish.conf
+ExecStart=/usr/sbin/varnishd -P /var/run/varnishd.pid $VARNISHD_OPTS
+PIDFile=/var/run/varnishd.pid
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to