void-packages/srcpkgs/tgt/template
Leah Neukirchen a5c7b28b97 skaffold: update to 0.32.0.
Adopted.

Fix version display.
2019-07-02 15:22:22 +02:00

35 lines
1.1 KiB
Bash

# Template file for 'tgt'
pkgname=tgt
version=1.0.79
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="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-only"
homepage="http://stgt.sourceforge.net/"
distfiles="https://github.com/fujita/tgt/archive/v${version}.tar.gz"
checksum=6736d799a202ff665549359859441c6d2b5e3425bffef9ee60ab5a101342a40d
post_extract() {
sed -i 's/CFLAGS/MYCFLAGS/; s/\$(MYCFLAGS)/& $(CFLAGS) -Wno-error=stringop-truncation/g' usr/Makefile
sed -i '/^LDFLAGS/d; /CC.*-o/s/$/ $(LDFLAGS)/' 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 '1i#include <sys/sysmacros.h>' usr/bs_sg.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
}