From 5d8c060e6e55f15df4c6de46ea7c70098928d4db Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Mon, 23 Jul 2012 23:26:45 -0400 Subject: [PATCH] aur/open-iscsi to 2.0.873-4 --- aur/open-iscsi/PKGBUILD | 8 +++++--- aur/open-iscsi/open-iscsi.service | 10 ++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 aur/open-iscsi/open-iscsi.service diff --git a/aur/open-iscsi/PKGBUILD b/aur/open-iscsi/PKGBUILD index f8977a852..3d0d41a05 100644 --- a/aur/open-iscsi/PKGBUILD +++ b/aur/open-iscsi/PKGBUILD @@ -2,7 +2,7 @@ pkgname=open-iscsi pkgver=2.0.873 _pkgver=2.0-873 -pkgrel=3 +pkgrel=4 pkgdesc="userland tools" arch=('i686' 'x86_64') url="http://www.open-iscsi.org" @@ -11,11 +11,12 @@ depends=('bash') install=$pkgname.install backup=('etc/iscsi/iscsid.conf' 'etc/iscsi/initiatorname.iscsi' 'etc/conf.d/open-iscsi') source=("http://www.open-iscsi.org/bits/${pkgname}-${_pkgver}.tar.gz" \ - "open-iscsi" "open-iscsi.conf.d") + "open-iscsi" "open-iscsi.conf.d" "open-iscsi.service") options=('docs') sha256sums=('7dd9f2f97da417560349a8da44ea4fcfe98bfd5ef284240a2cc4ff8e88ac7cd9' '649536c4abc9c4d9f994cc1c0033449d46c120b73a836854a228f7e103711314' - '289ba27b72a3bd9d251e08b3d61dd3ae2f6ad545e5ffe2edaa2b79638996654c') + '289ba27b72a3bd9d251e08b3d61dd3ae2f6ad545e5ffe2edaa2b79638996654c' + '7b8e37dd10a909a67ba7f7126f699920639be39adfa65f1d2b2bcd8846e58db7') build() { cd ${srcdir}/${pkgname}-${_pkgver} @@ -33,6 +34,7 @@ build() { install -D -m755 ${srcdir}/open-iscsi ${pkgdir}/etc/rc.d/open-iscsi install -D -m644 ${srcdir}/open-iscsi.conf.d ${pkgdir}/etc/conf.d/open-iscsi 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 diff --git a/aur/open-iscsi/open-iscsi.service b/aur/open-iscsi/open-iscsi.service new file mode 100644 index 000000000..b3e1096f7 --- /dev/null +++ b/aur/open-iscsi/open-iscsi.service @@ -0,0 +1,10 @@ +[Unit] +Description=Open iSCSI Daemon +After=network.target + +[Service] +Type=forking +ExecStart=/sbin/iscsid + +[Install] +WantedBy=multi-user.target