diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-11 00:21:54 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-17 13:58:54 +0000 |
commit | 8b8716357348d4e41ab939b29c3b535866874b9f (patch) | |
tree | 61247571d529cb16776c59188b930ac463a0e17f /main/lighttpd/APKBUILD | |
parent | 3a9752f66d142327cdcba9b4dc31d0d5c04aafcd (diff) | |
download | aports-8b8716357348d4e41ab939b29c3b535866874b9f.tar.bz2 aports-8b8716357348d4e41ab939b29c3b535866874b9f.tar.xz |
main/lighttpd: modernise, fix char signedness bug
Diffstat (limited to 'main/lighttpd/APKBUILD')
-rw-r--r-- | main/lighttpd/APKBUILD | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/main/lighttpd/APKBUILD b/main/lighttpd/APKBUILD index 37ce247b7e..69c6ea66c9 100644 --- a/main/lighttpd/APKBUILD +++ b/main/lighttpd/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lighttpd pkgver=1.4.48 -pkgrel=0 +pkgrel=1 pkgdesc="A secure, fast, compliant and very flexible web-server" url="http://www.lighttpd.net/" arch="all" @@ -23,7 +23,8 @@ source="http://download.lighttpd.net/lighttpd/releases-1.4.x/$pkgname-$pkgver.ta mime-types.conf mod_cgi.conf mod_fastcgi.conf - mod_fastcgi_fpm.conf" + mod_fastcgi_fpm.conf + char-signedness.patch" builddir="$srcdir/$pkgname-$pkgver" build() { @@ -47,30 +48,34 @@ build() { --with-ldap \ --with-openssl \ --with-libev \ - --with-lua \ - || return 1 + --with-lua make } +check() { + cd "$builddir" + make check +} + package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install # create dirs install -d -m755 -o lighttpd -g lighttpd \ - "$pkgdir"/var/log/lighttpd/ || return 1 + "$pkgdir"/var/log/lighttpd/ install -d -m755 \ "$pkgdir"/etc/lighttpd/ \ - "$pkgdir"/var/www/localhost/htdocs || return 1 + "$pkgdir"/var/www/localhost/htdocs # lighttpd install -D -m755 "$srcdir"/lighttpd.initd \ - "$pkgdir"/etc/init.d/lighttpd || return 1 + "$pkgdir"/etc/init.d/lighttpd install -D -m644 "$srcdir"/lighttpd.confd \ - "$pkgdir"/etc/conf.d/lighttpd || return 1 + "$pkgdir"/etc/conf.d/lighttpd install -D -m644 "$srcdir"/lighttpd.logrotate \ - "$pkgdir"/etc/logrotate.d/lighttpd || return 1 + "$pkgdir"/etc/logrotate.d/lighttpd # config files local i; for i in lighttpd.conf mime-types.conf mod_cgi.conf \ @@ -84,7 +89,7 @@ _mv_mod() { mkdir -p "$subpkgdir"/usr/lib/lighttpd while [ $# -gt 0 ]; do mv "$pkgdir"/usr/lib/lighttpd/$1.so \ - "$subpkgdir"/usr/lib/lighttpd/ || return 1 + "$subpkgdir"/usr/lib/lighttpd/ shift done } @@ -107,4 +112,5 @@ f2f3c5c7731550237fd75a8de66275f427eaf897cffff7ac7ef44178328ad8fad6c4ec6654759bfc a3f2f5763885d7e4f510491b24164e34aaf62bb02daa12991575dc64335c12668355af5bb8d6ce191eb4e9cce95324b1f7c9ba61b323b4e7b50a1e03e021afcf mime-types.conf 27cc638d8068dcf47bd9db44943d1db6c6f4e8e6abd6b42af7cea004b1c093440068541d98c68f8bea70b956713adaf8ed59a4b642dea826ee8620a05f8cfde5 mod_cgi.conf 1d15b84c03fb648a0e67ab5c5411b85478b4454c44bc2959cc96d1700eeadd7ff429520a5f1550db6527267646622dccd3d47d3fd1258869fccaf5c22d4ad4b2 mod_fastcgi.conf -f9efc4b70d825600f5356c30e57d0b6cac11c01739337f7192c09c2cfd96cb76c8328b11d818ea4c2addc1a6d253975b84700106ae75854d55d0df73e220bd2b mod_fastcgi_fpm.conf" +f9efc4b70d825600f5356c30e57d0b6cac11c01739337f7192c09c2cfd96cb76c8328b11d818ea4c2addc1a6d253975b84700106ae75854d55d0df73e220bd2b mod_fastcgi_fpm.conf +ce35c1d65d7b4fedd1fcfadd8a5e906d5efa8dcda318a4fa69958b708c2df329f708591f43b12adaaac4da6a2913d0cc8f9745e636e7f2016c1075bcd52c6bb2 char-signedness.patch" |