From 3d7c59c43f41cf1a9a13831c287373211e089a02 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sun, 14 Mar 2010 18:33:06 -0500 Subject: lighttpd: add sed statement to post-install. This should update any old versions rename changelog --- abs/core-testing/lighttpd/PKGBUILD | 4 ++-- abs/core-testing/lighttpd/__changelog | 6 ++++++ abs/core-testing/lighttpd/_changelog | 6 ------ abs/core-testing/lighttpd/lighttpd.install | 1 + 4 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 abs/core-testing/lighttpd/__changelog delete mode 100644 abs/core-testing/lighttpd/_changelog mode change 100644 => 100755 abs/core-testing/lighttpd/lighttpd.install diff --git a/abs/core-testing/lighttpd/PKGBUILD b/abs/core-testing/lighttpd/PKGBUILD index 3695f0f..cec41d4 100644 --- a/abs/core-testing/lighttpd/PKGBUILD +++ b/abs/core-testing/lighttpd/PKGBUILD @@ -3,7 +3,7 @@ pkgname=lighttpd pkgver=1.4.26 -pkgrel=3 +pkgrel=7 pkgdesc='a secure, fast, compliant and very flexible web-server' license=('custom') arch=('i686' 'x86_64') @@ -21,7 +21,7 @@ options=('!libtool' 'emptydirs') source=("http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${pkgver}.tar.bz2" \ 'lighttpd.rc.d' 'lighttpd.logrotate.d' 'lighttpd.conf' 'auth-inc.conf' \ 'openssl-0.9.8m.patch') - +install='lighttpd.install' build() { cd $srcdir/$pkgname-$pkgver diff --git a/abs/core-testing/lighttpd/__changelog b/abs/core-testing/lighttpd/__changelog new file mode 100644 index 0000000..a96d942 --- /dev/null +++ b/abs/core-testing/lighttpd/__changelog @@ -0,0 +1,6 @@ +changed docroot to /data/srv/ +modified auth to require valid user (include auth-inc.conf) + +# by mihanson: +upgraded to 1.4.26 to address http://linhes.org/flyspray/index.php?do=details&task_id=624 +Added -e 's|"^/mythweb|"^/{1,2}mythweb|' \ to the sed command to work around lighttpd no longer honoring // in a url and/or to work around mythweb producing url's with a // for streaming and downloading. diff --git a/abs/core-testing/lighttpd/_changelog b/abs/core-testing/lighttpd/_changelog deleted file mode 100644 index a96d942..0000000 --- a/abs/core-testing/lighttpd/_changelog +++ /dev/null @@ -1,6 +0,0 @@ -changed docroot to /data/srv/ -modified auth to require valid user (include auth-inc.conf) - -# by mihanson: -upgraded to 1.4.26 to address http://linhes.org/flyspray/index.php?do=details&task_id=624 -Added -e 's|"^/mythweb|"^/{1,2}mythweb|' \ to the sed command to work around lighttpd no longer honoring // in a url and/or to work around mythweb producing url's with a // for streaming and downloading. diff --git a/abs/core-testing/lighttpd/lighttpd.install b/abs/core-testing/lighttpd/lighttpd.install old mode 100644 new mode 100755 index bf4c132..0e32a66 --- a/abs/core-testing/lighttpd/lighttpd.install +++ b/abs/core-testing/lighttpd/lighttpd.install @@ -2,5 +2,6 @@ pre_upgrade() { mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.old } post_upgrade() { + sed -i 's|"^/mythweb|"/{1,2}mythweb|g' /etc/lighttpd/lighttpd.conf touch /etc/lighttpd/lighttpd.user } -- cgit v0.12