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

commit 1e5c774f0727af6749a138ebebd44bd6e149ace4
Author: James Buren <[email protected]>
Date:   Thu Jul 12 17:58:45 2012 -0500

xsp-2.10.2-2-x86_64
* convert to systemd schema

diff --git a/source/network-extra/xsp/FrugalBuild 
b/source/network-extra/xsp/FrugalBuild
index 2384e95..1a87393 100644
--- a/source/network-extra/xsp/FrugalBuild
+++ b/source/network-extra/xsp/FrugalBuild
@@ -3,19 +3,25 @@

pkgname=xsp
pkgver=2.10.2
-pkgrel=1
+pkgrel=2
pkgdesc="XSP is a small web server that can host ASP.NET pages"
url="http://www.go-mono.com/";
depends=('sqlite3' 'mono>=2.10.2' 'libgdiplus')
groups=('network-extra')
archs=('i686' 'x86_64')
Finclude mono
+backup=(etc/sysconfig/xsp)
up2date="Flasttar http://ftp.novell.com/pub/mono/sources-stable/";
-source=(http://www.go-mono.com/sources/$pkgname/$pkgname-$pkgver.tar.bz2 \
-       rc.xsp xsp.sysconfig)
+source=(http://origin-download.mono-project.com/sources/xsp/$pkgname-$pkgver.tar.bz2
 \
+       rc.xsp xsp.sysconfig xsp.service)
sha1sums=('cab9218c56bb9f6e1a8e8e56c3b97ac2eac27bec' \
'0c3e26db4ce082e6e0eaebc45b650818c2659a3e' \
-          '753c943fec4f40c009f2569548fddf894e9758e7')
+          '753c943fec4f40c009f2569548fddf894e9758e7' \
+          '3038e897535e2c0d91bc3ac021e2c88196768b0d')
+
+_F_sysvinit_units=(xsp)
+_F_systemd_units=(xsp=)
+Finclude systemd

build() {
unset MAKEFLAGS
@@ -25,6 +31,7 @@ build() {
Ffile xsp.sysconfig /etc/sysconfig/xsp
Frcd2 xsp
Fmonocleanup
+       Ffile /lib/systemd/system/xsp.service
}

# optimization OK
diff --git a/source/network-extra/xsp/xsp.service 
b/source/network-extra/xsp/xsp.service
new file mode 100644
index 0000000..d0f985f
--- /dev/null
+++ b/source/network-extra/xsp/xsp.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Small web server ASP.NET
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/sysconfig/xsp
+ExecStart=/usr/bin/xsp2 --port $MonoServerPort --root $MonoServerRoot 
--nonstop --pidfile /var/run/xsp.pid
+PIDFile=/var/run/xsp.pid
+Type=simple
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to