# Maintainer: Forza pkgname=scsi-tgt pkgver=1.0.87 pkgrel=1 pkgdesc="user-space iSCSI target daemon" url="https://github.com/fujita/tgt" arch="all" license="GPL-2.0-only" makedepends=" docbook-xsl libxslt linux-headers " subpackages="$pkgname-openrc $pkgname-doc $pkgname-scripts::noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/fujita/tgt/archive/refs/tags/v$pkgver.tar.gz ldflags.patch lfs64.patch reg.patch tgt-admin.confd tgt-admin.initd tgtd.confd tgtd.initd " builddir="$srcdir/tgt-$pkgver" options="!check" # no test suite present build() { make LDFLAGS="$LDFLAGS" } package() { make DESTDIR="$pkgdir" install install -Dm755 "$srcdir"/tgtd.initd \ "$pkgdir"/etc/init.d/tgtd install -Dm644 "$srcdir"/tgtd.confd \ "$pkgdir"/etc/conf.d/tgtd install -Dm755 "$srcdir"/tgt-admin.initd \ "$pkgdir"/etc/init.d/tgt-admin install -Dm644 "$srcdir"/tgt-admin.confd \ "$pkgdir"/etc/conf.d/tgt-admin } doc() { default_doc amove etc/tgt/examples } scripts() { pkgdesc="$pkgdesc (perl/bash scripts)" depends="$pkgname=$pkgver-r$pkgrel bash perl perl-config-general" amove \ usr/sbin/tgt-admin \ usr/sbin/tgt-setup-lun } sha512sums=" 362adfc92f9fc6528b3de0aa9f202e39f6035b92fe3078236a3f75c0aef540a82cb4594077fdc7de2e524acc75601f5696111cc9aebc6de6265c53cd1d073db2 scsi-tgt-1.0.87.tar.gz 84a3ae20cff6e265dfbb7ca47390303ac6caed38f1112ed0227fb9742903395725e269bcc4b6ebd08db710301bc49236e95d5d242abb2a5f9ba94335aae6b7d6 ldflags.patch b2dd123662de37bef39db6c5d6282ec188bad36ce3121c50a9c94582c3126cfd59ed0400158d66505296218477fce7a15185cc889c2c9f35f8439332fafcdeef lfs64.patch 361233a15475988dd65eae7d7eaf53b94c05630f2c5ad80923e57063a8ef92c4c7630f4aef6bdadbd2ab0a7c779a3e196a400c7ec397a54c61bc19963dfda422 reg.patch 1eac80c05c462a325582aa610f5f37f427eb70695bd95b66fe368fbbee24455b7cb80162a2925919544253703a83fd6a96f1d1a383ddf3889b44d82904fcae50 tgt-admin.confd 5487eb9a9160f8f50e4772db968535b4ee86e6b9ce7f7f5c9908081612777e75dd6c79c690a5babae125a96e884a45d80106e834edfbf7822f3c8317bd951e0f tgt-admin.initd 01d89be24c126beb9765be5fbd840aaf9883fd22af2f9f02af8c42e318cf651ec07072e5a1d16b63c66d109591cb754da61ffab01de96668663ada0aa87ccf0c tgtd.confd 5ca2bfd73f71ef0d1381d15a3656863e3e41628a3925d24e758a2f2738102c902dad597a924488e0eec73798086ceafb25480185199ae53ac487660ad7ca0a72 tgtd.initd "