tgt: fix CFLAGS.

This commit is contained in:
Christian Neukirchen 2015-05-17 16:19:07 +02:00
parent e9cdaad3c4
commit 856b911388

View File

@ -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