summaryrefslogtreecommitdiff
path: root/net-misc/siproxd
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/siproxd
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/siproxd')
-rw-r--r--net-misc/siproxd/Manifest11
-rw-r--r--net-misc/siproxd/files/siproxd-0.8.1-amd64_static_build.patch26
-rw-r--r--net-misc/siproxd/files/siproxd-libtool-2.4.patch13
-rw-r--r--net-misc/siproxd/files/siproxd.rc630
-rw-r--r--net-misc/siproxd/files/siproxd.rc821
-rw-r--r--net-misc/siproxd/metadata.xml8
-rw-r--r--net-misc/siproxd/siproxd-0.8.0-r3.ebuild108
-rw-r--r--net-misc/siproxd/siproxd-0.8.1-r2.ebuild109
8 files changed, 326 insertions, 0 deletions
diff --git a/net-misc/siproxd/Manifest b/net-misc/siproxd/Manifest
new file mode 100644
index 000000000000..8e258ed494a9
--- /dev/null
+++ b/net-misc/siproxd/Manifest
@@ -0,0 +1,11 @@
+AUX siproxd-0.8.1-amd64_static_build.patch 1280 SHA256 37cb3e54c6bb42ad1ad68b46f53e8b66f1d0d58af70af0017edab4693762457e SHA512 d29f9d48127fa10e17a50c364ca2a50886a88e3b449ff2ef68ac08596d8f1cb84a5b088d888a76c79391c571ed506934fd2add6136ba10ee6718ce686ae99bd7 WHIRLPOOL 304f80a82b0b98f462d2bc20b0240f074c4e0bed76d43b699faae327c3172c7b3c02af5f764b7325464fbf728f6a9008af279f751f7a9e2dc096e37feb0c2df5
+AUX siproxd-libtool-2.4.patch 412 SHA256 3455d3a324758d2f719f515a5a1c7950fb605502c5af2d1cbd3cb49dace854bc SHA512 7ea24a99d65ecc8586473d49b7d485f27634c54290b23821313b1698bb495cf96db0b997d8cb48673a6291a538d5d31d1ee3089187c3d4f500727bc857de5f0c WHIRLPOOL 9bc6ea1b01c4726a6673535026ecba1fe2b21e2bcad459d689825445a1485e0f52d89034e8485b89560f89b28c7b3965db56bfa7237878640c45723b1159ceb9
+AUX siproxd.rc6 585 SHA256 df2979cb2ffd547f7c9397c1ff04d9580cf9da11294ba45a692bdf78ad1a6236 SHA512 2b15ad14121ad20dd72fed9a8a1d41b5bb4185c8ac2bb546acb589be3ee1cd9229a7cda687769a720f06c0d329874bb34543250deec14ad2ef1240ce0d9c7cee WHIRLPOOL 3bc59a482ffddc8aa938aabab5c31e75054f016c0ca1a5e58a17980ec81a912dbd1b601f40d701f2ab46edd03eed54b0444e0d3b3bba1eb4dad301165cd504b1
+AUX siproxd.rc8 464 SHA256 32d4c1978f8fb042c543d19ded8aa6d42c7a29c1dce41c4952d7d1f490d727cf SHA512 0c7deb87eb9bc0ad6b31b021c4a65fd30d9a79effa993b79954381bfde6a232ba97c82eae01ad0464916e9ee1ba00f6a731460091706aa02a9876a3335359248 WHIRLPOOL d6a21afc4ecde657261c4de47a6b12ebb86c48c3bd815eb2a3048ddae69967f6433bb385d11aa39e7352988c6cb04191e7b9117ed9b526a119e356c2cbbc35b4
+DIST siproxd-0.8.0.tar.gz 824404 SHA256 1a0306dbf5dd65f2c6d779bd449cbabba8c1a4cc79ca034e9cc83836c60f8542 SHA512 eb14a6f7a893e3347d316feedca89c1700e2977b9671da7d77c475993137b049e5caad5254e19dc00f5cb4f0f0c767188cdfb02bb16238dd7b56473886063440 WHIRLPOOL a9e618d14b5a5cd9ed954baf121f905c8024ecd069b95db730d4bff0c19590fbc8928b8d4fe51f37959d9ce506136662aaea50590038e01de96d844f41280554
+DIST siproxd-0.8.1.tar.gz 833170 SHA256 df2df04faf5bdb4980cbdfd5516a47898fc47ca1ebc2c628aa48305b20a09dad SHA512 b47c7b74b4d3adeb4fd9536f82c014a123a6fcbe508a4982c9e77e53a8c68b05bc32799f57cf749e860b3e1f19f6502dbea561a410975f9f095754748515964f WHIRLPOOL e70e79113af3fa0e0a00154c474ca89b7587202ef806c31df5fa9d79d2a813ba6fa3fa006fe8971bac5fed54b85540ae44116a8eb0c262a6bb29e5dcc3a4c612
+EBUILD siproxd-0.8.0-r3.ebuild 3331 SHA256 3a019d1a804e290f458dd55ff2cd9c31bc43604a3139b8334cf1a2200dfc0541 SHA512 8ee67a2fc081fb8caad2eacc88123e8a7f6518988e1a45baee94a48c7e1133ea32628881d9c3c332c7281fd2ac19f5a6157abd6d40546544e0dc3808ccdb55b7 WHIRLPOOL 1c013cbffc2283b48d520dcb8bd9dd375bef6178d5f5e6ed71ef9ac78c40c2562c52ddf24b5bb1ebe0dae49718e7e92deda1c2e664631e5e40390934ff2997b9
+EBUILD siproxd-0.8.1-r2.ebuild 3412 SHA256 403746e6281ef110af95d45db7bc89fb6658045fc7557d8d76f8b8b2f71feb8c SHA512 95b1325ad7d9bda11af3caed40ab59a67c5d1c9af6e3eac4f91431f8b4c37f6ce591164d1addaa616b179113d5b9608bed2ce555e59d864af2572f77b7a8437c WHIRLPOOL 8ce7316be3be077d7ac3427ac87aab894c138477ef7c88eb73d9d0f6a7e5e1e26225c618f2877712cb445f0513f957fd5443e199ff74b64ab37210f877b587c3
+MISC ChangeLog 3409 SHA256 0df1ab1fd64aecc9f4e9d27e0c4839f126631eda56e4664984380578f71891c4 SHA512 d9887e7b9e50bf2844b910a753d96fb3de82f59d49772ff8cb9b373f0554475de2d6ee031ad7717d671d61b6dc40c40eff67f7f26febc8d642723aebf31f6f08 WHIRLPOOL 1441cc7f08410c20b88343b5a053055c07bf92eaa0e58bdbb184546d498ae33d8cf1f3f8a7f4318683607cf971bc11f63906194de5e96e3c4764a2a90b147715
+MISC ChangeLog-2015 4845 SHA256 2ea9261bc04119d6d66e6fba0dcf24ec3f9aaa5398c33282cda61d927f02ac2c SHA512 5b6e95525dc20b5c4a026e727cb6a9039c2dbbba2f0e1e80be6a14407d29b2fdc198b9a5f3eeb611e7d03468e071db92c757ae4220677923cff8dd0b64f8bdb1 WHIRLPOOL 5489b0d06082eccda705b7b12767f344286618cc747c7021d8b13c975dfb7c1f371159d10255035089a346befc1951d39f1a4f748b73a226582e878473a40bdf
+MISC metadata.xml 244 SHA256 dafe3eb2076730deaf5b4cc9ab4c0af0ef435debb9b41d96ab396a93f68bf8bb SHA512 8ced66f9a1e5533891a0142222723fab44ddda99a5d00b8f880e961146cb2abbd076005db790cab522be24d5cdec5a391d6a3942c1497450efcb30774e180c97 WHIRLPOOL de3defa3cc72f0a784cceae16711f8dd9cf94b2b6611eff84ec92b67b6a73b990cd28ae10d09dec15f8c789a0c922d26a75c28f7077a02909ee7ce162f9a97ff
diff --git a/net-misc/siproxd/files/siproxd-0.8.1-amd64_static_build.patch b/net-misc/siproxd/files/siproxd-0.8.1-amd64_static_build.patch
new file mode 100644
index 000000000000..af491c167da1
--- /dev/null
+++ b/net-misc/siproxd/files/siproxd-0.8.1-amd64_static_build.patch
@@ -0,0 +1,26 @@
+--- siproxd-0.8.1/configure.in
++++ siproxd-0.8.1/configure.in
+@@ -361,8 +361,9 @@
+ dnl link statically to this lib
+ dnl (this probably only will work on linux yet...)
+ AC_MSG_CHECKING("where I can find libosip2.a")
+- libosip_static=`find $extra_libs $libosip_prefix_dir/lib /lib \
+- /usr/lib /usr/local/lib \
++ libosip_static=`find $extra_libs $libosip_prefix_dir/lib64 \
++ $libosip_prefix_dir/lib /lib64 /lib /usr/lib64 \
++ /usr/lib /usr/local/lib64 /usr/local/lib \
+ -name libosip2.a 2>/dev/null|head -1`
+ if test "x$libosip_static" != "x"; then
+ LIBS="$libosip_static $LIBS"
+@@ -371,8 +372,9 @@
+ echo "*** ERROR: a static libosip library is required!";exit 1;
+ fi
+ AC_MSG_CHECKING("where I can find libosipparser2.a")
+- libosip_static=`find $extra_libs $libosip_prefix_dir/lib /lib \
+- /usr/lib /usr/local/lib \
++ libosip_static=`find $extra_libs $libosip_prefix_dir/lib64 \
++ $libosip_prefix_dir/lib /lib64 /lib /usr/lib64 \
++ /usr/lib /ur/local/lib64 /usr/local/lib \
+ -name libosipparser2.a 2>/dev/null|head -1`
+ if test "x$libosip_static" != "x"; then
+ LIBS="$libosip_static $LIBS"
diff --git a/net-misc/siproxd/files/siproxd-libtool-2.4.patch b/net-misc/siproxd/files/siproxd-libtool-2.4.patch
new file mode 100644
index 000000000000..189b32090f7b
--- /dev/null
+++ b/net-misc/siproxd/files/siproxd-libtool-2.4.patch
@@ -0,0 +1,13 @@
+diff -r -U 2 a/src/plugins.h b/src/plugins.h
+--- a/src/plugins.h 2010-01-07 12:44:38.000000000 +0100
++++ b/src/plugins.h 2010-06-19 13:56:30.960679284 +0200
+@@ -25,4 +25,8 @@
+
+
++#ifndef lt__PROGRAM__LTX_preloaded_symbols
++#define lt__PROGRAM__LTX_preloaded_symbols lt_libltdl_LTX_preloaded_symbols
++extern const void *lt_preloaded_symbols[];
++#endif
+
+ /* Plugins must return STS_SUCCESS / SUCCESS_FAILURE */
+
diff --git a/net-misc/siproxd/files/siproxd.rc6 b/net-misc/siproxd/files/siproxd.rc6
new file mode 100644
index 000000000000..0ec75e159f79
--- /dev/null
+++ b/net-misc/siproxd/files/siproxd.rc6
@@ -0,0 +1,30 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+check_config() {
+ if [[ ! -f /etc/siproxd.conf ]]; then
+ eerror "Please create /etc/siproxd.conf first!"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ check_config || return 1
+
+ ebegin "Starting siproxd"
+ start-stop-daemon --start --exec /usr/sbin/siproxd -- \
+ -p /var/run/siproxd/siproxd.pid -c /etc/siproxd.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping siproxd"
+ start-stop-daemon --stop --pidfile /var/run/siproxd/siproxd.pid
+ eend $?
+}
diff --git a/net-misc/siproxd/files/siproxd.rc8 b/net-misc/siproxd/files/siproxd.rc8
new file mode 100644
index 000000000000..017783025f1f
--- /dev/null
+++ b/net-misc/siproxd/files/siproxd.rc8
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+config_file="/etc/siproxd.conf"
+
+pidfile="/var/run/siproxd/siproxd.pid"
+command="/usr/sbin/siproxd"
+command_args="-p ${pidfile} -c ${config_file}"
+
+depend() {
+ need net
+}
+
+start_pre() {
+ if [ ! -f "${config_file}" ] ; then
+ eerror "Please create ${config_file} first!"
+ return 1
+ fi
+ checkpath -q -d ${pidfile%/*} -o siproxd:siproxd
+}
diff --git a/net-misc/siproxd/metadata.xml b/net-misc/siproxd/metadata.xml
new file mode 100644
index 000000000000..91288ffa73c3
--- /dev/null
+++ b/net-misc/siproxd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">siproxd</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-misc/siproxd/siproxd-0.8.0-r3.ebuild b/net-misc/siproxd/siproxd-0.8.0-r3.ebuild
new file mode 100644
index 000000000000..bb230657846c
--- /dev/null
+++ b/net-misc/siproxd/siproxd-0.8.0-r3.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils autotools user
+
+DESCRIPTION="A proxy/masquerading daemon for the SIP protocol"
+HOMEPAGE="http://siproxd.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="examples doc static"
+# TODO: debug can be used but dmalloc is breaking the build
+# upstream has been contacted, see bug 2649238 in their bugtracker
+
+RDEPEND=">=net-libs/libosip-3.0.0
+ <net-libs/libosip-4.0.0"
+# debug? ( dev-libs/dmalloc[threads] )"
+DEPEND="${RDEPEND}
+ >=sys-devel/libtool-2.4
+ doc? ( app-text/docbook-sgml-utils
+ app-text/docbook-sgml-dtd:4.2 )"
+# docbook-sgml-utils is for building doc
+# docbook-sgml-dtd is for the doc dtd even if docbook-sgml-utils depends on it
+
+pkg_setup() {
+ enewgroup siproxd
+ enewuser siproxd -1 -1 /dev/null siproxd
+}
+
+src_prepare() {
+ default
+
+ # make the daemon run as user 'siproxd' by default
+ sed -i -e "s:nobody:siproxd:" doc/siproxd.conf.example \
+ || die "patching doc/siproxd.conf.example failed"
+ # do not fail when building with external libltdl
+ sed -i 's/libltdl //' Makefile.am || die "patching Makefile failed"
+ epatch "${FILESDIR}/${PN}-libtool-2.4.patch"
+ # do not crash when building with external libltdl, bug 308495
+ sed -i 's|"../libltdl/ltdl.h"|<ltdl.h>|' src/plugins.h || die "patching plugins.h failed"
+
+ eautoreconf
+}
+
+src_configure() {
+ # static-libosip2 make it link statically against libosip2
+ # static build static version of plugins, forced to true
+ econf \
+ $(use_enable doc) \
+ $(use_enable static static-libosip2) \
+ --enable-static
+ #$(use debug && use_enable debug dmalloc) \
+
+ # statically linked plugins to libosip2 causes a shared lib linking with
+ # static lib (gcc seems not to like it : portable issue it says).
+ # there was also DT_TEXREL issue and stripping of static plugins failed
+ # so shared lib has to be used for plugins
+ # upstream has been contacted, see bug 2649351 in their bugtracker
+ if use static; then
+ sed -i -r -e \
+ "s:LIBS =(.*)( \/[^ ]*libosip[^ ]*\.a)( \/[^ ]*libosip[^ ]*\.a)(.*):LIBS_STATIC =\1\2\3\4\nLIBS = \1\4 -losip2 -losipparser2:" \
+ src/Makefile || die "patching src/Makefile failed"
+ sed -i -e \
+ "s:\$(siproxd_LDADD) \$(LIBS):\$(siproxd_LDADD) \$(LIBS_STATIC):" \
+ src/Makefile || die "patching src/Makefile failed"
+ fi
+}
+
+src_install() {
+ einstall
+
+ newinitd "${FILESDIR}"/${PN}.rc6 ${PN}
+
+ dodoc AUTHORS ChangeLog NEWS README RELNOTES TODO \
+ doc/FAQ doc/FLI4L_HOWTO.txt doc/KNOWN_BUGS
+
+ if use doc; then
+ dodoc doc/RFC3261_compliance.txt
+ # auto-generated doc is not auto-installed
+ # upstream has been contacted, see bug 2649333 in their bugtracker
+ dohtml -r doc/html/
+ # pdf is not build all the time
+ if has_version app-text/docbook-sgml-utils[jadetex]; then
+ dodoc doc/pdf/*.pdf
+ fi
+ fi
+
+ if use examples; then
+ docinto examples
+ dodoc doc/sample_*.txt
+ fi
+
+ # set up siproxd directories
+ keepdir /var/{lib,run}/${PN}
+ fowners siproxd:siproxd /var/{lib,run}/${PN}
+}
+
+pkg_postinst() {
+ if use static; then
+ elog "static USE flag does not build a _fully_ statically linked binary"
+ elog "only libosip2 and libosipparser2 are statically linked"
+ elog "In addition, plugins are dynamically linked with those libs"
+ fi
+}
diff --git a/net-misc/siproxd/siproxd-0.8.1-r2.ebuild b/net-misc/siproxd/siproxd-0.8.1-r2.ebuild
new file mode 100644
index 000000000000..664fe43e1ff3
--- /dev/null
+++ b/net-misc/siproxd/siproxd-0.8.1-r2.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils autotools user
+
+DESCRIPTION="A proxy/masquerading daemon for the SIP protocol"
+HOMEPAGE="http://siproxd.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples doc static"
+# TODO: debug can be used but dmalloc is breaking the build
+# upstream has been contacted, see bug 2649238 in their bugtracker
+
+RDEPEND=">=net-libs/libosip-3.0.0
+ <net-libs/libosip-4.0.0"
+# debug? ( dev-libs/dmalloc[threads] )"
+DEPEND="${RDEPEND}
+ >=sys-devel/libtool-2.4
+ doc? ( app-text/docbook-sgml-utils
+ app-text/docbook-sgml-dtd:4.2 )"
+# docbook-sgml-utils is for building doc
+# docbook-sgml-dtd is for the doc dtd even if docbook-sgml-utils depends on it
+
+pkg_setup() {
+ enewgroup siproxd
+ enewuser siproxd -1 -1 /dev/null siproxd
+}
+
+src_prepare() {
+ # make the daemon run as user 'siproxd' by default
+ sed -i -e "s:nobody:siproxd:" doc/siproxd.conf.example \
+ || die "patching doc/siproxd.conf.example failed"
+ # do not fail when building with external libltdl
+ sed -i 's/libltdl //' Makefile.am || die "patching Makefile failed"
+ epatch "${FILESDIR}/${PN}-libtool-2.4.patch"
+ # do not crash when building with external libltdl, bug 308495
+ sed -i 's|"../libltdl/ltdl.h"|<ltdl.h>|' src/plugins.h || die "patching plugins.h failed"
+
+ epatch "${FILESDIR}/${PN}-0.8.1-amd64_static_build.patch" #380835
+
+ eautoreconf
+}
+
+src_configure() {
+ # static-libosip2 make it link statically against libosip2
+ # static build static version of plugins, forced to true
+ econf \
+ $(use_enable doc) \
+ $(use_enable static static-libosip2) \
+ $(use_enable !static shared) \
+ --enable-static
+ #$(use debug && use_enable debug dmalloc) \
+
+ # statically linked plugins to libosip2 causes a shared lib linking with
+ # static lib (gcc seems not to like it : portable issue it says).
+ # there was also DT_TEXREL issue and stripping of static plugins failed
+ # so shared lib has to be used for plugins
+ # upstream has been contacted, see bug 2649351 in their bugtracker
+ if use static; then
+ sed -i -r -e \
+ "s:LIBS =(.*)( \/[^ ]*libosip[^ ]*\.a)( \/[^ ]*libosip[^ ]*\.a)(.*):LIBS_STATIC =\1\2\3\4\nLIBS = \1\4 -losip2 -losipparser2:" \
+ src/Makefile || die "patching src/Makefile failed"
+ sed -i -e \
+ "s:\$(siproxd_LDADD) \$(LIBS):\$(siproxd_LDADD) \$(LIBS_STATIC):" \
+ src/Makefile || die "patching src/Makefile failed"
+ fi
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}"/${PN}.rc8 ${PN}
+
+ dodoc AUTHORS ChangeLog NEWS README RELNOTES TODO \
+ doc/FAQ doc/FLI4L_HOWTO.txt doc/KNOWN_BUGS
+
+ if use doc; then
+ dodoc doc/RFC3261_compliance.txt
+ # auto-generated doc is not auto-installed
+ # upstream has been contacted, see bug 2649333 in their bugtracker
+ dohtml -r doc/html/
+ # pdf is not build all the time
+ if has_version 'app-text/docbook-sgml-utils[jadetex]' ; then
+ dodoc doc/pdf/*.pdf
+ fi
+ fi
+
+ if use examples; then
+ docinto examples
+ dodoc doc/sample_*.txt
+ fi
+
+ # set up siproxd directories
+ keepdir /var/lib/${PN}
+ fowners siproxd:siproxd /var/lib/${PN}
+}
+
+pkg_postinst() {
+ if use static; then
+ elog "static USE flag does not build a _fully_ statically linked binary"
+ elog "only libosip2 and libosipparser2 are statically linked"
+ elog "In addition, plugins are dynamically linked with those libs"
+ fi
+}