summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Ahlberg <aliz@gentoo.org>2002-12-03 14:04:08 +0000
committerDaniel Ahlberg <aliz@gentoo.org>2002-12-03 14:04:08 +0000
commit50bc0b915c004fb9564f264316d844b80db8af52 (patch)
tree1f302ccbcd3b12056caae450d091510e91106770 /app-misc
parentFixes (diff)
downloadgentoo-2-50bc0b915c004fb9564f264316d844b80db8af52.tar.gz
gentoo-2-50bc0b915c004fb9564f264316d844b80db8af52.tar.bz2
gentoo-2-50bc0b915c004fb9564f264316d844b80db8af52.zip
More fixes
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/dnetc/dnetc-2.9001.478.ebuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/app-misc/dnetc/dnetc-2.9001.478.ebuild b/app-misc/dnetc/dnetc-2.9001.478.ebuild
index 4d14f9507a5b..5a9f75e75db6 100644
--- a/app-misc/dnetc/dnetc-2.9001.478.ebuild
+++ b/app-misc/dnetc/dnetc-2.9001.478.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/dnetc-2.9001.478.ebuild,v 1.2 2002/12/03 13:49:18 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/dnetc-2.9001.478.ebuild,v 1.3 2002/12/03 14:04:08 aliz Exp $
MAJ_PV=${PV:0:6}
MIN_PV=${PV:7:9}
@@ -23,6 +23,15 @@ fi
RESTRICT="nomirror"
+pkg_preinst() {
+ if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
+ einfo "flushing old buffers"
+ /opt/distributed.net/dnetc -quiet -flush
+ einfo "removing old buffer files"
+ rm -f /opt/distributed.net/buff*
+ fi
+}
+
src_install() {
exeinto /opt/distributed.net
doexe dnetc