Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=991d35b55b0d37c422859c3f6bad49d04afb3ce4
commit 991d35b55b0d37c422859c3f6bad49d04afb3ce4 Author: Miklos Vajna <[email protected]> Date: Fri Nov 30 22:00:41 2012 +0100 tgt-1.0.19-3-x86_64 - drop sysvinit support diff --git a/source/network-extra/tgt/FrugalBuild b/source/network-extra/tgt/FrugalBuild index f3fc3fa..2ea5755 100644 --- a/source/network-extra/tgt/FrugalBuild +++ b/source/network-extra/tgt/FrugalBuild @@ -3,7 +3,7 @@ pkgname=tgt pkgver=1.0.19 -pkgrel=2 +pkgrel=3 pkgdesc="Linux SCSI target framework (software iSCSI target)" _F_sourceforge_dirname="stgt" Finclude sourceforge @@ -12,11 +12,9 @@ groups=('network-extra') archs=('i686' 'x86_64') up2date="Flasttar http://stgt.sourceforge.net/releases/" backup=(etc/tgt/targets.conf) -source=(http://stgt.sourceforge.net/releases/$pkgname-$pkgver.tar.gz rc.tgtd tgtd.service) +source=(http://stgt.sourceforge.net/releases/$pkgname-$pkgver.tar.gz tgtd.service) sha1sums=('4bb5488c72b5367201b96a86702373e3c298a419' \ - 'e27da7dc1f6e2ebfb4e047410f79aefc631c15e8' \ '5ed8c40f14e2a39ba55c2292305e974fa8d9ce39') -_F_sysvinit_units=(tgtd) _F_systemd_units=(tgtd=) Finclude systemd @@ -24,7 +22,6 @@ build() { Fsed 'README.ibmvstgt ' '' doc/Makefile # that file is missing Fbuild - Frcd2 tgtd Ffile /lib/systemd/system/tgtd.service Fgenscriptlet } diff --git a/source/network-extra/tgt/rc.tgtd b/source/network-extra/tgt/rc.tgtd deleted file mode 100644 index e4ad208..0000000 --- a/source/network-extra/tgt/rc.tgtd +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash - -# (c) 2010 Miklos Vajna <[email protected]> -# rc.tgtd for Frugalware -# distributed under GPL License - -# chkconfig: 2345 99 01 -# description: Init script for iSCSI target - -source /lib/initscripts/functions -TEXTDOMAIN=tgtd -TEXTDOMAINDIR=/lib/initscripts/messages - -actions=(restart status start stop) -daemon=$"iSCSI target" - -pid="pidof tgtd 2> /dev/null" - -rc_start() -{ - start_msg - if [[ "$(eval $pid)" == "" ]] ; then - tgtd - # Put tgtd into "offline" state until all the targets - # are configured. - tgtadm --op update --mode sys --name State -v offline - # Configure the targets. - tgt-admin -e -c /etc/tgt/targets.conf - # Put tgtd into "ready" state. - tgtadm --op update --mode sys --name State -v ready - ok $? - else - ok 999 - fi -} - -rc_stop() -{ - stop_msg - if [[ "$(eval $pid)" != "" ]] ; then - # Remove all targets. It only removes targets which are - # not in use. - tgt-admin --update ALL -c /dev/null >/dev/null 2>&1 - # tgtd will exit if all targets were removed - tgtadm --op delete --mode system >/dev/null 2>&1 - retval=$? - if [ "$retval" -eq 107 ] ; then - ok 1 - hint "tgtd is not running" - elif [ "$retval" -ne 0 ] ; then - ok 1 - hint "initiators still connected" - else - ok $retval - fi - else - ok 999 - fi -} - -rc_exec $1 _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
