void-packages/srcpkgs/httpry/template

31 lines
940 B
Bash
Raw Normal View History

# Template file for 'httpry'
pkgname=httpry
version=0.1.8
revision=1
build_style=gnu-makefile
makedepends="libpcap-devel"
short_desc="HTTP logging and information retrieval tool"
maintainer="Florian Wagner <florian@wagner-flo.net>"
homepage="http://dumpsterventures.com/jason/httpry/"
license="GPL-2"
distfiles="https://github.com/jbittel/${pkgname}/archive/${pkgname}-${version}.tar.gz"
checksum=b3bcbec3fc6b72342022e940de184729d9cdecb30aa754a2c994073447468cf0
wrksrc="${pkgname}-${pkgname}-${version}"
2017-07-01 13:46:27 +02:00
post_extract() {
sed -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}
2017-07-01 13:46:27 +02:00
ln -s ../../share/doc/${pkgname}/perl-tools \
${PKGDESTDIR}/usr/lib/${pkgname}/perl-tools
}