[arch-commits] Commit in open-iscsi/repos (3 files)
Christian Hesse
eworm at archlinux.org
Sat Jul 25 11:08:40 UTC 2020
Date: Saturday, July 25, 2020 @ 11:08:40
Author: eworm
Revision: 665263
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 665262, open-iscsi/trunk/PKGBUILD)
open-iscsi/repos/community-testing-x86_64/open-iscsi.install
(from rev 665262, open-iscsi/trunk/open-iscsi.install)
--------------------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
open-iscsi.install | 12 ++++++++++++
2 files changed, 52 insertions(+)
Copied: open-iscsi/repos/community-testing-x86_64/PKGBUILD (from rev 665262, open-iscsi/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-07-25 11:08:40 UTC (rev 665263)
@@ -0,0 +1,40 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Stefan Kirrmann <stefan.kirrmann at gmail dot com>
+
+pkgname=open-iscsi
+pkgver=2.1.2
+pkgrel=1
+pkgdesc='iSCSI userland tools'
+arch=('x86_64')
+url='https://www.open-iscsi.com/'
+license=('GPL')
+makedepends=('systemd')
+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=('ba5125b5803aeac7de36b2cd777abc1b63d194983ede8b34fa82de8a5a1aa19c')
+
+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 665262, open-iscsi/trunk/open-iscsi.install)
===================================================================
--- community-testing-x86_64/open-iscsi.install (rev 0)
+++ community-testing-x86_64/open-iscsi.install 2020-07-25 11:08:40 UTC (rev 665263)
@@ -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