34 lines
979 B
Bash
34 lines
979 B
Bash
# Template file for 'tgt'
|
|
pkgname=tgt
|
|
version=1.0.59
|
|
revision=1
|
|
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"
|
|
checksum=62f8fa49f1d5583be35bf2a51d61c05d278533a47f96400ba190211d7dbd1f27
|
|
|
|
post_extract() {
|
|
sed -i 's/CFLAGS/MYCFLAGS/; s/\$(MYCFLAGS)/& $(CFLAGS)/g' usr/Makefile
|
|
sed -i '1i#include <sys/user.h>' usr/tgtd.h usr/util.h
|
|
sed -i '1i#include <fcntl.h>' usr/libssc.c
|
|
sed -i 's/__always_inline/inline/g' usr/util.h
|
|
|
|
}
|
|
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
|
|
}
|