commit:     aa3e0fb07ee70362b1950d5f97ddb0f90d5184c0
Author:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  2 16:38:10 2025 +0000
Commit:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
CommitDate: Tue Dec  2 16:39:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa3e0fb0

net-misc/astmanproxy: add 1.30.0

Closes: https://bugs.gentoo.org/show_bug.cgi?id=944169
Signed-off-by: Jaco Kroon <jkroon <AT> gentoo.org>

 net-misc/astmanproxy/Manifest                      |  1 +
 net-misc/astmanproxy/astmanproxy-1.30.0.ebuild     | 43 ++++++++++++++++++
 .../files/astmanproxy-1.30.0-gentoo.patch          | 53 ++++++++++++++++++++++
 3 files changed, 97 insertions(+)

diff --git a/net-misc/astmanproxy/Manifest b/net-misc/astmanproxy/Manifest
index dbe4a60cf743..ef69c125c56f 100644
--- a/net-misc/astmanproxy/Manifest
+++ b/net-misc/astmanproxy/Manifest
@@ -1 +1,2 @@
 DIST astmanproxy-1.28.2.tar.gz 65506 BLAKE2B 
b3aa3ca00f376d1030d96b4498880e55741a3e33bbd72b74e2ac52f9186c93bfb8f1c9d540ca51b122600e6ec519144184ef19e6e04f34a977a617b1c4c73052
 SHA512 
a37caaca42649b19d40b9b0cfe61c6a0e31d7d0de50378565a6add1b27ba09dd6044c7ac2d9b38c424f143fc12acbfa0931c59492399ee34db063ed73cce9293
+DIST astmanproxy-1.30.0.tar.gz 87402 BLAKE2B 
b41a8cccde098b51a81b40c3bb04faf185d2b8a1b89fad618c68bc7a1864dffec5c912ce462c9d676e2c43b815a0b648d0a01ba5b42bf968cbc7d2541150d196
 SHA512 
3dcabb8d871163bdaeaf80a4268da1f28718fd2d21b175757faa1ca6ebcd5906e3ef26b2ee1d59a663b52892a85ba0e003b32149464bed8ea1459e1186d7f948

diff --git a/net-misc/astmanproxy/astmanproxy-1.30.0.ebuild 
b/net-misc/astmanproxy/astmanproxy-1.30.0.ebuild
new file mode 100644
index 000000000000..793875908de1
--- /dev/null
+++ b/net-misc/astmanproxy/astmanproxy-1.30.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Proxy for the Asterisk manager interface"
+HOMEPAGE="https://github.com/davies147/astmanproxy/";
+SRC_URI="https://github.com/davies147/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.30.0-gentoo.patch
+       "${FILESDIR}"/${PN}-1.28.2-fno-common.patch
+)
+
+src_prepare() {
+       default
+
+       # Fix multilib
+       sed -i -e "s#/usr/lib/#/usr/$(get_libdir)/#" Makefile \
+               || die "multilib sed failed"
+}
+
+src_configure() {
+       tc-export CC
+}
+
+src_install() {
+       dosbin astmanproxy
+
+       dodoc -r samples
+       dodoc README VERSIONS
+
+       insinto /etc/asterisk
+       doins configs/astmanproxy.{conf,users}
+
+       newinitd "${FILESDIR}"/astmanproxy.rc6 astmanproxy
+}

diff --git a/net-misc/astmanproxy/files/astmanproxy-1.30.0-gentoo.patch 
b/net-misc/astmanproxy/files/astmanproxy-1.30.0-gentoo.patch
new file mode 100644
index 000000000000..de065216a938
--- /dev/null
+++ b/net-misc/astmanproxy/files/astmanproxy-1.30.0-gentoo.patch
@@ -0,0 +1,53 @@
+--- astmanproxy-1.30.0/Makefile.o      2025-12-02 17:39:00.416571795 +0200
++++ astmanproxy-1.30.0/Makefile        2025-12-02 17:40:52.127684407 +0200
+@@ -15,9 +15,8 @@
+ CONFFILE := astmanproxy.conf
+ PERMFILE := astmanproxy.users
+ 
+-CC := gcc
+ INCLUDES :=
+-PREFIX:= /usr/local
++PREFIX:= /usr
+ BINDIR := $(DESTDIR)$(PREFIX)/sbin
+ 
+ # For compilation dependencies
+@@ -27,7 +26,8 @@
+ LIBS := -lssl
+ 
+ # Add -g below for debug/GDB symbols
+-CFLAGS:=-Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC
++CFLAGS += -Wall -fPIC
++CPPFLAGS += -D_REENTRANT -D_GNU_SOURCE -Isrc/include -I/usr/include/openssl
+ 
+ ifeq (${OSARCH},Darwin)  
+   LIBS+=-lresolv
+@@ -65,7 +65,7 @@
+ DEFINES+='-DMDIR="$(MODDIR)"' '-DPDIR="$(PERMDIR)"' '-DPFILE="$(PERMFILE)"'
+ 
+ PROXYCERT := $(CERTDIR)/proxy-server.pem
+-PROXYSSLCONF := $(CONFDIR)/proxy-ssl.conf
++PROXYSSLCONF := $(DESTDIR)$(CONFDIR)/proxy-ssl.conf
+ 
+ CFLAGS += $(DEFINES)
+ 
+@@ -79,16 +79,16 @@
+ SRCS := $(MODS:%=%.c)
+ HDRS := astmanproxy.h
+ 
+-all: astmanproxy cert
++all: astmanproxy
+ 
+ astmanproxy: $(OBJS) $(SOBJS)
+-      $(CC) $(CFLAGS) -o $@ $(ASTLINK) $(OBJS) $(LIBS)
++      $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASTLINK) $(OBJS) $(LIBS)
+ 
+ $(OBJS): %.o: %.c
+-      $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
++      $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c -o $@ $<
+ 
+ $(SOBJS): %.so: %.o
+-      $(CC) $(SOLINK) $< -o $@
++      $(CC) $(LDFLAGS) $(SOLINK) $< -o $@
+ 
+ SERIAL=`date "+%Y%m%d%H%M%S"`
+ 

Reply via email to