aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hiawatha
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-11-17 09:15:12 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-11-18 09:56:44 +0000
commite97929951431659b385e74003db6cdc7f7f7dbd4 (patch)
tree9ab04c243c3a67aabe4adbccbe41708226525bec /testing/hiawatha
parent2b81d05b2a5441489850bfa52acd4cad44a37690 (diff)
downloadaports-e97929951431659b385e74003db6cdc7f7f7dbd4.tar.bz2
aports-e97929951431659b385e74003db6cdc7f7f7dbd4.tar.xz
testing/hiawatha: upgrade to 10.4, made APKBUILD more consistent
Diffstat (limited to 'testing/hiawatha')
-rw-r--r--testing/hiawatha/APKBUILD23
1 files changed, 7 insertions, 16 deletions
diff --git a/testing/hiawatha/APKBUILD b/testing/hiawatha/APKBUILD
index 5929354b66..7650cdc644 100644
--- a/testing/hiawatha/APKBUILD
+++ b/testing/hiawatha/APKBUILD
@@ -2,7 +2,7 @@
# Contributor: Pascal Ernster <aur at hardfalcon dot net>
pkgname=hiawatha
-pkgver=10.3
+pkgver=10.4
pkgrel=0
pkgdesc='Secure and advanced webserver'
url='https://www.hiawatha-webserver.org/'
@@ -14,19 +14,10 @@ makedepends="cmake libxml2-dev libxslt-dev mbedtls-dev"
source="https://hiawatha-webserver.org/files/$pkgname-$pkgver.tar.gz
hiawatha.initd
hiawatha.conf.sample"
+builddir="$srcdir"/$pkgname-$pkgver
-_builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
build() {
- cd "$srcdir"/$pkgname-$pkgver
-
+ cd "$builddir"
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_BINDIR=/usr/bin \
-DCMAKE_INSTALL_SBINDIR=/usr/sbin \
@@ -44,7 +35,7 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$builddir"
make DESTDIR="$pkgdir/" install || return 1
sed -i 's|#ServerId = www-data|ServerId = nobody|' \
@@ -58,12 +49,12 @@ package() {
"$pkgdir"/usr/share/doc/hiawatha/hiawatha.conf.sample || return 1
}
-md5sums="31567dfc18d435bd419be279f7970019 hiawatha-10.3.tar.gz
+md5sums="ad6514ff150859bf4b7fecc42fbb1351 hiawatha-10.4.tar.gz
a3481042b75637e1b71dee531f29a98d hiawatha.initd
fb24fcbfa820a5b85f6c4c8a520a6920 hiawatha.conf.sample"
-sha256sums="99d185fb16bb1ab706724494d3cac86464f1485ed4b0fff09a192eca6da5ff8e hiawatha-10.3.tar.gz
+sha256sums="e40ebcbde8fbd5a14dbf7279143757aea02a461940daa5c460496871eaa75454 hiawatha-10.4.tar.gz
eb15090af441fce68115b22c99a23fd80d15c031d1b0d83abd36aaf1191e2230 hiawatha.initd
4671d2586cbe3cd6497b16ff422c6143cdab40641ef3c9c4988c478351a8f5e7 hiawatha.conf.sample"
-sha512sums="628b8042f732c02eb86d98798078c93cafeadaee1adaebed41a2e40b3c8efb8a1f281403125568d207d8326354dbbb651f6894a69f44142ced5f407d576c725b hiawatha-10.3.tar.gz
+sha512sums="580476d611f700f6f6a6e909625519ac10f19e41384c57c764c79d71cb66d73d20c1058dd7ae725257ecfc1ddb4cae9c42c0bc5d239bd9b8cd805bfaaef54db5 hiawatha-10.4.tar.gz
4e1201110396e13b979948caae9c2dfb34f55398225d924164d2f0818b6778500ef3426b0ad358210ef7780289fbd752f7e006220941437fbcdd378746bf5a3d hiawatha.initd
b2aad6d02e03a3e25dc6dc30deab4637a7de5448255b6b707363e8c71ae1029e669bacdb6b88889ec1aa804fe717560e872dc44d049127af9aa155a8895c8a60 hiawatha.conf.sample"