summaryrefslogtreecommitdiff
path: root/repo/system
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-20 00:00:54 +0000
committerdavidovski <david@davidovski.xyz>2022-03-20 00:00:54 +0000
commit19b9a12a93a45cc02b31de9b40c45029fbf3c569 (patch)
treec2c415813d63b7773fa2a533789a1753b9fee724 /repo/system
parent1daf71c2980b1920bbdc2f07af669ebf6f0f82d6 (diff)
changed the linux kernel configs
Diffstat (limited to 'repo/system')
-rw-r--r--repo/system/eudev.xibuild30
-rw-r--r--repo/system/hwids.xibuild20
-rw-r--r--repo/system/sbase.xibuild13
-rw-r--r--repo/system/syslinux.xibuild34
-rw-r--r--repo/system/ubase.xibuild16
-rw-r--r--repo/system/udev-rules.xibuild14
6 files changed, 109 insertions, 18 deletions
diff --git a/repo/system/eudev.xibuild b/repo/system/eudev.xibuild
index d4cd523..8697c0f 100644
--- a/repo/system/eudev.xibuild
+++ b/repo/system/eudev.xibuild
@@ -1,18 +1,34 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="gperf"
+DEPS="gperf udev-rules kmod"
PKG_VER=3.2.10
SOURCE=https://dev.gentoo.org/~blueness/eudev/eudev-$PKG_VER.tar.gz
DESC="Programs for dynamic creation of device nodes"
+ADDITIONAL="
+ default-rules.patch
+ load-fbcon.patch
+"
+
+prepare () {
+ apply_patches
+ sed -i 's/\$(LN_S) -n -f/\$(LN_S) -f/' src/udev/Makefile.in
+}
build () {
- ./configure --prefix=/usr \
- --bindir=/usr/sbin \
- --sysconfdir=/etc \
- --enable-manpages \
- --disable-static
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/sbin \
+ --sbindir=/usr/sbin \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --enable-split-usr \
+ --enable-manpages \
+ --disable-hwdb \
+ --enable-modules \
+ --enable-kmod
+ --disable-static
make
}
@@ -21,5 +37,5 @@ package () {
mkdir -p $PKG_DEST/etc/udev/rules.d
make DESTDIR=$PKG_DEST install
-
+ rm -rf $PKG_DEST/sbin
}
diff --git a/repo/system/hwids.xibuild b/repo/system/hwids.xibuild
new file mode 100644
index 0000000..1cd6827
--- /dev/null
+++ b/repo/system/hwids.xibuild
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+MAKEDEPS="make eudev"
+DEPS=""
+
+PKG_VER=20210613
+SOURCE=https://github.com/gentoo/hwids/archive/hwids-$PKG_VER.tar.gz
+DESC="Hardware Identification databases"
+
+prepare () {
+ sed -i "s/install -p/install/g" Makefile
+}
+
+build () {
+ make UDEV=yes
+}
+
+package () {
+ make DESTDIR=$PKG_DEST DOCDIR="/usr/share/doc/hwids-$PKG_VER" MISCDIR="/usr/share/hwdata" UDEV=yes install
+}
diff --git a/repo/system/sbase.xibuild b/repo/system/sbase.xibuild
index 38559f8..a101bb9 100644
--- a/repo/system/sbase.xibuild
+++ b/repo/system/sbase.xibuild
@@ -4,6 +4,10 @@ MAKEDEPS="make "
DEPS="musl acl attr gmp ubase"
SOURCE=https://git.suckless.org/sbase
+ADDITIONAL="
+ https://gitea.linfan.moe/mirror/ataraxia/raw/commit/74914d05c701919fe6aa0d63e131df8c4df420fe/stuff/sbase/realpath.1
+ https://gitea.linfan.moe/mirror/ataraxia/raw/commit/74914d05c701919fe6aa0d63e131df8c4df420fe/stuff/sbase/realpath.c
+"
DESC="sbase from suckless.org"
@@ -13,6 +17,8 @@ prepare () {
sed -i "39i case 'o':" uname.c
sed -i "40i sflag = 1;" uname.c
sed -i "41i break;" uname.c
+
+ sed -i '182i realpath\\' Makefile
}
build () {
@@ -27,11 +33,4 @@ package () {
rm $PKG_DEST/usr/bin/$p
rm $PKG_DEST/usr/share/man/man1/$p.1
done
-
- # quick and dirty realpath replacement
- realpath=$PKG_DEST/usr/bin/realpath
-
- echo '#!/bin/bash' > $realpath
- echo '[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"' >> $realpath
- chmod +x $realpath
}
diff --git a/repo/system/syslinux.xibuild b/repo/system/syslinux.xibuild
new file mode 100644
index 0000000..19edc66
--- /dev/null
+++ b/repo/system/syslinux.xibuild
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="util-linux sbase musl"
+
+PKG_VER=6.03
+SOURCE=https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/${PKG_VER%.*}.xx/syslinux-$PKG_VER.tar.xz
+ADDITIONAL="
+ update-extlinux.conf
+ update-extlinux
+ 0018-prevent-pow-optimization.patch
+ fix-sysmacros.patch
+ "
+DESC="Boot loader for the Linux operating system"
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ make efi64 installer
+}
+
+package () {
+ make -j1 INSTALLROOT="$PKG_DEST" MANDIR=/usr/share/man \
+ bios efi64 install
+
+ mkdir -p "$PKG_DEST"/etc/update-extlinux.d
+ cp update-extlinux.conf "$PKG_DEST"/etc/
+ sed "/^version=/s/=.*/=$PKG_VER/" update-extlinux \
+ > "$PKG_DEST"/sbin/update-extlinux
+ chmod 755 "$PKG_DEST"/sbin/update-extlinux
+}
+
diff --git a/repo/system/ubase.xibuild b/repo/system/ubase.xibuild
index 6b21576..30a7de3 100644
--- a/repo/system/ubase.xibuild
+++ b/repo/system/ubase.xibuild
@@ -16,9 +16,17 @@ build () {
}
package () {
- install -d $PKG_DEST/usr/bin
- install -m755 stat $PKG_DEST/usr/bin
+ for p in stat id df dd truncate who; do
+ install -d $PKG_DEST/usr/bin
+ install -m755 $p $PKG_DEST/usr/bin
- install -d $PKG_DEST/usr/share/man
- install -m644 stat.1 $PKG_DEST/usr/share/man/stat.1
+ if [ -f $p.1 ]; then
+ install -d $PKG_DEST/usr/share/man
+ install -m644 $p.1 $PKG_DEST/usr/share/man/$p.1
+ fi
+ if [ -f $p.8 ]; then
+ install -d $PKG_DEST/usr/share/man
+ install -m644 $p.8 $PKG_DEST/usr/share/man/$p.8
+ fi
+ done;
}
diff --git a/repo/system/udev-rules.xibuild b/repo/system/udev-rules.xibuild
new file mode 100644
index 0000000..9eda445
--- /dev/null
+++ b/repo/system/udev-rules.xibuild
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS=""
+
+SOURCE=https://xi.davidovski.xyz/git/bootscripts.git
+DESC="udev rules for xilinux"
+
+package () {
+ cd udev
+ mkdir -p $PKG_DEST/usr/lib/udev/rules.d
+ mkdir -p $PKG_DEST/etc/udev/rules.d
+ make DESTDIR=$PKG_DEST install
+}