summaryrefslogtreecommitdiff
path: root/net-misc/openr2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-28 01:37:43 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-28 01:37:43 +0000
commite67d5b4ba05349b3bf4229d0cf7d069809c4420e (patch)
tree0fe2174d8edf159924d772ad279f37faba8d5b6a /net-misc/openr2
parent249ae8c1a241b514fc83737660927ee175091346 (diff)
gentoo auto-resync : 28:12:2023 - 01:37:43
Diffstat (limited to 'net-misc/openr2')
-rw-r--r--net-misc/openr2/Manifest4
-rw-r--r--net-misc/openr2/files/openr2-1.3.0-fix-build-system.patch30
-rw-r--r--net-misc/openr2/metadata.xml8
-rw-r--r--net-misc/openr2/openr2-1.3.0.ebuild35
4 files changed, 77 insertions, 0 deletions
diff --git a/net-misc/openr2/Manifest b/net-misc/openr2/Manifest
new file mode 100644
index 000000000000..7d7491fb6524
--- /dev/null
+++ b/net-misc/openr2/Manifest
@@ -0,0 +1,4 @@
+AUX openr2-1.3.0-fix-build-system.patch 855 BLAKE2B 0712ab876e8941f63756531597a861e433e2e3a8f457fcf62c83e3d5f32d1f0f809c2fb34ce362533d7a4e1d434132c0df81ddb656e3223f7dab1381001215b4 SHA512 6f71b83d1ec8a07a32a019784954148adde44b2fdfc982ec9d02deeae66fc307448f6577d715276de4cdde42f771d647d625d3111a6189cf60ae8f6c5c6c2d2e
+DIST openr2-1.3.0.tar.gz 650048 BLAKE2B bff444c839d5f62fc889c1720cb9c17c38c5bd4b0dc3b3884c8fd00226aa6354281cf37c7a748fca4e16e633a94ac055c8f7b5e4bf69d97732846fdbc618ca47 SHA512 2cee4534eeebb91a2cf0f74c9fcd2a16db3966db01a4bae7e3406416546fdc1c5e20bb9172375f55e5dcc30cfcc2c8f7182ef7476253b4fcce9421f74b8d125e
+EBUILD openr2-1.3.0.ebuild 643 BLAKE2B 4d0a464275893bc1dbfef82c36637c6f08c15520a1aececf0948163201cf808d2fe32a17e0c26c7bb6f7e8a3aa747aad82a4c30672bb1440527f1d8f3013c2b8 SHA512 accff8b8e325bb58c3c2da3f16ef0249fd970382b4839a530f1f6913ace63116b8f796327f8b6a85a33227baf10cae37548338a24e708c75a0d6b7464dc59b36
+MISC metadata.xml 244 BLAKE2B a71e3730eb16c6db4cca37ad5a584be5b6ec19e1e73049bdfe6f03c718a20dab895e7d7f07d3b9fc3841ab12f73a5f28dd71895a1d66c36ee76e7bacb11b5fff SHA512 e31f07e523e88b04dbc7654ac6da27395cc1d4456f56f192d08b96271ce5ef2578b300b3b79e212431536b9f0b757bce515567a924014f428e3e822356ec1eab
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
+}