unos-repository

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

template (1741B)


      1 # Template file for 'base-files'
      2 pkgname=base-files
      3 version=0.1.0
      4 revision=6
      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}/network/ports 644 etc/network ports
     31   vinstall ${FILESDIR}/network/interfaces 644 etc/network interfaces
     32   vinstall ${FILESDIR}/linkd.cnf 644 etc linkd.cnf
     33   install -d "${DESTDIR}/etc/network/ports.d"
     34   install -d "${DESTDIR}/etc/network/interfaces.d"
     35   install -d -m700 "${DESTDIR}/root"
     36   install -d "${DESTDIR}/etc/ld.so.conf.d"
     37   # standard mount points (fstab references /run and /tmp; init mounts the
     38   # rest - the dirs must exist first)
     39   install -d "${DESTDIR}/proc" "${DESTDIR}/sys" "${DESTDIR}/dev"
     40   install -d "${DESTDIR}/dev/pts" "${DESTDIR}/tmp" "${DESTDIR}/run"
     41 }