aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClayton Craft <clayton@craftyguy.net>2020-12-22 21:48:13 -0800
committerLeo <thinkabit.ukim@gmail.com>2020-12-23 07:27:15 +0000
commit314d7eb88a146a8b92dbb06f9f5cae66b87a9a5d (patch)
tree6f95f166f9a3cfd5f503f9ffff9c2ccd19da5107
parent6db3938a75c7bc5b7235118661896fec76d2b9e7 (diff)
downloadaports-314d7eb88a146a8b92dbb06f9f5cae66b87a9a5d.tar.gz
aports-314d7eb88a146a8b92dbb06f9f5cae66b87a9a5d.tar.bz2
aports-314d7eb88a146a8b92dbb06f9f5cae66b87a9a5d.tar.xz
testing/eg25-manager: new aport
-rw-r--r--testing/eg25-manager/APKBUILD39
-rw-r--r--testing/eg25-manager/eg25-manager.confd1
-rw-r--r--testing/eg25-manager/eg25-manager.initd9
3 files changed, 49 insertions, 0 deletions
diff --git a/testing/eg25-manager/APKBUILD b/testing/eg25-manager/APKBUILD
new file mode 100644
index 0000000000..7bb3de24d8
--- /dev/null
+++ b/testing/eg25-manager/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Clayton Craft <clayton@craftyguy.net>
+# Maintainer: Clayton Craft <clayton@craftyguy.net>
+pkgname=eg25-manager
+pkgver=0.1.1
+pkgrel=0
+pkgdesc="Daemon for managing the Quectel EG25 modem"
+url="https://gitlab.com/mobian1/devices/eg25-manager"
+arch="all !s390x" # no modemmanager
+license="GPL-3.0-or-later"
+makedepends="
+ glib-dev
+ libgpiod-dev
+ libgudev-dev
+ libusb-dev
+ meson
+ modemmanager-dev
+ "
+source="
+ https://gitlab.com/mobian1/devices/eg25-manager/-/archive/$pkgver/eg25-manager-$pkgver.tar.gz
+ eg25-manager.confd
+ eg25-manager.initd
+ "
+options="!check" # no tests
+subpackages="$pkgname-openrc"
+
+build() {
+ abuild-meson . output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install --no-rebuild -C output
+ install -Dm755 "$srcdir"/eg25-manager.initd "$pkgdir"/etc/init.d/eg25-manager
+ install -Dm644 "$srcdir"/eg25-manager.confd "$pkgdir"/etc/conf.d/eg25-manager
+}
+
+sha512sums="4607ca37d197932426ff196c4078b11032710135a7e2f85a982d67fd4a5590ac459c9b36690ef0047962bcf721a7c1ac11215b19aed7050e116ccf63735c517c eg25-manager-0.1.1.tar.gz
+55936830afad2968a214fb39cfe1a9db50421dc2ff4f67d04f08f6bd2b094c3ab46799cfc7743bbc5032682d98d1216203adf5264353a05134bea58524ac070b eg25-manager.confd
+6422ffb1014fee5315fbc82f811471e9bdef7e6bfedfd97c9e1928ff5dd2c761df8d3c54c05e132063365861e224cf344500ae6809fd2172795f48c7b6b483c8 eg25-manager.initd"
diff --git a/testing/eg25-manager/eg25-manager.confd b/testing/eg25-manager/eg25-manager.confd
new file mode 100644
index 0000000000..4f460d9e64
--- /dev/null
+++ b/testing/eg25-manager/eg25-manager.confd
@@ -0,0 +1 @@
+rc_cgroup_cleanup="yes"
diff --git a/testing/eg25-manager/eg25-manager.initd b/testing/eg25-manager/eg25-manager.initd
new file mode 100644
index 0000000000..f768f15afe
--- /dev/null
+++ b/testing/eg25-manager/eg25-manager.initd
@@ -0,0 +1,9 @@
+#!/sbin/openrc-run
+supervisor="supervise-daemon"
+description="Starting EG25 Manager"
+command="/usr/bin/eg25manager"
+
+depend()
+{
+ after modemmanager
+}