diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2009-03-01 02:32:31 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2009-03-01 02:32:31 +0000 |
commit | 38fe9a90d6aefb3b9aed4f9e52339e8f0347ea7b (patch) | |
tree | 5c6bcb87d896c4c304bd9cdf2571bc3ac5e6b450 /net-misc/siproxd | |
parent | Package doesnt have ChangeLog doc but rather README. (diff) | |
download | gentoo-2-38fe9a90d6aefb3b9aed4f9e52339e8f0347ea7b.tar.gz gentoo-2-38fe9a90d6aefb3b9aed4f9e52339e8f0347ea7b.tar.bz2 gentoo-2-38fe9a90d6aefb3b9aed4f9e52339e8f0347ea7b.zip |
(non maintainer commit) Version bump, ebuild by Mounir Lamouri in bug 235720
(Portage version: 2.1.6.7/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/siproxd')
-rw-r--r-- | net-misc/siproxd/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/siproxd/siproxd-0.7.1.ebuild | 109 |
2 files changed, 115 insertions, 1 deletions
diff --git a/net-misc/siproxd/ChangeLog b/net-misc/siproxd/ChangeLog index 5e02d9e3e05a..1b9f261f2697 100644 --- a/net-misc/siproxd/ChangeLog +++ b/net-misc/siproxd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/siproxd # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/siproxd/ChangeLog,v 1.12 2009/02/16 18:47:41 darkside Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/siproxd/ChangeLog,v 1.13 2009/03/01 02:32:31 darkside Exp $ + +*siproxd-0.7.1 (01 Mar 2009) + + 01 Mar 2009; Jeremy Olexa <darkside@gentoo.org> +siproxd-0.7.1.ebuild: + (non maintainer commit) Version bump, ebuild by Mounir Lamouri in bug 235720 16 Feb 2009; Jeremy Olexa <darkside@gentoo.org> -siproxd-0.5.11.ebuild: (non maintainer commit) remove old ebuild that has QA issues, bug 226605 diff --git a/net-misc/siproxd/siproxd-0.7.1.ebuild b/net-misc/siproxd/siproxd-0.7.1.ebuild new file mode 100644 index 000000000000..77e0adb91e11 --- /dev/null +++ b/net-misc/siproxd/siproxd-0.7.1.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/siproxd/siproxd-0.7.1.ebuild,v 1.1 2009/03/01 02:32:31 darkside Exp $ + +EAPI="2" + +inherit eutils + +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" +# debug? ( dev-libs/dmalloc[threads] )" +DEPEND="${RDEPEND} + 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() { + # to be sure doc is not compiled nor installed with -doc + # quickiest way to get it disabled, other way would be patching .in file + # upstream has been contacted, see bug 2649325 in their bugtracker + if ! use doc; then + sed -i -e 's/test "$docbook2/test "/' configure \ + || die "patching configure failed" + fi + + # 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" +} + +src_configure() { + # NOTE: $(use flag && use_enable flag) is to avoid a bug + # that makes --disable like --enable, see bug #205765 + # static-libosip2 make it link statically against libosip2 + # static build static version of plugins, forced to true + # upstream has been contacted, see bug 2649286 in their bugtracker + econf \ + $(use static && 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 || die "einstall failed" + + newinitd "${FILESDIR}"/${PN}.rc6 ${PN} || die "newinitd failed" + + dodoc AUTHORS ChangeLog NEWS README RELNOTES TODO \ + doc/FAQ doc/FLI4L_HOWTO.txt doc/KNOWN_BUGS \ + || die "dodoc failed" + + if use doc; then + dodoc doc/RFC3261_compliance.txt || die "dodoc failed" + # auto-generated doc is not auto-installed + # upstream has been contacted, see bug 2649333 in their bugtracker + dohtml -r doc/html/ || die "dohtml failed" + # pdf is not build all the time + if built_with_use app-text/docbook-sgml-utils jadetex; then + dodoc doc/pdf/*.pdf || die "dodoc failed" + fi + fi + + if use examples; then + docinto examples + dodoc doc/sample_*.txt || die "dodoc failed" + fi + + # set up siproxd directories + keepdir /var/{lib,run}/${PN} || die "keepdir failed" + fowners siproxd:siproxd /var/{lib,run}/${PN} || die "fowners failed" +} + +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 +} |