[arch-commits] Commit in open-iscsi/repos (3 files)
Christian Hesse
eworm at archlinux.org
Thu Mar 5 07:17:53 UTC 2020
Date: Thursday, March 5, 2020 @ 07:17:52
Author: eworm
Revision: 590692
archrelease: copy trunk to community-testing-x86_64
Added:
open-iscsi/repos/community-testing-x86_64/
open-iscsi/repos/community-testing-x86_64/PKGBUILD
(from rev 590691, open-iscsi/trunk/PKGBUILD)
open-iscsi/repos/community-testing-x86_64/open-iscsi.install
(from rev 590691, open-iscsi/trunk/open-iscsi.install)
--------------------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
open-iscsi.install | 12 ++++++++++++
2 files changed, 51 insertions(+)
Copied: open-iscsi/repos/community-testing-x86_64/PKGBUILD (from rev 590691, open-iscsi/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-03-05 07:17:52 UTC (rev 590692)
@@ -0,0 +1,39 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Stefan Kirrmann <stefan.kirrmann at gmail dot com>
+
+pkgname=open-iscsi
+pkgver=2.1.1
+pkgrel=1
+pkgdesc='iSCSI userland tools'
+arch=('x86_64')
+url='https://www.open-iscsi.com/'
+license=('GPL')
+depends=('systemd-libs' 'libutil-linux' 'kmod' 'openssl' 'open-isns')
+install=$pkgname.install
+backup=('etc/iscsi/iscsid.conf'
+ 'etc/iscsi/initiatorname.iscsi')
+options=('docs')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/open-iscsi/open-iscsi/archive/$pkgver.tar.gz")
+sha256sums=('dfc1ea37f230f9d116f5b39c795b35be43002d65c81330ccd3878786532b811b')
+
+build() {
+ cd "$srcdir"/${pkgname}-${pkgver}
+
+ make user LIB_DIR=/usr/lib
+}
+
+package() {
+ cd "$srcdir"/${pkgname}-${pkgver}
+
+ make DESTDIR="$pkgdir" LIB_DIR=/usr/lib install install_systemd
+
+ install -D -m0644 "$srcdir"/${pkgname}-${pkgver}/etc/iscsid.conf "$pkgdir"/etc/iscsi
+ echo -n > "$pkgdir"/etc/iscsi/initiatorname.iscsi
+
+ # copy docs
+ mkdir -p "$pkgdir"/usr/share/doc/${pkgname}
+ install -m0644 Changelog "$pkgdir"/usr/share/doc/${pkgname}/
+ install -m0644 README "$pkgdir"/usr/share/doc/${pkgname}/
+
+ mv "$pkgdir"/sbin "$pkgdir"/usr/bin
+}
Copied: open-iscsi/repos/community-testing-x86_64/open-iscsi.install (from rev 590691, open-iscsi/trunk/open-iscsi.install)
===================================================================
--- community-testing-x86_64/open-iscsi.install (rev 0)
+++ community-testing-x86_64/open-iscsi.install 2020-03-05 07:17:52 UTC (rev 590692)
@@ -0,0 +1,12 @@
+post_install() {
+ if [ -z $(<etc/iscsi/initiatorname.iscsi) ]; then
+ name=$(iscsi-iname)
+ echo
+ echo ">>> Setting Initiatorname '$name'"
+ echo "InitiatorName=$name" >etc/iscsi/initiatorname.iscsi
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
More information about the arch-commits
mailing list