diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-09-05 06:13:57 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-09-05 06:13:57 (GMT) |
commit | b172f79fadb565ecfbcec9508f9377d8618a4f4c (patch) | |
tree | bf8823b07e3313c3afa000a9b31e4f9a735cb818 /abs/core/lighttpd | |
parent | f9d54ab7c3853208484e304bc6cf40ab0f79d400 (diff) | |
parent | 5e7027c6194237ca1dc5fcbb3648483a970fb500 (diff) | |
download | linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.zip linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.tar.gz linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.tar.bz2 |
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/core/lighttpd')
-rw-r--r-- | abs/core/lighttpd/PKGBUILD | 17 | ||||
-rw-r--r-- | abs/core/lighttpd/__changelog | 8 | ||||
-rw-r--r-- | abs/core/lighttpd/lighttpd.conf | 4 | ||||
-rwxr-xr-x | abs/core/lighttpd/lighttpd.install | 2 |
4 files changed, 23 insertions, 8 deletions
diff --git a/abs/core/lighttpd/PKGBUILD b/abs/core/lighttpd/PKGBUILD index cec41d4..ed6d01e 100644 --- a/abs/core/lighttpd/PKGBUILD +++ b/abs/core/lighttpd/PKGBUILD @@ -3,8 +3,8 @@ pkgname=lighttpd pkgver=1.4.26 -pkgrel=7 -pkgdesc='a secure, fast, compliant and very flexible web-server' +pkgrel=16 +pkgdesc='A secure, fast, compliant and very flexible web-server' license=('custom') arch=('i686' 'x86_64') url="http://www.lighttpd.net/" @@ -16,12 +16,12 @@ optdepends=('libxml2: mod_webdav' \ 'sqlite3: mod_webdav' \ 'gdbm: mod_trigger_b4_dl' \ ) -backup=('etc/lighttpd/lighttpd.conf' 'etc/logrotate.d/lighttpd' 'etc/lighttpd/auth-inc.conf') +backup=(etc/lighttpd/lighttpd.conf etc/logrotate.d/lighttpd etc/lighttpd/auth-inc.conf etc/lighttpd/conf.include etc/lighttpd/html.include) 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' +#install='lighttpd.install' build() { cd $srcdir/$pkgname-$pkgver @@ -65,13 +65,20 @@ build() { -e 's|#server.pid-file = "/var/run/lighttpd.pid"|server.pid-file = "/var/run/lighttpd/lighttpd.pid"|' \ -e 's|/usr/local/bin/php-cgi|/usr/bin/php-cgi|' \ -e 's|"^/mythweb|"^/{1,2}mythweb|' \ + -e 's|# "mod_proxy",| "mod_proxy",|' \ + -e 's|# "mod_ssi",| "mod_ssi",|' \ + -e 's|#ssi.extension = ( ".shtml" )|ssi.extension = ( ".shtml" )|' \ -i ${pkgdir}/etc/lighttpd/lighttpd.conf || return 1 + /bin/touch $pkgdir/etc/lighttpd/{conf,html}.include || return 1 + /bin/echo 'include "/etc/lighttpd/conf.include"' >> $pkgdir/etc/lighttpd/lighttpd.conf || return 1 + /bin/echo 'include "/etc/lighttpd/html.include"' >> $pkgdir/etc/lighttpd/lighttpd.conf || return 1 + install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING } md5sums=('a682c8efce47a2f4263a247ba0813c9b' 'bd690eee0d9e51857448770a151023b0' '857e174643fd7761a2f0d8431a679f6c' - 'fe078f9b8ee701ed21278789cad90acf' + '11fbec7ff7ca1b0d5575445681e8f60e' 'c6e361131000ceec085f40b310ef4a2c' '84c884b8dadd724afe2bc6529e9d4485') diff --git a/abs/core/lighttpd/__changelog b/abs/core/lighttpd/__changelog index a96d942..0fe6415 100644 --- a/abs/core/lighttpd/__changelog +++ b/abs/core/lighttpd/__changelog @@ -4,3 +4,11 @@ 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. + +changed lightttpd.conf to user perl for .cgi (needed for monx)_ +added 404 page + +bummped to version 13 to test redmine #690 + +# by mihanson +Added etc/lighttpd/conf.include and etc/lighttpd/html.include to backup array diff --git a/abs/core/lighttpd/lighttpd.conf b/abs/core/lighttpd/lighttpd.conf index 0c55f52..f437484 100644 --- a/abs/core/lighttpd/lighttpd.conf +++ b/abs/core/lighttpd/lighttpd.conf @@ -145,7 +145,7 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) #server.bind = "127.0.0.1" ## error-handler for status 404 -#server.error-handler-404 = "/error-handler.html" +server.error-handler-404 = "/404.html" #server.error-handler-404 = "/error-handler.php" ## to help the rc.scripts @@ -235,7 +235,7 @@ server.groupname = "http" ) #### CGI module cgi.assign = ( ".pl" => "/usr/bin/perl", - ".cgi" => "/bin/bash" ) + ".cgi" => "/usr/bin/perl" ) url.rewrite-once = ( "^/mythweb/(css|data|images|js|themes|skins|[a-z_]+\.(php|pl)).*" => "$0", diff --git a/abs/core/lighttpd/lighttpd.install b/abs/core/lighttpd/lighttpd.install index 0e32a66..a921b0f 100755 --- a/abs/core/lighttpd/lighttpd.install +++ b/abs/core/lighttpd/lighttpd.install @@ -2,6 +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 + sed -i 's|"^/mythweb|"^/{1,2}mythweb|g' /etc/lighttpd/lighttpd.conf touch /etc/lighttpd/lighttpd.user } |