From bf7a34f02a7d9c378fba0d27dc1bab096410b7ae Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Fri, 23 Jul 2021 11:06:13 +0200 Subject: [PATCH 1/3] add some stock files and update curl, however; we'll let the user configure those files. --- alnux/build | 52 +++++++++++++++++++++++++++++++++++- alnux/package | 4 +-- alnux/payload/etc/fstab | 7 +++++ alnux/payload/etc/host.conf | 1 + alnux/payload/etc/hosts.conf | 3 +++ alnux/payload/etc/make.conf | 3 +++ curl/build | 6 ++--- curl/package | 2 +- 8 files changed, 71 insertions(+), 7 deletions(-) create mode 100644 alnux/payload/etc/fstab create mode 100644 alnux/payload/etc/host.conf create mode 100644 alnux/payload/etc/hosts.conf create mode 100644 alnux/payload/etc/make.conf diff --git a/alnux/build b/alnux/build index 5c3e9ae..d6e4666 100755 --- a/alnux/build +++ b/alnux/build @@ -1 +1,51 @@ -mkdir -p $1/dev $1/mnt $1/proc $1/run $1/sbin $1/sys $1/tmp $1/bin $1/usr/bin $1/lib \ No newline at end of file +mkdir -p -m 775\ +$1/dev \ +$1/mnt \ +$1/run \ +$1/sbin \ +$1/sys \ +$1/bin \ +$1/usr \ +$1/usr/share \ +$1/usr/share/man \ +$1/usr/share/man1 \ +$1/usr/share/man2 \ +$1/usr/share/man3 \ +$1/usr/share/man4 \ +$1/usr/share/man5 \ +$1/usr/share/man6 \ +$1/usr/share/man7 \ +$1/usr/share/man8 \ +$1/lib \ +$1/var/ \ +$1/var/cache \ +$1/var/log \ +$1/var/log/old \ +$1/var/lib \ +$1/var/lib/misc \ +$1/var/empty \ +$1/var/service \ +$1/var/spool + +mkdir -m 555 -p \ +$1/proc \ +$1/sys +mkdir -m 0750 -p \ +$1/root + +mkdir -p -m 1777 \ +$1/tmp \ +$1/var/tmp \ + +ln -sf $1/usr/bin $1/bin +ln -sf $1/usr/bin $1/sbin +ln -sf $1/bin $1/usr/sbin +ln -sf $1/usr/lib $1/lib +ln -sf $1/usr/lib $1/lib64 + +ln -sf $1/lib $1/usr/lib64 +ln -sf $1/spool/mail $1/var/mail +ln -sf $1/run $1/var/run +ln -sf $1/run/lock $1/var/lock +ln -sf $1/proc/self/mounts $1/etc/mtab + diff --git a/alnux/package b/alnux/package index 74abeb4..22b8e69 100755 --- a/alnux/package +++ b/alnux/package @@ -1,5 +1,5 @@ pkg_config_deploy=true -pkg_config_ver="0.5" +pkg_config_ver="0.7" pkg_config_name="alnux" pkg_config_makedepends="" -pkg_config_depends="" \ No newline at end of file +pkg_config_depends="" diff --git a/alnux/payload/etc/fstab b/alnux/payload/etc/fstab new file mode 100644 index 0000000..3101b02 --- /dev/null +++ b/alnux/payload/etc/fstab @@ -0,0 +1,7 @@ +# Static information about the filesystems. +# See fstab(5) for details. + +# + +tmpfs /tmp tmpfs defaults,nosuid,nodev,size=20G 0 0 + diff --git a/alnux/payload/etc/host.conf b/alnux/payload/etc/host.conf new file mode 100644 index 0000000..d1a59f7 --- /dev/null +++ b/alnux/payload/etc/host.conf @@ -0,0 +1 @@ +multi on diff --git a/alnux/payload/etc/hosts.conf b/alnux/payload/etc/hosts.conf new file mode 100644 index 0000000..47851a4 --- /dev/null +++ b/alnux/payload/etc/hosts.conf @@ -0,0 +1,3 @@ +127.0.0.1 localhost.localdomain localhost +::1 localhost.localdomain localhost ip6-localhost + diff --git a/alnux/payload/etc/make.conf b/alnux/payload/etc/make.conf new file mode 100644 index 0000000..587d859 --- /dev/null +++ b/alnux/payload/etc/make.conf @@ -0,0 +1,3 @@ +# MAKEOPTS="-j6" +# CFLAGS="-march=native -O3 -pipe -free" +# CXXFLAGS="${CFLAGS}" diff --git a/curl/build b/curl/build index b5f981d..1bcd8fc 100755 --- a/curl/build +++ b/curl/build @@ -1,6 +1,6 @@ -wget https://curl.se/download/curl-7.77.0.tar.bz2 -tar -xf curl-7.77.0.tar.bz2 -cd curl-7.77.0 +wget https://curl.se/download/curl-7.78.0.tar.bz2 +tar -xf curl-7.78.0.tar.bz2 +cd curl-7.78.0 ./configure --with-openssl make diff --git a/curl/package b/curl/package index 7b98de9..d0102a6 100755 --- a/curl/package +++ b/curl/package @@ -1,5 +1,5 @@ pkg_config_deploy=true -pkg_config_ver="7.77.0" +pkg_config_ver="7.78.0" pkg_config_name="curl" pkg_config_makedepends="openssl" pkg_config_depends="openssl" From 189151417b72096edcc8ca59a0424ddcc22d76d2 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Fri, 23 Jul 2021 11:57:01 +0200 Subject: [PATCH 2/3] removed make.conf --- alnux/payload/etc/make.conf | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 alnux/payload/etc/make.conf diff --git a/alnux/payload/etc/make.conf b/alnux/payload/etc/make.conf deleted file mode 100644 index 587d859..0000000 --- a/alnux/payload/etc/make.conf +++ /dev/null @@ -1,3 +0,0 @@ -# MAKEOPTS="-j6" -# CFLAGS="-march=native -O3 -pipe -free" -# CXXFLAGS="${CFLAGS}" From 16b05c0b865900e272802fb20d4c8305c3fa0d53 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Fri, 23 Jul 2021 12:11:54 +0200 Subject: [PATCH 3/3] readd make.conf --- alnux/payload/etc/make.conf | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 alnux/payload/etc/make.conf diff --git a/alnux/payload/etc/make.conf b/alnux/payload/etc/make.conf new file mode 100644 index 0000000..587d859 --- /dev/null +++ b/alnux/payload/etc/make.conf @@ -0,0 +1,3 @@ +# MAKEOPTS="-j6" +# CFLAGS="-march=native -O3 -pipe -free" +# CXXFLAGS="${CFLAGS}"