net-libs/kcgi: add 1.0.1, drop old

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2026-02-28 22:00:14 +05:00
parent a514e5e252
commit 6e99c92a16
3 changed files with 92 additions and 97 deletions

View File

@@ -1,2 +1,2 @@
DIST kcgi-0.13.3.tgz 249621 BLAKE2B a503031e8d0cd87eaab7920d1392f51276af723e59baee85a7fd02abfd294d151cc2ccf633207d7e40704fe9d71779d5d8c5582fc28fba02b41b62a924ce7003 SHA512 272ffec2fa31dc465b66c0c67ed5f5e1d9e5ebafbe17e84586299f4a266c1344d127ef04fda284b91a596fc4c6bc06f6e50a784b62bf198c9d3d06c210ae2282
DIST kcgi-0.13.4.tgz 269175 BLAKE2B 0d19cb6a4ee8bd49968c54ede85abdcd84d05460eed40de3f3445b5fce7e1377612ee5e70877d1261746dffd9c703387c6e3ee32a2ec99b6a8ce0a4874ff9e0b SHA512 070079a015e1bfbb575db16ef6ab40f0c2bbfcc166c83c83b2ac162ed3d5dd82764896b34a5bf125376079cdf040b59ea2bbcdf144d740b829e5113fd81c3a20
DIST kcgi-1.0.1.tgz 271225 BLAKE2B e9c1073d3933b4a0873065bb0ce406660c96ef4cccedb6801772f577d68e43f01dbfa9f264aad17ddfcf81fa661ec5806af73e73e48d2b3c4c95051c51338cac SHA512 36a341b4b6f2e5e568fbf2b60911ed0d895fd89fe5f0f415ecf5ee50d9c021bdb3f75fd77b07cc952a55b758cef2b9318ccdd9aeb8c9580edea888171c5dd7b0

View File

@@ -1,96 +0,0 @@
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic multilib multiprocessing toolchain-funcs
DESCRIPTION="Minimal CGI library for web applications"
HOMEPAGE="https://kristaps.bsd.lv/kcgi/"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/kristapsdz/${PN}"
else
SRC_URI="https://kristaps.bsd.lv/${PN}/snapshots/${P}.tgz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="ISC"
SLOT="0"
IUSE="static-libs test"
RESTRICT="!test? ( test )"
BDEPEND="dev-build/bmake"
RDEPEND="
app-crypt/libmd
virtual/libcrypt
"
DEPEND="${RDEPEND}
test? ( net-misc/curl[static-libs(-)] )
"
src_prepare() {
default
# ld: multiple definition of `dummy'
local deselect=( sandbox-{capsicum,darwin,pledge,seccomp-filter}.o )
case ${CHOST} in
*-linux-*)
deselect=( "${deselect[@]/sandbox-seccomp-filter.o}" )
;;
*-darwin*)
deselect=( "${deselect[@]/sandbox-darwin.o}" )
;;
*-freebsd*)
deselect=( "${deselect[@]/sandbox-capsicum.o}" )
;;
*-openbsd*)
deselect=( "${deselect[@]/sandbox-pledge.o}" )
;;
esac
for obj in "${deselect[@]}"; do
# elements are not deleted completely from the array
if [[ -n "${obj}" ]]; then
sed "/${obj}/d" -i Makefile || die
fi
done
}
src_configure() {
tc-export CC AR
append-cflags -fPIC
append-cppflags -DENABLE_SECCOMP_FILTER=1
append-cppflags -DSANDBOX_SECCOMP_DEBUG # seccomp may cause problems
# note: not an autoconf configure script
conf_args=(
CPPFLAGS="${CPPFLAGS}"
LDFLAGS="${LDFLAGS}"
PREFIX="${EPREFIX}"/usr
MANDIR="${EPREFIX}"/usr/share/man
LIBDIR="${EPREFIX}"/usr/$(get_libdir)
SBINDIR="${EPREFIX}"/usr/sbin
)
./configure "${conf_args[@]}" || die
}
src_compile() {
bmake || die
}
src_test() {
# TODO: add `afl` tests
bmake regress || die
}
src_install() {
bmake DESTDIR="${D}" \
DATADIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
install || die
einstalldocs
}

View File

@@ -0,0 +1,91 @@
# Copyright 2019-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Minimal CGI library for web applications"
HOMEPAGE="https://kristaps.bsd.lv/kcgi/"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/kristapsdz/${PN}"
else
SRC_URI="https://kristaps.bsd.lv/${PN}/snapshots/${P}.tgz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="ISC"
SLOT="0"
IUSE="debug static-libs test"
RESTRICT="!test? ( test )"
RDEPEND="
app-crypt/libmd
dev-libs/libbsd
virtual/libcrypt:=
virtual/zlib:=
"
DEPEND="${RDEPEND}
test? ( net-misc/curl )
"
BDEPEND="
dev-build/bmake
virtual/pkgconfig
kernel_linux? ( sys-kernel/linux-headers )
test? ( net-misc/curl )
"
# bug 921122
QA_CONFIG_IMPL_DECL_SKIP=( "*" )
src_prepare() {
default
# bug 921120
sed "/CFLAGS=/s/ -g / /" -i configure || die
}
src_configure() {
tc-export CC AR
append-cppflags $(usex debug "-DSANDBOX_SECCOMP_DEBUG" "-DNDEBUG")
# Recommended by upstream
append-cflags $(pkg-config --cflags libbsd-overlay)
append-ldflags $(pkg-config --libs libbsd-overlay)
# note: not an autoconf configure script
local conf_args=(
CFLAGS="${CFLAGS}"
CPPFLAGS="${CPPFLAGS}"
LDFLAGS="${LDFLAGS}"
PREFIX="${EPREFIX}/usr"
MANDIR="${EPREFIX}/usr/share/man"
LIBDIR="${EPREFIX}/usr/$(get_libdir)"
SBINDIR="${EPREFIX}/usr/sbin"
)
./configure "${conf_args[@]}" || die
}
src_compile() {
bmake all || die
}
src_test() {
# TODO: add `afl` tests
bmake regress || die
}
src_install() {
bmake DESTDIR="${D}" \
DATADIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
install || die
docompress -x /usr/share/doc/${PF}/examples
einstalldocs
# bug 921121
find "${ED}"/usr/$(get_libdir) -name "*.a" -delete || die
}