mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 20:36:30 -04:00
change -f to -d in patchfile.
bump port revision PR: 32821 Submitted by: maintainer
This commit is contained in:
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
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= ricochet
|
PORTNAME= ricochet
|
||||||
PORTVERSION= 0.97
|
PORTVERSION= 0.97
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= mail
|
CATEGORIES= mail
|
||||||
MASTER_SITES= http://vipul.net/perl/sources/spamcontrol/ricochet/
|
MASTER_SITES= http://vipul.net/perl/sources/spamcontrol/ricochet/
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
sub initialize {
|
sub initialize {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
- my $rc = "$ENV{RICOCHET}" || "$ENV{HOME}/.ricochet"; $rc .= "/ricochetrc";
|
- 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";
|
+ $rc .= "/ricochetrc";
|
||||||
Carp::croak "** Ricochet configuration file $rc doesn't exist. Aborting.\n" unless -e $rc;
|
Carp::croak "** Ricochet configuration file $rc doesn't exist. Aborting.\n" unless -e $rc;
|
||||||
open (RC, $rc);
|
open (RC, $rc);
|
||||||
|
|
Loading…
Add table
Reference in a new issue