change -f to -d in patchfile.

bump port revision

PR:		32821
Submitted by:	maintainer
This commit is contained in:
Ying-Chieh Liao 2001-12-14 07:26:22 +00:00
parent 1204a4c669
commit e1e35258d1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51522
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= ricochet
PORTVERSION= 0.97
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://vipul.net/perl/sources/spamcontrol/ricochet/

View file

@ -5,7 +5,7 @@
sub initialize {
my $self = shift;
- my $rc = "$ENV{RICOCHET}" || "$ENV{HOME}/.ricochet"; $rc .= "/ricochetrc";
+ my $rc = "$ENV{RICOCHET}" || -f "$ENV{HOME}/.ricochet" ? "$ENV{HOME}/.ricochet" : "%%PREFIX%%/share/ricochet";
+ my $rc = "$ENV{RICOCHET}" || -d "$ENV{HOME}/.ricochet" ? "$ENV{HOME}/.ricochet" : "%%PREFIX%%/share/ricochet";
+ $rc .= "/ricochetrc";
Carp::croak "** Ricochet configuration file $rc doesn't exist. Aborting.\n" unless -e $rc;
open (RC, $rc);