aboutsummaryrefslogtreecommitdiff
path: root/repos/core/busybox
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/busybox
parent3f80bb67166389b3acabf8f024ee1ad1a4364c1f (diff)
downloadalicelinux-239ced844ea434e623686094af3de168f90e4391.tar.gz
alicelinux-239ced844ea434e623686094af3de168f90e4391.zip
repos updated
Diffstat (limited to 'repos/core/busybox')
-rw-r--r--repos/core/busybox/abuild95
-rw-r--r--repos/core/busybox/build57
-rw-r--r--repos/core/busybox/info35
3 files changed, 95 insertions, 92 deletions
diff --git a/repos/core/busybox/abuild b/repos/core/busybox/abuild
new file mode 100644
index 00000000..3242e20e
--- /dev/null
+++ b/repos/core/busybox/abuild
@@ -0,0 +1,95 @@
+name=busybox
+version=1.36.1
+release=1
+source="https://${name}.net/downloads/${name}-${version}.tar.bz2
+ config
+ mdev.conf
+ fsck-resolve-uuid.patch
+ 0016-ping-make-ping-work-without-root-privileges.patch
+ install-fix-chown.patch
+ adduser-no-setgid.patch
+ lineedit-Handle-SIGWINCH-gracefully.patch
+ lsusb-vendor-product.patch
+ print-unicode.patch
+ modprobe-kernel-version.patch
+ 0007-nologin-Install-applet-to-sbin-instead-of-usr-sbin.patch
+ acpid.run
+ crond.run
+ ntpd.run
+ syslogd.run
+ tty1.run
+ tty2.run
+ tty3.run
+ tty4.run
+ tty5.run
+ ttyS0.run"
+sv="acpid.run
+ crond.run
+ ntpd.run
+ syslogd.run
+ tty1.run
+ tty2.run
+ tty3.run
+ tty4.run
+ tty5.run
+ ttyS0.run"
+
+build() {
+ #make defconfig
+ #sed -i "s/# CONFIG_STATIC .*/CONFIG_STATIC=y/" .config
+
+ #for o in LINUXRC STRINGS XZ UNXZ XZCAT LZCAT UNLZMA LZMA PATCH BZIP2 BZCAT BUNZIP2; do
+ # sed -i "s/CONFIG_${o}=y/# CONFIG_${o} is not set/" .config
+ #done
+
+ #sed -i "s/^CONFIG_MODPROBE_SMALL*/# CONFIG_MODPROBE_SMALL is not set/" .config
+
+ cp $SRC/config .config
+ #make menuconfig
+ make
+ make CONFIG_PREFIX=$PKG install
+ mkdir -p $PKG/usr/share/busybox
+ cat .config > $PKG/usr/share/busybox/config
+
+ BIN="$BIN xzcat xz unxz unlzma lzcat lzma" #xz
+ #BIN="$BIN zcat gunzip gzip" #gzip
+ BIN="$BIN strings" #binutils
+ BIN="$BIN clear reset" #ncurses
+ BIN="$BIN patch" #patch
+ BIN="$BIN bzcat bunzip2 bzip2" #bzip2
+ BIN="$BIN setfattr" #attr
+ BIN="$BIN chattr lsattr mke2fs findfs mkfs.ext2 blkid" #e2fsprogs
+ BIN="$BIN mkdosfs mkfs.vfat " #dosfstools
+
+ # XXX
+ for i in $BIN; do
+ rm $PKG/*/$i || true
+ rm $PKG/*/*/$i || true
+ done
+
+ cp $PKG/bin/busybox $PKG/bin/busybox-suid
+ chmod u+s $PKG/bin/busybox-suid
+
+ for a in bin/mount \
+ bin/umount \
+ bin/su \
+ bin/ping ; do
+ rm $PKG/$a
+ ln -sv busybox-suid $PKG/$a
+ done
+
+ for a in usr/bin/crontab \
+ usr/bin/passwd \
+ usr/bin/traceroute \
+ usr/bin/traceroute6 \
+ usr/bin/vlock; do
+ rm $PKG/$a
+ ln -sv ../../bin/busybox-suid $PKG/$a
+ done
+
+ mkdir -p $PKG/etc
+ install -m644 $SRC/mdev.conf $PKG/etc/mdev.conf
+
+ rm $PKG/usr/bin/diff
+ ln -s busybox $PKG/bin/diff
+}
diff --git a/repos/core/busybox/build b/repos/core/busybox/build
deleted file mode 100644
index 3c48bd21..00000000
--- a/repos/core/busybox/build
+++ /dev/null
@@ -1,57 +0,0 @@
-#make defconfig
-#sed -i "s/# CONFIG_STATIC .*/CONFIG_STATIC=y/" .config
-
-#for o in LINUXRC STRINGS XZ UNXZ XZCAT LZCAT UNLZMA LZMA PATCH BZIP2 BZCAT BUNZIP2; do
-# sed -i "s/CONFIG_${o}=y/# CONFIG_${o} is not set/" .config
-#done
-
-#sed -i "s/^CONFIG_MODPROBE_SMALL*/# CONFIG_MODPROBE_SMALL is not set/" .config
-
-cp $SRC/config .config
-#make menuconfig
-make
-make CONFIG_PREFIX=$PKG install
-mkdir -p $PKG/usr/share/busybox
-cat .config > $PKG/usr/share/busybox/config
-
-BIN="$BIN xzcat xz unxz unlzma lzcat lzma" #xz
-#BIN="$BIN zcat gunzip gzip" #gzip
-BIN="$BIN strings" #binutils
-BIN="$BIN clear reset" #ncurses
-BIN="$BIN patch" #patch
-BIN="$BIN bzcat bunzip2 bzip2" #bzip2
-BIN="$BIN setfattr" #attr
-BIN="$BIN chattr lsattr mke2fs findfs mkfs.ext2 blkid" #e2fsprogs
-BIN="$BIN mkdosfs mkfs.vfat " #dosfstools
-
-# XXX
-for i in $BIN; do
- rm $PKG/*/$i || true
- rm $PKG/*/*/$i || true
-done
-
-cp $PKG/bin/busybox $PKG/bin/busybox-suid
-chmod u+s $PKG/bin/busybox-suid
-
-for a in bin/mount \
- bin/umount \
- bin/su \
- bin/ping ; do
- rm $PKG/$a
- ln -sv busybox-suid $PKG/$a
-done
-
-for a in usr/bin/crontab \
- usr/bin/passwd \
- usr/bin/traceroute \
- usr/bin/traceroute6 \
- usr/bin/vlock; do
- rm $PKG/$a
- ln -sv ../../bin/busybox-suid $PKG/$a
-done
-
-mkdir -p $PKG/etc
-install -m644 $SRC/mdev.conf $PKG/etc/mdev.conf
-
-rm $PKG/usr/bin/diff
-ln -s busybox $PKG/bin/diff
diff --git a/repos/core/busybox/info b/repos/core/busybox/info
deleted file mode 100644
index 62919e3a..00000000
--- a/repos/core/busybox/info
+++ /dev/null
@@ -1,35 +0,0 @@
-name=busybox
-version=1.36.1
-release=1
-source="https://${name}.net/downloads/${name}-${version}.tar.bz2
- config
- mdev.conf
- fsck-resolve-uuid.patch
- 0016-ping-make-ping-work-without-root-privileges.patch
- install-fix-chown.patch
- adduser-no-setgid.patch
- lineedit-Handle-SIGWINCH-gracefully.patch
- lsusb-vendor-product.patch
- print-unicode.patch
- modprobe-kernel-version.patch
- 0007-nologin-Install-applet-to-sbin-instead-of-usr-sbin.patch
- acpid.run
- crond.run
- ntpd.run
- syslogd.run
- tty1.run
- tty2.run
- tty3.run
- tty4.run
- tty5.run
- ttyS0.run"
-sv="acpid.run
- crond.run
- ntpd.run
- syslogd.run
- tty1.run
- tty2.run
- tty3.run
- tty4.run
- tty5.run
- ttyS0.run"