summaryrefslogtreecommitdiff
path: root/elements/unmaintained/openstack-services/rtslib-fb.bst
blob: ff3de6b399c3684239a13f525fc1e1dfead32033 (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
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:
  post-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