summaryrefslogtreecommitdiff
path: root/repo/system
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-04-04 12:10:43 +0100
committerdavidovski <david@davidovski.xyz>2022-04-04 12:10:43 +0100
commit92790a96688344c9f6fd6dadbaad73c1f88804a0 (patch)
treed6a1357a110475d8f6e39040aeae02920696e827 /repo/system
parentd093bc7b86a8ef1f149ac413d3d40d3cb728ad21 (diff)
fixed network manager
Diffstat (limited to 'repo/system')
-rw-r--r--repo/system/cacerts.xibuild5
-rw-r--r--repo/system/cairo.xibuild39
-rw-r--r--repo/system/glib.xibuild2
-rw-r--r--repo/system/jansson.xibuild24
-rw-r--r--repo/system/libluv.xibuild24
-rw-r--r--repo/system/libmbim.xibuild22
-rw-r--r--repo/system/libmpack.xibuild16
-rw-r--r--repo/system/libqmi.xibuild26
-rw-r--r--repo/system/libqrtr.xibuild19
-rw-r--r--repo/system/libtermkey.xibuild16
-rw-r--r--repo/system/libuv.xibuild15
-rw-r--r--repo/system/libvterm.xibuild17
-rw-r--r--repo/system/mobile-broadband-provider-info.xibuild18
-rw-r--r--repo/system/modemmanager.xibuild50
-rw-r--r--repo/system/msgpack-c.xibuild20
-rw-r--r--repo/system/musl.xibuild1
-rw-r--r--repo/system/networkmanager.xibuild42
-rw-r--r--repo/system/openrc.xibuild3
-rw-r--r--repo/system/pcre.xibuild2
-rw-r--r--repo/system/pcre2.xibuild2
-rw-r--r--repo/system/pcsc-lite.xibuild30
-rw-r--r--repo/system/unibilium.xibuild20
22 files changed, 388 insertions, 25 deletions
diff --git a/repo/system/cacerts.xibuild b/repo/system/cacerts.xibuild
index 9c0198d..9fef8e1 100644
--- a/repo/system/cacerts.xibuild
+++ b/repo/system/cacerts.xibuild
@@ -22,4 +22,9 @@ package () {
mkdir -p $PKG_DEST/etc/ssl/certs
bash make-ca -g --force -D $PKG_DEST
chmod -R 777 $PKG_DEST || echo "couldnt change permissions for $PKG_DEST"
+
+ install -d $PKG_DEST/usr/bin
+ install -d $PKG_DEST/usr/libexec/make-ca
+ install -m755 make-ca $PKG_DEST/usr/bin/
+ install -m700 copy-trust-modifications $PKG_DEST/usr/libexec/make-ca
}
diff --git a/repo/system/cairo.xibuild b/repo/system/cairo.xibuild
new file mode 100644
index 0000000..4bc7041
--- /dev/null
+++ b/repo/system/cairo.xibuild
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+MAKEDEPS="make"
+DEPS="musl libx11 freetype libpng libxcb libxext libxrender pixman zlib glib"
+
+PKG_VER=1.17.4
+SOURCE=https://cairographics.org/snapshots/cairo-$PKG_VER.tar.xz
+DESC="A vector graphics library"
+
+ADDITIONAL="
+fix-mask-usage-in-image-compositor.patch
+musl-stacksize.patch
+pdf-font-subset-Generate-valid-font-names.patch
+"
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-ft \
+ --enable-gobject \
+ --enable-pdf \
+ --enable-png \
+ --enable-ps \
+ --enable-svg \
+ --enable-tee \
+ --enable-x \
+ --enable-xcb \
+ --enable-xcb-shm \
+ --enable-xlib \
+ --enable-xlib-xrender \
+ --disable-xlib-xcb
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/glib.xibuild b/repo/system/glib.xibuild
index 2dcffeb..3b7a4c4 100644
--- a/repo/system/glib.xibuild
+++ b/repo/system/glib.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="meson ninja docbook-xsl docbook-dtd"
-DEPS="pcre libffi zlib musl libxslt gdb "
+DEPS="pcre libffi zlib musl libxslt gdbm"
PKG_VER=2.70.3
SOURCE=https://download.gnome.org/sources/glib/$(echo $PKG_VER | cut -d. -f-2)/glib-$PKG_VER.tar.xz
diff --git a/repo/system/jansson.xibuild b/repo/system/jansson.xibuild
new file mode 100644
index 0000000..9f82843
--- /dev/null
+++ b/repo/system/jansson.xibuild
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="musl"
+
+PKG_VER=2.14
+SOURCE=https://github.com/akheron/jansson/releases/download/v$PKG_VER/jansson-$PKG_VER.tar.gz
+
+DESC="Library for encoding, decoding and manipulating JSON data"
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
+
diff --git a/repo/system/libluv.xibuild b/repo/system/libluv.xibuild
new file mode 100644
index 0000000..fabd348
--- /dev/null
+++ b/repo/system/libluv.xibuild
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+MAKEDEPS="make luajit"
+DEPS="musl libuv"
+
+PKG_VER=1.42.0-0
+SOURCE=https://github.com/luvit/luv/releases/download/$PKG_VER/luv-$PKG_VER.tar.gz
+DESC="Bare libuv bindings for lua"
+
+build() {
+ cmake -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DWITH_SHARED_LIBUV=ON \
+ -DLUA_BUILD_TYPE=System \
+ -DBUILD_MODULE=OFF \
+ -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/system/libmbim.xibuild b/repo/system/libmbim.xibuild
new file mode 100644
index 0000000..8fe1d88
--- /dev/null
+++ b/repo/system/libmbim.xibuild
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="musl"
+
+PKG_VER=1.26.2
+SOURCE=https://www.freedesktop.org/software/libmbim/libmbim-$PKG_VER.tar.xz
+DESC="MBIM modem protocol helper library"
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-introspection=yes
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/libmpack.xibuild b/repo/system/libmpack.xibuild
new file mode 100644
index 0000000..3685876
--- /dev/null
+++ b/repo/system/libmpack.xibuild
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="musl"
+
+PKG_VER=1.0.5
+SOURCE=https://github.com/libmpack/libmpack/archive/$PKG_VER.tar.gz
+DESC="Simple implementation of msgpack in C"
+
+build () {
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST PREFIX=/usr install
+}
diff --git a/repo/system/libqmi.xibuild b/repo/system/libqmi.xibuild
new file mode 100644
index 0000000..7439f1f
--- /dev/null
+++ b/repo/system/libqmi.xibuild
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+MAKEDEPS="make gtk-doc glib libgudev "
+DEPS="musl libqrtr libmbim "
+
+PKG_VER=1.30.4
+SOURCE=https://www.freedesktop.org/software/libqmi/libqmi-$PKG_VER.tar.xz
+DESC="QMI modem protocol helper library"
+
+build () {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-mbim-qmux \
+ --enable-qrtr \
+ --enable-gtk-doc
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/libqrtr.xibuild b/repo/system/libqrtr.xibuild
new file mode 100644
index 0000000..7c4de5a
--- /dev/null
+++ b/repo/system/libqrtr.xibuild
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+MAKEDEPS="glib gobject-introspection gtk-doc linux-headers meson"
+DEPS="musl glib"
+
+PKG_VER=1.2.2
+SOURCE=https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib/-/archive/$PKG_VER/libqrtr-glib-$PKG_VER.tar.gz
+DESC="Qualcomm IPC Router protocol helper library"
+
+build () {
+ mkdir build &&
+ cd build
+ meson --prefix=/usr ..
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+}
diff --git a/repo/system/libtermkey.xibuild b/repo/system/libtermkey.xibuild
new file mode 100644
index 0000000..b73a16e
--- /dev/null
+++ b/repo/system/libtermkey.xibuild
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="musl"
+
+PKG_VER=0.22
+SOURCE=http://www.leonerd.org.uk/code/libtermkey/libtermkey-$PKG_VER.tar.gz
+DESC="Library for easy processing of keyboard entry from terminal-based programs"
+
+build () {
+ make PREFIX=/usr
+}
+
+package () {
+ make PREFIX=/usr DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/libuv.xibuild b/repo/system/libuv.xibuild
index b5e65b6..976b2b9 100644
--- a/repo/system/libuv.xibuild
+++ b/repo/system/libuv.xibuild
@@ -1,6 +1,6 @@
#!/bin/sh
-MAKEDEPS="automake autoconf libtool make"
+MAKEDEPS="make "
DEPS="musl"
PKG_VER=1.44.1
@@ -12,12 +12,15 @@ prepare () {
}
build () {
- ./configure --prefix=/usr
- make CFLAGS="$CFLAGS -D__USE_MISC" BUILDTYPE=Release
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make BUILDTYPE=Release
+
}
package () {
- make DESTDIR=$PKG_DEST install
+ make DESTDIR="$PKG_DEST" install
}
-
-
diff --git a/repo/system/libvterm.xibuild b/repo/system/libvterm.xibuild
new file mode 100644
index 0000000..d212ccc
--- /dev/null
+++ b/repo/system/libvterm.xibuild
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="musl"
+
+PKG_VER=0.1.4
+SOURCE=http://www.leonerd.org.uk/code/libvterm/libvterm-$PKG_VER.tar.gz
+DESC="Abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator"
+
+build () {
+ make PREFIX=/usr
+}
+
+package () {
+ make PREFIX=/usr DESTDIR="$PKG_DEST/" install
+ rm -f $PKG_DEST/usr/lib/*.a
+}
diff --git a/repo/system/mobile-broadband-provider-info.xibuild b/repo/system/mobile-broadband-provider-info.xibuild
new file mode 100644
index 0000000..618feb3
--- /dev/null
+++ b/repo/system/mobile-broadband-provider-info.xibuild
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+MAKEDEPS="autoconf automake libxml2 libxslt"
+DEPS="pkgconf"
+
+PKG_VER=20201225
+SOURCE=https://download.gnome.org/sources/mobile-broadband-provider-info/$PKG_VER/mobile-broadband-provider-info-$PKG_VER.tar.xz
+DESC="Mobile broadband settings for various service providers"
+
+build () {
+ ./configure --prefix=/usr --disable-static &&
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
+
diff --git a/repo/system/modemmanager.xibuild b/repo/system/modemmanager.xibuild
new file mode 100644
index 0000000..b2d5c5d
--- /dev/null
+++ b/repo/system/modemmanager.xibuild
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+MAKEDEPS="gobject-introspection gtk-doc vala libgudev polkit libmbim libqmi linux-headers"
+DEPS="dbus musl glib polkit"
+
+PKG_VER=1.18.6
+SOURCE=https://www.freedesktop.org/software/ModemManager/ModemManager-$PKG_VER.tar.xz
+
+ADDITIONAL="
+modemmanager.initd
+modemmanager.rules
+"
+
+DESC="ModemManager library"
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --with-polkit=permissive \
+ --enable-plugin-qcom-soc \
+ --enable-gtk-doc \
+ --disable-static \
+ --enable-vala=yes \
+ --with-systemd-suspend-resume=yes
+ make
+
+
+
+}
+
+package () {
+ make DESTDIR="$PKG_DEST" install
+ rm -rf "$PKG_DEST"/usr/share/dbus-1/system-services #systemd-service
+ mkdir -p "$PKG_DEST/usr/share/polkit-1/rules.d"
+ install -m644 -D "modemmanager.rules" \
+ "$PKG_DEST/usr/share/polkit-1/rules.d/01-org.freedesktop.ModemManager.rules"
+ install -m755 -D "modemmanager.initd" \
+ "$PKG_DEST/etc/init.d/modemmanager"
+ mkdir -p "$PKG_DEST/usr/share/doc/modemmanager"
+ cat > $PKG_DEST/usr/share/doc/modemmanager/README <<EOF
+If your USB modem shows up as a Flash drive when you plug it in:
+
+install 'usb-modeswitch' to automatically switch to USB modem mode whenever you plug it in.
+To control your modem without the root password: add your user account to the 'plugdev' group.
+EOF
+}
diff --git a/repo/system/msgpack-c.xibuild b/repo/system/msgpack-c.xibuild
new file mode 100644
index 0000000..e0f8b8f
--- /dev/null
+++ b/repo/system/msgpack-c.xibuild
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="musl"
+
+PKG_VER=4.0.0
+SOURCE=https://github.com/msgpack/msgpack-c/releases/download/c-$PKG_VER/msgpack-c-$PKG_VER.tar.gz
+DESC="An efficient object serialization library for C"
+
+build () {
+ cmake -G Ninja -B build . \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_VERBOSE_MAKEFILE=TRUE
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/system/musl.xibuild b/repo/system/musl.xibuild
index d986ae7..13879f0 100644
--- a/repo/system/musl.xibuild
+++ b/repo/system/musl.xibuild
@@ -23,6 +23,7 @@ prepare () {
}
build () {
+ CARCH=x86_64
LDFLAGS="$LDFLAGS -Wl,-soname,libc.musl-${CARCH}.so.1" \
./configure --prefix=/usr \
--sysconfdir=/etc \
diff --git a/repo/system/networkmanager.xibuild b/repo/system/networkmanager.xibuild
index c2c8fbd..05fd136 100644
--- a/repo/system/networkmanager.xibuild
+++ b/repo/system/networkmanager.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="grep meson ninja python intltool glib"
-DEPS="jansson libndp curl wpa_supplicant newt nss polkit libpsl dbus gobject-introspection dhcp"
+DEPS="libndp curl wpa_supplicant newt nss polkit libpsl dbus gobject-introspection dhcp eudev libintl modemmanager nspr mobile-broadband-provider-info python-gobject"
PKG_VER=1.35.5
SOURCE=https://download.gnome.org/sources/NetworkManager/${PKG_VER%.*}/NetworkManager-$PKG_VER.tar.xz
@@ -23,21 +23,31 @@ prepare () {
build () {
mkdir build &&
cd build &&
-
- meson --prefix=/usr \
- --buildtype=release \
- -Dlibaudit=no \
- -Dlibpsl=false \
- -Dnmtui=true \
- -Dovs=false \
- -Dppp=false \
- -Dselinux=false \
- -Dsession_tracking=elogind \
- -Dmodem_manager=false \
- -Dsystemdsystemunitdir=no \
- -Dsystemd_journal=false \
- -Dqt=false \
- .. &&
+ meson \
+ --prefix=/usr \
+ -Dsystemdsystemunitdir=no \
+ -Dudev_dir=/lib/udev \
+ -Dmodify_system=true \
+ -Dselinux=false \
+ -Dsystemd_journal=false \
+ -Dlibaudit=no \
+ -Diwd=true \
+ -Dppp=false \
+ -Dconfig_plugins_default=ifupdown \
+ -Difupdown=true \
+ -Ddhcpcd=true \
+ -Dconfig_dhcp_default=internal \
+ -Dvapi=true \
+ -Dtests="no" \
+ -Dpolkit=true \
+ -Dsession_tracking=no \
+ -Dqt=false \
+ -Dovs=false \
+ -Dofono=true \
+ -Dcrypto=nss \
+ -Ddbus_conf_dir=/usr/share/dbus-1/system.d \
+ -Ddocs=false \
+ ..
ninja
}
diff --git a/repo/system/openrc.xibuild b/repo/system/openrc.xibuild
index ac23b5e..f60598f 100644
--- a/repo/system/openrc.xibuild
+++ b/repo/system/openrc.xibuild
@@ -29,6 +29,7 @@ ADDITIONAL="
sysctl.initd
machine-id.initd
test-networking.sh
+ rc.conf
"
DESC="Dependency based init system that works with sysvinit"
@@ -102,6 +103,8 @@ package () {
ln -sf agetty $PKG_DEST/etc/init.d/agetty.$x
done
+ rm $PKG_DEST/etc/rc.conf
+ install -m644 rc.conf $PKG_DEST/etc/rc.conf
}
postinstall () {
diff --git a/repo/system/pcre.xibuild b/repo/system/pcre.xibuild
index 89ef437..c92f242 100644
--- a/repo/system/pcre.xibuild
+++ b/repo/system/pcre.xibuild
@@ -8,7 +8,7 @@ SOURCE=https://sourceforge.net/projects/pcre/files/pcre/$PKG_VER/pcre-$PKG_VER.t
DESC="A library that implements regular expressions in a perl style (old version)"
build () {
- CC=gcc ./configure --prefix=/usr
+ CC=gcc ./configure --prefix=/usr --enable-utf --enable-unicode-properties
make
}
diff --git a/repo/system/pcre2.xibuild b/repo/system/pcre2.xibuild
index 770ad58..46e35e9 100644
--- a/repo/system/pcre2.xibuild
+++ b/repo/system/pcre2.xibuild
@@ -8,7 +8,7 @@ SOURCE=https://github.com/PhilipHazel/pcre2/releases/download/pcre2-$PKG_VER/pcr
DESC="A library that implements regular expressions in a perl style"
build () {
- CC=gcc ./configure --prefix=/usr
+ CC=gcc ./configure --prefix=/usr --enable-utf --enable-unicode-properties
make
}
diff --git a/repo/system/pcsc-lite.xibuild b/repo/system/pcsc-lite.xibuild
new file mode 100644
index 0000000..86d86d1
--- /dev/null
+++ b/repo/system/pcsc-lite.xibuild
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+MAKEDEPS="make perl lipcap-ng"
+DEPS="musl sbase eudev"
+
+PKG_VER=1.9.4
+SOURCE=https://pcsclite.apdu.fr/files/pcsc-lite-$PKG_VER.tar.bz2
+DESC="Middleware to access a smart card using SCard API (PC/SC)"
+
+build () {
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-libusb \
+ --enable-libudev \
+ --disable-maintainer-mode \
+ --disable-silent-rules \
+ --without-systemdsystemunitdir \
+ --enable-ipcdir=/run/pcscd \
+ --enable-usbdropdir=/usr/lib/pcsc/drivers \
+ --disable-libsystemd \
+ --disable-polkit
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/unibilium.xibuild b/repo/system/unibilium.xibuild
new file mode 100644
index 0000000..9c170f7
--- /dev/null
+++ b/repo/system/unibilium.xibuild
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="musl"
+
+PKG_VER=2.1.1
+SOURCE=https://github.com/neovim/unibilium/archive/v$PKG_VER.tar.gz
+DESC="Terminfo parsing library"
+
+build () {
+ make PREFIX=/usr
+}
+
+check () {
+ make test
+}
+
+package () {
+ make PREFIX=/usr DESTDIR=$PKG_DEST install
+}