sysutils/froxlor: pkg-plist typo fix and option/path fixes

PR:		286642
Reported by:	ek@purplehat.org
Approved by:	self (maintainer)
This commit is contained in:
No Name
2025-05-07 20:17:10 -04:00
committed by Neel Chauhan
parent 8d8dceb7c8
commit 5b39c61115
4 changed files with 24 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
PORTNAME= froxlor
DISTVERSION= 2.2.7
PORTREVISION= 2
CATEGORIES= sysutils www
MASTER_SITES= https://files.froxlor.org/releases/
@@ -0,0 +1,11 @@
--- froxlor/lib/Froxlor/Cli/MasterCron.php.orig 2025-05-07 03:26:39 UTC
+++ froxlor/lib/Froxlor/Cli/MasterCron.php
@@ -211,7 +211,7 @@ final class MasterCron extends CliCommand
private function lockJob(string $job, OutputInterface $output): bool
{
- $this->lockFile = '/run/lock/froxlor_' . $job . '.lock';
+ $this->lockFile = '/var/run/froxlor_' . $job . '.lock';
if (file_exists($this->lockFile)) {
$jobinfo = json_decode(file_get_contents($this->lockFile), true);
@@ -0,0 +1,11 @@
--- froxlor/lib/Froxlor/Cron/Traffic/TrafficCron.php.orig 2025-05-07 03:27:51 UTC
+++ froxlor/lib/Froxlor/Cron/Traffic/TrafficCron.php
@@ -861,7 +861,7 @@ class TrafficCron extends FroxlorCron
// the default selection is 'current',
// so link the latest dir to it
$new_current = FileDir::makeCorrectFile($outputdir . '/current');
- FileDir::safe_exec('ln -fTs ' . escapeshellarg($staticOutputdir) . ' ' . escapeshellarg($new_current));
+ FileDir::safe_exec('ln -fFs ' . escapeshellarg($staticOutputdir) . ' ' . escapeshellarg($new_current));
// statistics file looks like: 'awstats[month][year].[domain].txt'
$file = FileDir::makeCorrectFile($outputdir . '/awstats' . date('mY', time()) . '.' . $domain . '.txt');
+1 -1
View File
@@ -1997,7 +1997,7 @@
%%WWWDIR%%/vendor/voku/portable-ascii/src/voku/helper/data/x1d7.php
%%WWWDIR%%/vendor/voku/portable-ascii/src/voku/helper/data/x1f1.php
%%WWWDIR%%/vendor/voku/portable-utf8/CHANGELOG.md
%%WWWDIR%%/vendor/voku/portable-utf8/LICENSE%%AP_MOD_EN%%PACHE
%%WWWDIR%%/vendor/voku/portable-utf8/LICENSE-APACHE
%%WWWDIR%%/vendor/voku/portable-utf8/LICENSE-GPL
%%WWWDIR%%/vendor/voku/portable-utf8/README.md
%%WWWDIR%%/vendor/voku/portable-utf8/SECURITY.md