aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-10-30 14:44:29 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-10-30 14:44:57 +0100
commite7faf9e3325add38a93588d87d3809fc4d56756a (patch)
tree74a7c071aff3bee04190772cee76bb2a243789ee
parentaa5ae96e3a9545d577f0c8d08a3d6543c8243781 (diff)
downloadaports-e7faf9e3325add38a93588d87d3809fc4d56756a.tar.bz2
aports-e7faf9e3325add38a93588d87d3809fc4d56756a.tar.xz
main/lighttpd: improve abuild
-rw-r--r--main/lighttpd/APKBUILD43
1 files changed, 18 insertions, 25 deletions
diff --git a/main/lighttpd/APKBUILD b/main/lighttpd/APKBUILD
index 3992e48d51..673056cf1b 100644
--- a/main/lighttpd/APKBUILD
+++ b/main/lighttpd/APKBUILD
@@ -3,17 +3,19 @@
pkgname=lighttpd
pkgver=1.4.42
pkgrel=0
-pkgdesc="a secure, fast, compliant and very flexible web-server"
+pkgdesc="A secure, fast, compliant and very flexible web-server"
url="http://www.lighttpd.net/"
arch="all"
license="custom"
install="$pkgname.pre-install $pkgname.pre-upgrade"
-depends=
+depends=""
pkgusers="lighttpd"
pkggroups="lighttpd"
makedepends="flex pcre-dev libressl-dev zlib-dev bzip2-dev lua5.3-dev
automake autoconf openldap-dev libxml2-dev sqlite-dev libev-dev
gamin-dev"
+subpackages="$pkgname-doc $pkgname-dbg $pkgname-mod_auth
+ $pkgname-mod_webdav"
source="http://download.lighttpd.net/lighttpd/releases-1.4.x/$pkgname-$pkgver.tar.xz
$pkgname.initd
$pkgname.confd
@@ -22,24 +24,12 @@ 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
- "
-subpackages="$pkgname-doc $pkgname-dbg $pkgname-mod_auth
- $pkgname-mod_webdav"
-
-prepare() {
- cd "$srcdir"/$pkgname-$pkgver
-
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+ mod_fastcgi_fpm.conf"
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- local i
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$builddir"
+
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -60,12 +50,12 @@ build() {
--with-libev \
--with-lua \
|| return 1
-
make
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$builddir"
+
make DESTDIR="$pkgdir" install || return 1
# create dirs
@@ -76,13 +66,17 @@ package() {
"$pkgdir"/var/www/localhost/htdocs || return 1
# lighttpd
- install -D -m755 "$srcdir"/lighttpd.initd "$pkgdir"/etc/init.d/lighttpd
- install -D -m644 "$srcdir"/lighttpd.confd "$pkgdir"/etc/conf.d/lighttpd
+ install -D -m755 "$srcdir"/lighttpd.initd \
+ "$pkgdir"/etc/init.d/lighttpd || return 1
+ install -D -m644 "$srcdir"/lighttpd.confd \
+ "$pkgdir"/etc/conf.d/lighttpd || return 1
install -D -m644 "$srcdir"/lighttpd.logrotate \
- "$pkgdir"/etc/logrotate.d/lighttpd
+ "$pkgdir"/etc/logrotate.d/lighttpd || return 1
# config files
- for i in lighttpd.conf mime-types.conf mod_cgi.conf mod_fastcgi.conf mod_fastcgi_fpm.conf; do
+ local i; for i in lighttpd.conf mime-types.conf mod_cgi.conf \
+ mod_fastcgi.conf mod_fastcgi_fpm.conf
+ do
install -m644 "$srcdir"/$i "$pkgdir"/etc/lighttpd/$i
done
}
@@ -106,7 +100,6 @@ mod_webdav() {
_mv_mod mod_webdav
}
-
md5sums="53c55d7e1dac7adec161cd5490491f6d lighttpd-1.4.42.tar.xz
454fcefb873a08b7556d77ade17387ef lighttpd.initd
61a416bbbc504843142bdfe8077964e0 lighttpd.confd