Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/siproxd: ChangeLog siproxd-0.7.1.ebuild
Date: Sun, 01 Mar 2009 02:32:34
Message-Id: E1LdbTj-00059T-C7@stork.gentoo.org
1 darkside 09/03/01 02:32:31
2
3 Modified: ChangeLog
4 Added: siproxd-0.7.1.ebuild
5 Log:
6 (non maintainer commit) Version bump, ebuild by Mounir Lamouri in bug 235720
7 (Portage version: 2.1.6.7/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.13 net-misc/siproxd/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/siproxd/ChangeLog?rev=1.13&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/siproxd/ChangeLog?rev=1.13&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/siproxd/ChangeLog?r1=1.12&r2=1.13
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/siproxd/ChangeLog,v
19 retrieving revision 1.12
20 retrieving revision 1.13
21 diff -u -r1.12 -r1.13
22 --- ChangeLog 16 Feb 2009 18:47:41 -0000 1.12
23 +++ ChangeLog 1 Mar 2009 02:32:31 -0000 1.13
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-misc/siproxd
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/siproxd/ChangeLog,v 1.12 2009/02/16 18:47:41 darkside Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/siproxd/ChangeLog,v 1.13 2009/03/01 02:32:31 darkside Exp $
29 +
30 +*siproxd-0.7.1 (01 Mar 2009)
31 +
32 + 01 Mar 2009; Jeremy Olexa <darkside@g.o> +siproxd-0.7.1.ebuild:
33 + (non maintainer commit) Version bump, ebuild by Mounir Lamouri in bug 235720
34
35 16 Feb 2009; Jeremy Olexa <darkside@g.o> -siproxd-0.5.11.ebuild:
36 (non maintainer commit) remove old ebuild that has QA issues, bug 226605
37
38
39
40 1.1 net-misc/siproxd/siproxd-0.7.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/siproxd/siproxd-0.7.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/siproxd/siproxd-0.7.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: siproxd-0.7.1.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-misc/siproxd/siproxd-0.7.1.ebuild,v 1.1 2009/03/01 02:32:31 darkside Exp $
50
51 EAPI="2"
52
53 inherit eutils
54
55 DESCRIPTION="A proxy/masquerading daemon for the SIP protocol"
56 HOMEPAGE="http://siproxd.sourceforge.net/"
57 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62 IUSE="examples doc static"
63 # TODO: debug can be used but dmalloc is breaking the build
64 # upstream has been contacted, see bug 2649238 in their bugtracker
65
66 RDEPEND=">=net-libs/libosip-3.0.0"
67 # debug? ( dev-libs/dmalloc[threads] )"
68 DEPEND="${RDEPEND}
69 doc? ( app-text/docbook-sgml-utils
70 app-text/docbook-sgml-dtd:4.2 )"
71 # docbook-sgml-utils is for building doc
72 # docbook-sgml-dtd is for the doc dtd even if docbook-sgml-utils depends on it
73
74 pkg_setup() {
75 enewgroup siproxd
76 enewuser siproxd -1 -1 /dev/null siproxd
77 }
78
79 src_prepare() {
80 # to be sure doc is not compiled nor installed with -doc
81 # quickiest way to get it disabled, other way would be patching .in file
82 # upstream has been contacted, see bug 2649325 in their bugtracker
83 if ! use doc; then
84 sed -i -e 's/test "$docbook2/test "/' configure \
85 || die "patching configure failed"
86 fi
87
88 # make the daemon run as user 'siproxd' by default
89 sed -i -e "s:nobody:siproxd:" doc/siproxd.conf.example \
90 || die "patching doc/siproxd.conf.example failed"
91 }
92
93 src_configure() {
94 # NOTE: $(use flag && use_enable flag) is to avoid a bug
95 # that makes --disable like --enable, see bug #205765
96 # static-libosip2 make it link statically against libosip2
97 # static build static version of plugins, forced to true
98 # upstream has been contacted, see bug 2649286 in their bugtracker
99 econf \
100 $(use static && use_enable static static-libosip2) \
101 --enable-static
102 #$(use debug && use_enable debug dmalloc) \
103
104 # statically linked plugins to libosip2 causes a shared lib linking with
105 # static lib (gcc seems not to like it : portable issue it says).
106 # there was also DT_TEXREL issue and stripping of static plugins failed
107 # so shared lib has to be used for plugins
108 # upstream has been contacted, see bug 2649351 in their bugtracker
109 if use static; then
110 sed -i -r -e \
111 "s:LIBS =(.*)( \/[^ ]*libosip[^ ]*\.a)( \/[^ ]*libosip[^ ]*\.a)(.*):LIBS_STATIC =\1\2\3\4\nLIBS = \1\4 -losip2 -losipparser2:" \
112 src/Makefile || die "patching src/Makefile failed"
113 sed -i -e \
114 "s:\$(siproxd_LDADD) \$(LIBS):\$(siproxd_LDADD) \$(LIBS_STATIC):" \
115 src/Makefile || die "patching src/Makefile failed"
116 fi
117 }
118
119 src_install() {
120 einstall || die "einstall failed"
121
122 newinitd "${FILESDIR}"/${PN}.rc6 ${PN} || die "newinitd failed"
123
124 dodoc AUTHORS ChangeLog NEWS README RELNOTES TODO \
125 doc/FAQ doc/FLI4L_HOWTO.txt doc/KNOWN_BUGS \
126 || die "dodoc failed"
127
128 if use doc; then
129 dodoc doc/RFC3261_compliance.txt || die "dodoc failed"
130 # auto-generated doc is not auto-installed
131 # upstream has been contacted, see bug 2649333 in their bugtracker
132 dohtml -r doc/html/ || die "dohtml failed"
133 # pdf is not build all the time
134 if built_with_use app-text/docbook-sgml-utils jadetex; then
135 dodoc doc/pdf/*.pdf || die "dodoc failed"
136 fi
137 fi
138
139 if use examples; then
140 docinto examples
141 dodoc doc/sample_*.txt || die "dodoc failed"
142 fi
143
144 # set up siproxd directories
145 keepdir /var/{lib,run}/${PN} || die "keepdir failed"
146 fowners siproxd:siproxd /var/{lib,run}/${PN} || die "fowners failed"
147 }
148
149 pkg_postinst() {
150 if use static; then
151 elog "static USE flag does not build a _fully_ statically linked binary"
152 elog "only libosip2 and libosipparser2 are statically linked"
153 elog "In addition, plugins are dynamically linked with those libs"
154 fi
155 }