diff --git a/srcpkgs/tgt/template b/srcpkgs/tgt/template index 865a982b1eb..e1b6096fb5a 100644 --- a/srcpkgs/tgt/template +++ b/srcpkgs/tgt/template @@ -1,7 +1,7 @@ # Template file for 'tgt' pkgname=tgt version=1.0.58 -revision=1 +revision=2 build_style=gnu-makefile make_install_args="sbindir=/usr/bin" conf_files="/etc/tgt/targets.conf" @@ -15,6 +15,10 @@ homepage="http://stgt.sourceforge.net/" distfiles="https://github.com/fujita/tgt/archive/v${version}.tar.gz" checksum=3ae59c7374c68b3ef5abf472895d81dd1b036d0301b4111f272de154dbb082a9 +post_extract() { + sed -i 's/CFLAGS/MYCFLAGS/; s/\$(MYCFLAGS)/& $(CFLAGS)/g' usr/Makefile + +} post_install() { for f in ${DESTDIR}/etc/tgt/examples/*; do vsconf $f