ports

recipes for building multiple softwares
git clone git://z3bra.org/ports
Log | Files | Refs

commit 8110acf4a5b2be42264a678d312a97cdd6e706b8
parent 2d7a4eda188ba6b26ed18c50887470117f8589e4
Author: z3bra <willyatmailoodotorg>
Date:   Sun Aug 16 16:47:47 2015

fs: new port

Diffstat:
 fs/makeme | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+), 0 deletions(-)

diff --git a/fs/makeme b/fs/makeme @@ -0,0 +1,57 @@ +name=fs +version=0.1 + +package() { + for dir in dev etc proc sys tmp; do + mkdir -p $WORKDIR/$name/$dir + done + + for vardir in run log lock tmp; do + mkdir -p $WORKDIR/$name/var/$vardir + done + + mknod -m 600 $WORKDIR/$name/dev/console c 5 1 + mknod -m 666 $WORKDIR/$name/dev/null c 1 3 + + cat <<EOF> $WORKDIR/$name/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> $WORKDIR/$name/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> $WORKDIR/$name/etc/shells + /bin/sh + /bin/mksh + EOF + + cat <<EOF> $WORKDIR/$name/etc/profile + PATH=/bin:/sbin:/usr/bin:/usr/sbin + MANPATH=/share/man:/usr/share/man + + export PATH MANPATH + + umask 022 + EOF + + cat <<EOF> $WORKDIR/$name/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 +}