summaryrefslogtreecommitdiff
path: root/net-misc/astmanproxy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/astmanproxy
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/astmanproxy')
-rw-r--r--net-misc/astmanproxy/Manifest7
-rw-r--r--net-misc/astmanproxy/astmanproxy-1.28.2.ebuild48
-rw-r--r--net-misc/astmanproxy/files/astmanproxy-1.28.2-gentoo.diff39
-rw-r--r--net-misc/astmanproxy/files/astmanproxy.rc619
-rw-r--r--net-misc/astmanproxy/metadata.xml10
5 files changed, 123 insertions, 0 deletions
diff --git a/net-misc/astmanproxy/Manifest b/net-misc/astmanproxy/Manifest
new file mode 100644
index 000000000000..1f050cab4cc3
--- /dev/null
+++ b/net-misc/astmanproxy/Manifest
@@ -0,0 +1,7 @@
+AUX astmanproxy-1.28.2-gentoo.diff 1130 SHA256 35e97c56fd26e8709100a810cc41677b1979f084ee82bb9ae017cc7308123ef0 SHA512 296d885478cc66868a7e77d5edaefe1779b5939e3ad26933c21a6e4f44744de00ff0d6d8302948b63f7b924b6cf90c9e790fc5d7d74fdc9df4a6ed3ab5a1b44a WHIRLPOOL 90e4725084f7e2c9dcf5ac7e67ec9476ac1af486803952398fe48fb2fd098a541992507c5a99e99a94459467238eee91e0ef89e949277c626dc77c4b64a552d1
+AUX astmanproxy.rc6 366 SHA256 0b700919a105beedcacd3e5c63fe5278f9a8a27c859badcd30e670709b885216 SHA512 ad9f5a180ce5f2a63efd1a9f050d963ff2504c306e177562821ab80a62daad50d2a0077a4078094991d5fa85129708cf6970ad60adacf06989980fc46012559e WHIRLPOOL b6554df6487849882a854851d30d4d44d2fce6f6f8bcbb4a74955c2d33ad3f923bc7abfc91ef7c55aade0d954b40d76625b28f95308346e2fe266bee1cf4802e
+DIST astmanproxy-1.28.2.tar.gz 65506 SHA256 09c2b5750d69c9ca8d9611cb648a5cedb0fa7102540642b06654e3ac5c31ed4b SHA512 a37caaca42649b19d40b9b0cfe61c6a0e31d7d0de50378565a6add1b27ba09dd6044c7ac2d9b38c424f143fc12acbfa0931c59492399ee34db063ed73cce9293 WHIRLPOOL 08b9d9b186ce424f309efddefa05cc91856cfbfea2b60d65030a15a0868bc1f72717431ba1f884eb0dea411d18fd950c6e17af5c356eae5db030879a0d34cc67
+EBUILD astmanproxy-1.28.2.ebuild 970 SHA256 769e9143fc61e53cc049d866b3131bd6eb388330c3652f9d53a2809a1a1ca29c SHA512 807de3dc7fe08e4f3f4d44e123bedbfa4046c5b17f9740dfba5662dd1ab9dcaaad7b5fb63a43b291aae8e1e0dfd2b3b74e1ac5ee96f9dca536981c4762d3bfcb WHIRLPOOL f472f0c762cdeeb73b750e072e4fde87aa996c96a8c989497f8cd4d0483a4098c16defec49adb499c2956ace3862c2e2f9a5e77fc9c75f1ca28819b1ab6a509e
+MISC ChangeLog 2549 SHA256 ed698b56236980e2cf5bb9ca3d8c41a3a416a260d908f4e3e8c889d90c577436 SHA512 4c45c313f39dcdbbb5eead275f149f2187619a6fb6538f67514e7f0b3feb7c2a92a9f89e2c66f3f7ac1ad9931d5bc0a6b79d97b8f007b64505b3c26fb66c1e5f WHIRLPOOL beef10664164b2bad5f6caa4657adc73533fe33dcff831e81a41892a6c02f3a4a7a820f139b9478ef8d1340ba13e563c27384c7b4992d9bd0e49afae5e5ebc0b
+MISC ChangeLog-2015 1966 SHA256 0843aa24f5088ac0fe33346d152db4b2c7305880093d86b815302bfd8e05c764 SHA512 02197fd2323d27333297b9003efb0c1fac6b4c82a4ba9ddce48aaafeb25ccd1af71776b0c987694529353053c020708de6773a8e8e3b9d20a1424024c6794b03 WHIRLPOOL f02497dbb85a7ac2962ac2627aa3f6b9f4be164a840d980029f3b3ab9094aaa0a085a46ffeed0197f2f4ebaa8587b147f26d40ab33982650ea618bd5253ecb29
+MISC metadata.xml 305 SHA256 e6109e36c9f8a13d9d9166de9e32f64b8a41da1064b189a840cd1e0f63c7d1b7 SHA512 857608df82b978c77856f5d779f1a2e7756ba7b9d7d37a57c2c5b2618e5d99d6b648cf485b51ec3782d056c83a206e32c9b6e25ecb011b7a948ee056c50b2a76 WHIRLPOOL 12e06c3294505bd827716d0a9721365208b6eeb9bfcf57be8d4a2e798090b142fc7b6e8505231366c8bd8c521ad2994a991f439af345d734b9fe63074f31f2b6
diff --git a/net-misc/astmanproxy/astmanproxy-1.28.2.ebuild b/net-misc/astmanproxy/astmanproxy-1.28.2.ebuild
new file mode 100644
index 000000000000..73e1c6b42e1f
--- /dev/null
+++ b/net-misc/astmanproxy/astmanproxy-1.28.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit base multilib 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"
+
+IUSE=""
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DEPEND=""
+PATCHES=( "${FILESDIR}/${P}-gentoo.diff" )
+
+src_prepare() {
+ base_src_prepare
+
+ # Fix multilib
+ sed -i -e "s#/usr/lib/#/usr/$(get_libdir)/#" "${S}/Makefile" \
+ || die "multilib sed failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ LDFLAGS="${LDFLAGS}" \
+ LD="$(tc-getLD)" \
+ RAWLDFLAGS="$(raw-ldflags)"
+}
+
+src_install() {
+ dosbin astmanproxy
+
+ dodoc README VERSIONS
+
+ docinto samples
+ dodoc samples/*
+
+ insinto /etc/asterisk
+ doins configs/astmanproxy.conf
+ doins configs/astmanproxy.users
+
+ newinitd "${FILESDIR}"/astmanproxy.rc6 astmanproxy
+}
diff --git a/net-misc/astmanproxy/files/astmanproxy-1.28.2-gentoo.diff b/net-misc/astmanproxy/files/astmanproxy-1.28.2-gentoo.diff
new file mode 100644
index 000000000000..68534cd61086
--- /dev/null
+++ b/net-misc/astmanproxy/files/astmanproxy-1.28.2-gentoo.diff
@@ -0,0 +1,39 @@
+diff -uNr astmanproxy-1.28.2.ORIG/Makefile astmanproxy-1.28.2/Makefile
+--- astmanproxy-1.28.2.ORIG/Makefile 2014-02-10 11:18:06.027132570 +0000
++++ astmanproxy-1.28.2/Makefile 2014-02-10 11:21:07.382135291 +0000
+@@ -17,7 +17,7 @@
+
+ CC := gcc
+ INCLUDES :=
+-PREFIX:= /usr/local
++PREFIX:= /usr
+ BINDIR := $(DESTDIR)$(PREFIX)/sbin
+
+ # For compilation dependencies
+@@ -27,7 +27,7 @@
+ LIBS := -lssl
+
+ # Add -g below for debug/GDB symbols
+-CFLAGS:=-Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl
++CFLAGS += -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl
+
+ ifeq (${OSARCH},Darwin)
+ LIBS+=-lresolv
+@@ -62,7 +62,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)
+
+@@ -76,7 +76,7 @@
+ SRCS := $(MODS:%=src/%.c)
+ HDRS := src/include/astmanproxy.h
+
+-all: astmanproxy cert
++all: astmanproxy
+
+ astmanproxy: $(OBJS) $(SOBJS)
+ $(CC) $(CFLAGS) -o $@ $(ASTLINK) $(OBJS) $(LIBS)
diff --git a/net-misc/astmanproxy/files/astmanproxy.rc6 b/net-misc/astmanproxy/files/astmanproxy.rc6
new file mode 100644
index 000000000000..7e6737de00dc
--- /dev/null
+++ b/net-misc/astmanproxy/files/astmanproxy.rc6
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting astmanproxy"
+ start-stop-daemon --start --exec /usr/sbin/astmanproxy
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping astmanproxy"
+ start-stop-daemon --stop --exec /usr/sbin/astmanproxy
+ eend $?
+}
diff --git a/net-misc/astmanproxy/metadata.xml b/net-misc/astmanproxy/metadata.xml
new file mode 100644
index 000000000000..32b67186d84f
--- /dev/null
+++ b/net-misc/astmanproxy/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">davies147/astmanproxy</remote-id>
+ </upstream>
+</pkgmetadata>