freebsd-ports/print/pcal/files/patch-html-pcal.pl
Pav Lucistnik 52588920bf - Update to 4.9.1
- Take maintainership

PR:		ports/87755
Submitted by:	Frank Laszlo <laszlof@vonostingroup.com>
2005-10-21 19:36:52 +00:00

22 lines
695 B
Perl

--- html/pcal.pl.orig Thu Oct 20 16:16:41 2005
+++ html/pcal.pl Thu Oct 20 16:18:11 2005
@@ -28,7 +28,7 @@
use vars qw(%category %form);
use strict;
use CGI;
-$ENV{PATH} = '/usr/bin:/usr/local/bin';
+$ENV{PATH} = '/usr/bin:/usr/local/bin:@@PREFIX@@';
# set DEBUG=1 to echo debugging output as HTML text
my $DEBUG=0;
@@ -43,8 +43,8 @@
# common calendar file on your system (note that the user can't use his/her
# own calendar file since most servers will execute pcal.cgi as 'nobody')
-my $PCAL = '/usr/local/bin/pcal';
-my $FILE = '/usr/local/bin/calendar';
+my $PCAL = '@@PREFIX@@/bin/pcal';
+my $FILE = '@@PREFIX@@/bin/calendar';
#
my $THECAL;
my @NOWTIME = localtime(time()) ;