opnsense-ports/misc/p5-File-CounterFile/files/patch-CounterFile.pm
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

20 lines
832 B
Perl

--- CounterFile.pm.orig Sun Jan 18 13:31:18 2004
+++ CounterFile.pm Sun Jan 18 13:31:54 2004
@@ -19,7 +19,7 @@
$DEFAULT_INITIAL = 0; # default initial counter value
# default location for counter files
-$DEFAULT_DIR = $ENV{TMPDIR} || "/usr/tmp";
+$DEFAULT_DIR = $ENV{TMPDIR} || "/var/tmp";
# Experimental overloading.
use overload ('++' => \&inc,
@@ -210,7 +210,7 @@
If the file name does not start with "/" or ".", then it is
interpreted as a file relative to C<$File::CounterFile::DEFAULT_DIR>.
The default value for this variable is initialized from the
-environment variable C<TMPDIR>, or F</usr/tmp> if no environment
+environment variable C<TMPDIR>, or F</var/tmp> if no environment
variable is defined. You may want to assign a different value to this
variable before creating counters.