From 446f997c23defe312ab8e5b386dcef06e01a29f1 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Sun, 15 Sep 2019 01:28:34 +0200 Subject: app-misc/dnetc: Remove last-rited package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/405521 Closes: https://bugs.gentoo.org/691946 Bug: https://bugs.gentoo.org/630808 Closes: https://bugs.gentoo.org/691252 Signed-off-by: Andreas K. Hüttel --- app-misc/dnetc/Manifest | 6 -- app-misc/dnetc/dnetc-2.9108.517.ebuild | 93 ------------------------------ app-misc/dnetc/dnetc-2.9112.521.ebuild | 100 --------------------------------- app-misc/dnetc/files/dnetc.confd | 18 ------ app-misc/dnetc/files/dnetc.initd | 88 ----------------------------- app-misc/dnetc/metadata.xml | 11 ---- 6 files changed, 316 deletions(-) delete mode 100644 app-misc/dnetc/Manifest delete mode 100644 app-misc/dnetc/dnetc-2.9108.517.ebuild delete mode 100644 app-misc/dnetc/dnetc-2.9112.521.ebuild delete mode 100644 app-misc/dnetc/files/dnetc.confd delete mode 100644 app-misc/dnetc/files/dnetc.initd delete mode 100644 app-misc/dnetc/metadata.xml diff --git a/app-misc/dnetc/Manifest b/app-misc/dnetc/Manifest deleted file mode 100644 index b10df7224060..000000000000 --- a/app-misc/dnetc/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -DIST dnetc517-linux-amd64.tar.gz 645416 BLAKE2B a6181c82e7bdb8995930b3c93c88dd588f707ea6429e4f7f27961928129423be571f0c63e7aa5d5d9a8e5e3687a8bd54e6dc6835f5317273aa3f99ee863e8320 SHA512 b22b59af2352a95156ea4b584f48d82e4b64080130d922bbb1797b2c62f7c401ec1263f2f0bd57103134f8fc76ef41a7e09d7da083ef0b46c44be4239005c21b -DIST dnetc517-linux-x86-elf-uclibc.tar.gz 676398 BLAKE2B 9edfa3f11b837841b362dd81bdd9a39882b6bd45942f11f6c8ebde4966351a0ea4c003eb27a36c2fe187034571d48a5d851d5931dc6121196f2097a22f9a1c30 SHA512 7b56fa8c6819fd7060612c13c8fb17ca1e949abbca965b7599bb072751acd1d0e95f1a90fb67172c6d406b54e0c52549582489802e538670bdb6d12f8354e2a7 -DIST dnetc521-linux-amd64.tar.gz 679350 BLAKE2B 401b83a893111a4b2d07ace93fc642b30ccd41a0273672e496b91d998ce6d38faa08a7ec13ca172d20bf785d010249b87c562b706783c6d3fe3610ef02b214ed SHA512 c5c4d6da4fd1cb6a648553718e708c8d14023d1824298f8070cdc887cbf9559e77c10908d8d9929bc0b48e2215a02c3376c4cf767ad807816abf3eba96650b1d -DIST dnetc521-linux-arm64.tar.gz 629291 BLAKE2B 12554db6c175b828e9e74864955db7e6f54b21408edc6b32a669d52d17465ed45d7985486855a330b295778656579582f208c0e5ecc34f6a2ea195c2ab1fab68 SHA512 cc9c8b76b9d3ada1ed586132c3cc340d2ada55a28d151fb62013aac44dbf13b764dd80498bce1db36536df366497cdc2aa55e761d92cfdd050b701a23336ad80 -DIST dnetc521-linux-ppc-uclibc.tar.gz 718697 BLAKE2B 15f8438531b8074c8a56b86500c55b95eb33c62e4271023bab98601fadd3bc3d2afd1ae8562cadf8d724943515032c97a78084ddd12ef30c388456333ec60893 SHA512 31ad8999d262f0820275773f3387b0a9531ffaab662fa557cad504ed48d7e764d43ae198559b44ef9fe00a0a417e1780b327d2f1c4b7951ff760eb54393742e4 -DIST dnetc521-linux-x86-elf-uclibc.tar.gz 744639 BLAKE2B 71a317c724b91f17c1e67da63d5da2e04479572c6e8c9e9df16c9a0cf5f1d56622a7d20bd791f46b7baa3147fd18c60c312b16cc311bad2e609945620a843f16 SHA512 9178b0d42989302b82d8c62f978e819f5b30bd6acff60501e947038e655096bed3e3382015b50d53f0f3fa819be22ffbba21419a5175a01dbc449030387629fc diff --git a/app-misc/dnetc/dnetc-2.9108.517.ebuild b/app-misc/dnetc/dnetc-2.9108.517.ebuild deleted file mode 100644 index b8ef427428da..000000000000 --- a/app-misc/dnetc/dnetc-2.9108.517.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=2 -inherit user - -MAJ_PV=${PV:0:6} -MIN_PV=${PV:7:9} - -DESCRIPTION="distributed.net client" -HOMEPAGE="http://www.distributed.net" -SRC_URI_x86="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )" -SRC_URI_amd64="amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64.tar.gz )" -#SRC_URI_ppc="ppc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-ppc-uclibc.tar.gz )" -#SRC_URI_sparc="sparc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-sparc-v7.tar.gz )" -SRC_URI="${SRC_URI_amd64} ${SRC_URI_ppc} ${SRC_URI_x86} ${SRC_URI_sparc}" - -LICENSE="distributed.net GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" # ppc not available for this version -IUSE="" -RESTRICT="mirror" - -DEPEND="" -RDEPEND="net-dns/bind-tools" - -QA_PRESTRIPPED="opt/distributed.net/dnetc" - -S=${WORKDIR}/dnetc - -src_prepare() { - binname="" - if use amd64; then - binname=dnetc${MIN_PV}-linux-amd64 - elif use x86; then - binname=dnetc${MIN_PV}-linux-x86-elf-uclibc - elif use ppc; then - binname=dnetc${MIN_PV}-linux-ppc-elf-uclibc - fi - [[ -z "${binname}" ]] && die "Name of dnetc binary for this platform undefined" - mv "${binname}" dnetc || die "$binname binary is missing" -} - -src_install() { - exeinto /opt/distributed.net - doexe dnetc - - doman dnetc.1 - dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.* - - newinitd "${FILESDIR}"/dnetc.initd dnetc - newconfd "${FILESDIR}"/dnetc.confd dnetc - - keepdir /var/spool/dnetc -} - -pkg_preinst() { - if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then - einfo "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 - - einfo "removing old buffer files" - rm -f /opt/distributed.net/buff* - fi - - enewgroup dnetc - enewuser dnetc -1 -1 /opt/distributed.net dnetc -} - -pkg_postinst() { - chown -Rf dnetc:dnetc /opt/distributed.net - chmod 0555 /opt/distributed.net/dnetc - - elog "To run distributed.net client in the background at boot:" - elog " rc-update add dnetc default" - elog "" - elog "Either configure your email address in /etc/conf.d/dnetc" - elog "or create the configuration file /opt/distributed.net/dnetc.ini" -} - -pkg_postrm() { - if [ -d /opt/distributed.net ]; then - elog "All files has not been removed from /opt/distributed.net" - fi -} diff --git a/app-misc/dnetc/dnetc-2.9112.521.ebuild b/app-misc/dnetc/dnetc-2.9112.521.ebuild deleted file mode 100644 index 662d75cd8f54..000000000000 --- a/app-misc/dnetc/dnetc-2.9112.521.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit user - -MAJ_PV=${PV:0:6} -MIN_PV=${PV:7:9} - -DESCRIPTION="distributed.net client" -HOMEPAGE="http://www.distributed.net" -SRC_URI_BASE="http://http.distributed.net/pub/dcti/v${MAJ_PV}" -SRC_URI_x86="x86? ( ${SRC_URI_BASE}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )" -SRC_URI_arm64="arm64? ( ${SRC_URI_BASE}/dnetc${MIN_PV}-linux-arm64.tar.gz )" -SRC_URI_amd64="amd64? ( ${SRC_URI_BASE}/dnetc${MIN_PV}-linux-amd64.tar.gz )" -SRC_URI_ppc="ppc? ( ${SRC_URI_BASE}/dnetc${MIN_PV}-linux-ppc-uclibc.tar.gz )" -#SRC_URI_sparc="sparc? ( ${SRC_URI_BASE}/dnetc${MIN_PV}-linux-sparc-v7.tar.gz )" -SRC_URI="${SRC_URI_amd64} ${SRC_URI_arm64} ${SRC_URI_ppc} ${SRC_URI_x86} ${SRC_URI_sparc}" - -LICENSE="distributed.net GPL-2" -SLOT="0" -KEYWORDS="amd64 ~arm64 ~ppc ~x86" # sparc not available for this version -IUSE="" -RESTRICT="mirror" - -DEPEND="" -RDEPEND="net-dns/bind-tools" - -QA_PREBUILT="opt/distributed.net/dnetc" - -case $ARCH in - amd64) suffix=amd64 ;; - arm64) suffix=amd64 ;; - ppc) suffix=ppc-elf-uclibc ;; - x86) suffix=x86-elf-uclibc ;; -esac -S="${WORKDIR}/dnetc${MIN_PV:0:3}-linux-${suffix}" -unset suffix - -src_prepare() { - #export S="${WORKDIR}/$(getS)" - #echo "${S}" - #cd "${S}" - [[ -x dnetc ]] || die "Name of dnetc directory/binary for this platform undefined" - eapply_user -} - -src_install() { - exeinto /opt/distributed.net - doexe dnetc - - doman dnetc.1 - dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.* - - newinitd "${FILESDIR}"/dnetc.initd dnetc - newconfd "${FILESDIR}"/dnetc.confd dnetc - - keepdir /var/spool/dnetc -} - -pkg_preinst() { - # This is the upstream-recommended install process - # Flush buffers first, because the new binary might not be able to read - # them. - if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then - einfo "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 - - einfo "removing old buffer files" - rm -f /opt/distributed.net/buff* - fi - - enewgroup dnetc - enewuser dnetc -1 -1 /opt/distributed.net dnetc -} - -pkg_postinst() { - chown -Rf dnetc:dnetc /opt/distributed.net - chmod 0555 /opt/distributed.net/dnetc - - elog "To run distributed.net client in the background at boot:" - elog " rc-update add dnetc default" - elog "" - elog "Either configure your email address in /etc/conf.d/dnetc" - elog "or create the configuration file /opt/distributed.net/dnetc.ini" -} - -pkg_postrm() { - if [ -d /opt/distributed.net ]; then - elog "All files has not been removed from /opt/distributed.net" - fi -} diff --git a/app-misc/dnetc/files/dnetc.confd b/app-misc/dnetc/files/dnetc.confd deleted file mode 100644 index f6f0da6b7e2d..000000000000 --- a/app-misc/dnetc/files/dnetc.confd +++ /dev/null @@ -1,18 +0,0 @@ -# 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 deleted file mode 100644 index f3a512074912..000000000000 --- a/app-misc/dnetc/files/dnetc.initd +++ /dev/null @@ -1,88 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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/dnetc.ini ] ; then - retVal=0 - DNETOPTS="${DNETOPTS} -ini /etc/dnetc.ini" - 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}}" - - # fair group cpu scheduler - uidpath="/sys/kernel/uids/`id -u dnetc`" - [ -d $uidpath ] && echo 2 >$uidpath/cpu_share - unset uidpath - - 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 ${?} -} diff --git a/app-misc/dnetc/metadata.xml b/app-misc/dnetc/metadata.xml deleted file mode 100644 index 40c9f16e0287..000000000000 --- a/app-misc/dnetc/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - robbat2@gentoo.org - Robin H. Johnson - - - a distributed client for the distributed.net cracking challenges. - - -- cgit v1.2.3-18-g5258