31 lines
855 B
Bash
31 lines
855 B
Bash
# Template file for 'tgt'
|
|
pkgname=tgt
|
|
version=1.0.92
|
|
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="https://github.com/fujita/tgt"
|
|
distfiles="https://github.com/fujita/tgt/archive/v${version}.tar.gz"
|
|
checksum=06721dcdb88bcc13721bf5de92b57e84a208e04084f8ed937c3ecade6459662f
|
|
|
|
post_extract() {
|
|
sed -i 's/CFLAGS/MYCFLAGS/; s/\$(MYCFLAGS)/& $(CFLAGS) -Wno-error=stringop-truncation/g' usr/Makefile
|
|
}
|
|
|
|
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
|
|
}
|