Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/sobby/
Date: Wed, 23 Dec 2015 10:59:42
Message-Id: 1450868320.7567eabb35d8e04dc2b7d2faf4b5d1cc85ca88b9.pacho@gentoo
1 commit: 7567eabb35d8e04dc2b7d2faf4b5d1cc85ca88b9
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 23 10:24:41 2015 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 23 10:58:40 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7567eabb
7
8 net-misc/sobby: Fix building with latest glibmm/libsigc++, use USE zeroconf instead of avahi (#477620)
9
10 Package-Manager: portage-2.2.26
11
12 net-misc/sobby/sobby-0.4.8-r1.ebuild | 62 ++++++++++++++++++++++++++++++++++++
13 1 file changed, 62 insertions(+)
14
15 diff --git a/net-misc/sobby/sobby-0.4.8-r1.ebuild b/net-misc/sobby/sobby-0.4.8-r1.ebuild
16 new file mode 100644
17 index 0000000..3887a14
18 --- /dev/null
19 +++ b/net-misc/sobby/sobby-0.4.8-r1.ebuild
20 @@ -0,0 +1,62 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +inherit eutils flag-o-matic user
27 +
28 +DESCRIPTION="Standalone Obby server"
29 +HOMEPAGE="http://gobby.0x539.de/"
30 +SRC_URI="http://releases.0x539.de/${PN}/${P}.tar.gz"
31 +LICENSE="GPL-2"
32 +SLOT="0"
33 +KEYWORDS="~amd64 ~arm ~ppc ~x86"
34 +IUSE="zeroconf"
35 +
36 +RDEPEND="
37 + >=dev-cpp/glibmm-2.6
38 + >=dev-libs/libsigc++-2.0
39 + >=dev-libs/gmp-4.1.4
40 + >=dev-cpp/libxmlpp-2.6
41 + >=net-libs/net6-1.3.12
42 + >=net-libs/obby-0.4.6[zeroconf=]
43 +"
44 +DEPEND="${RDEPEND}
45 + virtual/pkgconfig
46 +"
47 +
48 +pkg_setup() {
49 + enewgroup sobby
50 + enewuser sobby -1 -1 /var/lib/sobby sobby
51 +}
52 +
53 +src_configure() {
54 + append-cxxflags -std=c++11
55 + econf $(use_enable zeroconf)
56 +}
57 +
58 +src_install() {
59 + default
60 +
61 + newconfd "${FILESDIR}/${PN}-conf-0.4.7" sobby
62 + newinitd "${FILESDIR}/${PN}-init-0.4.7" sobby
63 +
64 + insinto /etc/sobby
65 + doins "${FILESDIR}/sobby.xml"
66 +
67 + keepdir /var/lib/sobby
68 +
69 + fperms -R 0700 /var/lib/sobby
70 + fperms -R 0700 /etc/sobby
71 +
72 + fowners sobby:sobby /var/lib/sobby
73 + fowners -R sobby:sobby /etc/sobby
74 +}
75 +
76 +pkg_postinst() {
77 + elog "To start sobby, you can use the init script:"
78 + elog " /etc/init.d/sobby start"
79 + elog ""
80 + elog "Please check the configuration in /etc/sobby/sobby.xml"
81 + elog "before you start sobby"
82 +}