mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-08 00:10:15 +03:00
Merge updates from master
This commit is contained in:
@@ -23,7 +23,7 @@ SRC_URI="
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64"
|
||||
IUSE="+native-extensions"
|
||||
IUSE="native-extensions"
|
||||
|
||||
# stubgen collides with this package: https://bugs.gentoo.org/585594
|
||||
RDEPEND="
|
||||
|
||||
@@ -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
|
||||
|
||||
43
net-misc/astmanproxy/astmanproxy-1.30.0.ebuild
Normal file
43
net-misc/astmanproxy/astmanproxy-1.30.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
53
net-misc/astmanproxy/files/astmanproxy-1.30.0-gentoo.patch
Normal file
53
net-misc/astmanproxy/files/astmanproxy-1.30.0-gentoo.patch
Normal file
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user