summaryrefslogtreecommitdiff
path: root/elements/unmaintained/openstack-services/rtslib-fb.bst
blob: 7004290de6213fa3c219ee1c3910775030ca41ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
kind: distutils
depends:
- erlang.bst
- unmaintained/django.bst
- unmaintained/xstatic.bst
- openstack-clients.bst
- unmaintained/test-tools.bst
- python-tools.bst
sources:
- kind: git
  url: upstream:python-packages/rtslib-fb
  track: v2.1.fb52
  ref: 8ffb4739d596fb1aac5d62d173d1e6f80270af9d
variables:
  python: python
config:
  install-commands:
    (>):
    - mkdir -p "%{install-root}%{prefix}"/lib/systemd/system
    - |
      install -D -m 0644 /proc/self/fd/0 <<'EOF' "%{install-root}%{prefix}"/lib/systemd/system/target.service
      [Unit]
      Description=Restore LIO kernel target configuration
      Requires=sys-kernel-config.mount
      After=sys-kernel-config.mount network.target local-fs.target

      [Service]
      Type=oneshot
      RemainAfterExit=yes
      ExecStart=/usr/bin/targetctl restore
      ExecStop=/usr/bin/targetctl clear
      SyslogIdentifier=target

      [Install]
      WantedBy=multi-user.target
      EOF