diff options
author | Konstantin V. Arkhipov <voxus@gentoo.org> | 2006-01-15 16:34:23 +0000 |
---|---|---|
committer | Konstantin V. Arkhipov <voxus@gentoo.org> | 2006-01-15 16:34:23 +0000 |
commit | 8d6143949b209c4a3700693553073ace6dd292ba (patch) | |
tree | 1511c34bcd2f170abcb715b2ee10428945b4c5d9 /app-misc/dnetc | |
parent | * date typo fixed (diff) | |
download | historical-8d6143949b209c4a3700693553073ace6dd292ba.tar.gz historical-8d6143949b209c4a3700693553073ace6dd292ba.tar.bz2 historical-8d6143949b209c4a3700693553073ace6dd292ba.zip |
bug #117935
Package-Manager: portage-2.1_pre3-r1
Diffstat (limited to 'app-misc/dnetc')
-rw-r--r-- | app-misc/dnetc/ChangeLog | 9 | ||||
-rw-r--r-- | app-misc/dnetc/Manifest | 5 | ||||
-rw-r--r-- | app-misc/dnetc/dnetc-2.9011.497.ebuild | 73 | ||||
-rw-r--r-- | app-misc/dnetc/files/digest-dnetc-2.9011.497 | 1 | ||||
-rw-r--r-- | app-misc/dnetc/files/dnetc.init-r2 | 40 |
5 files changed, 126 insertions, 2 deletions
diff --git a/app-misc/dnetc/ChangeLog b/app-misc/dnetc/ChangeLog index bff0dadba4b4..55529df2edc3 100644 --- a/app-misc/dnetc/ChangeLog +++ b/app-misc/dnetc/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-misc/dnetc # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v 1.34 2006/01/03 22:53:48 voxus Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v 1.35 2006/01/15 16:34:23 voxus Exp $ + +*dnetc-2.9011.497 (15 Jan 2006) + + 15 Jan 2006; Konstantin Arkhipov <voxus@gentoo.org> +files/dnetc.init-r2, + +dnetc-2.9011.497.ebuild: + Bump to prerelease client, several bugs mentioned in bug #117935 fixed. + Ebuild provided by Michael Hordijk <hoffbrinkle@hotmail.com>. *dnetc-2.9011.496-r1 (04 Jan 2006) diff --git a/app-misc/dnetc/Manifest b/app-misc/dnetc/Manifest index 0fb60d958dbe..7c142d3ef654 100644 --- a/app-misc/dnetc/Manifest +++ b/app-misc/dnetc/Manifest @@ -1,4 +1,4 @@ -MD5 7485000949e27cf66effd77ed17b6615 ChangeLog 4928 +MD5 16adbc67f62f997f2536b21cea337b4b ChangeLog 5204 MD5 d8b1b2c172a5c975cc706ddf3200544c dnetc-2.9001.478.ebuild 1390 MD5 4fa3dd1fb6994eb53356896cc5cbd7be dnetc-2.9002.479.ebuild 1386 MD5 41ff63d1775394dc14ef29cc80794785 dnetc-2.9003.481-r1.ebuild 2037 @@ -7,6 +7,7 @@ MD5 c14d79f055b7884e91ebebd251c40526 dnetc-2.9008.490.ebuild 1732 MD5 0172a621a8ae32df97a5da8957cb7a44 dnetc-2.9009.494.ebuild 1877 MD5 505ec5f12dc493651d6bf2744633c262 dnetc-2.9011.496-r1.ebuild 2168 MD5 d69e033d17ff48dbe483bb577e891552 dnetc-2.9011.496.ebuild 1880 +MD5 f9ed79c2e1f193e8ab486720c7a77198 dnetc-2.9011.497.ebuild 2034 MD5 043cbafd6324fd3848f2763c32e6da51 files/digest-dnetc-2.9001.478 77 MD5 a0b9b9b76588f355da0a87fc76aba6db files/digest-dnetc-2.9002.479 73 MD5 3c0a7355f235e3df772e08c29a7cff7b files/digest-dnetc-2.9003.481-r1 370 @@ -15,7 +16,9 @@ MD5 de79a9083edb7a4acdbaadf8c6f55622 files/digest-dnetc-2.9008.490 223 MD5 c1483bfbcdb311310a4497c13ffb3d1a files/digest-dnetc-2.9009.494 157 MD5 1ab1d2e552a641b2f3f542d8f381adef files/digest-dnetc-2.9011.496 157 MD5 99ea87493e77ed73f2f5aebefc99dd2a files/digest-dnetc-2.9011.496-r1 157 +MD5 c289301c87a41246582194ce10cda621 files/digest-dnetc-2.9011.497 81 MD5 b6444acd5a6c235ffe17bb3b528f4bc4 files/dnetc.conf 54 MD5 d91f255c5d2573f5487c9638177208b7 files/dnetc.init 811 MD5 0326a133e12a6ecce8ae27a3a2b5ae30 files/dnetc.init-r1 939 +MD5 57ffc3b63f84b069d23fa7c2592de4ce files/dnetc.init-r2 907 MD5 37236013e0d26d43c6bff35a8a48e8ec metadata.xml 220 diff --git a/app-misc/dnetc/dnetc-2.9011.497.ebuild b/app-misc/dnetc/dnetc-2.9011.497.ebuild new file mode 100644 index 000000000000..958cf8a80b0c --- /dev/null +++ b/app-misc/dnetc/dnetc-2.9011.497.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/dnetc-2.9011.497.ebuild,v 1.1 2006/01/15 16:34:23 voxus Exp $ + +inherit eutils versionator + +MAJ_PV="$(get_major_version).$(get_version_component_range 2)" +MIN_PV="$(get_version_component_range 3)" + +DESCRIPTION="distributed.net client" +HOMEPAGE="http://www.distributed.net" +SRC_URI="x86? (http://http.distributed.net/pub/dcti/prerelease/rc/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz)" +LICENSE="distributed.net" +SLOT="0" +KEYWORDS="~x86 -*" +RESTRICT="nomirror" +IUSE="" +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/dnetc${MIN_PV}-linux-x86-elf-uclibc" + +pkg_preinst() { + if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then + ebegin "Flushing old buffers" + source /etc/conf.d/dnetc + + if [ -e /opt/distributed.net/dnetc.ini ]; then + # use ini file + /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush + elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then + # email adress from config + /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL} + fi + + eend ${?} + fi +} + +src_install() { + newinitd ${FILESDIR}/dnetc.init-r2 dnetc + newconfd ${FILESDIR}/dnetc.conf dnetc + + enewgroup dnetc + enewuser dnetc -1 -1 /opt/distributed.net dnetc + + local ownopts="--mode=0555 --group=dnetc --owner=dnetc" + + diropts ${ownopts} + dodir /opt/distributed.net + + exeopts ${ownopts} + exeinto /opt/distributed.net + doexe dnetc + + doman dnetc.1 + dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.* +} + +pkg_postinst() { + einfo "To run distributed.net client in the background at boot:" + einfo " rc-update add dnetc default" + einfo + einfo "Either configure your email address in /etc/conf.d/dnetc" + einfo "or create the configuration file /opt/distributed.net/dnetc.ini" +} + +pkg_postrm() { + if [ -d /opt/distributed.net ]; then + einfo "All files has not been removed from /opt/distributed.net" + einfo "Probably old init file and/or buffer files" + fi +} diff --git a/app-misc/dnetc/files/digest-dnetc-2.9011.497 b/app-misc/dnetc/files/digest-dnetc-2.9011.497 new file mode 100644 index 000000000000..f0bd176468d5 --- /dev/null +++ b/app-misc/dnetc/files/digest-dnetc-2.9011.497 @@ -0,0 +1 @@ +MD5 8b842fbfd4c354e23b8dc6db665b3733 dnetc497-linux-x86-elf-uclibc.tar.gz 259062 diff --git a/app-misc/dnetc/files/dnetc.init-r2 b/app-misc/dnetc/files/dnetc.init-r2 new file mode 100644 index 000000000000..c8589b7865d2 --- /dev/null +++ b/app-misc/dnetc/files/dnetc.init-r2 @@ -0,0 +1,40 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/files/dnetc.init-r2,v 1.1 2006/01/15 16:34:23 voxus Exp $ + +depend() { + use net +} + +start() { + ebegin "Starting distributed.net client" + + DNETPATH="/opt/distributed.net" + + STARTOPTS="--start --chuid dnetc:dnetc --quiet \ + --exec /opt/distributed.net/dnetc" + + if [ -e ${DNETPATH}/dnetc.ini ]; then + # use ini file + start-stop-daemon ${STARTOPTS} -- \ + -quiet + + elif [ ! -e ${DNETPATH}/dnetc.ini ] && [ ! -z ${EMAIL} ]; then + # email adress from config + start-stop-daemon ${STARTOPTS} -- \ + -quiet -e ${EMAIL} + + else + exit 1 + fi + eend ${?} +} + +stop() { + # sends SIGTERM to all running clients. + ebegin "Stopping distributed.net client" + start-stop-daemon --stop --quiet \ + --exec /opt/distributed.net/dnetc -- + eend ${?} +} |