mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
kcgi: unbreak
This commit is contained in:
parent
196205b690
commit
108b79ef64
1 changed files with 7 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
pkgname=kcgi
|
pkgname=kcgi
|
||||||
version=0.9.1
|
version=0.9.1
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-makefile
|
||||||
short_desc="Minimal CGI library for web applications in C"
|
short_desc="Minimal CGI library for web applications in C"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="ISC"
|
license="ISC"
|
||||||
|
@ -10,16 +10,19 @@ homepage="http://kristaps.bsd.lv/kcgi/"
|
||||||
distfiles="http://kristaps.bsd.lv/kcgi/snapshots/kcgi-${version}.tgz"
|
distfiles="http://kristaps.bsd.lv/kcgi/snapshots/kcgi-${version}.tgz"
|
||||||
checksum=9d4eb242b95eab948069bc32fc43bd04f3bc1f21cd1f25415a6a2f6538b896b3
|
checksum=9d4eb242b95eab948069bc32fc43bd04f3bc1f21cd1f25415a6a2f6538b896b3
|
||||||
|
|
||||||
broken="https://build.voidlinux.eu/builders/x86_64_builder/builds/27071/steps/shell_3/logs/stdio"
|
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl)
|
*-musl)
|
||||||
sed -i 's/u_int/uint/g' md5.c md5.h
|
sed -i 's/u_int/uint/g' md5.c md5.h
|
||||||
sed -i '/_DECLS/d' md5.h
|
sed -i '/_DECLS/d' md5.h
|
||||||
|
sed -i '/#include <string.h>/a\ #include <unistd.h>' auth.c parent.c httpauth.c
|
||||||
|
sed -i '/#include <stdlib.h>/a\ #include <unistd.h>' sandbox.c
|
||||||
|
sed -i '/#include <time.h>/a\ #include <sys/types.h>' datetime.c
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' Makefile
|
# do not build new kutil_log(3) interface
|
||||||
|
sed -i '/logging.[co]/d' GNUmakefile
|
||||||
|
sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' GNUmakefile
|
||||||
sed -n '2,16p' kcgi.c > LICENSE
|
sed -n '2,16p' kcgi.c > LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue