Added sthttpd package.
This commit is contained in:
56
sthttpd/PKGBUILD
Normal file
56
sthttpd/PKGBUILD
Normal file
@@ -0,0 +1,56 @@
|
||||
# Maintainer: Michael Kuc <michaelkuc6 at gmail dot com>
|
||||
# Contributor: Anthony G. Basile <blueness at gentoo dot org>
|
||||
|
||||
pkgname=sthttpd-git
|
||||
pkgver=2.27.1
|
||||
pkgrel=1
|
||||
epoch=
|
||||
pkgdesc="a fork of thttpd, a tiny/turbo/throttling HTTP server"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/blueness/sthttpd"
|
||||
license=('custom:BSD')
|
||||
groups=()
|
||||
makedepends=()
|
||||
checkdepends=()
|
||||
optdepends=()
|
||||
provides=('thttpd')
|
||||
conflicts=('sthttpd')
|
||||
replaces=('thttpd')
|
||||
backup=()
|
||||
options=()
|
||||
changelog=
|
||||
source=("git+https://github.com/blueness/sthttpd.git"
|
||||
"config"
|
||||
"thttpd.h")
|
||||
noextract=()
|
||||
sha256sums=("SKIP"
|
||||
"0aab1ed67c057ad5755a6c8530554236f48f4e5371e7611e090852d43bcfca9e"
|
||||
"SKIP")
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/sthttpd/"
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/sthttpd/"
|
||||
./configure --prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man
|
||||
mv "$srcdir/thttpd.h" "$srcdir/sthttpd/src/"
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
:
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/sthttpd/"
|
||||
make DESTDIR="${pkgdir}/" install
|
||||
|
||||
install -Dm644 ../config "${pkgdir}"/etc/thttpd.conf
|
||||
install -Dm644 README.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
|
||||
# Avoid conflicts with Apache
|
||||
mv "${pkgdir}"/usr/bin/htpasswd{,-thttpd}
|
||||
mv "${pkgdir}"/usr/share/man/man1/htpasswd{,-thttpd}.1
|
||||
}
|
||||
Reference in New Issue
Block a user