summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2008-02-02 14:01:55 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2008-02-02 14:01:55 +0000
commit66dab73a09f8e764fa095528b722f631cf01e985 (patch)
tree10ef941787ebc07040d878ab16c3b54e57243793 /app-misc
parentunused versions. (diff)
downloadhistorical-66dab73a09f8e764fa095528b722f631cf01e985.tar.gz
historical-66dab73a09f8e764fa095528b722f631cf01e985.tar.bz2
historical-66dab73a09f8e764fa095528b722f631cf01e985.zip
Version bump with a modified ebuild from Michael Hordijk <hoffbrinkle@hotmail.com> and edited by me. Closing bug #177091.
Package-Manager: portage-2.1.4.1
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/dnetc/ChangeLog11
-rw-r--r--app-misc/dnetc/Manifest5
-rw-r--r--app-misc/dnetc/dnetc-2.9013.498.ebuild91
-rw-r--r--app-misc/dnetc/files/dnetc.confd18
-rw-r--r--app-misc/dnetc/files/dnetc.initd84
5 files changed, 206 insertions, 3 deletions
diff --git a/app-misc/dnetc/ChangeLog b/app-misc/dnetc/ChangeLog
index e0e966de4245..fb989180a4d8 100644
--- a/app-misc/dnetc/ChangeLog
+++ b/app-misc/dnetc/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-misc/dnetc
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v 1.46 2007/08/23 17:59:25 wolf31o2 Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v 1.47 2008/02/02 14:01:54 wolf31o2 Exp $
+
+*dnetc-2.9013.498 (02 Feb 2008)
+
+ 02 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org> +files/dnetc.confd,
+ +files/dnetc.initd, +dnetc-2.9013.498.ebuild:
+ Version bump with a modified ebuild from Michael Hordijk
+ <hoffbrinkle@hotmail.com> and edited by me. Closing bug #177091.
23 Aug 2007; Chris Gianelloni <wolf31o2@gentoo.org>
dnetc-2.9001.478.ebuild, dnetc-2.9002.479.ebuild,
diff --git a/app-misc/dnetc/Manifest b/app-misc/dnetc/Manifest
index 234b5ed52c57..7fb1afece32a 100644
--- a/app-misc/dnetc/Manifest
+++ b/app-misc/dnetc/Manifest
@@ -1,7 +1,9 @@
AUX dnetc.conf 54 RMD160 45dc163b6783f76d2e79472d4c2d373ae99f2f79 SHA1 605856ebe6c81111a47d827d9e9da126f328c083 SHA256 42e967f2ed87dbae914c7f6211f3bbf5062fc7c4aea5ea71829c59070dc13a8f
+AUX dnetc.confd 403 RMD160 6a39ce966635937b9b4a25e2e39149e918dce246 SHA1 d1f9bce5a3b18fb3e326c265405d3edd812a5062 SHA256 4ed7f825ca76270969f6dd0ef856caeaca2b9acd3f2f48614b9195d104483d80
AUX dnetc.init 811 RMD160 42e0f826b4d7d377a74aece12f0b864b3b9d358b SHA1 0f32629515a6e6bc965893d5869fb20e0f35e0ed SHA256 69376c3ab2cbdc50a64a48df372d69b789227f9d1c0dc7191f5646906c3f7d3d
AUX dnetc.init-r1 939 RMD160 e315bc60224597a643ac5b9dc0b0acedc6c0c252 SHA1 9685a8d2be82cba90079945e69514e804b098558 SHA256 2dbaa3a082a5be77bfce9491281714098b2cbd00ab1bd0bee1a7537d725555d5
AUX dnetc.init-r2 907 RMD160 0d5c49ba9c0c282de4db271e06ca8f97e9df79ca SHA1 3c3c160f5e037ec9eac24cb041b6f54f3c1f476f SHA256 91e442d5533ecbbda2270cfee11ee532c7c93dc2bd29e56e54ce399bf89bd555
+AUX dnetc.initd 1994 RMD160 1c82bb797c3f54c58777f243dad77b5ce2a11642 SHA1 a03c8d4187e5b72c0f56d275abebd46984b49a6b SHA256 c00370e7fc6974bff2a4278747379badf3f6b069c336d7da21c01fce5939898e
DIST dnetc478b-ps2linux-mipsel.tar.gz 221372 RMD160 9ebb47aa92cbb0daaddfb090728169d862d93f3f SHA1 8f918365e5431b4a44e708f114ae5f947bf5bb91 SHA256 a3a2233ae52e987350b4b093b02a60c30b8a13fe8a417c39875ebb8d84f8be89
DIST dnetc479-linux-hppa32.tar.gz 231987 RMD160 80c3ea8879933bc698ba4f30c2ed352f32b044bd SHA1 5d12bfea785bbe97a3f4349b03a317238b6009b2 SHA256 1406fcdf51d3730cfb0e568bfeb3fc0c62d65857b14bfe59e91a68ae497328b0
DIST dnetc481-linux-alpha5-static.tar.gz 442183 RMD160 f0b1db3395b710b6fa783bf4f886b1983aa3ac0f SHA1 c9dcf2c8ca7ef1b3e9f893b67f1b6ec1b65ffe16 SHA256 578b9512d3b35f897cac88d1a249d2712dc4ca20a0106e344e856764a09599d9
@@ -17,5 +19,6 @@ EBUILD dnetc-2.9002.479.ebuild 1344 RMD160 56872e3391e282e7466c350ca2f4eadbad196
EBUILD dnetc-2.9003.481-r1.ebuild 1995 RMD160 13bd4ad006e7476ce9ea8b2feb99e75f3fe038d0 SHA1 3109d6e9adf1369663bbe4971b5e2714389226e2 SHA256 9d2407646375eff9c321048bfac73cab28f6302d13ca3b1b126e78fb2763ac06
EBUILD dnetc-2.9011.496-r1.ebuild 2122 RMD160 7d52792025dc0f0410a688dfbc0c7be8d656ae79 SHA1 29008c89cb64c13c573bbb21832b6bc14eb24a07 SHA256 ef8e6518a7953fe19097c3ca822dab1447235bc3bdff50f65dd8160f98aad7f4
EBUILD dnetc-2.9011.498.ebuild 2042 RMD160 214c7fbfa8f4d54a0345a12460d5efd787aff057 SHA1 96382c0d4f7298962287000ec2067ddd76c156af SHA256 fdd253df514ee633a0a69eb6bd76567ea11df40d226e9656e74bfb9a1f791c3f
-MISC ChangeLog 7781 RMD160 4b37c3747be478629c326c8edab11b7b80a3abdc SHA1 cbdfb56347d77223f2423dc740476a3777d3bf44 SHA256 0cfcb4f4e0f5407fd4fd96e270e52bddd122178294ad812a48d806c0d5a1bf46
+EBUILD dnetc-2.9013.498.ebuild 2382 RMD160 3f298d9840aac0557254315394d4d4fdec9c59a0 SHA1 e52929c36a3efc16be7300112adbb423b0221d73 SHA256 22a0f5c83c9a159c71a0582b8d9d23e119103f51e0d8def5c71ded2e37622be9
+MISC ChangeLog 8063 RMD160 304ad466dd96168107b5d9624f0d77197461ac1f SHA1 54e4055320e3344ac482cdd5467d41214ab349aa SHA256 baa600f30e43ab5b8e99eb49397f81e62c0214a2c3bbe0b2d285a418b2f21dfd
MISC metadata.xml 359 RMD160 bc4861df751dfe6fbef883c48f15b90cd73c2342 SHA1 21a8f0b68d172f899a599abeb6363e6f0e558c31 SHA256 1b4c1a5a30cc7c41b134f8ebaea982aedbeb049cb020fc0e47eb404e7db6300f
diff --git a/app-misc/dnetc/dnetc-2.9013.498.ebuild b/app-misc/dnetc/dnetc-2.9013.498.ebuild
new file mode 100644
index 000000000000..6ba2d859c7b1
--- /dev/null
+++ b/app-misc/dnetc/dnetc-2.9013.498.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/dnetc-2.9013.498.ebuild,v 1.1 2008/02/02 14:01:54 wolf31o2 Exp $
+
+inherit eutils versionator linux-info
+
+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/v2.9013/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_setup() {
+ local CONFIG_CHECK="~SYSVIPC"
+ local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for dnetc)"
+ check_extra_config
+ echo
+}
+
+pkg_preinst() {
+ enewgroup dnetc
+ enewuser dnetc -1 -1 /opt/distributed.net dnetc
+ if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
+ ebegin "Flushing old buffers"
+ source /etc/conf.d/dnetc
+
+ if [ -e /etc/init.d/dnetc ] ; then
+ /etc/init.d/dnetc flush
+ local flushed=${?}
+ fi
+
+ if [ ${flushed} -eq 0 ] ; then
+ true
+ elif [ -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.initd dnetc
+ newconfd ${FILESDIR}/dnetc.confd 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.*
+
+ diropts ${ownopts/0555/0755}
+ dodir /var/spool/dnetc
+}
+
+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/dnetc.confd b/app-misc/dnetc/files/dnetc.confd
new file mode 100644
index 000000000000..f6f0da6b7e2d
--- /dev/null
+++ b/app-misc/dnetc/files/dnetc.confd
@@ -0,0 +1,18 @@
+# configuration file for dnetc
+
+# Startup will look for configuration files in the following places, using the
+# first one that it finds:
+# 1. /etc/dnetc.conf
+# 2. /opt/distributed.net/dnetc.ini
+
+# Values specified here will override those found in any client configuration
+# file.
+
+# email adress
+EMAIL=
+
+# buffer base dir
+BUFFER_BASE_DIR=/var/spool/dnetc
+
+# keyserver address
+KEYSERVER_ADDRESS=
diff --git a/app-misc/dnetc/files/dnetc.initd b/app-misc/dnetc/files/dnetc.initd
new file mode 100644
index 000000000000..d3613acf3898
--- /dev/null
+++ b/app-misc/dnetc/files/dnetc.initd
@@ -0,0 +1,84 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/files/dnetc.initd,v 1.1 2008/02/02 14:01:55 wolf31o2 Exp $
+
+opts="${opts} reload fetch flush"
+
+depend() {
+ use net
+}
+
+processOpts() {
+ local retVal=1
+
+ DNETPATH="/opt/distributed.net"
+ DNETBIN="${DNETPATH}/dnetc"
+
+ STARTOPTS="--start --chuid dnetc:dnetc --quiet \
+ --exec ${DNETBIN}"
+
+ DNETOPTS="-quiet"
+
+ if [ -e /etc/conf.d/dnetc ] ; then
+ retVal=0
+ DNETOPTS="${DNETOPTS} -ini /etc/conf.d/dnetc"
+ elif [ -e ${DNETPATH}/dnetc.ini ]; then
+ retVal=0
+ DNETOPTS="${DNETOPTS} -ini ${DNETPATH}/dnetc.ini"
+ elif [ ! -z ${EMAIL} ]; then
+ retVal=0
+ fi
+
+ # override ini settings with values in /etc/conf.d/dnetc
+
+ DNETOPTS="${DNETOPTS} ${EMAIL:+-e ${EMAIL}}"
+ if [ ! -z ${BUFFER_BASE_DIR} ] ; then
+ local buff_in="${BUFFER_BASE_DIR:+${BUFFER_BASE_DIR}/}buff-in"
+ local buff_out="${BUFFER_BASE_DIR:+${BUFFER_BASE_DIR}/}buff-out"
+ DNETOPTS="${DNETOPTS} -inbase ${buff_in}"
+ DNETOPTS="${DNETOPTS} -outbase ${buff_out}"
+ fi
+ DNETOPTS="${DNETOPTS} ${KEYSERVER_ADDRESS:+-a ${KEYSERVER_ADDRESS}}"
+
+ if [ ${retVal} -ne 0 ] ; then
+ eerror "Need some sort of configuration. Check /etc/conf.d/dnetc."
+ fi
+
+ return ${retVal}
+}
+
+start() {
+ processOpts || return 1
+ ebegin "Starting distributed.net client"
+ start-stop-daemon ${STARTOPTS} -- ${DNETOPTS}
+ eend ${?}
+}
+
+stop() {
+ processOpts || return 1
+ ebegin "Stopping distributed.net client"
+ start-stop-daemon --stop --quiet --exec ${DNETBIN} --
+ eend ${?}
+}
+
+reload() {
+ processOpts || return 1
+ ebegin "Reloading distributed.net client"
+ start-stop-daemon --stop --quiet --signal HUP --exec ${DNETBIN}
+ eend ${?}
+}
+
+fetch() {
+ processOpts || return 1
+ ebegin "Fetching distributed.net client buffers"
+ ${DNETBIN} ${DNETOPTS} -fetch
+ eend ${?}
+}
+
+flush() {
+ processOpts || return 1
+ ebegin "Flushing distributed.net client buffers"
+ ${DNETBIN} ${DNETOPTS} -flush
+ eend ${?}
+}