summaryrefslogtreecommitdiff
path: root/app-mobilephone
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
commitbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch)
tree0d7a74b4463ee387f9cf9368ceb1b757f694f72a /app-mobilephone
parentf716a9fe6455d39eef01e718aae68dae61c19704 (diff)
downloadbaldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'app-mobilephone')
-rw-r--r--app-mobilephone/adebar/Manifest1
-rw-r--r--app-mobilephone/adebar/adebar-2.4.2.ebuild63
-rw-r--r--app-mobilephone/adebar/metadata.xml11
-rw-r--r--app-mobilephone/anyremote/Manifest1
-rw-r--r--app-mobilephone/anyremote/anyremote-6.7.3.ebuild50
-rw-r--r--app-mobilephone/anyremote/files/anyremote-6.7.3-fix_doublefree.patch22
-rw-r--r--app-mobilephone/anyremote/files/anyremote-6.7.3-fix_gcc15.patch35
-rw-r--r--app-mobilephone/anyremote/metadata.xml8
-rw-r--r--app-mobilephone/dfu-util/Manifest1
-rw-r--r--app-mobilephone/dfu-util/dfu-util-0.11.ebuild27
-rw-r--r--app-mobilephone/dfu-util/dfu-util-9999.ebuild27
-rw-r--r--app-mobilephone/dfu-util/metadata.xml11
-rw-r--r--app-mobilephone/flashlight/Manifest1
-rw-r--r--app-mobilephone/flashlight/files/60-flashlight.rules5
-rw-r--r--app-mobilephone/flashlight/files/90-flashlight.rules2
-rw-r--r--app-mobilephone/flashlight/flashlight-0.1.1-r3.ebuild42
-rw-r--r--app-mobilephone/flashlight/metadata.xml8
-rw-r--r--app-mobilephone/gammu/Manifest1
-rw-r--r--app-mobilephone/gammu/files/gammu-1.42.0-CMP0110-policy.patch12
-rw-r--r--app-mobilephone/gammu/files/gammu-1.42.0-fortify-source-3.patch31
-rw-r--r--app-mobilephone/gammu/files/gammu-1.42.0-gammu-detect.patch22
-rw-r--r--app-mobilephone/gammu/gammu-1.42.0-r1.ebuild69
-rw-r--r--app-mobilephone/gammu/metadata.xml17
-rw-r--r--app-mobilephone/gnokii/Manifest1
-rw-r--r--app-mobilephone/gnokii/files/gnokii-0.6.31-codeset.m422
-rw-r--r--app-mobilephone/gnokii/files/gnokii-0.6.31-conf-intrinsic.patch19
-rw-r--r--app-mobilephone/gnokii/files/gnokii-0.6.31-docdir.patch69
-rw-r--r--app-mobilephone/gnokii/files/gnokii-0.6.31-fix_xgnokii_inclusion.patch11
-rw-r--r--app-mobilephone/gnokii/files/gnokii-0.6.31-gcc5.patch27
-rw-r--r--app-mobilephone/gnokii/files/gnokii-0.6.31-gcc7.patch17
-rw-r--r--app-mobilephone/gnokii/files/gnokii-0.6.31-sqlite-typo.patch18
-rw-r--r--app-mobilephone/gnokii/gnokii-0.6.31-r5.ebuild132
-rw-r--r--app-mobilephone/gnokii/metadata.xml20
-rw-r--r--app-mobilephone/heimdall/Manifest1
-rw-r--r--app-mobilephone/heimdall/heimdall-2.2.2.ebuild58
-rw-r--r--app-mobilephone/heimdall/metadata.xml9
-rw-r--r--app-mobilephone/metadata.xml32
-rw-r--r--app-mobilephone/mobile-config-firefox/Manifest1
-rw-r--r--app-mobilephone/mobile-config-firefox/files/0001-src-prefs.js-disable-sandbox-for-non-ESR.patch27
-rw-r--r--app-mobilephone/mobile-config-firefox/files/disable-proton-ui.patch12
-rw-r--r--app-mobilephone/mobile-config-firefox/metadata.xml8
-rw-r--r--app-mobilephone/mobile-config-firefox/mobile-config-firefox-2.1.0.ebuild29
-rw-r--r--app-mobilephone/pinephone-modem-scripts/files/90-modem-eg25.rules5
-rw-r--r--app-mobilephone/pinephone-modem-scripts/files/pinephone-modem-scripts.pinephone-modem-setup.service9
-rw-r--r--app-mobilephone/pinephone-modem-scripts/files/pinephone-modem-setup.sh25
-rw-r--r--app-mobilephone/pinephone-modem-scripts/metadata.xml8
-rw-r--r--app-mobilephone/pinephone-modem-scripts/pinephone-modem-scripts-0.20.8.ebuild30
-rw-r--r--app-mobilephone/scmxx/Manifest1
-rw-r--r--app-mobilephone/scmxx/metadata.xml8
-rw-r--r--app-mobilephone/scmxx/scmxx-0.9.0-r1.ebuild38
-rw-r--r--app-mobilephone/scrcpy/Manifest4
-rw-r--r--app-mobilephone/scrcpy/metadata.xml14
-rw-r--r--app-mobilephone/scrcpy/scrcpy-3.3.4.ebuild55
-rw-r--r--app-mobilephone/scrcpy/scrcpy-4.0.ebuild55
-rw-r--r--app-mobilephone/smstools/Manifest2
-rw-r--r--app-mobilephone/smstools/files/smsd.initd423
-rw-r--r--app-mobilephone/smstools/files/smsd.service11
-rw-r--r--app-mobilephone/smstools/files/smsd.tmpfiles1
-rw-r--r--app-mobilephone/smstools/metadata.xml8
-rw-r--r--app-mobilephone/smstools/smstools-3.1.21-r2.ebuild77
-rw-r--r--app-mobilephone/sobexsrv/Manifest2
-rw-r--r--app-mobilephone/sobexsrv/files/conf.d_sobexsrv35
-rw-r--r--app-mobilephone/sobexsrv/files/init.d_sobexsrv58
-rw-r--r--app-mobilephone/sobexsrv/files/sobexsrv-1.0.1-openobex16.patch49
-rw-r--r--app-mobilephone/sobexsrv/metadata.xml18
-rw-r--r--app-mobilephone/sobexsrv/sobexsrv-1.0.1-r3.ebuild72
-rw-r--r--app-mobilephone/vmoconv/Manifest1
-rw-r--r--app-mobilephone/vmoconv/files/vmoconv-1.0-external-libgsm.patch36
-rw-r--r--app-mobilephone/vmoconv/files/vmoconv-1.0-flags.patch25
-rw-r--r--app-mobilephone/vmoconv/files/vmoconv-1.0-glibc28.patch22
-rw-r--r--app-mobilephone/vmoconv/metadata.xml5
-rw-r--r--app-mobilephone/vmoconv/vmoconv-1.0-r1.ebuild33
72 files changed, 1710 insertions, 0 deletions
diff --git a/app-mobilephone/adebar/Manifest b/app-mobilephone/adebar/Manifest
new file mode 100644
index 000000000000..66ae8cf50fa6
--- /dev/null
+++ b/app-mobilephone/adebar/Manifest
@@ -0,0 +1 @@
+DIST adebar-2.4.2.tar.gz 65216 BLAKE2B bbcb9729075c624539ad937d72d5fe4e029c54721119f3b0aad30d84feb5a8f0416dd70a1844fa0d5f46baac53aca7a6db476a67df119b01be4a7d1f857bb643 SHA512 3fcf1fd75342ff609fce718d4ca00a8fdfcc34d9ca142951033ce73234d897580b8bf9c4c66208cdb6cb763863653d58439d5e9c17f6dd7bf2a62ce186a77abf
diff --git a/app-mobilephone/adebar/adebar-2.4.2.ebuild b/app-mobilephone/adebar/adebar-2.4.2.ebuild
new file mode 100644
index 000000000000..56ac670c9aa0
--- /dev/null
+++ b/app-mobilephone/adebar/adebar-2.4.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit readme.gentoo-r1
+
+DESCRIPTION="Android DEvice Backup And Report, using Bash and ADB"
+HOMEPAGE="https://codeberg.org/izzy/Adebar"
+SRC_URI="https://codeberg.org/izzy/Adebar/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+S="${WORKDIR}/${PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ app-shells/bash
+ dev-util/android-tools
+"
+
+DISABLE_AUTOFORMATTING="no"
+DOC_CONTENTS="Please refer to the documentation at https://codeberg.org/izzy/Adebar/wiki.
+You can find example configurations at /usr/share/doc/${PF}.
+To customize, copy to \${XDG_CONFIG_HOME}/${PN} and edit it to your liking.
+Contrary to the documentation, the Gentoo installation does not allow
+configuration files relative to main program ${PN} installed to /usr/bin.
+So the documentation must be placed in the users home directory."
+
+src_prepare() {
+ default
+
+ sed -i -e 's|\(BINDIR=\).*|\1"/usr/share/adebar"|' ${PN}-cli
+ sed -i -e 's|\(LIBDIR=\).*|\1"/usr/lib/adebar"|' ${PN}-cli
+ sed -i -e '/-d "\$HOME\/\.config\/adebar"/,+2d' ${PN}-cli
+}
+
+src_install() {
+ local libdir=/usr/lib/${PN}
+ local sharedir=/usr/share/${PN}
+
+ newbin ${PN}-cli ${PN}
+
+ insinto ${libdir}
+ doins -r lib/*
+
+ exeinto ${sharedir}/tools
+ doexe tools/*
+ fperms 0644 ${sharedir}/tools/xml2array.php
+
+ insinto ${sharedir}/templates
+ doins -r templates/*
+
+ dodoc -r doc/*
+ dodoc README.md
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}
diff --git a/app-mobilephone/adebar/metadata.xml b/app-mobilephone/adebar/metadata.xml
new file mode 100644
index 000000000000..f737de18059c
--- /dev/null
+++ b/app-mobilephone/adebar/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>billie@gentoo.org</email>
+ <name>Daniel Pielmeier</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="codeberg">izzy/Adebar</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-mobilephone/anyremote/Manifest b/app-mobilephone/anyremote/Manifest
new file mode 100644
index 000000000000..6f2d54d7ad6d
--- /dev/null
+++ b/app-mobilephone/anyremote/Manifest
@@ -0,0 +1 @@
+DIST anyremote-6.7.3.tar.gz 2466078 BLAKE2B 13cda30322c86b468c6f7d4894801c79d6c96791e6c51b5732ed628d53305a76ab4b13fd0e2088b620bf1a6ab2bda66a5957f0e60da2e327c3a6694a0dd9de66 SHA512 f2c13dbe02437a04af0c07453999fe4727970e386be9ee0d2d9d96aedb2afdc2269e040f3a42bc5479ad196495501cb34583e039a82c5cbd6861803d57e3a8ed
diff --git a/app-mobilephone/anyremote/anyremote-6.7.3.ebuild b/app-mobilephone/anyremote/anyremote-6.7.3.ebuild
new file mode 100644
index 000000000000..70c62cc921fd
--- /dev/null
+++ b/app-mobilephone/anyremote/anyremote-6.7.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Bluetooth, infrared or cable remote control service"
+HOMEPAGE="https://anyremote.sourceforge.net/"
+SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="bluetooth dbus zeroconf"
+
+RDEPEND="
+ dev-libs/glib:2
+ x11-libs/libX11
+ x11-libs/libXtst
+ bluetooth? ( net-wireless/bluez:= )
+ dbus? (
+ dev-libs/dbus-glib
+ sys-apps/dbus
+ )
+ zeroconf? ( net-dns/avahi )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fix_doublefree.patch
+ "${FILESDIR}"/${PN}-6.7.3-fix_gcc15.patch
+)
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_configure() {
+ local myeconfargs=(
+ --docdir="/usr/share/doc/${PF}/"
+ $(use_enable bluetooth)
+ $(use_enable dbus)
+ $(use_enable zeroconf avahi)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ mv "${ED}"/usr/share/doc/${PF}/{doc-html,html} || die
+ gunzip "${ED}"/usr/share/man/man1/anyremote.1.gz || die
+}
diff --git a/app-mobilephone/anyremote/files/anyremote-6.7.3-fix_doublefree.patch b/app-mobilephone/anyremote/files/anyremote-6.7.3-fix_doublefree.patch
new file mode 100644
index 000000000000..72d519738e1b
--- /dev/null
+++ b/app-mobilephone/anyremote/files/anyremote-6.7.3-fix_doublefree.patch
@@ -0,0 +1,22 @@
+Backport from upstream "fix potential double free error"
+https://sourceforge.net/p/anyremote/code/1086/
+--- a/src/dispatcher.c
++++ b/src/dispatcher.c
+@@ -2,7 +2,7 @@
+ // anyRemote
+ // a wi-fi or bluetooth remote for your PC.
+ //
+-// Copyright (C) 2006-2016 Mikhail Fedotov <anyremote@mail.ru>
++// Copyright (C) 2006-2020 Mikhail Fedotov <anyremote@mail.ru>
+ //
+ // This program is free software; you can redistribute it and/or modify
+ // it under the terms of the GNU General Public License as published by
+@@ -216,7 +216,7 @@
+ if (dm->value != NULL) {
+ free(dm->value);
+ }
+- if (dm->file != NULL) {
++ if (dm->file != NULL && dm->file != dm->scaled) {
+ free(dm->file);
+ }
+ if (dm->scaled != NULL) {
diff --git a/app-mobilephone/anyremote/files/anyremote-6.7.3-fix_gcc15.patch b/app-mobilephone/anyremote/files/anyremote-6.7.3-fix_gcc15.patch
new file mode 100644
index 000000000000..4eef0e1fb975
--- /dev/null
+++ b/app-mobilephone/anyremote/files/anyremote-6.7.3-fix_gcc15.patch
@@ -0,0 +1,35 @@
+Reported by email 2025-09-01
+Fix from fedora https://src.fedoraproject.org/rpms/anyremote/blob/rawhide/f/fix_compile_error.patch
+--- ./src/executor.c.orig 2025-04-25 21:20:37.307777694 +0100
++++ ./src/executor.c 2025-04-25 21:20:40.314734610 +0100
+@@ -56,7 +56,7 @@ static int isIViewerCommand(char *cmd);
+
+ static void handleInit();
+ static void handleConnect();
+-static void handleDisconnect();
++static void handleDisconnect(int peer);
+ static void handleExit();
+
+ static void cleanAutoRepeatFlag();
+--- ./src/pr_web.h.orig 2025-04-25 21:31:10.758570383 +0100
++++ ./src/pr_web.h 2025-04-25 21:31:14.844562838 +0100
+@@ -52,7 +52,7 @@ void webClose (ConnectInfo* connInfo,
+ void webReset (ConnectInfo* conn);
+ int listenWeb (ConnectInfo* connInfo);
+ int acceptWeb (ConnectInfo* connInfo);
+-int checkWebPort();
++int checkWebPort(char* buf, int capacity);
+ int writeWebConn(const dMessage* dm, int mode);
+ int writeWeb (ConnectInfo* connInfo, const dMessage* dm);
+ //int haveClients (_WebConnection* cn);
+--- ./src/sys_util.c.orig 2025-04-25 21:34:36.141191110 +0100
++++ ./src/sys_util.c 2025-04-25 21:34:52.101161638 +0100
+@@ -354,7 +354,7 @@ static int pclose_r(int fd, pid_t pid)
+ {
+ register int r;
+ int status;
+- void (*hstat)(), (*istat)(), (*qstat)();
++ void (*hstat)(int), (*istat)(int), (*qstat)(int);
+
+ (void) close(fd);
+ istat = signal(SIGINT, SIG_IGN);
diff --git a/app-mobilephone/anyremote/metadata.xml b/app-mobilephone/anyremote/metadata.xml
new file mode 100644
index 000000000000..c35cfddb9dab
--- /dev/null
+++ b/app-mobilephone/anyremote/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">anyremote</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-mobilephone/dfu-util/Manifest b/app-mobilephone/dfu-util/Manifest
new file mode 100644
index 000000000000..9f29244ce9e3
--- /dev/null
+++ b/app-mobilephone/dfu-util/Manifest
@@ -0,0 +1 @@
+DIST dfu-util-0.11.tar.gz 152462 BLAKE2B 3734698dd62de8a1c781f7631ae17ee9755241ce4d614b028fe6d6c3a117f3a301c174dcadf52252d55b08cfd75298c27a588e880837317ff73c32ab8863ccdd SHA512 fc5304a483ac10e35bf1b9304becdeb407b2e44d8ac51474d2fa17877e6cf71b0126f7e12ebb331d75e7adeb9c173ff5cf083a06ded5847dbe477534cf26a553
diff --git a/app-mobilephone/dfu-util/dfu-util-0.11.ebuild b/app-mobilephone/dfu-util/dfu-util-0.11.ebuild
new file mode 100644
index 000000000000..c5eac4319329
--- /dev/null
+++ b/app-mobilephone/dfu-util/dfu-util-0.11.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://git.code.sf.net/p/dfu-util/dfu-util"
+ inherit autotools git-r3
+else
+ SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
+ KEYWORDS="amd64 arm64 ~riscv x86"
+fi
+
+DESCRIPTION="implements the Host (PC) side of the USB DFU (Device Firmware Upgrade) protocol"
+HOMEPAGE="https://dfu-util.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+RDEPEND="virtual/libusb:1"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+ [[ ${PV} == *9999 ]] && eautoreconf
+}
diff --git a/app-mobilephone/dfu-util/dfu-util-9999.ebuild b/app-mobilephone/dfu-util/dfu-util-9999.ebuild
new file mode 100644
index 000000000000..86f93de93c65
--- /dev/null
+++ b/app-mobilephone/dfu-util/dfu-util-9999.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://git.code.sf.net/p/dfu-util/dfu-util"
+ inherit autotools git-r3
+else
+ SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~riscv ~x86"
+fi
+
+DESCRIPTION="implements the Host (PC) side of the USB DFU (Device Firmware Upgrade) protocol"
+HOMEPAGE="https://dfu-util.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+RDEPEND="virtual/libusb:1"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+ [[ ${PV} == *9999 ]] && eautoreconf
+}
diff --git a/app-mobilephone/dfu-util/metadata.xml b/app-mobilephone/dfu-util/metadata.xml
new file mode 100644
index 000000000000..0d3d7a8d0a43
--- /dev/null
+++ b/app-mobilephone/dfu-util/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>embedded@gentoo.org</email>
+ <name>Embedded Gentoo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">dfu-util</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-mobilephone/flashlight/Manifest b/app-mobilephone/flashlight/Manifest
new file mode 100644
index 000000000000..8739b8f4fa8e
--- /dev/null
+++ b/app-mobilephone/flashlight/Manifest
@@ -0,0 +1 @@
+DIST flashlight-0.1.1.tar.gz 20077 BLAKE2B c9ed29d034c5c7e91a87209236e153afbada4c0e098dba0e0ed8fa0f7b321d3ec693fe198de415031024f4a29437ba2986809f30009c5c09751d7800449a42af SHA512 ed8350bf75f5638c36ba070dee7f5aa0455fcde5ed4ecc63ff7a27578d34e382e16b2998e25898e972b95b5307af58de14b96ee359bedfcee924f9b7e865dcd6
diff --git a/app-mobilephone/flashlight/files/60-flashlight.rules b/app-mobilephone/flashlight/files/60-flashlight.rules
new file mode 100644
index 000000000000..b9098a83cb3c
--- /dev/null
+++ b/app-mobilephone/flashlight/files/60-flashlight.rules
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-3+
+#
+# This file is part of flashlight.
+
+SUBSYSTEM=="leds", KERNEL=="white:flash", ACTION=="add", RUN+="/bin/chmod -R a+w /sys%p"
diff --git a/app-mobilephone/flashlight/files/90-flashlight.rules b/app-mobilephone/flashlight/files/90-flashlight.rules
new file mode 100644
index 000000000000..3aafcd21a28f
--- /dev/null
+++ b/app-mobilephone/flashlight/files/90-flashlight.rules
@@ -0,0 +1,2 @@
+SUBSYSTEM=="leds", ACTION=="add", KERNEL=="white:flash", \
+ RUN+="/bin/chmod 777 /sys/class/leds/%k/brightness"
diff --git a/app-mobilephone/flashlight/flashlight-0.1.1-r3.ebuild b/app-mobilephone/flashlight/flashlight-0.1.1-r3.ebuild
new file mode 100644
index 000000000000..218d2a0f9714
--- /dev/null
+++ b/app-mobilephone/flashlight/flashlight-0.1.1-r3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson gnome2-utils udev
+
+MY_COMMIT="f5feb4b3d17bbf16171d716bbb8e28f3a84542ef"
+
+DESCRIPTION="Simple flashlight application for the PinePhone"
+HOMEPAGE="https://gitlab.com/a-wai/flashlight.git"
+SRC_URI="https://gitlab.com/a-wai/flashlight/-/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+S="${WORKDIR}/${PN}-${MY_COMMIT}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+RDEPEND="
+ dev-libs/glib
+ x11-libs/gtk+
+"
+BDEPEND="dev-lang/python-exec[native-symlinks]"
+
+src_install() {
+ meson_src_install
+ udev_dorules "${FILESDIR}/60-flashlight.rules"
+ mv "${D}/usr/share/appdata" "${D}/usr/share/metainfo" || die
+}
+
+pkg_postinst() {
+ gnome2_schemas_update
+ xdg_desktop_database_update
+ udev_reload
+}
+
+pkg_postrm() {
+ gnome2_schemas_update
+ xdg_icon_cache_update
+ udev_reload
+}
diff --git a/app-mobilephone/flashlight/metadata.xml b/app-mobilephone/flashlight/metadata.xml
new file mode 100644
index 000000000000..6d5ef04d40e9
--- /dev/null
+++ b/app-mobilephone/flashlight/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="gitlab">a-wai/flashlight.git</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-mobilephone/gammu/Manifest b/app-mobilephone/gammu/Manifest
new file mode 100644
index 000000000000..b083ab159211
--- /dev/null
+++ b/app-mobilephone/gammu/Manifest
@@ -0,0 +1 @@
+DIST gammu-1.42.0.tar.xz 1747520 BLAKE2B 13f2627ad189e8ca92da2b16c4f7f5f792f601ca5f7620e251526f79b399b54eb3fb46b420ccb81d4bb44c7777d417c96390001d30dbbe9740eb3d737c574716 SHA512 b1826b011b7af15c87bd1e9214536607450553f9b5c7ba9b40ea2a1b9d8dcc8cab61106055fcb4aeb69e78ea29d2f4986ffd7df20210ed76bc6a0c474e140ba1
diff --git a/app-mobilephone/gammu/files/gammu-1.42.0-CMP0110-policy.patch b/app-mobilephone/gammu/files/gammu-1.42.0-CMP0110-policy.patch
new file mode 100644
index 000000000000..b67cebd17a41
--- /dev/null
+++ b/app-mobilephone/gammu/files/gammu-1.42.0-CMP0110-policy.patch
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt.orig b/CMakeLists.txt
+index 6cffb02..f7993cf 100644
+--- a/CMakeLists.txt.orig
++++ b/CMakeLists.txt
+@@ -13,6 +13,7 @@ set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
+ # Silent some warnings from CMake 2.6
+ cmake_policy(SET CMP0003 NEW)
+ cmake_policy(SET CMP0009 NEW)
++cmake_policy(SET CMP0110 NEW)
+
+ option (COVERAGE "Add flags for Coverage analysis" OFF)
+
diff --git a/app-mobilephone/gammu/files/gammu-1.42.0-fortify-source-3.patch b/app-mobilephone/gammu/files/gammu-1.42.0-fortify-source-3.patch
new file mode 100644
index 000000000000..dba1ca50ec6d
--- /dev/null
+++ b/app-mobilephone/gammu/files/gammu-1.42.0-fortify-source-3.patch
@@ -0,0 +1,31 @@
+https://bugs.gentoo.org/854324
+https://github.com/gammu/gammu/commit/a37e5d8054f863fa71e38e244dd4da13eee6e251
+
+From a37e5d8054f863fa71e38e244dd4da13eee6e251 Mon Sep 17 00:00:00 2001
+From: Martin Liska <mliska@suse.cz>
+Date: Mon, 20 Jun 2022 10:24:13 +0200
+Subject: [PATCH] Fix buffer overflow in Backup.Creator
+
+I noticed that while testing the upcoming GCC 12 with -D_FORTIFY_SOURCE=3:
+here I have
+
+$1 = 0x7ffff7f0f940 <Buffer.1.lto_priv.1> "Linux, kernel 5.16.14-1-default (#1 SMP PREEMPT Fri Mar 11 12:33:34 UTC 2022 (80acc65))"
+(gdb) p (int)strlen(GetOS())
+$3 = 87
+so GetOS() returns 87 chars while:
+
+include/gammu-backup.h: char Creator[80];
+
+Fixes: #701
+--- a/include/gammu-backup.h
++++ b/include/gammu-backup.h
+@@ -218,7 +218,7 @@ typedef struct {
+ /**
+ * Name of program which created backup
+ */
+- char Creator[80];
++ char Creator[512];
+ /**
+ * Timestamp of backup
+ */
+
diff --git a/app-mobilephone/gammu/files/gammu-1.42.0-gammu-detect.patch b/app-mobilephone/gammu/files/gammu-1.42.0-gammu-detect.patch
new file mode 100644
index 000000000000..03e9ea631732
--- /dev/null
+++ b/app-mobilephone/gammu/files/gammu-1.42.0-gammu-detect.patch
@@ -0,0 +1,22 @@
+diff --git a/gammu-detect/udev.c.orig b/gammu-detect/udev.c
+index 4d25949..e0cd383 100644
+--- a/gammu-detect/udev.c.orig
++++ b/gammu-detect/udev.c
+@@ -189,12 +189,12 @@ void udev_detect(void)
+ client = g_udev_client_new(subsys);
+
+ list = g_udev_client_query_by_subsystem(client, subsys[0]);
+- for (iter = list; iter; iter = g_list_next(iter)) {
+- dump_device_and_parent(G_UDEV_DEVICE(iter->data), 0);
+- if (device_is_valid(G_UDEV_DEVICE(iter->data))) {
+- device_dump_config(G_UDEV_DEVICE(iter->data));
++ for (iter = g_list_first(list); iter; iter = g_list_next(iter)) {
++ dump_device_and_parent(iter->data, 0);
++ if (device_is_valid(iter->data)) {
++ device_dump_config(iter->data);
+ }
+- g_object_unref(G_UDEV_DEVICE(iter->data));
++ g_object_unref(iter->data);
+ }
+ }
+
diff --git a/app-mobilephone/gammu/gammu-1.42.0-r1.ebuild b/app-mobilephone/gammu/gammu-1.42.0-r1.ebuild
new file mode 100644
index 000000000000..00ba2ed482b2
--- /dev/null
+++ b/app-mobilephone/gammu/gammu-1.42.0-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="A tool to handle your cellular phone"
+HOMEPAGE="https://wammu.eu/gammu/"
+SRC_URI="https://dl.cihar.com/${PN}/releases/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="bluetooth curl dbi debug irda mysql nls odbc postgres usb"
+
+COMMON_DEPEND="
+ dev-libs/glib:2=
+ dev-libs/libgudev:=
+ virtual/libiconv
+ bluetooth? ( net-wireless/bluez:= )
+ curl? ( net-misc/curl:= )
+ dbi? ( >=dev-db/libdbi-0.8.3:= )
+ mysql? ( dev-db/mysql-connector-c:= )
+ nls? ( sys-devel/gettext )
+ odbc? ( dev-db/unixODBC )
+ postgres? ( dev-db/postgresql:= )
+ usb? ( virtual/libusb:1= )
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ irda? ( virtual/os-headers )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ dev-util/dialog
+"
+PATCHES=(
+ "${FILESDIR}/${P}-CMP0110-policy.patch"
+ "${FILESDIR}/${P}-gammu-detect.patch"
+ "${FILESDIR}/${P}-fortify-source-3.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_BLUETOOTH=$(usex bluetooth)
+ -DWITH_CURL=$(usex curl)
+ -DWITH_Gettext=$(usex nls)
+ -DWITH_Iconv=$(usex nls)
+ -DWITH_IRDA=$(usex irda)
+ -DWITH_LibDBI=$(usex dbi)
+ -DWITH_MySQL=$(usex mysql)
+ -DWITH_ODBC=$(usex odbc)
+ -DWITH_Postgres=$(usex postgres)
+ -DWITH_USB=$(usex usb)
+ -DINSTALL_DOC_DIR="share/doc/${PF}"
+ )
+ cmake_src_configure
+}
+
+src_test() {
+ addwrite "/var/lock/LCK..bar"
+ LD_LIBRARY_PATH="${BUILD_DIR}/libgammu" cmake_src_test -j1
+}
+
+src_install() {
+ cmake_src_install
+ docompress -x /usr/share/doc/${PF}/examples/
+}
diff --git a/app-mobilephone/gammu/metadata.xml b/app-mobilephone/gammu/metadata.xml
new file mode 100644
index 000000000000..58e4d954b478
--- /dev/null
+++ b/app-mobilephone/gammu/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="curl">Enables curl support</flag>
+ <flag name="irda">Enables infrared support</flag>
+ <flag name="nls">Enable native language support</flag>
+ <flag name="mysql">Use mysql for data storage</flag>
+ <flag name="odbc">Use ODBC as DB connector</flag>
+ <flag name="postgres">Use PostgreSQL for data storage</flag>
+ <flag name="usb">Enable USB suport</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">gammu/gammu</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-mobilephone/gnokii/Manifest b/app-mobilephone/gnokii/Manifest
new file mode 100644
index 000000000000..d8f2ef26b3e5
--- /dev/null
+++ b/app-mobilephone/gnokii/Manifest
@@ -0,0 +1 @@
+DIST gnokii-0.6.31.tar.bz2 1237865 BLAKE2B d94c5d44e7075b875037c55448b63c76a27116ad09eeb3c450597d6d65d0cabae65aefc904dcdd868b30fbd17989ce50aecfb2d08dce8ac55e36d1976f0b61da SHA512 529f6d0d29873f48ac00cf7151ba35dcbd93405ab27d69848ed17dea73f4fba71721d1811d921441b4214777b9b33f760b372631627cc108eb94c39684da343d
diff --git a/app-mobilephone/gnokii/files/gnokii-0.6.31-codeset.m4 b/app-mobilephone/gnokii/files/gnokii-0.6.31-codeset.m4
new file mode 100644
index 000000000000..9b17f8f10e72
--- /dev/null
+++ b/app-mobilephone/gnokii/files/gnokii-0.6.31-codeset.m4
@@ -0,0 +1,22 @@
+# codeset.m4 serial 4 (gettext-0.18)
+dnl Copyright (C) 2000-2002, 2006, 2008-2010 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+AC_DEFUN([AM_LANGINFO_CODESET],
+[
+ AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
+ [AC_TRY_LINK([#include <langinfo.h>],
+ [char* cs = nl_langinfo(CODESET); return !cs;],
+ [am_cv_langinfo_codeset=yes],
+ [am_cv_langinfo_codeset=no])
+ ])
+ if test $am_cv_langinfo_codeset = yes; then
+ AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
+ [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
+ fi
+])
+
diff --git a/app-mobilephone/gnokii/files/gnokii-0.6.31-conf-intrinsic.patch b/app-mobilephone/gnokii/files/gnokii-0.6.31-conf-intrinsic.patch
new file mode 100644
index 000000000000..cc75e8cebe49
--- /dev/null
+++ b/app-mobilephone/gnokii/files/gnokii-0.6.31-conf-intrinsic.patch
@@ -0,0 +1,19 @@
+diff '--color=auto' -ruN gnokii-0.6.31.orig/configure.in gnokii-0.6.31/configure.in
+--- gnokii-0.6.31.orig/configure.in 2024-11-16 14:59:39.416370347 +0100
++++ gnokii-0.6.31/configure.in 2024-11-16 15:03:09.368586626 +0100
+@@ -940,6 +940,7 @@
+ AC_CACHE_CHECK(for ISO C99 compliant snprintf,ac_cv_func_snprintf_c99,
+ [AC_TRY_RUN([
+ #include <stdio.h>
++#include <stdlib.h>
+
+ int main()
+ {
+@@ -955,6 +956,7 @@
+ [AC_TRY_RUN([
+ #include <stdio.h>
+ #include <stdarg.h>
++#include <stdlib.h>
+
+ int doit(char *buf, int len, const char *s, ...)
+ {
diff --git a/app-mobilephone/gnokii/files/gnokii-0.6.31-docdir.patch b/app-mobilephone/gnokii/files/gnokii-0.6.31-docdir.patch
new file mode 100644
index 000000000000..74d28cc01398
--- /dev/null
+++ b/app-mobilephone/gnokii/files/gnokii-0.6.31-docdir.patch
@@ -0,0 +1,69 @@
+--- a/Docs/Makefile.am.JeR
++++ b/Docs/Makefile.am
+@@ -1,6 +1,6 @@
+ SUBDIRS = man sample protocol
+
+-docsdir = $(datadir)/doc/gnokii
++docsdir = $(docdir)
+
+ DEVEL_DOCS = CodingStyle \
+ README.libsms
+--- a/Docs/protocol/Makefile.am
++++ b/Docs/protocol/Makefile.am
+@@ -1,4 +1,4 @@
+-protocoldocsdir = $(datadir)/doc/gnokii/protocol
++protocoldocsdir = $(docdir)/protocol
+ protocoldocs_DATA= \
+ dancall.txt \
+ gnokiid-at.txt \
+--- a/Docs/sample/Makefile.am
++++ b/Docs/sample/Makefile.am
+@@ -1,6 +1,6 @@
+ SUBDIRS = ppp logo ringtone vCalendar
+
+-sampledocsdir = $(datadir)/doc/gnokii/sample
++sampledocsdir = $(docdir)/sample
+ sampledocs_DATA = gnokiirc \
+ magic \
+ 45-nokiadku2.rules
+--- a/Docs/sample/vCalendar/Makefile.am
++++ b/Docs/sample/vCalendar/Makefile.am
+@@ -1,4 +1,4 @@
+-vcaldocsdir = $(datadir)/doc/gnokii/sample/vCalendar
++vcaldocsdir = $(docdir)/sample/vCalendar
+ vcaldocs_DATA = test.vcs
+
+ EXTRA_DIST = $(vcaldocs_DATA)
+--- a/Docs/sample/logo/Makefile.am
++++ b/Docs/sample/logo/Makefile.am
+@@ -1,4 +1,4 @@
+-logodocsdir = $(datadir)/doc/gnokii/sample/logo
++logodocsdir = $(docdir)/sample/logo
+ logodocs_DATA = pacman.xpm \
+ gnokii.xpm \
+ gnokiiop.xpm \
+@@ -6,4 +6,4 @@
+ bronto.xpm \
+ horse2.xpm
+
+-EXTRA_DIST = $(logodocs_DATA)
+\ No newline at end of file
++EXTRA_DIST = $(logodocs_DATA)
+--- a/Docs/sample/ringtone/Makefile.am
++++ b/Docs/sample/ringtone/Makefile.am
+@@ -1,4 +1,4 @@
+-ringtonedocsdir = $(datadir)/doc/gnokii/sample/ringtone
++ringtonedocsdir = $(docdir)/sample/ringtone
+ ringtonedocs_DATA = star.imelody star.rtttl
+
+-EXTRA_DIST = $(ringtonedocs_DATA)
+\ No newline at end of file
++EXTRA_DIST = $(ringtonedocs_DATA)
+--- a/Docs/sample/ppp/Makefile.am
++++ b/Docs/sample/ppp/Makefile.am
+@@ -1,4 +1,4 @@
+-pppdocsdir = $(datadir)/doc/gnokii/sample/ppp
++pppdocsdir = $(docdir)/sample/ppp
+ pppdocs_DATA = cimd-connect \
+ ppp-FILES \
+ options \
diff --git a/app-mobilephone/gnokii/files/gnokii-0.6.31-fix_xgnokii_inclusion.patch b/app-mobilephone/gnokii/files/gnokii-0.6.31-fix_xgnokii_inclusion.patch
new file mode 100644
index 000000000000..243f78174a0f
--- /dev/null
+++ b/app-mobilephone/gnokii/files/gnokii-0.6.31-fix_xgnokii_inclusion.patch
@@ -0,0 +1,11 @@
+--- a/configure.in
++++ b/configure.in
+@@ -689,7 +689,7 @@
+ fi
+ fi
+
+-AM_CONDITIONAL(XGNOKII, test "x$_support" = "xyes")
++AM_CONDITIONAL(XGNOKII, test "x$x_support" = "xyes")
+
+ dnl ======================== Check for libsocket
+ AC_CHECK_LIB(socket, socket)
diff --git a/app-mobilephone/gnokii/files/gnokii-0.6.31-gcc5.patch b/app-mobilephone/gnokii/files/gnokii-0.6.31-gcc5.patch
new file mode 100644
index 000000000000..09b65f5b0f81
--- /dev/null
+++ b/app-mobilephone/gnokii/files/gnokii-0.6.31-gcc5.patch
@@ -0,0 +1,27 @@
+Patch by Robert Scheck <robert@fedoraproject.org> for gnokii <= 0.6.31 to avoid
+build failures with GCC 5.x as "gnokii-0.6.31/xgnokii/xgnokii.c:1209: undefined
+reference to `GUI_HideAbout'" and "xgnokii-xgnokii_logos.o:(.data.rel+0xe0):
+undefined reference to `CloseLogosWindow'".
+
+--- gnokii-0.6.31/xgnokii/xgnokii.c 2011-12-02 15:53:04.000000000 +0100
++++ gnokii-0.6.31/xgnokii/xgnokii.c.gcc5 2015-06-20 15:49:59.000000000 +0200
+@@ -798,7 +798,7 @@
+ }
+
+
+-inline void GUI_HideAbout(void)
++void GUI_HideAbout(void)
+ {
+ gtk_widget_hide(AboutDialog);
+ }
+--- gnokii-0.6.31/xgnokii/xgnokii_logos.c 2011-12-02 15:53:04.000000000 +0100
++++ gnokii-0.6.31/xgnokii/xgnokii_logos.c.gcc5 2015-06-20 15:50:15.000000000 +0200
+@@ -1304,7 +1304,7 @@
+ return 0;
+ }
+
+-inline void CloseLogosWindow(void)
++void CloseLogosWindow(void)
+ {
+ gtk_widget_hide(GUI_LogosWindow);
+ }
diff --git a/app-mobilephone/gnokii/files/gnokii-0.6.31-gcc7.patch b/app-mobilephone/gnokii/files/gnokii-0.6.31-gcc7.patch
new file mode 100644
index 000000000000..6637a6af62c4
--- /dev/null
+++ b/app-mobilephone/gnokii/files/gnokii-0.6.31-gcc7.patch
@@ -0,0 +1,17 @@
+Patch by Robert Scheck <robert@fedoraproject.org> for gnokii <= 0.6.31 to avoid
+build failures with GCC 7.x as "../common/.libs/libgnokii.so: undefined reference
+to `local_atoi'". The "inline" is only a hint that the compiler doesn't complain
+about double defined symbols, but does not guarantee that a function is inlined
+or that a symbol is generated when needed.
+
+--- gnokii-0.6.31/common/gsm-filetypes.c 2011-12-02 15:53:04.000000000 +0100
++++ gnokii-0.6.31/common/gsm-filetypes.c.gcc7 2017-02-12 00:55:39.000000000 +0100
+@@ -1409,7 +1409,7 @@
+ #define GET_NEXT_TOKEN() o = get_next_token(line + offset, ';')
+ #define STORE_TOKEN(a) strip_slashes(a, line + offset, sizeof(a) - 1, o - 1)
+
+-inline int local_atoi(char *str, int len)
++static int local_atoi(char *str, int len)
+ {
+ int retval;
+ char *aux = strndup(str, len);
diff --git a/app-mobilephone/gnokii/files/gnokii-0.6.31-sqlite-typo.patch b/app-mobilephone/gnokii/files/gnokii-0.6.31-sqlite-typo.patch
new file mode 100644
index 000000000000..b3dd41d22019
--- /dev/null
+++ b/app-mobilephone/gnokii/files/gnokii-0.6.31-sqlite-typo.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/829800
+https://src.fedoraproject.org/rpms/gnokii/raw/rawhide/f/gnokii-0.6.31-sqlite3.patch
+
+Patch by Robert Scheck <robert@fedoraproject.org> for gnokii <= 0.6.31 which adds
+the missing linking to -lsqlite3 by correcting the configure script. Without this
+patch the libsmsd_sqlite.so fails with "undefined symbol: sqlite3_open" simply.
+
+--- a/configure.in
++++ b/configure.in
+@@ -747,7 +747,7 @@
+ have_sqlite=no
+ PKG_CHECK_MODULES(SQLITE3, sqlite3, have_sqlite=yes, have_sqlite=no)
+ if test x$enable_sqlite != xno && test x$PKGCONF != xno ; then
+- SQLITE_LIBS=SQLITE3_LIBS
++ SQLITE_LIBS=$SQLITE3_LIBS
+ dnl SQLITE_CFLAGS=SQLITE3_CFLAGS
+ AC_SUBST(SQLITE_LIBS)
+ AC_SUBST(SQLITE_CFLAGS)
diff --git a/app-mobilephone/gnokii/gnokii-0.6.31-r5.ebuild b/app-mobilephone/gnokii/gnokii-0.6.31-r5.ebuild
new file mode 100644
index 000000000000..5f2e6fef24f4
--- /dev/null
+++ b/app-mobilephone/gnokii/gnokii-0.6.31-r5.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools desktop linux-info strip-linguas
+
+HOMEPAGE="https://www.gnokii.org/"
+DESCRIPTION="User space driver and tools for use with mobile phones"
+SRC_URI="https://www.gnokii.org/download/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm64 ~hppa ~ppc ppc64 ~sparc x86"
+IUSE="bluetooth debug ical irda mysql nls +pcsc-lite postgres sms usb X"
+
+RDEPEND="
+ !app-mobilephone/smstools
+ dev-libs/glib:2
+ sys-libs/readline:=
+ bluetooth? ( kernel_linux? ( net-wireless/bluez ) )
+ ical? ( dev-libs/libical:= )
+ pcsc-lite? ( sys-apps/pcsc-lite )
+ sms? (
+ postgres? ( dev-db/postgresql:* )
+ mysql? ( dev-db/mysql-connector-c:= )
+ )
+ usb? ( virtual/libusb:0 )
+ X? ( x11-libs/gtk+:2 )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-util/intltool
+ irda? ( virtual/os-headers )
+ nls? ( sys-devel/gettext )
+"
+
+CONFIG_CHECK="~UNIX98_PTYS"
+
+S="${WORKDIR}/${PN}-${PV%.1}"
+
+# Supported languages and translated documentation
+# Be sure all languages are prefixed with a single space!
+MY_AVAILABLE_LINGUAS=" cs de et fi fr it nl pl pt sk sl sv zh_CN"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-docdir.patch
+ "${FILESDIR}"/${P}-fix_xgnokii_inclusion.patch
+ "${FILESDIR}"/${P}-gcc5.patch
+ "${FILESDIR}"/${P}-gcc7.patch
+ "${FILESDIR}"/${PN}-0.6.31-sqlite-typo.patch
+ "${FILESDIR}"/${PN}-0.6.31-conf-intrinsic.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i -e "s:/usr/local:${EPREFIX}/usr:" Docs/sample/gnokiirc || die
+
+ # bug 775485
+ sed -i -e "s:my_bool:bool:" smsd/mysql.c || die
+
+ cp "${FILESDIR}"/${P}-codeset.m4 m4/codeset.m4 || die
+ mv configure.{in,ac} || die
+
+ eautoreconf
+}
+
+src_configure() {
+ strip-linguas ${MY_AVAILABLE_LINGUAS}
+
+ local config_xdebug
+ if use X && use debug; then
+ config_xdebug="--enable-xdebug"
+ else
+ config_xdebug="--disable-xdebug"
+ fi
+
+ local myeconfargs=(
+ --enable-security
+ --disable-unix98test
+ $(use_enable bluetooth)
+ ${config_xdebug}
+ $(use_enable debug fulldebug)
+ $(use_enable debug rlpdebug)
+ $(use_enable ical libical)
+ $(use_enable irda)
+ $(use_enable mysql)
+ $(use_enable nls)
+ $(use_enable pcsc-lite libpcsclite)
+ $(use_enable postgres)
+ $(use_enable sms smsd)
+ $(use_enable usb libusb)
+ $(use_with X x)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ echo common/phones/fake.c >> po/POTFILES.in || die
+ default
+}
+
+src_install() {
+ default
+
+ # package provides .pc files
+ find "${D}" -name '*.la' -delete || die
+
+ insinto /etc
+ doins Docs/sample/gnokiirc
+
+ # only one file needs suid root to make a pseudo device
+ fperms 4755 /usr/sbin/mgnokiidev
+
+ use X && newicon Docs/sample/logo/gnokii.xpm xgnokii.xpm
+
+ if use sms; then
+ cd smsd || die
+
+ docinto smsd
+ use mysql && dodoc sms.tables.mysql.sql README.MySQL
+ use postgres && dodoc sms.tables.pq.sql
+ dodoc README ChangeLog README.Tru64 action
+ fi
+}
+
+pkg_postinst() {
+ elog "Make sure the user that runs gnokii has read/write access to the device"
+ elog "which your phone is connected to."
+ elog "The simple way of doing that is to add your user to the uucp group."
+}
diff --git a/app-mobilephone/gnokii/metadata.xml b/app-mobilephone/gnokii/metadata.xml
new file mode 100644
index 000000000000..8dddbab7845c
--- /dev/null
+++ b/app-mobilephone/gnokii/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>
+ gnokii provides tools and a user space driver for use with mobile phones.
+ With gnokii you can do such things as make data calls, update your address book,
+ change calendar entires, send and receive SMS messages and load ring tones
+ depending on the phone you have.
+ </longdescription>
+ <use>
+ <flag name="ical">Enable support for <pkg>dev-libs/libical</pkg></flag>
+ <flag name="irda">Enable infrared support</flag>
+ <flag name="sms">Enable SMS support (build smsd)</flag>
+ <flag name="pcsc-lite">Enable smartcard support with <pkg>sys-apps/pcsc-lite</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="savannah">gnokii</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-mobilephone/heimdall/Manifest b/app-mobilephone/heimdall/Manifest
new file mode 100644
index 000000000000..7c6f2dc2e979
--- /dev/null
+++ b/app-mobilephone/heimdall/Manifest
@@ -0,0 +1 @@
+DIST heimdall-2.2.2.tar.gz 68059 BLAKE2B 946959db1819581856f570aa9a114849f0dc20e12639847a63a28c3ea5752a57e5f50a57dd53c7c7ac005542eba4e496d766f2e185c66013d62d803c69a2172d SHA512 75c3614b1c7dcbcd5537a308ddd3e2adb97024c7d9572ad2a9187ff50f516209995cf9ab65efa9dd282b925687af70a61298cf0e07b5dca333b589e37b2a14e3
diff --git a/app-mobilephone/heimdall/heimdall-2.2.2.ebuild b/app-mobilephone/heimdall/heimdall-2.2.2.ebuild
new file mode 100644
index 000000000000..a9e94b9d755e
--- /dev/null
+++ b/app-mobilephone/heimdall/heimdall-2.2.2.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake udev
+
+DESCRIPTION="Tool suite used to flash firmware onto Samsung devices"
+HOMEPAGE="
+ https://git.sr.ht/~grimler/Heimdall
+ https://glassechidna.com.au/heimdall/
+ https://github.com/Benjamin-Dobell/Heimdall
+"
+
+if [[ ${PV} != 9999 ]]; then
+ SRC_URI="https://git.sr.ht/~grimler/Heimdall/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/Heimdall-v${PV}"
+
+ KEYWORDS="amd64 ~arm64"
+else
+ inherit git-r3
+ EGIT_REPO_URI="https://git.sr.ht/~grimler/Heimdall"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="gui"
+
+RDEPEND="
+ virtual/zlib:=
+ virtual/libusb:1=
+ gui? (
+ dev-qt/qtbase:6[gui,widgets]
+ )"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ -DDISABLE_FRONTEND=$(usex !gui)
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ udev_dorules heimdall/60-heimdall.rules
+}
+
+pkg_postinst() {
+ udev_reload
+}
+
+pkg_postrm() {
+ udev_reload
+}
diff --git a/app-mobilephone/heimdall/metadata.xml b/app-mobilephone/heimdall/metadata.xml
new file mode 100644
index 000000000000..1ceb474f6567
--- /dev/null
+++ b/app-mobilephone/heimdall/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourcehut">~grimler/Heimdall</remote-id>
+ <remote-id type="github">Benjamin-Dobell/Heimdall</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-mobilephone/metadata.xml b/app-mobilephone/metadata.xml
new file mode 100644
index 000000000000..d2e23b05f9d6
--- /dev/null
+++ b/app-mobilephone/metadata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The app-mobilephone category contains software for working with mobile phones.
+ </longdescription>
+ <longdescription lang="ja">
+ app-mobilephoneカテゴリにはケタイと使うソフトウェアが含まれます。
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm app-mobilephone chứa các phần mềm hoạt động với
+ điện thoại di động.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie app-mobilephone enthält Software für das Arbeiten mit Mobiltelefonen.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria app-mobilephone contiene software per la telefonia mobile.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria app-mobilephone contém programas para trabalhar com
+ telefones celulares.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria app-mobilephone zawiera oprogramowanie do współpracy z
+ telefonami komórkowymi.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría app-mobilephone contiene software para trabajar con
+ teléfonos móviles.
+ </longdescription>
+</catmetadata>
diff --git a/app-mobilephone/mobile-config-firefox/Manifest b/app-mobilephone/mobile-config-firefox/Manifest
new file mode 100644
index 000000000000..fa07c02bc4ad
--- /dev/null
+++ b/app-mobilephone/mobile-config-firefox/Manifest
@@ -0,0 +1 @@
+DIST mobile-config-firefox-2.1.0.tar.bz2 18954 BLAKE2B c5eab1f94aa242c557ac60b4f6f094da004284280a15817929f0ef44b98a9a3351baec2886ee55c3fd9ea5237441fa0387363f5496f8223e782ae35030856aa8 SHA512 2a1ee9e3dac3e8066dc7052440e2ab69734e8bfdd25ab06c6250c2f15a6bb63d0dbe8cd3c0bcc546efaee12308b13c62dfd4c7dad7f1d6ab75139d5ced87f472
diff --git a/app-mobilephone/mobile-config-firefox/files/0001-src-prefs.js-disable-sandbox-for-non-ESR.patch b/app-mobilephone/mobile-config-firefox/files/0001-src-prefs.js-disable-sandbox-for-non-ESR.patch
new file mode 100644
index 000000000000..f26db650a70c
--- /dev/null
+++ b/app-mobilephone/mobile-config-firefox/files/0001-src-prefs.js-disable-sandbox-for-non-ESR.patch
@@ -0,0 +1,27 @@
+From 953b5e3b6c5b2e2c4518a7af800554b319c69ff1 Mon Sep 17 00:00:00 2001
+From: Danct12 <danct12@disroot.org>
+Date: Fri, 12 Feb 2021 13:01:58 +0700
+Subject: [PATCH] src/prefs.js: disable sandbox for non-ESR
+
+https://support.mozilla.org/bm/questions/1236295#answer-1161622
+
+Signed-off-by: Danct12 <danct12@disroot.org>
+---
+ src/mobile-config-prefs.js | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/mobile-config-prefs.js b/src/mobile-config-prefs.js
+index c4a9a77..a32111c 100644
+--- a/src/mobile-config-prefs.js
++++ b/src/mobile-config-prefs.js
+@@ -4,6 +4,7 @@
+ // Set up autoconfig (we use it to copy/update userChrome.css into profile dir)
+ pref('general.config.filename', "mobile-config-autoconfig.js");
+ pref('general.config.obscure_value', 0);
++pref('general.config.sandbox_enabled', false);
+
+ // Select a mobile user agent for firefox (same as tor browser on android)
+ pref('general.useragent.override', 'Mozilla/5.0 (Android 9; Mobile; rv:78.0) Gecko/20100101 Firefox/78.0');
+--
+2.30.0
+
diff --git a/app-mobilephone/mobile-config-firefox/files/disable-proton-ui.patch b/app-mobilephone/mobile-config-firefox/files/disable-proton-ui.patch
new file mode 100644
index 000000000000..1b18ea357076
--- /dev/null
+++ b/app-mobilephone/mobile-config-firefox/files/disable-proton-ui.patch
@@ -0,0 +1,12 @@
+diff --git a/src/mobile-config-prefs.js b/src/mobile-config-prefs.js
+index 6090643..787e48e 100644
+--- a/src/mobile-config-prefs.js
++++ b/src/mobile-config-prefs.js
+@@ -33,3 +33,7 @@ pref('toolkit.cosmeticAnimations.enabled', false);
+
+ // Disable download animations, save CPU
+ pref('browser.download.animateNotifications', false);
++
++// Disable the new Proton design
++pref('browser.proton.enabled', false);
++
diff --git a/app-mobilephone/mobile-config-firefox/metadata.xml b/app-mobilephone/mobile-config-firefox/metadata.xml
new file mode 100644
index 000000000000..7636b6a7a95b
--- /dev/null
+++ b/app-mobilephone/mobile-config-firefox/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="gitlab">postmarketOS/mobile-config-firefox</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-mobilephone/mobile-config-firefox/mobile-config-firefox-2.1.0.ebuild b/app-mobilephone/mobile-config-firefox/mobile-config-firefox-2.1.0.ebuild
new file mode 100644
index 000000000000..c5ea4f7ba0af
--- /dev/null
+++ b/app-mobilephone/mobile-config-firefox/mobile-config-firefox-2.1.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Mobile and privacy friendly configuration for Firefox"
+HOMEPAGE="https://gitlab.com/postmarketOS/mobile-config-firefox"
+SRC_URI="https://gitlab.com/postmarketOS/mobile-config-firefox/-/archive/${PV}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+PATCHES=(
+ "${FILESDIR}"/0001-src-prefs.js-disable-sandbox-for-non-ESR.patch
+ "${FILESDIR}"/disable-proton-ui.patch
+)
+
+src_install() {
+ default
+ mv "${D}"/usr/lib "${D}"/usr/lib64 || die
+}
+
+pkg_postinst() {
+ elog "You will need to copy /etc/mobile-config-firefox/userChrome.css file to"
+ elog "your firefox profile's chrome folder ~/.mozilla/firefox/XXXX/chrome/ "
+ elog "to enable firefox mobile layout, you might need to create the chrome "
+ elog "folder if it's not there"
+}
diff --git a/app-mobilephone/pinephone-modem-scripts/files/90-modem-eg25.rules b/app-mobilephone/pinephone-modem-scripts/files/90-modem-eg25.rules
new file mode 100644
index 000000000000..cd0031422cba
--- /dev/null
+++ b/app-mobilephone/pinephone-modem-scripts/files/90-modem-eg25.rules
@@ -0,0 +1,5 @@
+SUBSYSTEMS=="usb", ENV{.LOCAL_ifNum}="$attr{bInterfaceNumber}"
+
+SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{.LOCAL_ifNum}=="01", SYMLINK+="EG25.NMEA", MODE="0660"
+SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{.LOCAL_ifNum}=="02", SYMLINK+="EG25.AT", MODE="0660"
+SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{.LOCAL_ifNum}=="03", SYMLINK+="EG25.MODEM", MODE="0660"
diff --git a/app-mobilephone/pinephone-modem-scripts/files/pinephone-modem-scripts.pinephone-modem-setup.service b/app-mobilephone/pinephone-modem-scripts/files/pinephone-modem-scripts.pinephone-modem-setup.service
new file mode 100644
index 000000000000..e79986065096
--- /dev/null
+++ b/app-mobilephone/pinephone-modem-scripts/files/pinephone-modem-scripts.pinephone-modem-setup.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Setup modem
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/pinephone-modem-setup.sh
+
+[Install]
+WantedBy=graphical.target
diff --git a/app-mobilephone/pinephone-modem-scripts/files/pinephone-modem-setup.sh b/app-mobilephone/pinephone-modem-scripts/files/pinephone-modem-setup.sh
new file mode 100644
index 000000000000..ea06ab3b0015
--- /dev/null
+++ b/app-mobilephone/pinephone-modem-scripts/files/pinephone-modem-setup.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+log() {
+ echo "$@" | logger -t "manjaro:modem-setup"
+}
+
+QMBNCFG_CONFIG="1"
+
+# Read current config
+QMBNCFG_ACTUAL_CONFIG=$(echo 'AT+QMBNCFG="AutoSel"' | atinout - $DEV -)
+
+if echo $QMBNCFG_ACTUAL_CONFIG | grep -q $QMBNCFG_CONFIG
+then
+ log "Modem already configured"
+ exit 0
+fi
+
+
+# Configure VoLTE auto selecting profile
+RET=$(echo "AT+QMBNCFG=\"AutoSel\",$QMBNCFG_CONFIG" | atinout - $DEV -)
+if ! echo $RET | grep -q OK
+then
+ log "Failed to enable VoLTE profile auto selecting: $RET"
+ exit 1
+fi
diff --git a/app-mobilephone/pinephone-modem-scripts/metadata.xml b/app-mobilephone/pinephone-modem-scripts/metadata.xml
new file mode 100644
index 000000000000..3b196a0080bf
--- /dev/null
+++ b/app-mobilephone/pinephone-modem-scripts/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gjdijkman@gjdwebserver.nl</email>
+ <name>Gerben Jan Dijkman</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-mobilephone/pinephone-modem-scripts/pinephone-modem-scripts-0.20.8.ebuild b/app-mobilephone/pinephone-modem-scripts/pinephone-modem-scripts-0.20.8.ebuild
new file mode 100644
index 000000000000..22122782706f
--- /dev/null
+++ b/app-mobilephone/pinephone-modem-scripts/pinephone-modem-scripts-0.20.8.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit udev systemd
+
+COMMIT="cefcd46502acca9bd396c885df445a712c8c4eff"
+
+DESCRIPTION="Modem scripts for the PinePhone"
+HOMEPAGE="https://gitlab.manjaro.org/manjaro-arm/packages/community/phosh/pinephone-modem-scripts"
+EGIT_REPO_URI="https://gitlab.manjaro.org/manjaro-arm/packages/community/phosh/pinephone-modem-scripts/-/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+EGIT_BRANCH=eg25-manager
+
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~arm64"
+
+RDEPEND="
+ net-dialup/atinout
+ sci-geosciences/gpsd
+"
+
+src_install() {
+ udev_dorules "${S}"/90-modem-eg25.rules
+ systemd_dounit "${S}"/pinephone-modem-scripts.pinephone-modem-setup.service
+ dobin "${S}"/pinephone-modem-setup.sh
+}
diff --git a/app-mobilephone/scmxx/Manifest b/app-mobilephone/scmxx/Manifest
new file mode 100644
index 000000000000..4a0393f75259
--- /dev/null
+++ b/app-mobilephone/scmxx/Manifest
@@ -0,0 +1 @@
+DIST scmxx-0.9.0.tar.bz2 250681 BLAKE2B b9426df1a4c3a78eae17048490a7627b6cd49e91839fa254fc1a06174337ce532228a217c911b7743bf6d87ad986c3148056b63f4f1cc6f82be948315dfdf22c SHA512 755877badfc846fa33ea29a38c9f8408f62d5343e0927438640ac923e8fccfcc1a0ffeae82f707d5ac1632022a15eaa2d9816602420212f171e29505c109f20f
diff --git a/app-mobilephone/scmxx/metadata.xml b/app-mobilephone/scmxx/metadata.xml
new file mode 100644
index 000000000000..2de61945b3f0
--- /dev/null
+++ b/app-mobilephone/scmxx/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">scmxx</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-mobilephone/scmxx/scmxx-0.9.0-r1.ebuild b/app-mobilephone/scmxx/scmxx-0.9.0-r1.ebuild
new file mode 100644
index 000000000000..f713abcbf405
--- /dev/null
+++ b/app-mobilephone/scmxx/scmxx-0.9.0-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Exchange data with Siemens phones"
+HOMEPAGE="http://www.hendrik-sattler.de/scmxx/"
+SRC_URI="https://downloads.sourceforge.net/scmxx/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE="bluetooth nls"
+
+RDEPEND="bluetooth? ( net-wireless/bluez )"
+DEPEND="${RDEPEND}"
+BDEPEND="nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ default
+
+ # Clang 16
+ eautoreconf
+}
+
+src_install() {
+ default
+
+ exeinto /usr/lib/scmxx
+ doexe contrib/*
+
+ doman docs/*.1
+
+ rm docs/README_WIN32.txt || die
+ dodoc AUTHORS BUGS CHANGELOG README TODO docs/*.txt
+}
diff --git a/app-mobilephone/scrcpy/Manifest b/app-mobilephone/scrcpy/Manifest
new file mode 100644
index 000000000000..cd1ca3da8751
--- /dev/null
+++ b/app-mobilephone/scrcpy/Manifest
@@ -0,0 +1,4 @@
+DIST scrcpy-3.3.4.tar.gz 465799 BLAKE2B e50a6e6ceb55ba748243d266223c7cffb4d7ebc1e0a6bdc189db00a8ab76e84cfc3649bddf487ccf3188baf38882f9df956d734cc35df791900e00b27b9d2e7b SHA512 f3dae4571758e63277517f65d8703ee8a593b2b0a6599a4384f5dcc8070708c19df1931e233111ecc4e7322111f15ca167543491a8ac912cf242f72d43624617
+DIST scrcpy-4.0.tar.gz 489017 BLAKE2B a2ec4ff60d7357104405bc1c129727528074a2a8c48b4901900f204f93f297ae6587d182e368ee971651f0b23374431dc0e3b1bd4e149be75938f42b630982a2 SHA512 ca905bc7f0991925b21980a5619752fcb7834846cbb9a665da70505ca94021992a11b5653073ed637a6839503c2dc977acf557c9ff8192571aa71480e6ec9b71
+DIST scrcpy-server-v3.3.4 90980 BLAKE2B 3a0f1ef92e222a3f691d4e110e5477af9b512f1e51668356250b047d3ea14d7c1ee21f6c8075226ea3ec74f439923b67214108f01244abd87b8d858740383d0f SHA512 697e54771720a751304202520660524920ad9c95dcb1f3ce15f680f74aa0067dab3677c500255100eba7bb3184db6799e41025c25d51eb9b4e66203f68bffb0d
+DIST scrcpy-server-v4.0 732226 BLAKE2B 3896c93fe893985485500937e05127016987954ead6e0d5fe057dd9cb5a20f20eeb81af29f074a07aaeaaae6235eafd8e568eef5a6a91c94ab92bf3e12723d88 SHA512 7ebaf385aaafc0251ab506b4850a9b508c1a3da3b7b49f59c1bd54a72f1e7080a01f1270cc7fa8a6060f4b15621e5567ebb228128ad35ec44a7286622bbddb46
diff --git a/app-mobilephone/scrcpy/metadata.xml b/app-mobilephone/scrcpy/metadata.xml
new file mode 100644
index 000000000000..a266d62bc35c
--- /dev/null
+++ b/app-mobilephone/scrcpy/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/Genymobile/scrcpy/issues</bugs-to>
+ <changelog>https://github.com/Genymobile/scrcpy/releases</changelog>
+ <doc>https://github.com/Genymobile/scrcpy/tree/master/doc</doc>
+ <remote-id type="github">Genymobile/scrcpy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-mobilephone/scrcpy/scrcpy-3.3.4.ebuild b/app-mobilephone/scrcpy/scrcpy-3.3.4.ebuild
new file mode 100644
index 000000000000..f1c3c1975503
--- /dev/null
+++ b/app-mobilephone/scrcpy/scrcpy-3.3.4.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson xdg
+
+DESCRIPTION="Display and control your Android device"
+HOMEPAGE="https://github.com/Genymobile/scrcpy"
+# Source code and server part on Android device
+SRC_URI="
+ https://github.com/Genymobile/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/Genymobile/${PN}/releases/download/v${PV}/${PN}-server-v${PV}
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="X wayland"
+
+DEPEND="
+ media-libs/libsdl2[X?,wayland?]
+ media-video/ffmpeg:=
+ virtual/libusb:1
+"
+# Manual install for ppc64 until bug #723528 is fixed
+RDEPEND="
+ ${DEPEND}
+ !ppc64? ( dev-util/android-tools )
+"
+
+DOCS=( {FAQ,README}.md doc/. )
+
+src_prepare() {
+ default
+ rm doc/{build,develop,macos,windows}.md || die
+}
+
+src_configure() {
+ local emesonargs=(
+ -Dprebuilt_server="${DISTDIR}/${PN}-server-v${PV}"
+ )
+ meson_src_configure
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if has_version media-video/pipewire; then
+ ewarn "On pipewire systems scrcpy might not start due to a problem with libsdl2."
+ ewarn "If that is the case for you start the program as follows:"
+ ewarn " $ SDL_AUDIODRIVER=pipewire scrcpy [...]"
+ ewarn "For more information see https://github.com/Genymobile/scrcpy/issues/3864"
+ fi
+}
diff --git a/app-mobilephone/scrcpy/scrcpy-4.0.ebuild b/app-mobilephone/scrcpy/scrcpy-4.0.ebuild
new file mode 100644
index 000000000000..b7275b350fdc
--- /dev/null
+++ b/app-mobilephone/scrcpy/scrcpy-4.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson xdg
+
+DESCRIPTION="Display and control your Android device"
+HOMEPAGE="https://github.com/Genymobile/scrcpy"
+# Source code and server part on Android device
+SRC_URI="
+ https://github.com/Genymobile/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/Genymobile/${PN}/releases/download/v${PV}/${PN}-server-v${PV}
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="X wayland"
+
+DEPEND="
+ media-libs/libsdl3[X?,wayland?]
+ media-video/ffmpeg:=
+ virtual/libusb:1
+"
+# Manual install for ppc64 until bug #723528 is fixed
+RDEPEND="
+ ${DEPEND}
+ !ppc64? ( dev-util/android-tools )
+"
+
+DOCS=( {FAQ,README}.md doc/. )
+
+src_prepare() {
+ default
+ rm doc/{build,develop,macos,windows}.md || die
+}
+
+src_configure() {
+ local emesonargs=(
+ -Dprebuilt_server="${DISTDIR}/${PN}-server-v${PV}"
+ )
+ meson_src_configure
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if has_version media-video/pipewire; then
+ ewarn "On pipewire systems scrcpy might not start due to a problem with libsdl2."
+ ewarn "If that is the case for you start the program as follows:"
+ ewarn " $ SDL_AUDIODRIVER=pipewire scrcpy [...]"
+ ewarn "For more information see https://github.com/Genymobile/scrcpy/issues/3864"
+ fi
+}
diff --git a/app-mobilephone/smstools/Manifest b/app-mobilephone/smstools/Manifest
new file mode 100644
index 000000000000..0d55aa677e83
--- /dev/null
+++ b/app-mobilephone/smstools/Manifest
@@ -0,0 +1,2 @@
+DIST smstools-3.1.21-patches.tgz 6961 BLAKE2B ee70220d96645f1cdea403ebcc3a199e16aeea2c11d222d4013d6ae08be43daa089f1c6b770ad79edfe783f534913c0fad547181aeeb51796f41420a1e43d505 SHA512 9d6697f64a1af00664bec734e638dff810c984de959675ba856fe4f74290bb971425c909c2e245a62bb8d1991811c79dd5b10864a0f4cc14c5773bf5e01d07a7
+DIST smstools3-3.1.21.tar.gz 356548 BLAKE2B 8bbb65761128a86200a6d47e90456fef076be10cd4081b4e3cdc9456c0176996ee6ee9afbe3d9f2a989d93db706bf5461ddf7f739bc8d70337a842b96eb27a5c SHA512 0587e5020a0318351ca99b68baa1c19411824279055857a5b5aa4e346cae373fe94a811eaca6767bcf991cf849eaaa66ec120f046420531a6088cdde9373db31
diff --git a/app-mobilephone/smstools/files/smsd.initd4 b/app-mobilephone/smstools/files/smsd.initd4
new file mode 100644
index 000000000000..ff40d472896e
--- /dev/null
+++ b/app-mobilephone/smstools/files/smsd.initd4
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need localmount
+}
+
+start() {
+ checkpath -q -d -m 0770 -o smsd:sms /run/smsd || return 1
+ checkpath -q -f -o smsd:sms /var/log/smsd.log || return 1
+ ebegin "Starting smsd"
+ start-stop-daemon -b -u smsd:sms --start --exec /usr/bin/smsd -- \
+ -c /etc/smsd.conf -p /run/smsd/smsd.pid \
+ -i /run/smsd/smsd.working
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping smsd"
+ start-stop-daemon --stop -n smsd
+ eend ${?}
+}
diff --git a/app-mobilephone/smstools/files/smsd.service b/app-mobilephone/smstools/files/smsd.service
new file mode 100644
index 000000000000..1fb436681b4b
--- /dev/null
+++ b/app-mobilephone/smstools/files/smsd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=SMS Server Tools 3
+
+[Service]
+User=smsd
+PIDFile=/run/smsd/smsd.pid
+ExecStart=/usr/bin/smsd -n MAINPROCESS -l/var/log/smsd.log \
+ -p/run/smsd/smsd.pid -i/run/smsd/smsd.working
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-mobilephone/smstools/files/smsd.tmpfiles b/app-mobilephone/smstools/files/smsd.tmpfiles
new file mode 100644
index 000000000000..8978d18f54ad
--- /dev/null
+++ b/app-mobilephone/smstools/files/smsd.tmpfiles
@@ -0,0 +1 @@
+d /run/smsd 0755 smsd sms -
diff --git a/app-mobilephone/smstools/metadata.xml b/app-mobilephone/smstools/metadata.xml
new file mode 100644
index 000000000000..59a79e7ac787
--- /dev/null
+++ b/app-mobilephone/smstools/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="stats">Enable statistic reporting</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-mobilephone/smstools/smstools-3.1.21-r2.ebuild b/app-mobilephone/smstools/smstools-3.1.21-r2.ebuild
new file mode 100644
index 000000000000..2316c15de039
--- /dev/null
+++ b/app-mobilephone/smstools/smstools-3.1.21-r2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd tmpfiles toolchain-funcs
+
+DESCRIPTION="Send and receive short messages through GSM modems"
+HOMEPAGE="http://smstools3.kekekasvi.com/"
+SRC_URI="
+ http://smstools3.kekekasvi.com/packages/smstools3-${PV}.tar.gz
+ https://dev.gentoo.org/~soap/distfiles/${P}-patches.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~x86"
+IUSE="stats"
+
+DEPEND="
+ acct-group/sms
+ acct-user/smsd"
+RDEPEND="${DEPEND}
+ sys-process/procps
+ stats? ( dev-libs/mm )"
+
+PATCHES=(
+ "${WORKDIR}"/${P}-gawk-location.patch
+ "${WORKDIR}"/${P}-fno-common.patch
+)
+
+S="${WORKDIR}"/${PN}3
+
+src_prepare() {
+ default
+ if use stats; then
+ sed -i -e "s:CFLAGS += -D NOSTATS:#CFLAGS += -D NOSTATS:" \
+ "${S}/src/Makefile" || die
+ fi
+ echo "CFLAGS += ${CFLAGS}" >> src/Makefile || die
+}
+
+src_compile() {
+ emake -C src \
+ CC="$(tc-getCC)" \
+ LFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin src/smsd
+ cd scripts || die
+ dobin sendsms sms2html sms2unicode unicode2sms
+ dobin hex2bin hex2dec email2sms
+ dodoc mysmsd smsevent smsresend sms2xml sql_demo \
+ smstest.php checkhandler-utf-8 eventhandler-utf-8 \
+ forwardsms regular_run
+ cd .. || die
+
+ keepdir /var/spool/sms/{checked,incoming,outgoing}
+ fowners -R smsd:sms /var/spool/sms
+ fperms g+s /var/spool/sms/incoming
+
+ newinitd "${FILESDIR}"/smsd.initd4 smsd
+ insopts -o smsd -g sms -m0644
+ insinto /etc
+ newins examples/smsd.conf.easy smsd.conf
+ dodoc -r doc
+
+ systemd_dounit "${FILESDIR}"/smsd.service
+ newtmpfiles "${FILESDIR}"/smsd.tmpfiles smsd.conf
+}
+
+pkg_postinst() {
+ tmpfiles_process smsd.conf
+
+ touch "${EROOT}"/var/log/smsd.log || die
+ chown --no-dereference -f smsd:sms "${EROOT}"/var/log/smsd.log || die
+}
diff --git a/app-mobilephone/sobexsrv/Manifest b/app-mobilephone/sobexsrv/Manifest
new file mode 100644
index 000000000000..202c960a2be2
--- /dev/null
+++ b/app-mobilephone/sobexsrv/Manifest
@@ -0,0 +1,2 @@
+DIST sobexsrv-1.0.1-fix64.patch 25040 BLAKE2B 9796779fdde39c79371a978d4bdb9d6761f9467ecc353096c3d1b13fe1d5aa4f7ceef137d07c52467a175b7bc756e6c747a2800a2dbb2dcd281be463499106c9 SHA512 9d555bee8d03c13061bbe132df6442daa4d8817ef713e92e5150b1994af110c5b01b34f8bcc1c3ae734529e36bb70f56976ab261f860e95e3de3ffe440a7b393
+DIST sobexsrv-1.0.1.tar.gz 27683 BLAKE2B f1aa103aa8a70ea7408ced7b0a3944d0ba61dc9750425160ee95bb69e1f1cf4479fbecef7be3ba4b6cbec2a7f518bed18318ca694545a4606888e7663adb0d38 SHA512 52fe5eff812596caa1f4b8579740ce8b2591db17950d68c093cfdb33ca5b899bfc5c142594843948a29ae0b1bdbe4499a1e24c270c92e61d02fd07a02d9d40cd
diff --git a/app-mobilephone/sobexsrv/files/conf.d_sobexsrv b/app-mobilephone/sobexsrv/files/conf.d_sobexsrv
new file mode 100644
index 000000000000..1afdc0c772e3
--- /dev/null
+++ b/app-mobilephone/sobexsrv/files/conf.d_sobexsrv
@@ -0,0 +1,35 @@
+# /etc/conf.d/sobexsrv
+# Config file for sobexsrv daemon
+
+# owner of sobexsrv process (don't change, must be existing)
+USER="sobexsrv"
+GROUP="sobexsrv"
+
+# Incomming of pushed files
+INBOX="/var/spool/sobexsrv"
+
+# chroot to INBOX.
+# *NEEDS* the binary to be suid root (not installed by default).
+#CHROOT="yes"
+
+# Listen on the specified RFCOMM channel. If this option is not specified the
+# first available channel will be used. Legal range for channel is 1-31 and 0
+# to force auto selection of first available channel.
+CHANNEL="10"
+
+# Set Bluetooth security mode-2 level. Legal values are: 1 (insecure) every-
+# body can connect, 2 authentication required and 3 authentication and encryp-
+# tion required.
+SECURITY_LEVEL="2"
+
+# Don't register OPUSH service at local ServiceDiscoveryProtocol Server.
+#DISABLE_OPUSH="yes"
+# Don't register OBEX-FTP service at local ServiceDiscoveryProtocol Server.
+DISABLE_OBEXFTP="yes"
+DISABLE_OBEXFTP_LISTING="yes"
+
+# Enable transfer log via syslog(8).
+USE_SYSLOG="yes"
+
+# Additional options. See sobexsrv(8)
+#SOBEXSRV_OPT="-l NPTD -m /etc/sobexsrv-mime"
diff --git a/app-mobilephone/sobexsrv/files/init.d_sobexsrv b/app-mobilephone/sobexsrv/files/init.d_sobexsrv
new file mode 100644
index 000000000000..fa27e19ef116
--- /dev/null
+++ b/app-mobilephone/sobexsrv/files/init.d_sobexsrv
@@ -0,0 +1,58 @@
+#!/sbin/openrc-run
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need bluetooth
+ use logger
+}
+
+check_config() {
+ if [ -z "${USER}" ] ; then
+ eerror "Please set \$USER in /etc/conf.d/sobexsrv!"
+ return 1
+ fi
+ if [ -z "${GROUP}" ] ; then
+ eerror "Please set \$GROUP in /etc/conf.d/sobexsrv!"
+ return 1
+ fi
+
+ if [ "${CHROOT}" = "yes" ] ; then
+ if [ ! -u /usr/bin/sobexsrv ] ; then
+ eerror "The \$CHROOT option requires /usr/bin/sobexsrv to be suid root!"
+ return 1
+ fi
+ fi
+
+ if [ -z "${INBOX}" ] || [ ! -e "${INBOX}" ] ; then
+ eerror "Please configure \$INBOX correctly in /etc/conf.d/sobexsrv!"
+ return 1
+ fi
+}
+
+
+start() {
+ check_config || return 1
+
+ ebegin "Starting sobexsrv"
+
+ OPTIONS=""
+ [ -n "${CHANNEL}" ] && OPTIONS="${OPTIONS} -c ${CHANNEL}"
+ [ -n "${SECURITY_LEVEL}" ] && OPTIONS="${OPTIONS} -s ${SECURITY_LEVEL}"
+ [ "${CHROOT}" = "yes" ] && OPTIONS="${OPTIONS} -R"
+ [ "${DISABLE_OPUSH}" = "yes" ] && OPTIONS="${OPTIONS} -o"
+ [ "${DISABLE_OBEXFTP}" = "yes" ] && OPTIONS="${OPTIONS} -f"
+ [ "${DISABLE_OBEXFTP_LISTING}" = "yes" ] && OPTIONS="${OPTIONS} -F"
+ [ "${USE_SYSLOG}" = "yes" ] && OPTIONS="${OPTIONS} -S"
+
+ OPTIONS="-I -r ${INBOX} ${OPTIONS} ${SOBEXSRV_OPT}"
+
+ start-stop-daemon --user ${USER}:${GROUP} --start --quiet --exec /usr/bin/sobexsrv -- $OPTIONS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping sobexsrv"
+ start-stop-daemon --stop --quiet --exec /usr/bin/sobexsrv
+ eend $?
+}
diff --git a/app-mobilephone/sobexsrv/files/sobexsrv-1.0.1-openobex16.patch b/app-mobilephone/sobexsrv/files/sobexsrv-1.0.1-openobex16.patch
new file mode 100644
index 000000000000..57fff87e4d2b
--- /dev/null
+++ b/app-mobilephone/sobexsrv/files/sobexsrv-1.0.1-openobex16.patch
@@ -0,0 +1,49 @@
+--- sobexsrv-1.0.1/src/obexsrv.c.orig 2016-06-13 01:59:28.000000000 +0300
++++ sobexsrv-1.0.1/src/obexsrv.c 2016-06-13 12:20:15.501101147 +0300
+@@ -32,6 +32,10 @@
+ #include <langinfo.h>
+ #include <assert.h>
+
++#if ((OPENOBEX_VERSION_MAJOR==1) && (OPENOBEX_VERSION_MINOR>=6))
++#include <string.h>
++#endif
++
+ #include "obexsrv.h"
+ #include "util.h"
+ #include "sdp.h"
+@@ -46,7 +50,8 @@
+
+ void UnicodeToChar(uint8_t *c, const uint8_t *uc, int size)
+ {
+- iconv_t dsc = iconv_open(nl_langinfo(CODESET),"UTF16BE");
++ char *lang = nl_langinfo(CODESET);
++ iconv_t dsc = iconv_open(lang,"UTF16BE");
+ size_t isiz,osiz;
+ char *ip = (char*)uc;
+ char *op = (char*)c;
+@@ -54,7 +59,25 @@
+
+ if (iconv(dsc,&ip,&isiz,&op,&osiz) == -1) {
+ debug_printf("iconv: error %s\n", strerror(errno));
++#if ((OPENOBEX_VERSION_MAJOR==1) && (OPENOBEX_VERSION_MINOR>=6))
++ // try to convert ignoring errors
++ iconv_close(dsc);
++ debug_printf("iconv: characters that cannot be converted will be discarded\n");
++
++ // append "//IGNORE"
++ const char *const suf = "//IGNORE";
++ size_t len = strlen(lang);
++ char *cd = malloc(len + 9);
++ memcpy(cd, lang, len);
++ memcpy(cd+len, suf, 8);
++ cd[len+8] = '\0';
++
++ dsc = iconv_open(cd,"UTF16BE");
++ iconv(dsc,&ip,&isiz,&op,&osiz);
++ free(cd);
++#else
+ OBEX_UnicodeToChar(c,uc,size);
++#endif
+ }
+ iconv_close(dsc);
+ }
diff --git a/app-mobilephone/sobexsrv/metadata.xml b/app-mobilephone/sobexsrv/metadata.xml
new file mode 100644
index 000000000000..d6a55e86d4c0
--- /dev/null
+++ b/app-mobilephone/sobexsrv/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>
+ sobexsrv is a Bluetooth OBEX server with Bluetooth Security
+ Mode-2 (application triggered security) support. It implements
+ OPUSH (put), OPULL (get) and OBEX-FTP (setpath + directory
+ listing) and therefore is a full OBEX server. Further it
+ supports pulling generic mime-types and provides a capability
+ object. sobexsrv was designed with flexibility and security in
+ mind and supports chroot (if suid root drop to calling uid
+ immediately). For flexibility a scripting interface provides
+ access to all functionalities of the server and therefore
+ allows implementation of further OBEX services on top of
+ sobexsrv.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r3.ebuild b/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r3.ebuild
new file mode 100644
index 000000000000..44078281901f
--- /dev/null
+++ b/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r3.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+MY_P="${P/_pre/pre}"
+
+DESCRIPTION="Scripting/Secure OBEX Server (for BlueZ Linux)"
+SRC_URI="http://www.mulliner.org/bluetooth/${MY_P}.tar.gz
+ https://dev.gentoo.org/~joker/${P}-fix64.patch"
+HOMEPAGE="http://www.mulliner.org/bluetooth/sobexsrv.php"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc x86"
+
+DEPEND="
+ >=dev-libs/openobex-1.7.2-r1
+ net-wireless/bluez
+"
+RDEPEND="${DEPEND}
+ acct-user/sobexsrv
+ acct-group/sobexsrv
+"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${DISTDIR}/${P}"-fix64.patch
+ "${FILESDIR}/${P}"-openobex16.patch
+)
+
+src_prepare() {
+ default
+
+ sed -e 's:/usr/man/man8:/usr/share/man/man8:' \
+ -e 's/install: all/install:/' \
+ -i Makefile || die
+
+ sed -e 's/^CFLAGS =/CFLAGS +=/' \
+ -e 's/^CC =/CC ?=/' \
+ -e 's/$(CC) $(CFLAGS)/$(CC) $(LDFLAGS) $(CFLAGS)/' \
+ -i src/Makefile || die
+}
+
+src_compile() {
+ tc-export CC
+ emake -C src
+}
+
+src_install() {
+ default
+ dodoc AUTHOR CONFIG SECURITY THANKS
+ rm "${D}/usr/bin/sobexsrv_handler" || die
+
+ newinitd "${FILESDIR}/init.d_sobexsrv" sobexsrv
+ newconfd "${FILESDIR}/conf.d_sobexsrv" sobexsrv
+}
+
+pkg_postinst() {
+ elog
+ elog "/usr/bin/sobexsrv is *NOT* installed set-uid root by"
+ elog "default. suid is required for the chroot option (-R)."
+ elog
+ elog "Execute the following commands to enable suid:"
+ elog
+ elog "chown root:sobexsrv /usr/bin/sobexsrv"
+ elog "chmod 4710 /usr/bin/sobexsrv"
+ elog
+}
diff --git a/app-mobilephone/vmoconv/Manifest b/app-mobilephone/vmoconv/Manifest
new file mode 100644
index 000000000000..0ac247bbd211
--- /dev/null
+++ b/app-mobilephone/vmoconv/Manifest
@@ -0,0 +1 @@
+DIST vmoconv-1.0.tar.gz 315028 BLAKE2B c31d2f4f5c45511b52a80b829b9c632519eccaf6aeb3bb74deef8ff9cdf0aea244e52c82751f8d23865e5250004d33dfc2c0b101fd03ce7cf0c08f94c3a79ce2 SHA512 c4bd65f2c034317e43736198eaea6a3cfbbc6be015dc1ac5efa51633c2779bf5af87ea037084173b377a7521538e4a235f264b5f09fedcdaf7f4a815289a7ec2
diff --git a/app-mobilephone/vmoconv/files/vmoconv-1.0-external-libgsm.patch b/app-mobilephone/vmoconv/files/vmoconv-1.0-external-libgsm.patch
new file mode 100644
index 000000000000..8ab3670aa098
--- /dev/null
+++ b/app-mobilephone/vmoconv/files/vmoconv-1.0-external-libgsm.patch
@@ -0,0 +1,36 @@
+diff -Nru vmoconv-1.0.orig/src/Makefile.am vmoconv-1.0/src/Makefile.am
+--- vmoconv-1.0.orig/src/Makefile.am 2003-02-17 21:39:18.000000000 +0000
++++ vmoconv-1.0/src/Makefile.am 2009-03-03 21:24:12.000000000 +0000
+@@ -1,32 +1,6 @@
+
+-noinst_LTLIBRARIES = libgsm.la
+-
+ INCLUDES = -I.
+
+-libgsm_la_SOURCES = add.c \
+- code.c \
+- debug.c \
+- decode.c \
+- long_term.c \
+- lpc.c \
+- preprocess.c \
+- rpe.c \
+- gsm_destroy.c \
+- gsm_decode.c \
+- gsm_encode.c \
+- gsm_explode.c \
+- gsm_implode.c \
+- gsm_create.c \
+- gsm_print.c \
+- gsm_option.c \
+- short_term.c \
+- table.c \
+- proto.h \
+- unproto.h \
+- config.h \
+- private.h \
+- gsm.h
+-
+ vmo2wav_LDADD = -lgsm
+
+ vmo2wav_SOURCES = vmo2wav.c
diff --git a/app-mobilephone/vmoconv/files/vmoconv-1.0-flags.patch b/app-mobilephone/vmoconv/files/vmoconv-1.0-flags.patch
new file mode 100644
index 000000000000..c0d145257858
--- /dev/null
+++ b/app-mobilephone/vmoconv/files/vmoconv-1.0-flags.patch
@@ -0,0 +1,25 @@
+--- a/configure.in
++++ b/configure.in
+@@ -2,7 +2,7 @@
+ # try CFLAGS="$CFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes -Werror"
+ AC_INIT(vmoconv, 1.0, zany@triq.net)
+ AM_INIT_AUTOMAKE(vmoconv, 1.0)
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+
+ dnl AM_MAINTAINER_MODE
+
+@@ -26,10 +26,10 @@
+ [printf(__func__)],,
+ [AC_DEFINE(__func__, "", [non-C99 fake support for __func__])])
+
+-dnl Turn on debugging and all warnings when using gcc
++dnl Turn on all warnings when using gcc
+ if test "$ac_cv_prog_gcc" = "yes"; then
+- CFLAGS="$CFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
+- LDFLAGS="$LDFLAGS -g -Wall"
++ CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wmissing-prototypes"
++ LDFLAGS="$LDFLAGS -Wall"
+ fi
+
+ AC_SUBST(CFLAGS)
diff --git a/app-mobilephone/vmoconv/files/vmoconv-1.0-glibc28.patch b/app-mobilephone/vmoconv/files/vmoconv-1.0-glibc28.patch
new file mode 100644
index 000000000000..02c000412fbf
--- /dev/null
+++ b/app-mobilephone/vmoconv/files/vmoconv-1.0-glibc28.patch
@@ -0,0 +1,22 @@
+--- a/src/gsm2vmo.c
++++ b/src/gsm2vmo.c
+@@ -27,7 +27,7 @@
+ * 12 bit header and 260 bits standard GSM frame, as described
+ * in GSM 06.10 and GSM 06.12. The header is 0x2010 always.
+ */
+-
++#include <limits.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+--- a/src/vmo2gsm.c
++++ b/src/vmo2gsm.c
+@@ -27,7 +27,7 @@
+ * 12 bit header and 260 bits standart GSM frame, as described
+ * in GSM 06.10 and GSM 06.12. The header is 0x2010 always.
+ */
+-
++#include <limits.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
diff --git a/app-mobilephone/vmoconv/metadata.xml b/app-mobilephone/vmoconv/metadata.xml
new file mode 100644
index 000000000000..115e9d64a669
--- /dev/null
+++ b/app-mobilephone/vmoconv/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-mobilephone/vmoconv/vmoconv-1.0-r1.ebuild b/app-mobilephone/vmoconv/vmoconv-1.0-r1.ebuild
new file mode 100644
index 000000000000..0e19246d04ba
--- /dev/null
+++ b/app-mobilephone/vmoconv/vmoconv-1.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="A tool that converts Siemens phones VMO and VMI audio files to gsm and wav"
+HOMEPAGE="http://triq.net/obex/"
+SRC_URI="http://triq.net/obexftp/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+
+DEPEND="media-sound/gsm"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-glibc28.patch
+ "${FILESDIR}"/${P}-flags.patch
+ "${FILESDIR}"/${P}-external-libgsm.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_install() {
+ dobin src/vmo2gsm src/gsm2vmo src/vmo2wav
+ einstalldocs
+}