diff options
-rw-r--r-- | net-p2p/uhub/ChangeLog | 5 | ||||
-rw-r--r-- | net-p2p/uhub/Manifest | 20 | ||||
-rw-r--r-- | net-p2p/uhub/files/uhub.confd | 15 | ||||
-rw-r--r-- | net-p2p/uhub/files/uhub.initd | 33 | ||||
-rw-r--r-- | net-p2p/uhub/files/uhub.logrotate | 7 | ||||
-rw-r--r-- | net-p2p/uhub/metadata.xml | 8 | ||||
-rw-r--r-- | net-p2p/uhub/uhub-9999.ebuild | 52 |
7 files changed, 140 insertions, 0 deletions
diff --git a/net-p2p/uhub/ChangeLog b/net-p2p/uhub/ChangeLog new file mode 100644 index 0000000..400fa7e --- /dev/null +++ b/net-p2p/uhub/ChangeLog @@ -0,0 +1,5 @@ +*uhub-9999 (23 Oct 2014) + + 23 Oct 2014; Francisco Blas Izquierdo Riera (klondike) +files/uhub.confd, + +files/uhub.initd, +files/uhub.logrotate, +metadata.xml, +uhub-9999.ebuild: + Add live ebuild for uhub diff --git a/net-p2p/uhub/Manifest b/net-p2p/uhub/Manifest new file mode 100644 index 0000000..cb35636 --- /dev/null +++ b/net-p2p/uhub/Manifest @@ -0,0 +1,20 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX uhub.confd 698 SHA256 16b3b34a493339ef6e7a9837565d1313cafeffb71c60111a91733f9ccdd84a88 SHA512 5dc8d2a6aca44d7f49f90cff3715fc7c71d69df9097a3ebf9d147e2f6a97fd194b93ecbfaa0518ac0b152d154b01d08e1e024bf69d0c7d2d66b1a89e96ee056f WHIRLPOOL c56ddacb4d5771606cf91c51b49e382a916ff9cd253159a6dd800b50befdd57c167ccd18d29b39ce109c05734b11c3795fb79803ac49f1c28f97ee2f6b4399cb +AUX uhub.initd 798 SHA256 2056464756377e1e203953d79a64bef0d3859b666c41edc5735a199426072206 SHA512 c703417cba3f1ebaeaef80dc1186d76e20e7a6c0e97548d15a7b3e8375cb4e81cdc33b6546ce557754ec9735b96ab644a6ac2629f7259ae53ad5c6a07ac2a743 WHIRLPOOL 58c6d8eb3e833a11431b5eb12503183556f6a00a1c67f7d0f10c6555ac3098a2c544376b558de361facf611aff0e944cc8c4f710b34a31e426cc3f452e437dae +AUX uhub.logrotate 111 SHA256 bfd3b216f89a20ddbfc1e8c38b0cbd85211b92611e14470f1bf955df530c2c28 SHA512 cfea1921518b71676b66ca0339bffb8ceaf7da680361a9489ee7cf25330eac0186a266a84734e79a33a05d587fa432e2fe573b12f59a68306830c28c35b83385 WHIRLPOOL 974ce1753a50cee6ccec6469c68c98f07bda64fee8fd3b70335cae2845b5351754d28a45e114221c81d9a0cba984b3ca38358d76b4f29dfa851af6a11d0119e4 +EBUILD uhub-9999.ebuild 1221 SHA256 558c0edede8624580e2c9f734651438390f0880bac3040ba3a894abed530b94a SHA512 126be199a79a2e165d084b01fd7f18301e96b2ca01aad3cbfceade436c3129daf9f4930a806d76e4d4f0e7a232e4afbec452097d0a8b41d040b70f6e0372bfc9 WHIRLPOOL f56dc935d2a8d7ab38cd645e9a4fc38cb5ef305e8477ec6368eb3e1872d186d53d33a07a3faccf798684cd29130249871217b36b9b2b24529d142d004b74d0ac +MISC ChangeLog 207 SHA256 3111b7bf051e9369dda985f708cb0b7956a8cd1a6c5668ec3aafea027cf13923 SHA512 e9871e916ee5a202674c8240ca8edcf899bb612cfa15e9b2b7ea82623fc7c5d4c8bdd62785a2a2d93fdcd1d95078aae82aa48883f83851e167d60e7916f3904a WHIRLPOOL 4272ae6cdacbcac45817c4d9e0adb21c5df4b7f8504363242421c0e716c20e94a6be832c7663f0e804bc131167b925f3c1c6d0512be46be3d03e47752336dc83 +MISC metadata.xml 251 SHA256 d3cfc8be6be78d585444c874f1a50dd2cdf0fb65e8e4defdad65acf21b1b2ce0 SHA512 0a85fe888ea9f2bb94aff3540958a673b849e4f1806ffcb9310d7df7f5aa5b30267315918531792637820815d82814a3adda72e8c9ceab3e47defe0d10eb191f WHIRLPOOL 9ad134667455ee081b762d981393f63005eacb4288c10a1ebfc3dc0eb32d8da0819e707a7b7077300d71dc02e2f989c7c9f8bb25cd81544118ea309979fd8b46 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQEcBAEBCAAGBQJUSUGDAAoJEKXBodJLEo5SemwH/0CKx/oeRKcRl07KLuYKUNvI +jZ+/gDiMx3YKcptWX/7yRJckMMDTzKtn5HYocUG6OeIn2pp6IIgh0Il89nLqvptE +1qAPT8Ns1PS4ozZZ/sYCBb4TiLAbAN+66Oi7LUUKX/isC1gKR1g65pRz3RB/8l1T +7WQFHxFcpDuVG4HLU4hrF3OZqACpT3wQLu6Sg91SZHIctlTDEdlbKkAN4QQ5naNZ ++do86dWeuYq5X1G8kei0ht5kaBBC2Lkni+8DFKymGpaTHOk9NZ2Wpykc6WI2EgEa +PqkjuvXdRBEM5c27A33Rkb000F58UnjDX7Uz7iQ6njW3Jb0wGJ681o+YbAwQf2U= +=cLfj +-----END PGP SIGNATURE----- diff --git a/net-p2p/uhub/files/uhub.confd b/net-p2p/uhub/files/uhub.confd new file mode 100644 index 0000000..1bad600 --- /dev/null +++ b/net-p2p/uhub/files/uhub.confd @@ -0,0 +1,15 @@ +UHUB_USER="${UHUB_USER:-uhub}" +UHUB_GROUP="${UHUB_GROUP:-uhub}" +UHUB_LOG="/var/log/uhub.log" +# 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 ${UHUB_LOG}" diff --git a/net-p2p/uhub/files/uhub.initd b/net-p2p/uhub/files/uhub.initd new file mode 100644 index 0000000..38ee6d5 --- /dev/null +++ b/net-p2p/uhub/files/uhub.initd @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2014 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="-p ${pidfile} ${UHUBOPTIONS}" +pidfile="/var/run/uhub.pid" + +depend() { + use dns logger netmount +} + +start_pre() { + touch "${UHUB_LOG}" + chown "${UHUB_USER}:${UHUB_GROUP}" "${UHUB_LOG}" +} + + +stop_post() { + rm -f ${pidfile} +} + +reload() { + ebegin "Reloading uHub configuration" + kill -HUP `cat ${pidfile}` &>/dev/null + eend $? "Failed to reload uHub" +} diff --git a/net-p2p/uhub/files/uhub.logrotate b/net-p2p/uhub/files/uhub.logrotate new file mode 100644 index 0000000..f8e6b6c --- /dev/null +++ b/net-p2p/uhub/files/uhub.logrotate @@ -0,0 +1,7 @@ +/var/log/uhub.log { + compress + size 10M + rotate 10 + missingok + notifempty +} diff --git a/net-p2p/uhub/metadata.xml b/net-p2p/uhub/metadata.xml new file mode 100644 index 0000000..1c9a64e --- /dev/null +++ b/net-p2p/uhub/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>klondike@gentoo.org</email> + <name>Francisco Blas Izquierdo Riera</name> + </maintainer> +</pkgmetadata> diff --git a/net-p2p/uhub/uhub-9999.ebuild b/net-p2p/uhub/uhub-9999.ebuild new file mode 100644 index 0000000..898577e --- /dev/null +++ b/net-p2p/uhub/uhub-9999.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +inherit git-2 cmake-utils eutils user + +DESCRIPTION="An high performance peer-to-peer hub for the ADC network" +HOMEPAGE="http://uhub.org/" +SRC_URI="" +EGIT_REPO_URI="git://github.com/janvidar/uhub" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug +ssl systemd" + +RDEPEND="ssl? ( >=dev-libs/openssl-0.9.8 )" +DEPEND="${RDEPEND} + >=dev-util/cmake-2.8.3" + +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 + fperms 0700 "/etc/uhub" + fowners ${UHUB_USER}:${UHUB_GROUP} "/etc/uhub" + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotate" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + newinitd "${FILESDIR}/${PN}.initd" "${PN}" +} + +pkg_setup() { + enewgroup "${UHUB_GROUP}" + enewuser "${UHUB_USER}" -1 -1 "/var/lib/run/${PN}" "${UHUB_GROUP}" +} |