From 3cbbb19d0e8d6921ac72e7f2bc9201028eb10fd7 Mon Sep 17 00:00:00 2001 From: sodface Date: Fri, 3 May 2024 18:25:50 +0000 Subject: [PATCH] community/althttpd: add utils sub-package --- community/althttpd/APKBUILD | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/community/althttpd/APKBUILD b/community/althttpd/APKBUILD index 5593cfdb1e1..99193b2e9ac 100644 --- a/community/althttpd/APKBUILD +++ b/community/althttpd/APKBUILD @@ -7,9 +7,9 @@ pkgdesc="Small, simple, stand-alone HTTP server" url="https://sqlite.org/althttpd/doc/trunk/althttpd.md" arch="all" license="Public-Domain" -makedepends="openssl-dev>3" +makedepends="openssl-dev>3 sqlite-dev" options="!check" # no test suite -subpackages="$pkgname-doc $pkgname-openrc" +subpackages="$pkgname-doc $pkgname-openrc $pkgname-utils" source=" $pkgname-$pkgver.tar.gz::https://sqlite.org/althttpd/tarball?r=$pkgver 10-allow-filename-plus-sign.patch @@ -20,7 +20,7 @@ builddir="$srcdir" build() { sed -in -e 's/^CFLAGS=/CFLAGS+=/' Makefile - make althttpsd + make althttpsd logtodb } package() { @@ -30,10 +30,18 @@ package() { "$pkgdir"/etc/init.d/althttpd install -D althttpsd \ "$pkgdir"/usr/bin/althttpd + install -D logtodb \ + "$pkgdir"/usr/bin/logtodb install -Dm644 althttpd.md \ "$pkgdir"/usr/share/doc/$pkgname/althttpd.md } +utils() { + pkgdesc="$pkgname utilities" + + amove /usr/bin/logtodb +} + sha512sums=" c99bbd7cd5cb844bffa62d154c91b0275071ed7acc5f9f5021fbdd9e8fc07478dc990a8615644e1d57ab4d39250fd0ac65efdc0f7cfb70fba5a0b2fe9a2e5524 althttpd-202405010759.tar.gz ece2633a822589f1e49129bf00fb4b066e9d079e3e56f7c78e3bcba02c8aad9ae3ee75f6459360524d7c2a3a7dc7cfea4eb1652b4cbf1aff60d968e1f816b535 10-allow-filename-plus-sign.patch