[Frugalware-git] frugalware-current: nginx-1.2.1-1-x86_64 * convert to use systemd schema
James Buren
ryuo at frugalware.org
Tue Jun 12 11:27:30 CEST 2012
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b8977c76dfdf111c7b4b13b26d32bcb0cb88d681
commit b8977c76dfdf111c7b4b13b26d32bcb0cb88d681
Author: James Buren <ryuo at frugalware.org>
Date: Thu Jun 7 03:58:42 2012 -0500
nginx-1.2.1-1-x86_64
* convert to use systemd schema
diff --git a/source/network-extra/nginx/FrugalBuild b/source/network-extra/nginx/FrugalBuild
index 0057ff6..d809917 100644
--- a/source/network-extra/nginx/FrugalBuild
+++ b/source/network-extra/nginx/FrugalBuild
@@ -2,7 +2,7 @@
# Maintainer: voroskoi <voroskoi at frugalware.org>
pkgname=nginx
-pkgver=1.2.0
+pkgver=1.2.1
pkgrel=1
pkgdesc="[engine x] is a HTTP server and mail proxy server."
url="http://nginx.net/"
@@ -13,7 +13,11 @@ archs=('i686' 'x86_64')
provides=('httpd')
backup=(etc/$pkgname/$pkgname.conf)
up2date="lynx -dump http://nginx.org/ |grep stable |sed -ne 's/.*nx-\(.*\) st.*/\1/;1p'"
-source=(http://nginx.org/download/nginx-$pkgver.tar.gz rc.$pkgname nginx.logrotate)
+source=(http://nginx.org/download/nginx-$pkgver.tar.gz rc.$pkgname $pkgname.service $pkgname.logrotate)
+
+_F_sysvinit_units=($pkgname)
+_F_systemd_units=($pkgname=)
+Finclude systemd
build() {
Fpatchall
@@ -56,9 +60,14 @@ build() {
Fmkdir $Flocalstatedir/www
Fmv $Fsysconfdir/$pkgname/html $Flocalstatedir/www/$pkgname
Fln $Flocalstatedir/www/$pkgname $Fsysconfdir/$pkgname/html
+
+ Ffile /lib/systemd/system/$pkgname.service
+ Fgenscriptlet
}
-sha1sums=('15cec8d1b8dbf2007f9f99594a08a2f45814034e' \
+
+sha1sums=('4fb69411f6c3ebb5818005955a085e891e77b2d8' \
'e8cc09710ba365eb932d1710f4aac629e49452ff' \
+ '5652c45190662cb2bf4ba261ce08728289b4fef8' \
'da58d8a74dbb081c3dfb69317999e10f1ebf991e')
# optimization OK
diff --git a/source/network-extra/nginx/nginx.service b/source/network-extra/nginx/nginx.service
new file mode 100644
index 0000000..7a53a9e
--- /dev/null
+++ b/source/network-extra/nginx/nginx.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=nginx daemon
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/nginx
+PIDFile=/var/run/nginx.pid
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
More information about the Frugalware-git
mailing list