unos-repository

APK repository for unos
git clone git://git.finwo.net/misc/unos-repository
Log | Files | Refs | README

template (2049B)


      1 # Template file for 'base-files'
      2 pkgname=base-files
      3 version=0.1.0
      4 revision=8
      5 short_desc="UNOS filesystem skeleton - passwd, profile, nsswitch, fstab"
      6 maintainer="finwo <finwo@pm.me>"
      7 license="GPL-2.0-only"
      8 homepage="https://unos.finwo.dev"
      9 depends=
     10 
     11 # Own skeleton, nothing from any upstream distro. Traditional split-/usr
     12 # layout (matches what busybox `make install` produces: /bin /sbin
     13 # /usr/bin /usr/sbin as real dirs - no usrmerge). Deliberately minimal:
     14 # no resolv.conf (runtime-provided via DHCP), no /run or /tmp (tmpfs mounts
     15 # created at boot). Init is busybox init + runit via inittab/rcS.
     16 do_install() {
     17   vinstall ${FILESDIR}/passwd 644 etc
     18   vinstall ${FILESDIR}/group 644 etc
     19   vinstall ${FILESDIR}/shadow 640 etc
     20   vinstall ${FILESDIR}/shells 644 etc
     21   vinstall ${FILESDIR}/profile 644 etc
     22   vinstall ${FILESDIR}/hostname 644 etc
     23   vinstall ${FILESDIR}/hosts 644 etc
     24   vinstall ${FILESDIR}/nsswitch.conf 644 etc
     25   vinstall ${FILESDIR}/ld.so.conf 644 etc
     26   vinstall ${FILESDIR}/fstab 644 etc
     27   vinstall ${FILESDIR}/os-release 644 etc
     28   vinstall ${FILESDIR}/inittab 644 etc
     29   vinstall ${FILESDIR}/rcS 755 etc/init.d rcS
     30   vinstall ${FILESDIR}/runsvchdir 755 sbin runsvchdir
     31   install -d "${DESTDIR}/etc/sv"
     32   install -d "${DESTDIR}/etc/runit/runsvdir/default"
     33   install -d "${DESTDIR}/etc/runit/runsvdir/single"
     34   ln -sfn default "${DESTDIR}/etc/runit/runsvdir/current"
     35   install -d "${DESTDIR}/var"
     36   ln -sfn ../run/runit/runsvdir/current "${DESTDIR}/var/service"
     37   vinstall ${FILESDIR}/network/ports 644 etc/network ports
     38   vinstall ${FILESDIR}/network/interfaces 644 etc/network interfaces
     39   vinstall ${FILESDIR}/network/interfaces.d/eth0.cnf 644 etc/network/interfaces.d eth0.cnf
     40   vinstall ${FILESDIR}/linkd.cnf 644 etc linkd.cnf
     41   install -d "${DESTDIR}/etc/linkd"
     42   install -d "${DESTDIR}/etc/network/ports.d"
     43   install -d -m700 "${DESTDIR}/root"
     44   install -d "${DESTDIR}/etc/ld.so.conf.d"
     45   install -d "${DESTDIR}/proc" "${DESTDIR}/sys" "${DESTDIR}/dev"
     46   install -d "${DESTDIR}/dev/pts" "${DESTDIR}/tmp" "${DESTDIR}/run"
     47 }