diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-05-09 03:36:00 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-05-09 03:36:00 +0000 |
commit | 66018e3cb2f893ec3add478fcd86ed3334e46fa9 (patch) | |
tree | 3336c03eb23042b17727e6ab856ce359443b2d48 /community/open-iscsi/PKGBUILD | |
parent | 740a52614d0b18baf8d2177a89036a29c8cd3bd8 (diff) |
Fri May 9 03:32:12 UTC 2014
Diffstat (limited to 'community/open-iscsi/PKGBUILD')
-rw-r--r-- | community/open-iscsi/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/community/open-iscsi/PKGBUILD b/community/open-iscsi/PKGBUILD new file mode 100644 index 000000000..e739f4902 --- /dev/null +++ b/community/open-iscsi/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 110829 2014-05-08 12:33:51Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Stefan Kirrmann <stefan.kirrmann at gmail dot com> + +pkgname=open-iscsi +pkgver=2.0_873 +_pkgver=${pkgver/_/-} +pkgrel=6 +pkgdesc="userland tools" +arch=('i686' 'x86_64') +url="http://www.open-iscsi.org" +license=('GPL') +depends=('bash') +install=$pkgname.install +backup=('etc/iscsi/iscsid.conf' 'etc/iscsi/initiatorname.iscsi') +source=("http://www.open-iscsi.org/bits/${pkgname}-${_pkgver}.tar.gz" \ + "open-iscsi.service") +options=('docs') +sha256sums=('7dd9f2f97da417560349a8da44ea4fcfe98bfd5ef284240a2cc4ff8e88ac7cd9' + '7b8e37dd10a909a67ba7f7126f699920639be39adfa65f1d2b2bcd8846e58db7') + +build() { + cd ${srcdir}/${pkgname}-${_pkgver} + + # include iscsistart in the package + sed -i -e '/^PROGRAMS = /s/$/ usr\/iscsistart/' Makefile + + # build breaks if the openslp package is installed + sed -i -e 's/\(\.\/configure\)/ \1 --without-slp/g' Makefile + + make user +} + +package() { + cd ${srcdir}/${pkgname}-${_pkgver} + + make DESTDIR=${pkgdir} install_user + + install -D -m644 ${srcdir}/${pkgname}-${_pkgver}/etc/iscsid.conf ${pkgdir}/etc/iscsi + install -D -m644 ${srcdir}/open-iscsi.service ${pkgdir}/usr/lib/systemd/system/open-iscsi.service + + touch ${pkgdir}/etc/iscsi/initiatorname.iscsi + + # copy docs + mkdir -p ${pkgdir}/usr/share/doc/${pkgname} + install -m644 Changelog ${pkgdir}/usr/share/doc/${pkgname}/ + install -m644 README ${pkgdir}/usr/share/doc/${pkgname}/ + + mv $pkgdir/sbin $pkgdir/usr/bin +} |