diff options
Diffstat (limited to 'net-p2p/mimicmod')
-rw-r--r-- | net-p2p/mimicmod/ChangeLog | 11 | ||||
-rw-r--r-- | net-p2p/mimicmod/Manifest | 6 | ||||
-rw-r--r-- | net-p2p/mimicmod/files/mimicmod.confd | 15 | ||||
-rw-r--r-- | net-p2p/mimicmod/files/mimicmod.initd | 33 | ||||
-rw-r--r-- | net-p2p/mimicmod/files/mimicmod.logrotate | 7 | ||||
-rw-r--r-- | net-p2p/mimicmod/metadata.xml | 8 | ||||
-rw-r--r-- | net-p2p/mimicmod/mimicmod-9999.ebuild | 56 |
7 files changed, 136 insertions, 0 deletions
diff --git a/net-p2p/mimicmod/ChangeLog b/net-p2p/mimicmod/ChangeLog new file mode 100644 index 0000000..f1b85cb --- /dev/null +++ b/net-p2p/mimicmod/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-p2p/mimicmod +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*mimicmod-9999 (29 Mar 2014) + + 29 Mar 2014; Francisco Blas Izquierdo Riera (klondike) +mimicmod-9999.ebuild, + +files/mimicmod.confd, +files/mimicmod.initd, +files/mimicmod.logrotate, + +metadata.xml: + Add an ebuild for mimicmod + diff --git a/net-p2p/mimicmod/Manifest b/net-p2p/mimicmod/Manifest new file mode 100644 index 0000000..c4736d7 --- /dev/null +++ b/net-p2p/mimicmod/Manifest @@ -0,0 +1,6 @@ +AUX mimicmod.confd 698 SHA256 16b3b34a493339ef6e7a9837565d1313cafeffb71c60111a91733f9ccdd84a88 SHA512 5dc8d2a6aca44d7f49f90cff3715fc7c71d69df9097a3ebf9d147e2f6a97fd194b93ecbfaa0518ac0b152d154b01d08e1e024bf69d0c7d2d66b1a89e96ee056f WHIRLPOOL c56ddacb4d5771606cf91c51b49e382a916ff9cd253159a6dd800b50befdd57c167ccd18d29b39ce109c05734b11c3795fb79803ac49f1c28f97ee2f6b4399cb +AUX mimicmod.initd 781 SHA256 2719f21a33d5efc9d2854a176717a2ca8a19f045303126709b9205aba4e37ffd SHA512 e9b2ac9d2f28759542cca06903efb17e57e85390085c43f7b47c7db92ca3ce8af38626a011c1b0e4018d5be249bcbffec192d79e9dc88822becfa062c0e18663 WHIRLPOOL d99dc3c9be171a5a957533edc0941f9ee04936d1cc41f05e05f39fc7b9e527fdb0b643183416426d126f368be4c9beb28af9d32beeed69d0fd4f257045230be8 +AUX mimicmod.logrotate 111 SHA256 bfd3b216f89a20ddbfc1e8c38b0cbd85211b92611e14470f1bf955df530c2c28 SHA512 cfea1921518b71676b66ca0339bffb8ceaf7da680361a9489ee7cf25330eac0186a266a84734e79a33a05d587fa432e2fe573b12f59a68306830c28c35b83385 WHIRLPOOL 974ce1753a50cee6ccec6469c68c98f07bda64fee8fd3b70335cae2845b5351754d28a45e114221c81d9a0cba984b3ca38358d76b4f29dfa851af6a11d0119e4 +EBUILD mimicmod-9999.ebuild 1315 SHA256 15d322b2af5f456d326937bc59b595bcbb3b7bc4e0a787c94425f1dddd432819 SHA512 392b88c7b53ff33138c74857c173c51f05bdb12fe8d9d68690481eaf4fb8ca0375c2cb37bdecfedea287160a2bf5a2088720de08810b0ebcd61ad4b04764d3fe WHIRLPOOL 7e787b30dbb6b361de2b27bc3dd34ab44ceb795446545c149d795f2f4bb78f5c2daf535bb5019c0df05886b5fda09fa4615fcc6df400ae780a2327b8af474df6 +MISC ChangeLog 349 SHA256 73cabdab65ea61ca941bc9c95bf51240bfb46de2d106e771d93ebe6980c39bb6 SHA512 8e8326d760ab847daced573376a2c7ed7082c421071eaed266b0b8260b190a61a1049c280a8d0e57fd7fee278bc7ae88c23b60dfc4a9f8db560ac4fba9278424 WHIRLPOOL 47255b4692db358cd760ae454f3c6db1fa9d2dd6697e249fbc2c2312c1a6d926e7ae3580610941740ccae42ee62a1579083a6001aacedf3961b1a9a27714b6a3 +MISC metadata.xml 251 SHA256 d3cfc8be6be78d585444c874f1a50dd2cdf0fb65e8e4defdad65acf21b1b2ce0 SHA512 0a85fe888ea9f2bb94aff3540958a673b849e4f1806ffcb9310d7df7f5aa5b30267315918531792637820815d82814a3adda72e8c9ceab3e47defe0d10eb191f WHIRLPOOL 9ad134667455ee081b762d981393f63005eacb4288c10a1ebfc3dc0eb32d8da0819e707a7b7077300d71dc02e2f989c7c9f8bb25cd81544118ea309979fd8b46 diff --git a/net-p2p/mimicmod/files/mimicmod.confd b/net-p2p/mimicmod/files/mimicmod.confd new file mode 100644 index 0000000..1bad600 --- /dev/null +++ b/net-p2p/mimicmod/files/mimicmod.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/mimicmod/files/mimicmod.initd b/net-p2p/mimicmod/files/mimicmod.initd new file mode 100644 index 0000000..00ca2c8 --- /dev/null +++ b/net-p2p/mimicmod/files/mimicmod.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="${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 ${pidfile} +} + +reload() { + ebegin "Reloading uHub configuration" + kill -HUP `cat ${pidfile}` &>/dev/null + eend $? "Failed to reload uHub" +} diff --git a/net-p2p/mimicmod/files/mimicmod.logrotate b/net-p2p/mimicmod/files/mimicmod.logrotate new file mode 100644 index 0000000..f8e6b6c --- /dev/null +++ b/net-p2p/mimicmod/files/mimicmod.logrotate @@ -0,0 +1,7 @@ +/var/log/uhub.log { + compress + size 10M + rotate 10 + missingok + notifempty +} diff --git a/net-p2p/mimicmod/metadata.xml b/net-p2p/mimicmod/metadata.xml new file mode 100644 index 0000000..1c9a64e --- /dev/null +++ b/net-p2p/mimicmod/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/mimicmod/mimicmod-9999.ebuild b/net-p2p/mimicmod/mimicmod-9999.ebuild new file mode 100644 index 0000000..2f1e35b --- /dev/null +++ b/net-p2p/mimicmod/mimicmod-9999.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +inherit git-2 cmake-utils eutils user + +DESCRIPTION="Mod of an high performance peer-to-peer hub for the ADC network" +HOMEPAGE="http://uhub.mimic.cz/" +SRC_URI="" +EGIT_REPO_URI="git clone git://github.com/mimicmod/uhub" +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~x86" +IUSE="debug +ssl systemd" + +S="${WORKDIR}/uhub" + +RDEPEND="ssl? ( >=dev-libs/openssl-0.9.8 ) + !net-p2p/uhub" +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}" +} |