2015-01-01 21:47:18 +01:00
|
|
|
# Template file for 'tgt'
|
|
|
|
pkgname=tgt
|
2015-05-03 15:51:42 +02:00
|
|
|
version=1.0.58
|
2015-05-19 20:03:07 +02:00
|
|
|
revision=4
|
2015-01-01 21:47:18 +01:00
|
|
|
build_style=gnu-makefile
|
|
|
|
make_install_args="sbindir=/usr/bin"
|
|
|
|
conf_files="/etc/tgt/targets.conf"
|
|
|
|
make_dirs="/etc/tgt/conf.d 0755 root root"
|
|
|
|
hostmakedepends="libxslt docbook-xsl"
|
|
|
|
depends="perl-Config-General"
|
|
|
|
short_desc="Linux SCSI target framework"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="GPL-3"
|
|
|
|
homepage="http://stgt.sourceforge.net/"
|
|
|
|
distfiles="https://github.com/fujita/tgt/archive/v${version}.tar.gz"
|
2015-05-03 15:51:42 +02:00
|
|
|
checksum=3ae59c7374c68b3ef5abf472895d81dd1b036d0301b4111f272de154dbb082a9
|
2015-01-01 21:47:18 +01:00
|
|
|
|
2015-05-17 16:19:07 +02:00
|
|
|
post_extract() {
|
|
|
|
sed -i 's/CFLAGS/MYCFLAGS/; s/\$(MYCFLAGS)/& $(CFLAGS)/g' usr/Makefile
|
2015-05-19 20:03:07 +02:00
|
|
|
sed -i '1i#include <sys/user.h>' usr/tgtd.h usr/util.h
|
2015-05-19 19:06:09 +02:00
|
|
|
sed -i '1i#include <fcntl.h>' usr/libssc.c
|
|
|
|
sed -i 's/__always_inline/inline/g' usr/util.h
|
2015-05-17 16:19:07 +02:00
|
|
|
|
|
|
|
}
|
2015-01-01 21:47:18 +01:00
|
|
|
post_install() {
|
|
|
|
for f in ${DESTDIR}/etc/tgt/examples/*; do
|
|
|
|
vsconf $f
|
|
|
|
rm $f
|
|
|
|
done
|
|
|
|
|
|
|
|
vman doc/manpages/targets.conf.5
|
|
|
|
rm -rf ${DESTDIR}/usr/share/doc/tgt/html
|
|
|
|
}
|