Replace pkgsrc and mdevd with mouse ports desktop base
This commit is contained in:
@@ -10,7 +10,7 @@ extract() {
|
||||
|
||||
extract less-704.tar.gz
|
||||
extract mandoc-1.14.6.tar.gz
|
||||
extract file-5.47.tar.gz
|
||||
extract file-5.48.tar.gz
|
||||
extract gzip-1.14.tar.xz
|
||||
extract bzip2-1.0.8.tar.gz
|
||||
extract xz-5.8.3.tar.bz2
|
||||
@@ -46,7 +46,7 @@ install_command_man_page() {
|
||||
LIBS="-lcurses -lterminfo" \
|
||||
./configure \
|
||||
--build="$build_triplet" \
|
||||
--host=x86_64-linux-musl \
|
||||
--host="$MOUSE_GNU_TARGET" \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--with-regex=posix
|
||||
@@ -83,7 +83,7 @@ done
|
||||
RANLIB="$ranlib" \
|
||||
./configure \
|
||||
--build="$build_triplet" \
|
||||
--host=x86_64-linux-musl \
|
||||
--host="$MOUSE_GNU_TARGET" \
|
||||
--prefix=/usr \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
@@ -112,7 +112,7 @@ done
|
||||
gl_cv_func_getcwd_path_max=yes \
|
||||
./configure \
|
||||
--build="$build_triplet" \
|
||||
--host=x86_64-linux-musl \
|
||||
--host="$MOUSE_GNU_TARGET" \
|
||||
--prefix=/usr \
|
||||
--disable-nls
|
||||
make -s -j"$jobs"
|
||||
@@ -125,8 +125,23 @@ for page in gzip.1 gunzip.1 zcat.1 zcmp.1 zdiff.1 zgrep.1 zless.1 zmore.1; do
|
||||
install_man_page "$source_build_dir/gzip-1.14/$page"
|
||||
done
|
||||
|
||||
file_native_build="$source_build_dir/file-5.48-native"
|
||||
install -d -m 0755 "$file_native_build"
|
||||
(
|
||||
cd "$source_build_dir/file-5.47"
|
||||
cd "$file_native_build"
|
||||
CC="$native_cc" \
|
||||
"$source_build_dir/file-5.48/configure" \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
--disable-zstdlib \
|
||||
--disable-lzlib \
|
||||
--disable-libseccomp
|
||||
make -s -C src magic.h
|
||||
make -s -j"$jobs" -C src file
|
||||
)
|
||||
|
||||
(
|
||||
cd "$source_build_dir/file-5.48"
|
||||
CC="$cc" \
|
||||
AR="$ar" \
|
||||
RANLIB="$ranlib" \
|
||||
@@ -135,7 +150,7 @@ done
|
||||
PKG_CONFIG_SYSROOT_DIR="$sysroot" \
|
||||
./configure \
|
||||
--build="$build_triplet" \
|
||||
--host=x86_64-linux-musl \
|
||||
--host="$MOUSE_GNU_TARGET" \
|
||||
--prefix=/usr \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
@@ -144,17 +159,19 @@ done
|
||||
--disable-libseccomp
|
||||
make -s -C src magic.h
|
||||
make -s -j"$jobs" -C src file
|
||||
make -s -C magic magic.mgc
|
||||
make -s -C magic \
|
||||
FILE_COMPILE="$file_native_build/src/file" \
|
||||
magic.mgc
|
||||
install -m 0755 src/file "$base_root/usr/bin/file"
|
||||
install -d -m 0755 "$base_root/usr/share/misc"
|
||||
install -m 0644 magic/magic.mgc "$base_root/usr/share/misc/magic.mgc"
|
||||
)
|
||||
install_man_page "$source_build_dir/file-5.47/doc/file.man" file.1
|
||||
install_man_page "$source_build_dir/file-5.47/doc/magic.man" magic.5
|
||||
install_man_page "$source_build_dir/file-5.48/doc/file.man" file.1
|
||||
install_man_page "$source_build_dir/file-5.48/doc/magic.man" magic.5
|
||||
|
||||
unzip_source="$source_build_dir/libarchive-unzip-3.8.7"
|
||||
install -d -m 0755 "$unzip_source"
|
||||
tar -xf "$source_dir/libarchive-3.8.7.tar.xz" \
|
||||
tar -xf "$source_dir/libarchive-3.8.9.tar.xz" \
|
||||
-C "$unzip_source" \
|
||||
--strip-components=1
|
||||
(
|
||||
@@ -167,7 +184,7 @@ tar -xf "$source_dir/libarchive-3.8.7.tar.xz" \
|
||||
PKG_CONFIG_SYSROOT_DIR="$sysroot" \
|
||||
./configure \
|
||||
--build="$build_triplet" \
|
||||
--host=x86_64-linux-musl \
|
||||
--host="$MOUSE_GNU_TARGET" \
|
||||
--prefix=/usr \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
@@ -220,7 +237,7 @@ iproute_source="$source_build_dir/iproute2-7.1.0"
|
||||
cd "$iproute_source"
|
||||
CC="$cc" \
|
||||
AR="$ar" \
|
||||
YACC=byacc \
|
||||
YACC="bison -y" \
|
||||
PKG_CONFIG="$tools_dir/bin/pkgconf" \
|
||||
PKG_CONFIG_LIBDIR="$pkgconfig_path" \
|
||||
PKG_CONFIG_SYSROOT_DIR="$sysroot" \
|
||||
@@ -231,14 +248,14 @@ iproute_source="$source_build_dir/iproute2-7.1.0"
|
||||
make -s -j"$jobs" \
|
||||
CC="$cc" \
|
||||
AR="$ar" \
|
||||
YACC=byacc \
|
||||
YACC="bison -y" \
|
||||
SHARED_LIBS=n \
|
||||
LDFLAGS="-static" \
|
||||
SUBDIRS=lib
|
||||
make -s -j"$jobs" \
|
||||
CC="$cc" \
|
||||
AR="$ar" \
|
||||
YACC=byacc \
|
||||
YACC="bison -y" \
|
||||
SHARED_LIBS=n \
|
||||
LDFLAGS="-static" \
|
||||
SUBDIRS="ip tc bridge misc"
|
||||
@@ -254,7 +271,7 @@ done
|
||||
cd "$source_build_dir/libmnl-1.0.5"
|
||||
CC="$cc" AR="$ar" RANLIB="$ranlib" ./configure \
|
||||
--build="$build_triplet" \
|
||||
--host=x86_64-linux-musl \
|
||||
--host="$MOUSE_GNU_TARGET" \
|
||||
--prefix=/usr \
|
||||
--disable-shared \
|
||||
--enable-static
|
||||
@@ -271,7 +288,7 @@ done
|
||||
PKG_CONFIG_SYSROOT_DIR="$sysroot" \
|
||||
./configure \
|
||||
--build="$build_triplet" \
|
||||
--host=x86_64-linux-musl \
|
||||
--host="$MOUSE_GNU_TARGET" \
|
||||
--prefix=/usr \
|
||||
--disable-shared \
|
||||
--enable-static
|
||||
@@ -288,13 +305,13 @@ rm -f "$sysroot/usr/lib/libmnl.la" "$sysroot/usr/lib/libnftnl.la"
|
||||
CC="$cc" \
|
||||
AR="$ar" \
|
||||
RANLIB="$ranlib" \
|
||||
YACC=byacc \
|
||||
YACC="bison -y" \
|
||||
PKG_CONFIG="$tools_dir/bin/pkgconf" \
|
||||
PKG_CONFIG_LIBDIR="$pkgconfig_path" \
|
||||
PKG_CONFIG_SYSROOT_DIR="$sysroot" \
|
||||
./configure \
|
||||
--build="$build_triplet" \
|
||||
--host=x86_64-linux-musl \
|
||||
--host="$MOUSE_GNU_TARGET" \
|
||||
--prefix=/usr \
|
||||
--sbindir=/sbin \
|
||||
--disable-shared \
|
||||
@@ -316,7 +333,7 @@ do
|
||||
install_command_man_page "$source_build_dir/util-linux-2.42.2" "$command"
|
||||
done
|
||||
for command in free pgrep pkill ps sysctl top uptime vmstat watch; do
|
||||
install_command_man_page "$source_build_dir/procps-ng-4.0.5" "$command"
|
||||
install_command_man_page "$source_build_dir/procps-ng-4.0.6" "$command"
|
||||
done
|
||||
install_command_man_page "$source_build_dir/iputils-20250605" ping
|
||||
|
||||
|
||||
Reference in New Issue
Block a user