diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-05 00:04:31 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-05 00:04:31 +0100 |
commit | 3bc533a5e7868db315e243da314c66869f3df748 (patch) | |
tree | fcbb0e55de3d8de47b695445ef704b6be0a6e051 /main/mini_httpd | |
parent | 8e20547a98ce1ce0b63be8a47140883c117f5cc3 (diff) | |
download | aports-3bc533a5e7868db315e243da314c66869f3df748.tar.bz2 aports-3bc533a5e7868db315e243da314c66869f3df748.tar.xz |
main/mini_httpd: fix build on eglibc
Diffstat (limited to 'main/mini_httpd')
-rw-r--r-- | main/mini_httpd/APKBUILD | 14 |
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 \ |