You are not logged in.
PKGBUILD
pkgname=dnetc
pkgver=2.9009.494
pkgrel=1
pkgdesc="Distributed computing client for several projects (RC5-72, OGR-P2)"
url="http://www.distributed.net"
groups=
provides=
depends=(wget)
makedepends=()
conflicts=()
replaces=()
backup=(/opt/dnetc/dnetc.ini)
install=(dnetc.install)
source=(http://http.distributed.net/pub/dcti/current-client/dnetc-linux-x86-elf-uclibc.tar.gz)
md5sums=('646b8749424063f93fecac8596031a08')
build() {
cd $startdir/src/
mkdir -p $startdir/pkg/opt/distributed.net
mv dnetc494-linux-x86-elf-uclibc/* $startdir/pkg/opt/distributed.net
}
dnetc.install
# arg 1: the new package version
pre_install() {
#
# do pre-install stuff here
#
/bin/true
}
# arg 1: the new package version
post_install() {
mkdir -p /opt/distributed.net/rc.d
cd /opt/distributed.net/rc.d
if [ ! -f /etc/rc.d/dnetc ]; then
wget -q http://marcosaxo.madoka.be/files/arch/dnetc/rc.d/dnetc
cp /opt/distributed.net/rc.d/dnetc /etc/rc.d/dnetc
chmod +x /etc/rc.d/dnetc
fi
clear
echo !!!!!
echo An rc.d-script for the distributed.net client located in /etc/rc.d/. Edit /etc/rc.conf to have the client start at runtime.
echo IMPORTANT: run /opt/distributed.net/dnetc -config to configure the client
echo !!!!!
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
#
# do pre-upgrade stuff here
#
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
#
# do post-upgrade stuff here
#
/bin/true
}
# arg 1: the old package version
pre_remove() {
killall dnetc > /dev/null
/bin/true
}
# arg 1: the old package version
post_remove() {
if [ -f /etc/rc.d/dnetc ] ; then
rm /etc/rc.d/dnetc
fi
if [ -d /opt/distributed.net ] ; then
rm -rf /opt/distributed.net
fi
/bin/true
}
op=$1
shift
$op $*
filelist
.FILELIST
.INSTALL
.PKGINFO
opt/
opt/distributed.net/
opt/distributed.net/dnetc
opt/distributed.net/dnetc.1
opt/distributed.net/docs/
opt/distributed.net/docs/CHANGES.txt
opt/distributed.net/docs/dnetc.txt
opt/distributed.net/docs/readme.1st
opt/distributed.net/docs/readme.linux
opt/distributed.net/docs/readme.uclib
I made an rc.d-script for the client aswell, it's downloaded during "post_install". I took the script included with Gentoo's ebuild and rewrote it to match this package.
Get it all here.
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline