summaryrefslogtreecommitdiff
path: root/unmaintained/strata/openstack-services/open-iscsi.morph
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2017-11-26 23:39:48 +0000
committerJavier Jardón <jjardon@gnome.org>2017-12-12 15:58:23 +0000
commit7df7f3b427739ff7d69da2ba218da0124822892c (patch)
tree843c75e9bede53862ab101d6a7bcd1da15a33c55 /unmaintained/strata/openstack-services/open-iscsi.morph
parent7aad5150f69da42b84994c353283db5daf8e967f (diff)
downloaddefinitions-7df7f3b427739ff7d69da2ba218da0124822892c.tar.gz
Remove all .morph files and files from the old format
Diffstat (limited to 'unmaintained/strata/openstack-services/open-iscsi.morph')
-rw-r--r--unmaintained/strata/openstack-services/open-iscsi.morph46
1 files changed, 0 insertions, 46 deletions
diff --git a/unmaintained/strata/openstack-services/open-iscsi.morph b/unmaintained/strata/openstack-services/open-iscsi.morph
deleted file mode 100644
index 6a0b73b3..00000000
--- a/unmaintained/strata/openstack-services/open-iscsi.morph
+++ /dev/null
@@ -1,46 +0,0 @@
-name: open-iscsi
-kind: chunk
-build-commands:
-- make
-install-commands:
-# Rewrite prefix and exec_prefix which are set to "/usr" and "/" respectively
-- make prefix="$PREFIX" exec_prefix="$PREFIX" DESTDIR="$DESTDIR" install
-# Install iscsistart app which is not listed by default in PROGRAMS
-- make prefix="$PREFIX" exec_prefix="$PREFIX" DESTDIR="$DESTDIR" PROGRAMS="usr/iscsistart"
- install
-post-install-commands:
-# Configure iscsi daemon
-# Point the startup to the installed binary
-- |
- sed -i -e "s|iscsid.startup = \/sbin\/iscsid|iscsid.startup = "$PREFIX"/sbin/iscsid|" \
- etc/iscsid.conf
-# Start up a session automatically
-- sed -i -e 's|node.startup = manual|node.startup = automatic|' etc/iscsid.conf
-# Install config file
-- install -D -m 644 etc/iscsid.conf "$DESTDIR"/etc/iscsi
-# Install custom systemd unit file
-- |
- install -D -m 644 /proc/self/fd/0 << 'EOF' "$DESTDIR$PREFIX"/lib/systemd/system/iscsid.service
- [Unit]
- Description=Open iSCSI Daemon
- After=network.target
-
- [Service]
- Type=forking
- ExecStart=/usr/sbin/iscsid
-
- [Install]
- WantedBy=multi-user.target
- EOF
-# Install iscsi socket unit
-- |
- install -D -m 644 /proc/self/fd/0 << 'EOF' "$DESTDIR$PREFIX"/lib/systemd/system/iscsid.socket
- [Unit]
- Description=Open-iSCSI iscsid Socket
-
- [Socket]
- ListenStream=@ISCSIADM_ABSTRACT_NAMESPACE
-
- [Install]
- WantedBy=sockets.target
- EOF