You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.1 KiB
58 lines
1.1 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
|
inherit flag-o-matic
|
||
9 years ago
|
|
||
|
DESCRIPTION="Standalone Obby server"
|
||
|
HOMEPAGE="http://gobby.0x539.de/"
|
||
|
SRC_URI="http://releases.0x539.de/${PN}/${P}.tar.gz"
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
9 years ago
|
KEYWORDS="amd64 ~arm ~ppc x86"
|
||
9 years ago
|
IUSE="zeroconf"
|
||
|
|
||
3 years ago
|
DEPEND="
|
||
|
>=dev-cpp/glibmm-2.6:2
|
||
|
>=dev-libs/libsigc++-2.0:2
|
||
9 years ago
|
>=dev-libs/gmp-4.1.4:0
|
||
8 years ago
|
>=dev-cpp/libxmlpp-2.6:2.6
|
||
9 years ago
|
>=net-libs/net6-1.3.12
|
||
|
>=net-libs/obby-0.4.6[zeroconf=]
|
||
|
"
|
||
3 years ago
|
RDEPEND="${DEPEND}
|
||
|
acct-group/sobby
|
||
|
acct-user/sobby
|
||
|
"
|
||
|
BDEPEND="
|
||
|
acct-group/sobby
|
||
|
acct-user/sobby
|
||
9 years ago
|
virtual/pkgconfig
|
||
|
"
|
||
|
|
||
|
src_configure() {
|
||
|
append-cxxflags -std=c++11
|
||
|
econf $(use_enable zeroconf)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
|
newconfd "${FILESDIR}/${PN}-conf-0.4.7" sobby
|
||
|
newinitd "${FILESDIR}/${PN}-init-0.4.7" sobby
|
||
|
|
||
|
insinto /etc/sobby
|
||
|
doins "${FILESDIR}/sobby.xml"
|
||
|
|
||
|
fperms -R 0700 /etc/sobby
|
||
|
fowners -R sobby:sobby /etc/sobby
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "To start sobby, you can use the init script:"
|
||
|
elog " /etc/init.d/sobby start"
|
||
|
elog ""
|
||
|
elog "Please check the configuration in /etc/sobby/sobby.xml"
|
||
|
elog "before you start sobby"
|
||
|
}
|