Changeset - bf6f64173507
[Not reviewed]
0 0 5
Chel Sea (chain) - 11 years ago 2014-02-23 12:58:41
chain@rpgfiction.net
add net-p2p/uhub to overlay
5 files changed with 116 insertions and 0 deletions:
0 comments (0 inline, 0 general)
net-p2p/uhub/Manifest
Show inline comments
 
new file 100644
 
AUX uhub.confd 675 SHA256 afc124d81fe5c320d58993483b979a4ef4f0e3c9c8df04d265d9b75526fc8701 SHA512 5052977d2318de34d31c40852504c9aa9301b46232a88780d17da302928ee233394d23ecf3ceec922f23426b0e7b7c93395febb40cf539f9a1b669e9e5536a65 WHIRLPOOL e8ff7bd8bcccef1f5ddecc6ff71ca8de56f1f8a66ae075e76481471b4d49b6ad757b07fc3a356d5e02c84147a79e1378f54b91c20e890505f20b0525b7b4aa27
 
AUX uhub.initd 695 SHA256 d718e366d78fbeab3965416ff5a71c1563c96b1f497c616fde539df84b31f229 SHA512 d859bb083b5645d5cd97373bbef2f7904207fdf56907c172fad8316fb4630547ed903ac3b40150fe2ce23654b84ef782c2eaf31692115dc7ad383f07c6818e46 WHIRLPOOL 35798413e91327c1e062b0025814445b0d9d8db03a7539d104ecac000807bf189386b69356d353dcc49b41d6bb198a6caa0183209b85b7343315aafbbfbaa8c3
 
AUX uhub.logrotate 111 SHA256 bfd3b216f89a20ddbfc1e8c38b0cbd85211b92611e14470f1bf955df530c2c28 SHA512 cfea1921518b71676b66ca0339bffb8ceaf7da680361a9489ee7cf25330eac0186a266a84734e79a33a05d587fa432e2fe573b12f59a68306830c28c35b83385 WHIRLPOOL 974ce1753a50cee6ccec6469c68c98f07bda64fee8fd3b70335cae2845b5351754d28a45e114221c81d9a0cba984b3ca38358d76b4f29dfa851af6a11d0119e4
 
DIST uhub-0.4.1-src.tar.bz2 164603 SHA256 a227172aa0a4ef481d1f5a8b8796f3d8904c56b77f3ae8d204bc40b01c3916e0 SHA512 b5ac382db8652b5e64bde0418a0d58295554fdebdb07a0fafbb5625f56125e651f6dde3de6975cb2aa0c95b2a8000d4c5bbd4cd62d255aa347f019769a72e2af WHIRLPOOL 9d5102e0a911668021c2986641b19c98429b029389b6f0bc50861279950a7d2de86cdf6aa8fcbad6761e4ffc240e4e4a2e09fa29efc49c6dec3d07eab4746146
 
EBUILD uhub-0.4.1.ebuild 1393 SHA256 c304a6f387250091140709229419772647cce2544a5ae1d9941cbbea158e5b0b SHA512 5434fc603bc17b24227ee052a2fa19e12b8238e05b200f26991bf2921ffe08b7fc9dba0232965db635cd6289769a04798baff87198c56a7a6ce2cf590659fe70 WHIRLPOOL 851eb29ef31e0732d4d7b9d6a16e8b80b1c7842a15e7922eaf19f8f658a517db5f29406f830b97ea6c29e64ea1c68d6a21fe71f4a793efb669e632e551267797
net-p2p/uhub/files/uhub.confd
Show inline comments
 
new file 100644
 
UHUB_USER="${UHUB_USER:-uhub}"
 
UHUB_GROUP="${UHUB_GROUP:-uhub}"
 
# Options to UHUB
 
#  -v          Verbose mode. Add more -v's for higher verbosity.
 
#  -q          Quiet mode - no output
 
#  -f          Fork to background
 
#  -l <file>   Log messages to given file (default: stderr)
 
#  -L          Log messages to syslog
 
#  -c <file>   Specify configuration file (default: /etc/uhub/uhub.conf)
 
