[arch-commits] Commit in lighttpd/trunk (4 files)
Pierre Schmitz
pierre at archlinux.org
Thu May 31 10:03:55 UTC 2012
Date: Thursday, May 31, 2012 @ 06:03:55
Author: pierre
Revision: 160221
use /run instead of /var/run; create /run/lighttpd on install if needed
Added:
lighttpd/trunk/lighttpd.install
Modified:
lighttpd/trunk/PKGBUILD
lighttpd/trunk/lighttpd.rc.d
lighttpd/trunk/lighttpd.tmpfiles
-------------------+
PKGBUILD | 7 ++++---
lighttpd.install | 13 +++++++++++++
lighttpd.rc.d | 2 +-
lighttpd.tmpfiles | 2 +-
4 files changed, 19 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-05-31 03:41:30 UTC (rev 160220)
+++ PKGBUILD 2012-05-31 10:03:55 UTC (rev 160221)
@@ -3,7 +3,7 @@
pkgname=lighttpd
pkgver=1.4.30
-pkgrel=6
+pkgrel=7
pkgdesc='A secure, fast, compliant and very flexible web-server'
license=('custom')
arch=('i686' 'x86_64')
@@ -16,15 +16,16 @@
'sqlite: mod_webdav')
backup=('etc/lighttpd/lighttpd.conf' 'etc/logrotate.d/lighttpd')
options=('!libtool' 'emptydirs')
+install='lighttpd.install'
source=("http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${pkgver}.tar.xz"
"http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${pkgver}.tar.xz.asc"
'lighttpd.rc.d' 'lighttpd.logrotate.d' 'lighttpd.conf' 'lighttpd.tmpfiles' 'lighttpd.service')
sha256sums=('c237692366935b19ef8a6a600b2f3c9b259a9c3107271594c081a45902bd9c9b'
'941ab747aeb97ca111fb670d21eefecdf745debc5e139bc5bd6881ee66b2742a'
- 'dacfa1d748e5ac38c2d51d8310acad76d85ba5c1fe02a93534cf032400429257'
+ '186f4bb2364f82d4076a2ba7d3e088ffb356550493d92dd9d5eb57cac2839c17'
'6df18675691384c48b9137c8f18ca238055001f1077baf05cb8322247b475a77'
'ee56422fe48f2683ccb5ca2e3dc6bad79ea8e1cbd043b21d2ea73b87018e35aa'
- '758275bd8d17115394caabc46e1bbbad01934b20ea957c7984d0b6ba78c4fd40'
+ 'd8a185145a7c08b4fd8c8e6c12dae3e176389dd9b1c66e239757b2ba5108c871'
'708cefe97541edba73f572ed3836bd056462b1467e45e1912c9d960139929696')
build() {
Added: lighttpd.install
===================================================================
--- lighttpd.install (rev 0)
+++ lighttpd.install 2012-05-31 10:03:55 UTC (rev 160221)
@@ -0,0 +1,13 @@
+post_install() {
+ if [[ ! -d run/lighttpd ]]; then
+ if [[ -x usr/bin/systemd-tmpfiles ]]; then
+ usr/bin/systemd-tmpfiles --create usr/lib/tmpfiles.d/lighttpd.conf
+ else
+ install -d -m755 -o http -g http run/lighttpd
+ fi
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
Modified: lighttpd.rc.d
===================================================================
--- lighttpd.rc.d 2012-05-31 03:41:30 UTC (rev 160220)
+++ lighttpd.rc.d 2012-05-31 10:03:55 UTC (rev 160221)
@@ -4,7 +4,7 @@
. /etc/rc.d/functions
-pid_file='/var/run/lighttpd/lighttpd-angel.pid'
+pid_file='/run/lighttpd/lighttpd-angel.pid'
get_pid() {
if [ -r "${pid_file}" ]; then
Modified: lighttpd.tmpfiles
===================================================================
--- lighttpd.tmpfiles 2012-05-31 03:41:30 UTC (rev 160220)
+++ lighttpd.tmpfiles 2012-05-31 10:03:55 UTC (rev 160221)
@@ -1,2 +1,2 @@
-d /var/run/lighttpd 755 http http -
+d /run/lighttpd 755 http http -
d /var/cache/lighttpd 755 http http 10d
More information about the arch-commits
mailing list