From 7180e3fee7185e6fafffe5e750173838cec0c430 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Mon, 27 Jul 2015 06:59:31 +0000 Subject: testing/thttpd: upgrade to 2.26. Now it belongs to www-data, remove setuid from makeweb --- testing/thttpd/APKBUILD | 44 ++++++++++++++++------------- testing/thttpd/thttpd-makeweb-notsuid.patch | 12 ++++++++ testing/thttpd/thttpd-webgroup.patch | 13 +++++++++ testing/thttpd/thttpd.conf | 2 +- testing/thttpd/thttpd.initd | 3 +- testing/thttpd/thttpd.post-install | 4 +-- testing/thttpd/thttpd.pre-install | 6 ++-- 7 files changed, 57 insertions(+), 27 deletions(-) create mode 100644 testing/thttpd/thttpd-makeweb-notsuid.patch create mode 100644 testing/thttpd/thttpd-webgroup.patch (limited to 'testing') diff --git a/testing/thttpd/APKBUILD b/testing/thttpd/APKBUILD index 3c80b7a9c5..bd067e7382 100644 --- a/testing/thttpd/APKBUILD +++ b/testing/thttpd/APKBUILD @@ -1,7 +1,7 @@ # Contributor: z3bra # Maintainer: pkgname=thttpd -pkgver=2.25b +pkgver=2.26 pkgrel=0 pkgdesc="Simple, small, portable, fast, adn secure HTTP server" url="http://www.acme.com/software/thttpd" @@ -17,9 +17,9 @@ source="http://www.acme.com/software/$pkgname/$pkgname-$pkgver.tar.gz thttpd.confd thttpd.conf thttpd.logrotated - discreet.patch + thttpd-webgroup.patch forwarded-for.patch - getline.patch + thttpd-makeweb-notsuid.patch " _builddir=$srcdir/$pkgname-$pkgver @@ -54,7 +54,7 @@ package() { BINDIR="$pkgdir"/usr/sbin \ WEBDIR="$pkgdir"/var/www/http \ MANDIR="$pkgdir"/usr/share/man \ - WEBGROUP=root install || return 1 + WEBGROUP=www-data install || return 1 rm -rf "$pkgdir"/var/www/http/* @@ -71,29 +71,35 @@ package() { install -d "$pkgdir"/usr/share/licenses/"$pkgname" head -n 26 thttpd.c > \ "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE || return 1 + mkdir -p "$pkgdir/usr/share/doc/$pkgname" + cat > $pkgdir/usr/share/doc/$pkgname/README.alpine </dev/null +adduser -S -G thttpd -H -h /var/www/localhost/htdocs -s /sbin/nologin \ + -D thttpd 2>/dev/null +addgroup thttpd www-data 2>/dev/null -- cgit v1.2.1