smlinux/net/fcgiwrap/smbuild

42 lines
982 B
Bash

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=fcgiwrap
version=1.1.0
build=2sml
homepage="https://github.com/gnosek/fcgiwrap"
download="https://github.com/gnosek/fcgiwrap/archive/refs/tags/$version.tar.gz"
desc="Simple FastCGI wrapper for CGI scripts"
requires="fcgi"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/share/man
sed -i 's@-Werror@@g' Makefile
make
make install DESTDIR=$pkg
cp $srcdir/LICENSE $pkgdocs/
install -Dm 0755 $srcdir/spawn-fcgi $pkg/usr/bin/spawn-fcgi
install -Dm 0755 $srcdir/rc.spawn-fcgi $pkg/etc/rc.d/rc.spawn-fcgi
mkfinalpkg
}
sha512sums="
88234a72b9941532f259f799fd4e4f1b3b854b9a6689bcff943b4fc852013392fda2f43166289f15fa780f5d52bc4a7eabacf90f44d90e4f86346f371cd422ec fcgiwrap-1.1.0.tar.lz
"