commit:     ebe86585e288a9cecfb9c08255da44035831fbfb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 27 21:15:19 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec 27 21:15:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebe86585

Revert "net-misc/openr2: treeclean"

This reverts commit b23bb0ae40afd13783064727b382671692b3714a.

Removal date was not yet met & there are plans to possibly resurrect dahdi,
per the bug.

Bug: https://bugs.gentoo.org/914477
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/openr2/Manifest                           |  1 +
 .../files/openr2-1.3.0-fix-build-system.patch      | 30 +++++++++++++++++++
 net-misc/openr2/metadata.xml                       |  8 +++++
 net-misc/openr2/openr2-1.3.0.ebuild                | 35 ++++++++++++++++++++++
 profiles/package.mask                              | 10 +++++++
 5 files changed, 84 insertions(+)

diff --git a/net-misc/openr2/Manifest b/net-misc/openr2/Manifest
new file mode 100644
index 000000000000..0836806e9a62
--- /dev/null
+++ b/net-misc/openr2/Manifest
@@ -0,0 +1 @@
+DIST openr2-1.3.0.tar.gz 650048 BLAKE2B 
bff444c839d5f62fc889c1720cb9c17c38c5bd4b0dc3b3884c8fd00226aa6354281cf37c7a748fca4e16e633a94ac055c8f7b5e4bf69d97732846fdbc618ca47
 SHA512 
2cee4534eeebb91a2cf0f74c9fcd2a16db3966db01a4bae7e3406416546fdc1c5e20bb9172375f55e5dcc30cfcc2c8f7182ef7476253b4fcce9421f74b8d125e

diff --git a/net-misc/openr2/files/openr2-1.3.0-fix-build-system.patch 
b/net-misc/openr2/files/openr2-1.3.0-fix-build-system.patch
new file mode 100644
index 000000000000..59918934d563
--- /dev/null
+++ b/net-misc/openr2/files/openr2-1.3.0-fix-build-system.patch
@@ -0,0 +1,30 @@
+--- a/configure.in
++++ b/configure.in
+@@ -25,11 +25,6 @@
+ AC_CONFIG_HEADERS(config.h)
+ AM_INIT_AUTOMAKE
+ 
+-# let's default to compile with debugging information
+-# most users will not even care about it
+-CFLAGS='-ggdb3 -O0'
+-CXXFLAGS='-ggdb3 -O0'
+-
+ AC_PROG_CC
+ AC_PROG_LIBTOOL
+ AC_LANG([C])
+diff -ur ORIG/src/Makefile.am MOD/src/Makefile.am
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,10 +1,10 @@
+-AM_CFLAGS = -std=c99 -pedantic -Wall -Werror -Wwrite-strings 
-Wunused-variable -Wstrict-prototypes -Wmissing-prototypes 
++AM_CFLAGS = -std=c99 -pedantic -Werror -Wwrite-strings -Wunused-variable 
-Wstrict-prototypes -Wmissing-prototypes
+ if WANT_OR2_TRACE_STACKS
+ AM_CFLAGS += -DOR2_TRACE_STACKS
+ endif
+ 
+ if HAVE_SVNVERSION
+-AM_CFLAGS += -DREVISION=\"$(shell svnversion -n .)\"
++AM_CFLAGS += -DREVISION=\"0\"
+ endif
+ 
+ lib_LTLIBRARIES = libopenr2.la

diff --git a/net-misc/openr2/metadata.xml b/net-misc/openr2/metadata.xml
new file mode 100644
index 000000000000..b61afa2b03b1
--- /dev/null
+++ b/net-misc/openr2/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="google-code">openr2</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/net-misc/openr2/openr2-1.3.0.ebuild 
b/net-misc/openr2/openr2-1.3.0.ebuild
new file mode 100644
index 000000000000..2f15c2e0e766
--- /dev/null
+++ b/net-misc/openr2/openr2-1.3.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="An open implementation of the MFC/R2 telephony signaling protocol"
+HOMEPAGE="https://libopenr2.org/";
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="net-misc/dahdi"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-fix-build-system.patch )
+
+src_prepare() {
+       default
+       mv configure.{in,ac} || die
+       eautoreconf
+}
+
+src_configure() {
+       econf --disable-static
+}
+
+src_install() {
+       default
+       find "${D}" -name '*.la' -delete || die
+}

diff --git a/profiles/package.mask b/profiles/package.mask
index 6aa13a19ff24..23f7e160f250 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -477,6 +477,16 @@ media-video/subtitleripper
 # Breaks building scipy: https://github.com/cython/cython/issues/5748
 =dev-python/cython-3.0.3
 
+# Jaco Kroon <j...@uls.co.za> (2023-09-19)
+# Joonas Niilola <juip...@gentoo.org> (2023-09-21)
+# DAHDI is not suited for a rolling-release distribution. Upstream releases new
+# versions sporadically and it may take multiple years between them. Old
+# versions are constantly broken with newer kernels, requiring heavy patching
+# downstream. Has no active maintainer in Gentoo. If you use DAHDI and have
+# some ideas how to help, please see bug #914477.
+# Removal on 2024-03-01.
+net-misc/openr2
+
 # Sam James <s...@gentoo.org> (2023-09-09)
 # OpenSSL 1.1.x is EOL on 2023-09-11. Please upgrade immediately to >= OpenSSL 
3.
 # https://www.openssl.org/blog/blog/2023/03/28/1.1.1-EOL/

Reply via email to