| 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 | |
| 6 | name=rc |
| 7 | version=2.26 |
| 8 | release=1 |
| 9 | source=(inittab rc rc.modules rc.single rc.multi rc.local rc.fix rc.shutdown rc.conf) |
| 10 | |
| 11 | build() { |
| 12 | mkdir -p $PKG/etc/rc.d |
| 13 | install -m 644 inittab $PKG/etc |
| 14 | install -m 755 rc $PKG/etc |
| 15 | install -m 755 rc.modules $PKG/etc |
| 16 | install -m 755 rc.single $PKG/etc |
| 17 | install -m 755 rc.multi $PKG/etc |
| 18 | install -m 755 rc.local $PKG/etc |
| 19 | install -m 755 rc.fix $PKG/etc |
| 20 | install -m 755 rc.shutdown $PKG/etc |
| 21 | install -m 644 rc.conf $PKG/etc |
| 22 | mkdir -p $PKG/var/log $PKG/var/lib/urandom |
| 23 | touch $PKG/var/log/boot $PKG/var/lib/urandom/seed |
| 24 | chmod 640 $PKG/var/log/boot $PKG/var/lib/urandom/seed |
| 25 | } |