Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=openjava.git;a=commitdiff;h=92da058e1e478764ec5656612da5d18f3eeff6b7
commit 92da058e1e478764ec5656612da5d18f3eeff6b7 Author: James Buren <[email protected]> Date: Sun Jun 10 06:43:12 2012 -0500 apache-2.2.22-1-x86_64 * convert to systemd schema diff --git a/source/network/apache/FrugalBuild b/source/network/apache/FrugalBuild index 6eb50da..a746435 100644 --- a/source/network/apache/FrugalBuild +++ b/source/network/apache/FrugalBuild @@ -3,8 +3,8 @@ # Maintainer: Krisztian VASAS <[email protected]> pkgname=apache -pkgver=2.2.21 -pkgrel=2 +pkgver=2.2.22 +pkgrel=1 pkgdesc="A high performance Unix-based HTTP server (with SSL)" url="http://httpd.apache.org/" backup=(etc/httpd/conf/{httpd.conf,ssl.conf,ssl.crt/server.crt,ssl.csr/server.csr,ssl.key/server.key} \ @@ -15,9 +15,13 @@ archs=('i686' 'x86_64') up2date="lynx -dump http://httpd.apache.org/download.cgi |grep 'best available'|sed 's/.* \([0-9.]\+\) i.*/\1/;q'" source=(http://www.apache.org/dist/httpd/httpd-$pkgver.tar.gz \ http://ftp.frugalware.org/pub/other/sources/apache/mkcert.tar.gz \ - rc.httpd rc.httpd-hu.po httpd.conf ssl.conf \ + rc.httpd rc.httpd-hu.po httpd.service httpd.conf ssl.conf \ README.Frugalware index.html http://frugalware.org/images/frugalware.png) -signatures=($source.asc '' '' '' '' '' '' '' '') +signatures=($source.asc '' '' '' '' '' '' '' '' '') + +_F_sysvinit_units=(httpd) +_F_systemd_units=(httpd=) +Finclude systemd # svn web interface: # http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/ @@ -50,6 +54,8 @@ build() cat > $Fdestdir/etc/tmpfiles.d/apache.conf << EOF d $Flocalstatedir/run 0755 root root - EOF + Ffile /lib/systemd/system/httpd.service + Fgenscriptlet } # optimization OK diff --git a/source/network/apache/httpd.service b/source/network/apache/httpd.service new file mode 100644 index 0000000..268f8da --- /dev/null +++ b/source/network/apache/httpd.service @@ -0,0 +1,11 @@ +[Unit] +Description=Apache web server +After=network.target + +[Service] +ExecStart=/usr/sbin/httpd +PIDFile=/var/run/httpd.pid +Type=forking + +[Install] +WantedBy=multi-user.target _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
