diff options
author | Johannes Dewender | 2013-02-18 00:59:54 +0100 |
---|---|---|
committer | Johannes Dewender | 2013-02-18 00:59:54 +0100 |
commit | 398a39258965fec88a6700540483eb74e9f6f11e (patch) | |
tree | e50b0eb140e03c9deb81da7fb047335d3d03c14d | |
parent | c324c1ec1c03c06f2f0038659e7c4b1606e64331 (diff) | |
download | aur-398a39258965fec88a6700540483eb74e9f6f11e.tar.gz |
targetcli-fb: move to target.service, include
target.service should now work as a systemd service.
rtslib-fb >= fb28 is needed.
The old sysvinit rc-script is still provided for now.
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 12 | ||||
-rw-r--r-- | target.service (renamed from targetcli.service) | 2 |
3 files changed, 14 insertions, 6 deletions
@@ -1,18 +1,20 @@ pkgbase = targetcli-fb pkgdesc = free branch of the targetcli LIO administration shell (iSCSI + Co) pkgver = 2.0rc1.fb19 - pkgrel = 2 + pkgrel = 3 url = https://github.com/agrover/targetcli-fb arch = any license = AGPL3 - depends = python2-rtslib-fb>=2.1.fb13 + depends = python2-rtslib-fb>=2.1.fb28 depends = python2-configshell-fb provides = targetcli conflicts = lio-utils replaces = rtsadmin source = targetcli-fb-2.0rc1.fb19.tar.gz::https://github.com/agrover/targetcli-fb/archive/v2.0rc1.fb19.tar.gz + source = target.service source = target md5sums = f2bd7ddd04945e49c1f6c9a5c72f76c1 + md5sums = f462e9a5852346c66b77793565ddbc67 md5sums = f23bd6d5d4021c29b4519e40b3b9e042 pkgname = targetcli-fb @@ -1,14 +1,14 @@ # Contributor: Johannes Dewender arch at JonnyJD dot net pkgname=targetcli-fb pkgver=2.0rc1.fb19 -pkgrel=2 +pkgrel=3 epoch= pkgdesc="free branch of the targetcli LIO administration shell (iSCSI + Co)" arch=('any') url="https://github.com/agrover/targetcli-fb" license=('AGPL3') groups=() -depends=('python2-rtslib-fb>=2.1.fb13' 'python2-configshell-fb') +depends=('python2-rtslib-fb>=2.1.fb28' 'python2-configshell-fb') optdepends=() conflicts=('lio-utils') provides=('targetcli') @@ -17,8 +17,10 @@ backup=() options=() install= source=($pkgname-$pkgver.tar.gz::https://github.com/agrover/$pkgname/archive/v$pkgver.tar.gz +target.service target) md5sums=('f2bd7ddd04945e49c1f6c9a5c72f76c1' + 'f462e9a5852346c66b77793565ddbc67' 'f23bd6d5d4021c29b4519e40b3b9e042') build() { @@ -35,8 +37,12 @@ package() { # arch specific cd "$srcdir" - install -D -m 755 target "$pkgdir/etc/rc.d/target" install -d "$pkgdir/etc/target" + # systemd + mkdir -p "$pkgdir/usr/lib/systemd/system" + cp target.service "$pkgdir/usr/lib/systemd/system/" + # sysvinit (deprecated) + install -D -m 755 target "$pkgdir/etc/rc.d/target" } # vim:set ts=2 sw=2 et: diff --git a/targetcli.service b/target.service index 2248d9fa3903..5fa716e98e64 100644 --- a/targetcli.service +++ b/target.service @@ -8,7 +8,7 @@ Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/targetcli restoreconfig clear_existing=true ExecStop=/usr/bin/targetcli clearconfig confirm=true -SyslogIdentifier=targetcli +SyslogIdentifier=target [Install] WantedBy=multi-user.target |