aboutsummaryrefslogtreecommitdiffstats
path: root/community/targetcli/APKBUILD
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2020-07-11 13:10:50 +0300
committerLeo <thinkabit.ukim@gmail.com>2020-07-11 13:41:56 +0000
commit384e0ecfbba5f8aa24903f4c979be04c27896c5d (patch)
tree6f8cab486aa910ce7cd8659b727d55a0ab741945 /community/targetcli/APKBUILD
parente28c186637d10ed1a712eeeb9396c99c04dd93e2 (diff)
downloadaports-384e0ecfbba5f8aa24903f4c979be04c27896c5d.tar.gz
aports-384e0ecfbba5f8aa24903f4c979be04c27896c5d.tar.bz2
aports-384e0ecfbba5f8aa24903f4c979be04c27896c5d.tar.xz
community/targetcli: upgrade to 2.1.53
* CVE-2020-13867, CVE-2020-10699 * Add secfixes and remove redundant man page compression. * Avoid installing systemd unit files.
Diffstat (limited to 'community/targetcli/APKBUILD')
-rw-r--r--community/targetcli/APKBUILD22
1 files changed, 16 insertions, 6 deletions
diff --git a/community/targetcli/APKBUILD b/community/targetcli/APKBUILD
index 0dfe0eac20..ad3e233f2b 100644
--- a/community/targetcli/APKBUILD
+++ b/community/targetcli/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=targetcli
-pkgver=2.1.51
-pkgrel=1
+pkgver=2.1.53
+pkgrel=0
pkgdesc="Administration shell for storage targets"
url="https://github.com/open-iscsi/targetcli-fb"
arch="noarch"
@@ -19,23 +19,33 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/open-iscsi/targetcli-fb/arch
options="!check" # no test suite
builddir="$srcdir"/$pkgname-fb-$pkgver
+# secfixes:
+# 2.1.53-r0:
+# - CVE-2020-13867
+# - CVE-2020-10699
+
+prepare() {
+ default_prepare
+ # do not install systemd files in setup.py
+ sed -i '/data_files/d' setup.py
+}
+
build() {
python3 setup.py build
- gzip targetcli.8
}
package() {
python3 setup.py install --root="$pkgdir"
mkdir -p "$pkgdir"/var/lib/target/fabric
mkdir -p "$pkgdir"/etc/target
- install -D -m644 $pkgname.8.gz \
- "$pkgdir"/usr/share/man/man8/$pkgname.8.gz
+ install -D -m644 $pkgname.8 -t \
+ "$pkgdir"/usr/share/man/man8
install -D -m755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname
install -D -m644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname
}
-sha512sums="a94f251889913888c430cfe2b2fa1b27e4cd01f05627f1c3f0d4c72145b23081be189b7ca5d381bffa0da74ba6a53146e7ca964ff864cb532f132e24bc205b9a targetcli-2.1.51.tar.gz
+sha512sums="acefa7f8df8ee901cae8f04cbeb264d6024100e2d8b8343024bc52842af88a23d1bf5dd880ff2c77046bd8da8493630b4e357103617c02d1a90947e42c3a7c92 targetcli-2.1.53.tar.gz
ea886be1cf0b2c4266553f3b3f4072c2632ce28d8dd449f355fb2989fac16937a4d022622dad2d965b0b5e4c25e72e5a62fd52ba37b4fe2c334d2e06b4cd2c1b targetcli.initd
b0cedfb351dabcd6febe660dd95b5f2bab89f38849d346e46f57c32a4057f6bd2347e9a93a9e9010f4c7ff91f16c0fd33f02ad0cacf9fb801de76da4d25ad9e3 targetcli.confd"