aboutsummaryrefslogtreecommitdiff
path: root/repos/core/baselayout
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
commit239ced844ea434e623686094af3de168f90e4391 (patch)
tree541d2c575f3b3832ca1a3087bde3f65dc74a8f89 /repos/core/baselayout
parent3f80bb67166389b3acabf8f024ee1ad1a4364c1f (diff)
downloadalicelinux-239ced844ea434e623686094af3de168f90e4391.tar.gz
alicelinux-239ced844ea434e623686094af3de168f90e4391.zip
repos updated
Diffstat (limited to 'repos/core/baselayout')
-rw-r--r--repos/core/baselayout/abuild72
-rw-r--r--repos/core/baselayout/build56
-rw-r--r--repos/core/baselayout/info13
3 files changed, 72 insertions, 69 deletions
diff --git a/repos/core/baselayout/abuild b/repos/core/baselayout/abuild
new file mode 100644
index 00000000..da10179f
--- /dev/null
+++ b/repos/core/baselayout/abuild
@@ -0,0 +1,72 @@
+name=baselayout
+version=1
+release=1
+source="fstab
+ group
+ hostname
+ hosts
+ issue
+ os-release
+ passwd
+ resolv.conf
+ shells
+ profile"
+
+build() {
+ 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/build b/repos/core/baselayout/build
deleted file mode 100644
index cebe127c..00000000
--- a/repos/core/baselayout/build
+++ /dev/null
@@ -1,56 +0,0 @@
-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/info b/repos/core/baselayout/info
deleted file mode 100644
index ac8831fa..00000000
--- a/repos/core/baselayout/info
+++ /dev/null
@@ -1,13 +0,0 @@
-name=baselayout
-version=1
-release=1
-source="fstab
- group
- hostname
- hosts
- issue
- os-release
- passwd
- resolv.conf
- shells
- profile"