diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-05-24 12:22:12 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-05-24 12:22:12 +0800 |
| commit | 46ca440e9d6cc606d9c3233021e32d24b25172cf (patch) | |
| tree | eeb573e47ac56498fbf74bda6d22fac47038ecab /repos/core/baselayout | |
| parent | 8c2e7bb570c11a51fdcecf7302af4058757d862c (diff) | |
| download | alicelinux-46ca440e9d6cc606d9c3233021e32d24b25172cf.tar.gz alicelinux-46ca440e9d6cc606d9c3233021e32d24b25172cf.zip | |
added repos
Diffstat (limited to 'repos/core/baselayout')
| -rw-r--r-- | repos/core/baselayout/.files | 77 | ||||
| -rw-r--r-- | repos/core/baselayout/build | 56 | ||||
| -rwxr-xr-x | repos/core/baselayout/fstab | 3 | ||||
| -rwxr-xr-x | repos/core/baselayout/group | 24 | ||||
| -rwxr-xr-x | repos/core/baselayout/hostname | 1 | ||||
| -rwxr-xr-x | repos/core/baselayout/hosts | 4 | ||||
| -rw-r--r-- | repos/core/baselayout/info | 13 | ||||
| -rw-r--r-- | repos/core/baselayout/issue | 2 | ||||
| -rw-r--r-- | repos/core/baselayout/os-release | 4 | ||||
| -rwxr-xr-x | repos/core/baselayout/passwd | 2 | ||||
| -rwxr-xr-x | repos/core/baselayout/profile | 14 | ||||
| -rwxr-xr-x | repos/core/baselayout/resolv.conf | 4 | ||||
| -rwxr-xr-x | repos/core/baselayout/shells | 5 |
13 files changed, 209 insertions, 0 deletions
diff --git a/repos/core/baselayout/.files b/repos/core/baselayout/.files new file mode 100644 index 00000000..23f3a0d5 --- /dev/null +++ b/repos/core/baselayout/.files @@ -0,0 +1,77 @@ +drwxr-xr-x root/root bin/ +drwxr-xr-x root/root boot/ +drwxr-xr-x root/root dev/ +drwxr-xr-x root/root etc/ +-rw-r--r-- root/root etc/fstab.new +-rw-r--r-- root/root etc/group.new +-rw-r--r-- root/root etc/hostname.new +-rw-r--r-- root/root etc/hosts.new +-rw-r--r-- root/root etc/issue.new +lrwxrwxrwx root/root etc/mtab -> ../proc/self/mounts +drwxr-xr-x root/root etc/opt/ +-rw-r--r-- root/root etc/os-release.new +-rw-r--r-- root/root etc/passwd.new +drwxr-xr-x root/root etc/profile.d/ +-rw-r--r-- root/root etc/profile.new +-rw-r--r-- root/root etc/resolv.conf.new +-rw-r--r-- root/root etc/shells.new +drwxr-xr-x root/root etc/skel/ +drwxr-xr-x root/root home/ +drwxr-xr-x root/root lib/ +drwxr-xr-x root/root mnt/ +drwxr-xr-x root/root opt/ +drwxr-xr-x root/root proc/ +drwxr-x--- root/root root/ +drwxr-xr-x root/root run/ +drwxr-xr-x root/root sbin/ +drwxr-xr-x root/root srv/ +drwxr-xr-x root/root sys/ +drwxrwxrwt root/root tmp/ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/local/ +drwxr-xr-x root/root usr/local/bin/ +drwxr-xr-x root/root usr/local/include/ +drwxr-xr-x root/root usr/local/lib/ +drwxr-xr-x root/root usr/local/sbin/ +drwxr-xr-x root/root usr/local/share/ +drwxr-xr-x root/root usr/local/share/man/ +drwxr-xr-x root/root usr/local/share/man/man1/ +drwxr-xr-x root/root usr/local/share/man/man2/ +drwxr-xr-x root/root usr/local/share/man/man3/ +drwxr-xr-x root/root usr/local/share/man/man4/ +drwxr-xr-x root/root usr/local/share/man/man5/ +drwxr-xr-x root/root usr/local/share/man/man6/ +drwxr-xr-x root/root usr/local/share/man/man7/ +drwxr-xr-x root/root usr/local/share/man/man8/ +drwxr-xr-x root/root usr/local/src/ +drwxr-xr-x root/root usr/sbin/ +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +drwxr-xr-x root/root usr/share/man/man2/ +drwxr-xr-x root/root usr/share/man/man3/ +drwxr-xr-x root/root usr/share/man/man4/ +drwxr-xr-x root/root usr/share/man/man5/ +drwxr-xr-x root/root usr/share/man/man6/ +drwxr-xr-x root/root usr/share/man/man7/ +drwxr-xr-x root/root usr/share/man/man8/ +drwxr-xr-x root/root usr/src/ +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/cache/ +drwxr-xr-x root/root var/lib/ +drwxr-xr-x root/root var/lib/misc/ +drwxr-xr-x root/root var/local/ +drwxr-xr-x root/root var/lock/ +drwxr-xr-x root/root var/log/ +-rw------- root/root var/log/btmp +-rw-r--r-- root/root var/log/faillog +-rw-rw-r-- root/utmp var/log/lastlog +-rw-r--r-- root/root var/log/wtmp +drwxr-xr-x root/root var/opt/ +lrwxrwxrwx root/root var/run -> ../run +drwxr-xr-x root/root var/spool/ +drwxr-xr-x root/root var/spool/mail/ +drwxrwxrwt root/root var/tmp/ diff --git a/repos/core/baselayout/build b/repos/core/baselayout/build new file mode 100644 index 00000000..cebe127c --- /dev/null +++ b/repos/core/baselayout/build @@ -0,0 +1,56 @@ +cd $SRC + +# root dirs +for d in proc sys run dev bin boot etc/opt home lib mnt \ + opt sbin srv var; do + mkdir -p $PKG/$d +done +install -d -m 0750 $PKG/root +install -d -m 1777 $PKG/tmp $PKG/var/tmp + +# /usr and /usr/local dirs +for d in bin include lib sbin src; do + mkdir -p $PKG/usr/$d + mkdir -p $PKG/usr/local/$d +done + +# man page dirs +for d in 1 2 3 4 5 6 7 8; do + mkdir -p $PKG/usr/share/man/man$d + mkdir -p $PKG/usr/local/share/man/man$d +done + +# /var dirs +for d in log spool/mail opt cache lib/misc local; do + mkdir -p $PKG/var/$d +done + +ln -s ../run $PKG/var/run +#ln -s ../run/lock $PKG/var/lock +install -d $PKG/var/lock + +ln -s ../proc/self/mounts $PKG/etc/mtab + +# log files +for f in btmp lastlog faillog wtmp; do + touch $PKG/var/log/$f +done +chgrp utmp $PKG/var/log/lastlog +chmod 664 $PKG/var/log/lastlog +chmod 600 $PKG/var/log/btmp + +install -m644 passwd $PKG/etc +install -m644 group $PKG/etc +install -m644 resolv.conf $PKG/etc +install -m644 hosts $PKG/etc +install -m644 hostname $PKG/etc +install -m644 shells $PKG/etc +install -m644 fstab $PKG/etc + +install -dm0755 $PKG/etc/profile.d + +install -d $PKG/etc/skel +install -m644 issue $PKG/etc +install -m644 profile $PKG/etc + +cat os-release > $PKG/etc/os-release diff --git a/repos/core/baselayout/fstab b/repos/core/baselayout/fstab new file mode 100755 index 00000000..abe0e850 --- /dev/null +++ b/repos/core/baselayout/fstab @@ -0,0 +1,3 @@ +# /etc/fstab + +# <device> <dir> <type> <options> <dump> <fsck> diff --git a/repos/core/baselayout/group b/repos/core/baselayout/group new file mode 100755 index 00000000..a8a09743 --- /dev/null +++ b/repos/core/baselayout/group @@ -0,0 +1,24 @@ +root:x:0: +bin:x:1:daemon +sys:x:2: +kmem:x:3: +tape:x:4: +tty:x:5: +daemon:x:6: +floppy:x:7: +disk:x:8: +lp:x:9: +dialout:x:10: +audio:x:11: +video:x:12: +utmp:x:13: +usb:x:14: +cdrom:x:15: +adm:x:16: +wheel:x:17: +messagebus:x:18: +input:x:24: +mail:x:34: +kvm:x:61: +nogroup:x:99: +users:x:999: diff --git a/repos/core/baselayout/hostname b/repos/core/baselayout/hostname new file mode 100755 index 00000000..2fbb50c4 --- /dev/null +++ b/repos/core/baselayout/hostname @@ -0,0 +1 @@ +localhost diff --git a/repos/core/baselayout/hosts b/repos/core/baselayout/hosts new file mode 100755 index 00000000..a126a53e --- /dev/null +++ b/repos/core/baselayout/hosts @@ -0,0 +1,4 @@ +# /etc/hosts + +127.0.0.1 localhost +::1 localhost diff --git a/repos/core/baselayout/info b/repos/core/baselayout/info new file mode 100644 index 00000000..ac8831fa --- /dev/null +++ b/repos/core/baselayout/info @@ -0,0 +1,13 @@ +name=baselayout +version=1 +release=1 +source="fstab + group + hostname + hosts + issue + os-release + passwd + resolv.conf + shells + profile" diff --git a/repos/core/baselayout/issue b/repos/core/baselayout/issue new file mode 100644 index 00000000..0157745b --- /dev/null +++ b/repos/core/baselayout/issue @@ -0,0 +1,2 @@ +Alice Linux \r (\l) + diff --git a/repos/core/baselayout/os-release b/repos/core/baselayout/os-release new file mode 100644 index 00000000..0752c0f5 --- /dev/null +++ b/repos/core/baselayout/os-release @@ -0,0 +1,4 @@ +NAME="Alice Linux" +PRETTY_NAME="Alice Linux" +VERSION="One" +ID="alice" diff --git a/repos/core/baselayout/passwd b/repos/core/baselayout/passwd new file mode 100755 index 00000000..1edbef6c --- /dev/null +++ b/repos/core/baselayout/passwd @@ -0,0 +1,2 @@ +root:x:0:0:root:/root:/bin/sh +nobody:x:99:99:Unprivileged User:/dev/null:/bin/false diff --git a/repos/core/baselayout/profile b/repos/core/baselayout/profile new file mode 100755 index 00000000..1d327a82 --- /dev/null +++ b/repos/core/baselayout/profile @@ -0,0 +1,14 @@ +# /etc/profile + +# Set the initial path +export PATH=/bin:/usr/bin:/sbin:/usr/sbin + +# Set umask +umask 022 + +for script in /etc/profile.d/*.sh ; do + if [ -r $script ] ; then + . $script + fi + unset script +done diff --git a/repos/core/baselayout/resolv.conf b/repos/core/baselayout/resolv.conf new file mode 100755 index 00000000..c69c1524 --- /dev/null +++ b/repos/core/baselayout/resolv.conf @@ -0,0 +1,4 @@ +# /etc/resolv.conf + +nameserver 8.8.8.8 +nameserver 8.8.4.4 diff --git a/repos/core/baselayout/shells b/repos/core/baselayout/shells new file mode 100755 index 00000000..f0c4a8db --- /dev/null +++ b/repos/core/baselayout/shells @@ -0,0 +1,5 @@ +# /etc/shells + +/bin/sh +/bin/dash +/bin/bash |