#  -S          Show configuration parameters, but ignore defaults
 
#  -u <user>   Run as given user
 
#  -g <group>  Run with given group permissions
 
#  -p <file>   Store pid in file (process id)
 
UHUBOPTIONS="-u ${UHUB_USER} -g ${UHUB_GROUP} -f -p /var/run/uhub.pid -l /var/log/uhub.log"
net-p2p/uhub/files/uhub.initd
Show inline comments
 
new file 100644
 
#!/sbin/runscript
 
# Copyright 1999-2012 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.initd,v 1.1 2012/02/11 10:17:30 hollow Exp $
 

	
 
extra_started_commands="reload"
 

	
 
description="High performance peer-to-peer hub for the ADC network"
 
description_reload="Reload uHub configuration and re-read log file"
 

	
 
command="/usr/bin/uhub"
 
command_args="${UHUBOPTIONS}"
 
pidfile="/var/run/uhub.pid"
 

	
 
depend() {
 
	need net
 
	use dns logger netmount
 
}
 

	
 
stop_post() {
 
	rm ${pidfile}
 
}
 

	
 
reload() {
 
	ebegin "Reloading uHub configuration"
 
	kill -HUP `cat ${pidfile}` &>/dev/null
 
	eend $? "Failed to reload uHub"
 
}
net-p2p/uhub/files/uhub.logrotate
Show inline comments
 
new file 100644
 
/var/log/uhub.log {
 
        compress
 
        size 10M
 
        rotate 10
 
        missingok
 
        notifempty
 
}
net-p2p/uhub/uhub-0.4.1.ebuild
Show inline comments
 
new file 100644
 
# Copyright 1999-2012 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: This ebuild is from mva overlay; Bumped by mva; $
 

	
 
EAPI="5"
 

	
 
inherit cmake-utils eutils user
 

	
 
if [ "$PV" != "9999" ]; then
 
	SRC_URI="http://www.extatic.org/downloads/uhub/${P}-src.tar.bz2"
 
	KEYWORDS="~amd64 ~x86"
 
else
 
	inherit git-2
 
	SRC_URI=""
 
	EGIT_REPO_URI="git://github.com/janvidar/uhub.git https://github.com/janvidar/uhub.git"
 
	KEYWORDS=""
 
fi
 

	
 
DESCRIPTION="High performance peer-to-peer hub for the ADC network"
 
HOMEPAGE="https://uhub.org/"
 

	
 
LICENSE="GPL-3"
 
SLOT="0"
 
IUSE="debug +ssl systemd"
 

	
 
DEPEND="
 
	>=dev-util/cmake-2.8.3
 
	ssl? ( >=dev-libs/openssl-0.9.8 )
 
"
 
#	=dev-lang/perl-5*
 
RDEPEND="${DEPEND}"
 

	
 
UHUB_USER="${UHUB_USER:-uhub}"
 
UHUB_GROUP="${UHUB_GROUP:-uhub}"
 

	
 
src_configure() {
 
	mycmakeargs=(
 
		$(_use_me_now_inverted "" debug RELEASE)
 
		$(cmake-utils_use_use ssl)
 
		$(cmake-utils_use_use systemd)
 
	)
 
	cmake-utils_src_configure
 
}
 

	
 
src_install() {
 
	dodir /etc/uhub
 
	cmake-utils_src_install
 
	doman doc/*1
 
	dodoc doc/*txt
 
	insinto /etc/uhub
 
	doins doc/uhub.conf
 
	doins doc/users.conf
 
	insinto /etc/logrotate.d
 
	newins "${FILESDIR}/${PN}.logrotate" "${PN}"
 
	newconfd "${FILESDIR}/${PN}.confd" "${PN}"
 
	newinitd "${FILESDIR}/${PN}.initd" "${PN}"
 
}
 

	
 
pkg_postinst() {
 
	enewgroup "${UHUB_GROUP}"
 
	enewuser "${UHUB_USER}" -1 -1 "/var/lib/run/${PN}" "${UHUB_GROUP}"
 
}
0 comments (0 inline, 0 general)