This commit is contained in:
Ali Riza KESKIN committed 2026-06-27 09:04:43 +03:00
1 parent ffd77e0612
commit 659faeb9e2
3 files changed
+16 -20

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
name='suidless-su'
release='1'
version='1.0.0'
release='2'
version='1.1.0'
url='https://gitlab.com/turkmen-linux/devel/sources/suidless-su'
description='su command replacement. No suid bit required.'
email='aliriza.keskin@pardus.org.tr'
@@ -10,7 +10,7 @@ license=('GPLv3')
source=("https://gitlab.com/turkmen-linux/devel/sources/suidless-su/-/archive/$version/suidless-su-$version.tar.gz")
depends=()
makedepends=()
sha256sums=('17623cb0dc18d5de0b40b8e7818b451326166f1887f01044285b30a4f683593d')
sha256sums=('538c909c2ccfc5494cc49d46e2b4c6ed0a496da4380e5dc07ce1110e0b9c82a8')
group=(sys.auth)
uses=()
arch=('x86_64')
+10 -14
View File
@@ -1,7 +1,7 @@
#!/bin/bash
name=busybox
version=1.37.0
release=3
version=1.38.0
release=4
url='https://busybox.net'
description='BusyBox is a software suite that provides several Unix utilities in a single executable file.'
email='parduscix@yandex.ru'
@@ -12,15 +12,10 @@ group=(sys.base)
makedepends=(musl)
source=("https://busybox.net/downloads/busybox-$version.tar.bz2"
"files/busybox.sysconf"
"files/busybox.initramfs"
"files/udhcpc.openrc"
"files/udhcpc.script"
"data-user.patch"
"busybox-1.36.1-kernel-6.8.patch"
)
sha256sums=("3311dff32e746499f4df0d5df04d7eb396382d7e108bb9250e7b519b837043a4"
"SKIP"
"SKIP"
sha256sums=("34f9ea6ff8636f2c9241153b9114eefa9e65674a45318ae1ef95bb5f31c53bb2"
"SKIP"
"SKIP"
"SKIP"
@@ -30,19 +25,22 @@ sha256sums=("3311dff32e746499f4df0d5df04d7eb396382d7e108bb9250e7b519b837043a4"
export PATH=$PATH:/usr/bin/core_perl
cd $name-$version
export CFLAGS="-Wno-all -Os -s"
export LDFLAGS="-fno-link-libatomic"
prepare(){
for tool in ar strip ; do
for tool in ar strip ld; do
ln -s /usr/bin/$tool ../musl-$tool
done
patch -Np1 -i ../data-user.patch
patch -Np1 -i ../busybox-1.36.1-kernel-6.8.patch
sed -i 's|/home|/data/user|g' loginutils/adduser.c
}
setup(){
make defconfig
sed -i "s|.*CONFIG_STATIC_LIBGCC .*|CONFIG_STATIC_LIBGCC=y|" .config
sed -i "s|CONFIG_TC=.*|# CONFIG_TC is not set|" .config
sed -i "s|.*CONFIG_STATIC .*|CONFIG_STATIC=y|" .config
echo 'CONFIG_CROSS_COMPILER_PREFIX="musl-"' >> .config
sed -i 's|CONFIG_CROSS_COMPILER_PREFIX=.*|CONFIG_CROSS_COMPILER_PREFIX="musl-"|' .config
}
@@ -54,8 +52,6 @@ package(){
mkdir -p ${DESTDIR}/bin/ ${DESTDIR}/etc/sysconf.d ${DESTDIR}/usr/share/initramfs-tools/{hooks,conf-hooks.d}/
install busybox ${DESTDIR}/bin/busybox
install ../busybox.sysconf ${DESTDIR}/etc/sysconf.d/busybox
install ../busybox.initramfs ${DESTDIR}/usr/share/initramfs-tools/hooks/zz-busybox
echo "BUSYBOXDIR=/bin" > ${DESTDIR}/usr/share/initramfs-tools/conf-hooks.d/busybox
# install udhcpc script and service
mkdir -p ${DESTDIR}/usr/share/udhcpc/ ${DESTDIR}/etc/init.d/
install ../udhcpc.script ${DESTDIR}/usr/share/udhcpc/default.script