summaryrefslogtreecommitdiff
path: root/repo/system/modemmanager.xibuild
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/modemmanager.xibuild
parentd093bc7b86a8ef1f149ac413d3d40d3cb728ad21 (diff)
fixed network manager
Diffstat (limited to 'repo/system/modemmanager.xibuild')
-rw-r--r--repo/system/modemmanager.xibuild50
1 files changed, 50 insertions, 0 deletions
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
+}