summaryrefslogtreecommitdiff
path: root/build-essential/stage2-fhs-dirs.bst
blob: 80ce42f463eb2789dc79996263227effd407eba1 (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
kind: manual

sources:
- kind: git
  url: baserock:baserock/fhs-dirs
  track: master
  ref: 1218cbd38a4f4e9da75af6f7fae946ca92666afb

depends:
- filename: build-essential/stage1.bst
  type: build

variables:
  prefix: /tools

environment:
  PATH: /tools/bin:/usr/bin:/bin:/usr/sbin:/sbin

config:
  install-commands:
  - sh ./create-fhs-dirs "%{install-root}"
  - rmdir "%{install-root}/bin"
  - ln -s "%{prefix}/bin" "%{install-root}/bin"
  - install -m 644 passwd "%{install-root}/etc/passwd"
  - install -m 600 shadow "%{install-root}/etc/shadow"
  - install -m 644 interfaces "%{install-root}/etc/network/interfaces"
  - install -m 644 group "%{install-root}/etc/group"
  - install -m 644 issue "%{install-root}/etc/issue"
  - install -m 644 services "%{install-root}/etc/services"
  - install -m 644 protocols "%{install-root}/etc/protocols"
  - echo baserock > "%{install-root}/etc/hostname"