| 1 | # Description: BSD-like init-scripts |
| 2 | # URL: http://crux.nu |
| 3 | # Maintainer: CRUX System Team, core-ports at crux dot nu |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: |
| 6 | |
| 7 | name=rc |
| 8 | version=2.24 |
| 9 | release=1 |
| 10 | source=(inittab rc rc.modules rc.single rc.multi rc.local rc.fix rc.shutdown rc.conf) |
| 11 | |
| 12 | build() { |
| 13 | mkdir -p $PKG/etc/rc.d |
| 14 | install -m 644 inittab $PKG/etc |
| 15 | install -m 755 rc $PKG/etc |
| 16 | install -m 755 rc.modules $PKG/etc |
| 17 | install -m 755 rc.single $PKG/etc |
| 18 | install -m 755 rc.multi $PKG/etc |
| 19 | install -m 755 rc.local $PKG/etc |
| 20 | install -m 755 rc.fix $PKG/etc |
| 21 | install -m 755 rc.shutdown $PKG/etc |
| 22 | install -m 644 rc.conf $PKG/etc |
| 23 | mkdir -p $PKG/var/log $PKG/var/lib/urandom |
| 24 | touch $PKG/var/log/boot $PKG/var/lib/urandom/seed |
| 25 | chmod 640 $PKG/var/log/boot $PKG/var/lib/urandom/seed |
| 26 | } |