From 92790a96688344c9f6fd6dadbaad73c1f88804a0 Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 4 Apr 2022 12:10:43 +0100 Subject: fixed network manager --- repo/system/cacerts.xibuild | 5 +++ repo/system/cairo.xibuild | 39 +++++++++++++++++ repo/system/glib.xibuild | 2 +- repo/system/jansson.xibuild | 24 +++++++++++ repo/system/libluv.xibuild | 24 +++++++++++ repo/system/libmbim.xibuild | 22 ++++++++++ repo/system/libmpack.xibuild | 16 +++++++ repo/system/libqmi.xibuild | 26 +++++++++++ repo/system/libqrtr.xibuild | 19 ++++++++ repo/system/libtermkey.xibuild | 16 +++++++ repo/system/libuv.xibuild | 15 ++++--- repo/system/libvterm.xibuild | 17 ++++++++ repo/system/mobile-broadband-provider-info.xibuild | 18 ++++++++ repo/system/modemmanager.xibuild | 50 ++++++++++++++++++++++ repo/system/msgpack-c.xibuild | 20 +++++++++ repo/system/musl.xibuild | 1 + repo/system/networkmanager.xibuild | 42 +++++++++++------- repo/system/openrc.xibuild | 3 ++ repo/system/pcre.xibuild | 2 +- repo/system/pcre2.xibuild | 2 +- repo/system/pcsc-lite.xibuild | 30 +++++++++++++ repo/system/unibilium.xibuild | 20 +++++++++ 22 files changed, 388 insertions(+), 25 deletions(-) create mode 100644 repo/system/cairo.xibuild create mode 100644 repo/system/jansson.xibuild create mode 100644 repo/system/libluv.xibuild create mode 100644 repo/system/libmbim.xibuild create mode 100644 repo/system/libmpack.xibuild create mode 100644 repo/system/libqmi.xibuild create mode 100644 repo/system/libqrtr.xibuild create mode 100644 repo/system/libtermkey.xibuild create mode 100644 repo/system/libvterm.xibuild create mode 100644 repo/system/mobile-broadband-provider-info.xibuild create mode 100644 repo/system/modemmanager.xibuild create mode 100644 repo/system/msgpack-c.xibuild create mode 100644 repo/system/pcsc-lite.xibuild create mode 100644 repo/system/unibilium.xibuild (limited to 'repo/system') 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 <