mkports

recipes for building multiple softwares with mk(1)
git clone git://z3bra.org/mkports
Log | Files | Refs

commit bb996c6324172d28b2286054ef524ccfc2227c5a
parent 740a5b05182b408e49127676906291c642786ab5
Author: z3bra <contactatz3bradotorg>
Date:   Thu May 18 08:40:04 +0200

Rename fs to hier

Diffstat:
fs/mkfile | 65-----------------------------------------------------------------
hier/mkfile | 65+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+), 65 deletions(-)
diff --git a/fs/mkfile b/fs/mkfile @@ -1,65 +0,0 @@ -pkg = fs -ver = 0.1 - -<../config.mk - -destdir = `{printf '%s/%s/.rootfs' "$(pwd)" "$pkg-$ver"} -tarball = ${REPO}/$pkg\#$ver.tar.bz2 - -$tarball:Q: build-fs - cd $destdir - tar -c $(ls) | bzip2 -c > $tarball - -build-fs:QV: - for dir in dev etc proc sys tmp; do - mkdir -p $destdir/$dir - done - for vardir in run log lock tmp; do - mkdir -p $destdir/var/$vardir - done - cat <<EOF> $destdir/etc/group - root:!:0:root - bin:!:1:root,bin,daemon - daemon:!:2:root,bin,daemon - sys:!:3:root,bin - adm:!:4:root,daemon - tty:!:5: - disk:!:6:root - cdrom:!:7:root - video:!:8:root - audio:!:9:root - nogroup:!:65534: - EOF - cat <<EOF> $destdir/etc/passwd - root:x:0:0:root:/root:/bin/sh - bin:*:1:1:bin:/bin:/bin/false - daemon:*:2:2:daemon:/sbin:/bin/false - nobody:*:65534:65534:nobody:/nonexistent:/bin/false - EOF - cat <<EOF> $destdir/etc/shells - /bin/sh - /bin/mksh - EOF - cat <<EOF> $destdir/etc/profile - PATH=/bin:/sbin - MANPATH=/man - export PATH MANPATH - umask 022 - EOF - cat <<EOF> $destdir/etc/fstab - tmp /tmp tmpfs defaults 0 0 - tmp /var/run tmpfs defaults 0 0 - shm /dev/shm tmpfs rw,nosuid,nodev 0 0 - devpts /dev/pts devpts gid=5,mode=620 0 0 - EOF - cat <<EOF> $destdir/etc/resolv.conf - # from FreeDNS - https://freedns.zone - nameserver 37.235.1.174 - nameserver 37.235.1.177 - EOF - -clean:V: - rm -rf $pkg-$ver - -distclean:V: clean - rm -f ${REPO}/$pkg\#$ver.tar.bz2 diff --git a/hier/mkfile b/hier/mkfile @@ -0,0 +1,65 @@ +pkg = hier +ver = 0.1 + +<../config.mk + +destdir = `{printf '%s/%s/.rootfs' "$(pwd)" "$pkg-$ver"} +tarball = ${REPO}/$pkg\#$ver.tar.bz2 + +$tarball:Q: build-fs + cd $destdir + tar -c $(ls) | bzip2 -c > $tarball + +build-fs:QV: + for dir in dev etc proc sys tmp; do + mkdir -p $destdir/$dir + done + for vardir in run log lock tmp; do + mkdir -p $destdir/var/$vardir + done + cat <<EOF> $destdir/etc/group + root:!:0:root + bin:!:1:root,bin,daemon + daemon:!:2:root,bin,daemon + sys:!:3:root,bin + adm:!:4:root,daemon + tty:!:5: + disk:!:6:root + cdrom:!:7:root + video:!:8:root + audio:!:9:root + nogroup:!:65534: + EOF + cat <<EOF> $destdir/etc/passwd + root:x:0:0:root:/root:/bin/sh + bin:*:1:1:bin:/bin:/bin/false + daemon:*:2:2:daemon:/sbin:/bin/false + nobody:*:65534:65534:nobody:/nonexistent:/bin/false + EOF + cat <<EOF> $destdir/etc/shells + /bin/sh + /bin/mksh + EOF + cat <<EOF> $destdir/etc/profile + PATH=/bin:/sbin + MANPATH=/man + export PATH MANPATH + umask 022 + EOF + cat <<EOF> $destdir/etc/fstab + tmp /tmp tmpfs defaults 0 0 + tmp /var/run tmpfs defaults 0 0 + shm /dev/shm tmpfs rw,nosuid,nodev 0 0 + devpts /dev/pts devpts gid=5,mode=620 0 0 + EOF + cat <<EOF> $destdir/etc/resolv.conf + # from FreeDNS - https://freedns.zone + nameserver 37.235.1.174 + nameserver 37.235.1.177 + EOF + +clean:V: + rm -rf $pkg-$ver + +distclean:V: clean + rm -f ${REPO}/$pkg\#$ver.tar.bz2