/[gentoo-x86]/net-misc/sobby/sobby-0.4.7.ebuild
Gentoo

Contents of /net-misc/sobby/sobby-0.4.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat May 5 03:20:41 2012 UTC (2 years, 6 months ago) by jdhore
Branch: MAIN
Changes since 1.4: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/sobby/sobby-0.4.7.ebuild,v 1.4 2012/02/03 22:35:38 ranger Exp $
4
5 EAPI=2
6
7 inherit eutils
8
9 DESCRIPTION="Standalone Obby server"
10 HOMEPAGE="http://gobby.0x539.de/"
11 SRC_URI="http://releases.0x539.de/${PN}/${P}.tar.gz"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc x86"
15 IUSE="avahi"
16
17 RDEPEND=">=dev-cpp/glibmm-2.6
18 >=dev-libs/libsigc++-2.0
19 >=dev-libs/gmp-4.1.4
20 >=dev-cpp/libxmlpp-2.6
21 >=net-libs/net6-1.3.12
22 >=net-libs/obby-0.4.6[avahi=]"
23 DEPEND="${RDEPEND}
24 virtual/pkgconfig"
25
26 pkg_setup() {
27 enewgroup sobby
28 enewuser sobby -1 -1 /var/lib/sobby sobby
29 }
30
31 src_configure() {
32 econf $(use_enable avahi zeroconf)
33 }
34
35 src_install() {
36 emake DESTDIR="${D}" install || die
37 dodoc AUTHORS ChangeLog NEWS README || die
38
39 newconfd "${FILESDIR}/${PN}-conf-${PV}" sobby || die
40 newinitd "${FILESDIR}/${PN}-init-${PV}" sobby || die
41
42 insinto /etc/sobby
43 doins "${FILESDIR}/sobby.xml" || die
44
45 keepdir /var/lib/sobby || die
46
47 fperms -R 0700 /var/lib/sobby || die
48 fperms -R 0700 /etc/sobby || die
49
50 fowners sobby:sobby /var/lib/sobby || die
51 fowners -R sobby:sobby /etc/sobby || die
52 }
53
54 pkg_postinst() {
55 elog "To start sobby, you can use the init script:"
56 elog " /etc/init.d/sobby start"
57 elog ""
58 elog "Please check the configuration in /etc/sobby/sobby.xml"
59 elog "before you start sobby"
60 }

  ViewVC Help
Powered by ViewVC 1.1.20