void-packages/srcpkgs/httpry/template

30 lines
906 B
Bash

# Template file for 'httpry'
pkgname=httpry
version=0.1.8
revision=2
build_style=gnu-makefile
makedepends="libpcap-devel"
short_desc="HTTP logging and information retrieval tool"
maintainer="Florian Wagner <florian@wagner-flo.net>"
license="GPL-2.0-only"
homepage="http://dumpsterventures.com/jason/httpry/"
distfiles="https://github.com/jbittel/${pkgname}/archive/${pkgname}-${version}.tar.gz"
checksum=b3bcbec3fc6b72342022e940de184729d9cdecb30aa754a2c994073447468cf0
post_extract() {
vsed -i -e'/^CC /d' \
-e 's/^CCFLAGS .*/CCFLAGS=$(CFLAGS) $(LDFLAGS)/' Makefile
}
do_install() {
vmkdir usr/share/doc/${pkgname}
vmkdir usr/lib/${pkgname}
vbin httpry
vman httpry.1
vcopy "doc/*" usr/share/doc/${pkgname}
vcopy "scripts/plugins" usr/lib/${pkgname}
vcopy "scripts/parse_log.pl" usr/lib/${pkgname}
ln -s ../../share/doc/${pkgname}/perl-tools \
${PKGDESTDIR}/usr/lib/${pkgname}/perl-tools
}