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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Wed Jan 8 06:32:41 2014 UTC (6 years ago) by vapier
Branch: MAIN
Changes since 1.5: +3 -3 lines
Inherit the user eclass for enewuser/etc...

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 vapier 1.6 # Copyright 1999-2014 Gentoo Foundation
2 xarthisius 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.6 # $Header: /var/cvsroot/gentoo-x86/net-misc/sobby/sobby-0.4.8.ebuild,v 1.5 2012/06/08 12:14:32 phajdan.jr Exp $
4 xarthisius 1.1
5     EAPI=4
6    
7 vapier 1.6 inherit eutils user
8 xarthisius 1.1
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 phajdan.jr 1.5 KEYWORDS="amd64 ppc x86"
15 xarthisius 1.1 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 jdhore 1.2 virtual/pkgconfig"
25 xarthisius 1.1
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     default
37    
38     newconfd "${FILESDIR}/${PN}-conf-0.4.7" sobby
39     newinitd "${FILESDIR}/${PN}-init-0.4.7" sobby
40    
41     insinto /etc/sobby
42     doins "${FILESDIR}/sobby.xml"
43    
44     keepdir /var/lib/sobby
45    
46     fperms -R 0700 /var/lib/sobby
47     fperms -R 0700 /etc/sobby
48    
49     fowners sobby:sobby /var/lib/sobby
50     fowners -R sobby:sobby /etc/sobby
51     }
52    
53     pkg_postinst() {
54     elog "To start sobby, you can use the init script:"
55     elog " /etc/init.d/sobby start"
56     elog ""
57     elog "Please check the configuration in /etc/sobby/sobby.xml"
58     elog "before you start sobby"
59     }

  ViewVC Help
Powered by ViewVC 1.1.20