diff options
author | Daniel Sonck | 2020-07-29 12:36:15 +0200 |
---|---|---|
committer | Daniel Sonck | 2020-07-29 12:41:57 +0200 |
commit | 23846a89e6602a156b1c4acb80d4dbcef94fd592 (patch) | |
tree | d3702ea342029c2a9f0ea31edb367571b049bbc9 | |
download | aur-23846a89e6602a156b1c4acb80d4dbcef94fd592.tar.gz |
Initial commit for git version of targetd
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 34 | ||||
-rw-r--r-- | targetd.service | 8 | ||||
-rw-r--r-- | targetd.yaml | 23 |
4 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b7f4beed0b50 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = targetd-git + pkgdesc = Remote configuration of a LIO-based storage appliance + pkgver = 0.8.8.69.g0322c1a + pkgrel = 1 + url = https://github.com/open-iscsi/targetd + arch = any + license = GPL3 + makedepends = python-setuptools + depends = targetcli-fb + depends = python-rtslib-fb + depends = python-configshell-fb + depends = libblockdev + depends = python-setproctitle + depends = python-yaml + optdepends = zfs-utils: ZFS block device support + optdepends = zfs-linux: ZFS block device support + optdepends = zfs-linux-lts: ZFS block device support + optdepends = zfs-dkms: ZFS block device support + provides = targetd + source = targetd-git::git+https://github.com/open-iscsi/targetd + sha256sums = SKIP + +pkgname = targetd-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..82f3400246d8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Daniel Sonck <daniel@sonck.nl> +# Contributor: Hubbe King <hubbe128@gmail.com> + +pkgname=targetd-git +pkgver=0.8.8.69.g0322c1a +pkgrel=1 +pkgdesc="Remote configuration of a LIO-based storage appliance" +arch=('any') +url="https://github.com/open-iscsi/targetd" +license=('GPL3') +provides=('targetd') +source=("$pkgname::git+https://github.com/open-iscsi/targetd") +sha256sums=('SKIP') +makedepends=('python-setuptools') +depends=('targetcli-fb' 'python-rtslib-fb' 'python-configshell-fb' 'libblockdev' 'python-setproctitle' 'python-yaml') +optdepends=('zfs-utils: ZFS block device support' + 'zfs-linux: ZFS block device support' + 'zfs-linux-lts: ZFS block device support' + 'zfs-dkms: ZFS block device support') + +pkgver() { + cd "${srcdir}/${pkgname}" + git describe | sed -e 's/v//g' -e 's/-/./g' +} + +package() { + cd "${srcdir}/${pkgname}" + python setup.py install --root="$pkgdir" + install -D -m755 scripts/targetd "$pkgdir"/usr/bin/targetd + install -D -m644 ../../targetd.service "$pkgdir"/usr/lib/systemd/system/targetd.service + install -D -m644 ../../targetd.yaml "$pkgdir"/usr/share/targetd/targetd.yaml + install -D -m644 targetd.8 "$pkgdir"/usr/share/man/man8/targetd.8 + install -D -m644 targetd.yaml.5 "$pkgdir"/usr/share/man/man5/targetd.yaml.5 +} diff --git a/targetd.service b/targetd.service new file mode 100644 index 000000000000..8fb0a33def4f --- /dev/null +++ b/targetd.service @@ -0,0 +1,8 @@ +[Unit] +Description=targetd daemon for remote LIO-based storage config + +[Service] +ExecStart=/usr/bin/targetd + +[Install] +WantedBy=default.target diff --git a/targetd.yaml b/targetd.yaml new file mode 100644 index 000000000000..af746dea28d5 --- /dev/null +++ b/targetd.yaml @@ -0,0 +1,23 @@ +# See http://www.yaml.org/spec/1.2/spec.html for more on YAML. +# +# A sample /etc/target/targetd.yaml file. +# + +# No default password, please pick a good one. + +password: + +# defaults below; uncomment and edit +#block_pools: [vg-targetd/thin_pool] # just 1 by default, but can be more +#zfs_block_pools: [] # you can also use zfs as backend +#fs_pools: [] # Path to btrfs FS, eg. /my_btrfs_mount +#user: admin +#target_name: iqn.2003-01.org.example.mach1:1234 + +# log level (debug, info, warning, error, critical) +#log_level: info + +#ssl: false +# if ssl is activated: +#ssl_cert: /etc/target/targetd_cert.pem +#ssl_key: /etc/target/targetd_key.pem |