diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-11-10 07:50:56 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-11-10 07:56:41 +0000 |
commit | 60bfe8bdd62bdd3a73d493e2987f80af53f84c7a (patch) | |
tree | bace6645741461d621f4aac0c74bcf5bc3c685d9 /main | |
parent | 37aedc59cedd5be745c79064f9a07fa897c4a8f7 (diff) | |
download | aports-60bfe8bdd62bdd3a73d493e2987f80af53f84c7a.tar.bz2 aports-60bfe8bdd62bdd3a73d493e2987f80af53f84c7a.tar.xz |
community/targetcli: moved from main
Diffstat (limited to 'main')
-rw-r--r-- | main/targetcli/APKBUILD | 80 | ||||
-rw-r--r-- | main/targetcli/targetcli.confd | 1 | ||||
-rwxr-xr-x | main/targetcli/targetcli.initd | 26 |
3 files changed, 0 insertions, 107 deletions
diff --git a/main/targetcli/APKBUILD b/main/targetcli/APKBUILD deleted file mode 100644 index 83e3ce7df9..0000000000 --- a/main/targetcli/APKBUILD +++ /dev/null @@ -1,80 +0,0 @@ -# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> -# Maintainer: Natanael Copa <ncopa@alpinelinux.org> -pkgname=targetcli -pkgver=2.1_p41 -_ver=${pkgver/_rc/rc} -_ver=${_ver/_p/.fb} -pkgrel=0 -pkgdesc="An administration shell for storage targets" -url="https://github.com/agrover/targetcli-fb" -arch="noarch" -license="AGPLv3" -depends="python py-configobj py-configshell py-ethtool py-ipaddr py-parsing - py-rtslib py-simpleparse" -depends_dev= -makedepends="$depends_dev py-setuptools" -install="" -subpackages="$pkgname-doc" -source="$pkgname-$_ver.tar.gz::https://github.com/agrover/targetcli-fb/archive/v${_ver}.tar.gz - targetcli.initd - targetcli.confd - " - -_giturl="git://github.com/agrover/targetcli-fb.git" -_gittag=v$_ver - -_builddir="$srcdir"/${pkgname}-fb-${_ver} - -snapshot() { - mkdir -p "$srcdir" - cd "${SRCDEST:-$srcdir}" - if ! [ -d targetcli-fb.git ]; then - git clone --bare $_giturl || return 1 - cd targetcli-fb.git - else - cd targetcli-fb.git - git fetch || return 1 - fi - git archive --prefix=$pkgname/ -o "$SRCDEST"/$pkgname-$_ver.tar.gz $_gittag - scp "$SRCDEST"/$pkgname-$_ver.tar.gz dev.alpinelinux.org:/archive/$pkgname/ -} - - -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - -build() { - cd "$_builddir" - python setup.py build || return 1 - gzip targetcli.8 -} - -package() { - cd "$_builddir" - python setup.py install --root="$pkgdir" || return 1 - mkdir -p "$pkgdir"/var/lib/target/fabric - mkdir -p "$pkgdir"/etc/target - install -D -m644 $pkgname.8.gz \ - "$pkgdir"/usr/share/man/man8/$pkgname.8.gz || return 1 - install -D -m755 "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname || return 1 - install -D -m644 "$srcdir"/$pkgname.confd \ - "$pkgdir"/etc/conf.d/$pkgname || return 1 -} - -md5sums="457b857d590c0ccaea2e407c1ac6d8d7 targetcli-2.1.fb41.tar.gz -c174433b995a457edcd85b7ae1f38eaa targetcli.initd -94292da9b892e3dec427e3267aabd0dc targetcli.confd" -sha256sums="0f32ab6f3ecd234280d55be5e89ce2b3a02f9c82c8dccaae66e26464cff8901a targetcli-2.1.fb41.tar.gz -3841ec067e3e61a9e5d0d99266386eb17397d18bcbe83b2860b4ad65798810f4 targetcli.initd -5a4b8f10660a124db63e18696769367162a62b53e3decdb3cc5e02c979ca186d targetcli.confd" -sha512sums="b16bc7ddd7d60be111a91eba8a8a8993d125a5c490ba9c606fc6209d716b66e1e92b3df8290032ecbbcfcc5d86b95d38ad7d346174c2485f55253250a23aa1bd targetcli-2.1.fb41.tar.gz -ea886be1cf0b2c4266553f3b3f4072c2632ce28d8dd449f355fb2989fac16937a4d022622dad2d965b0b5e4c25e72e5a62fd52ba37b4fe2c334d2e06b4cd2c1b targetcli.initd -b0cedfb351dabcd6febe660dd95b5f2bab89f38849d346e46f57c32a4057f6bd2347e9a93a9e9010f4c7ff91f16c0fd33f02ad0cacf9fb801de76da4d25ad9e3 targetcli.confd" diff --git a/main/targetcli/targetcli.confd b/main/targetcli/targetcli.confd deleted file mode 100644 index 4cfd31ba90..0000000000 --- a/main/targetcli/targetcli.confd +++ /dev/null @@ -1 +0,0 @@ -MODULES="configfs target_core_mod iscsi_target_mod" diff --git a/main/targetcli/targetcli.initd b/main/targetcli/targetcli.initd deleted file mode 100755 index 589d61d1a8..0000000000 --- a/main/targetcli/targetcli.initd +++ /dev/null @@ -1,26 +0,0 @@ -#!/sbin/openrc-run - -description="Administration tool for managing RisingTide Systems storage targets" -command="/usr/bin/targetcli" - -depend() { - need net - after firewall -} - -start() { - ebegin "Starting ${RC_SVCNAME}" - for mod in $MODULES; do - modprobe $mod - done - mount -t configfs none /sys/kernel/config - $command restoreconfig clear_existing=true - eend $? -} - -stop() { - ebegin "Stopping ${RC_SVCNAME}" - $command clearconfig confirm=true - umount /sys/kernel/config - eend $? -} |