busybox
This commit is contained in:
1 parent
16445f7b46
commit
a5fb54afba
4 files changed
+51
-2
No files matched your search
@@ -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
|
||||||
@@ -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
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
ldconfig
|
||||||
+6
-2
@@ -7,15 +7,17 @@ description='GNU libc library'
|
|||||||
email='parduscix@yandex.ru'
|
email='parduscix@yandex.ru'
|
||||||
maintainer='sulincix'
|
maintainer='sulincix'
|
||||||
license=('GPLv3')
|
license=('GPLv3')
|
||||||
|
arch=(x86_64)
|
||||||
source=('https://ftp.gnu.org/gnu/glibc/glibc-2.36.tar.xz'
|
source=('https://ftp.gnu.org/gnu/glibc/glibc-2.36.tar.xz'
|
||||||
'usr-support.conf'
|
'usr-support.conf'
|
||||||
'x86_64-linux-gnu.conf'
|
'x86_64-linux-gnu.conf'
|
||||||
|
'glibc.sysconf'
|
||||||
)
|
)
|
||||||
md5sums=('00e9b89e043340f688bc93ec03239b57'
|
md5sums=('00e9b89e043340f688bc93ec03239b57'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
|
'SKIP'
|
||||||
)
|
)
|
||||||
arch=(x86_64)
|
|
||||||
|
|
||||||
export CFLAGS="-O3 ${debug:+-g} -s -mno-tls-direct-seg-refs -mtune=generic -DSULIX"
|
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"
|
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
|
for bdir in glibc32-build glibc-build ; do
|
||||||
if [[ -d $bdir ]] ; then
|
if [[ -d $bdir ]] ; then
|
||||||
cd $bdir
|
cd $bdir
|
||||||
make -O -j$(nproc --all)
|
make -O -j`nproc --all`
|
||||||
make info
|
make info
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
@@ -87,5 +89,7 @@ package(){
|
|||||||
install ../../x86_64-linux-gnu.conf ${DESTDIR}/etc/ld.so.conf.d/
|
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)
|
# remove ld.so.cache file (this file must generated by ldconfig command from inary)
|
||||||
rm -f ${DESTDIR}/etc/ld.so.cache
|
rm -f ${DESTDIR}/etc/ld.so.cache
|
||||||
|
# install sysconf trigger
|
||||||
|
install busybox.sysconf ${DESTDIR}/etc/sysconf.d/busybox
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user