aboutsummaryrefslogtreecommitdiffstats
path: root/main/mini_httpd
diff options
context:
space:
mode:
Diffstat (limited to 'main/mini_httpd')
-rw-r--r--main/mini_httpd/APKBUILD14
1 files changed, 12 insertions, 2 deletions
diff --git a/main/mini_httpd/APKBUILD b/main/mini_httpd/APKBUILD
index 540d907a14..d22ded9cec 100644
--- a/main/mini_httpd/APKBUILD
+++ b/main/mini_httpd/APKBUILD
@@ -16,14 +16,24 @@ source="http://www.acme.com/software/mini_httpd/$pkgname-$pkgver.tar.gz
$pkgname.logrotate
"
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ sed -i s:getline:htgetline:g \
+ htpasswd.c || return 1
+}
+
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
make CFLAGS="${CFLAGS} -DUSE_SSL" \
LDFLAGS="${LDFLAGS}" \
SSL_LIBS="-lssl -lcrypto" \
|| return 1
-# SSL_DEFS="-DUSE_SSL" \
+}
+package() {
+ cd "$_builddir"
# does not respect DESTDIR
make install \
BINDIR="$pkgdir"/usr/sbin \