This commit is contained in:
sulincix committed 2022-10-08 13:31:03 +00:00
1 parent 16445f7b46
commit a5fb54afba
4 files changed
+51 -2

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
#!/bin/busybox ash
/bin/busybox mkdir -p /var/lib/ymp/sysconf/busybox/
if /bin/busybox [ ! -f /var/lib/ymp/sysconf/busybox/postinstall.done ] ; then
/bin/busybox --install -s /bin
/bin/busybox date > /var/lib/ymp/sysconf/busybox.postinst.done
fi
+37
View File
@@ -0,0 +1,37 @@
#!/bin/bash
name=busybox
version=1.35.0
release=1
url='https://busybox.net'
description='BusyBox is a software suite that provides several Unix utilities in a single executable file.'
email='parduscix@yandex.ru'
maintainer='sulincix'
license=('GPLv3')
arch=(x86_64)
depends=(glibc)
source=("https://busybox.net/downloads/busybox-$version.tar.bz2"
"busybox.sysconf"
)
md5sums=("585949b1dd4292b604b7d199866e9913"
"SKIP"
)
cd $name-$version
setup(){
make defconfig
sed -i "s|.*CONFIG_STATIC_LIBGCC .*|CONFIG_STATIC_LIBGCC=y|" .config
sed -i "s|.*CONFIG_STATIC .*|CONFIG_STATIC=y|" .config
}
build(){
make -j`nproc`
}
package(){
mkdir -p ${DESTDIR}/bin/ ${DESTDIR}/etc/
install busybox ${DESTDIR}/bin/busybox
install busybox.sysconf ${DESTDIR}/etc/sysconf.d/busybox
}
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
ldconfig
+6 -2
View File
@@ -7,15 +7,17 @@ description='GNU libc library'
email='parduscix@yandex.ru'
maintainer='sulincix'
license=('GPLv3')
arch=(x86_64)
source=('https://ftp.gnu.org/gnu/glibc/glibc-2.36.tar.xz'
'usr-support.conf'
'x86_64-linux-gnu.conf'
'glibc.sysconf'
)
md5sums=('00e9b89e043340f688bc93ec03239b57'
'SKIP'
'SKIP'
'SKIP'
)
arch=(x86_64)
export CFLAGS="-O3 ${debug:+-g} -s -mno-tls-direct-seg-refs -mtune=generic -DSULIX"
export CXXFLAGS="-O3 ${debug:+-g} -s -mno-tls-direct-seg-refs -mtune=generic -DSULIX"
@@ -63,7 +65,7 @@ build(){
for bdir in glibc32-build glibc-build ; do
if [[ -d $bdir ]] ; then
cd $bdir
make -O -j$(nproc --all)
make -O -j`nproc --all`
make info
cd ..
fi
@@ -87,5 +89,7 @@ package(){
install ../../x86_64-linux-gnu.conf ${DESTDIR}/etc/ld.so.conf.d/
# remove ld.so.cache file (this file must generated by ldconfig command from inary)
rm -f ${DESTDIR}/etc/ld.so.cache
# install sysconf trigger
install busybox.sysconf ${DESTDIR}/etc/sysconf.d/busybox
}