summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroy Dack <tad@gentoo.org>2003-06-11 15:35:05 +0000
committerTroy Dack <tad@gentoo.org>2003-06-11 15:35:05 +0000
commitb36d9a2f2c92d33da3a25b81a8d94e45d15d83ea (patch)
tree5962a80c4dd46d634748ebcd0699e0aa3d427ecc
parentVersion Bump (unstable). (diff)
downloadgentoo-2-b36d9a2f2c92d33da3a25b81a8d94e45d15d83ea.tar.gz
gentoo-2-b36d9a2f2c92d33da3a25b81a8d94e45d15d83ea.tar.bz2
gentoo-2-b36d9a2f2c92d33da3a25b81a8d94e45d15d83ea.zip
Fixes for syntax errors in pkg_postinst.
-rw-r--r--net-analyzer/cacti/Manifest2
-rw-r--r--net-analyzer/cacti/cacti-0.8.1.ebuild11
2 files changed, 7 insertions, 6 deletions
diff --git a/net-analyzer/cacti/Manifest b/net-analyzer/cacti/Manifest
index fa9cea70e4eb..c5e5bc36b538 100644
--- a/net-analyzer/cacti/Manifest
+++ b/net-analyzer/cacti/Manifest
@@ -1,4 +1,4 @@
-MD5 25d050e757da564980dae74b3da31fbc cacti-0.8.1.ebuild 4099
+MD5 c81161fc5744af6f133f3e40dc180e4a cacti-0.8.1.ebuild 4128
MD5 57395465876dc8e6c61d0cc68f6c3620 cacti-0.6.8a.ebuild 1465
MD5 68ba28b575a17e1a4d4e8e6ea4a8da0e ChangeLog 996
MD5 f1e420ab088a8222b4020ab76a92c387 files/digest-cacti-0.8.1 63
diff --git a/net-analyzer/cacti/cacti-0.8.1.ebuild b/net-analyzer/cacti/cacti-0.8.1.ebuild
index fb0413aa737d..15c16687aac3 100644
--- a/net-analyzer/cacti/cacti-0.8.1.ebuild
+++ b/net-analyzer/cacti/cacti-0.8.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/cacti-0.8.1.ebuild,v 1.1 2003/06/11 15:28:38 tad Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/cacti-0.8.1.ebuild,v 1.2 2003/06/11 15:34:51 tad Exp $
DESCRIPTION="Cacti is a complete frondend to rrdtool"
HOMEPAGE="http://www.raxnet.net/products/cacti/"
@@ -29,7 +29,7 @@ INSTALL_DEST="${HTTPD_ROOT}/cacti"
src_install() {
dohtml docs/{INSTALL,UPGRADE}.htm
dodoc docs/{CHANGELOG,CONTRIB}
- dodoc {LICENSE}
+ dodoc LICENSE
rm docs/{INSTALL,UPGRADE,INSTALL-WIN32}.htm
rm docs/{README,CHANGELOG,CONTRIB}
@@ -45,9 +45,10 @@ src_install() {
pkg_postinst() {
# check to see if we have a previous version installed
- minor_inst= $(ls -d /var/db/pkg/net-analyzer/cacti*|head -n 1|cut -d\. -f2)
- rel_inst= $(ls -d /var/db/pkg/net-analyzer/cacti*|head -n 1|cut -d\. -f3)
- if [ '${minor_inst}${rel_inst}' -lt '81' ]
+ minor_inst="$(ls -d /var/db/pkg/net-analyzer/cacti*|head -n 1|cut -d\. -f2)"
+ rel_inst="$(ls -d /var/db/pkg/net-analyzer/cacti*|head -n 1|cut -d\. -f3)"
+ echo "${minor_inst}${rel_inst}"
+ if [ ${minor_inst}${rel_inst} -lt 81 ]
then
einfo
einfo "The cacti has been installed to ${INSTALL_DEST}"