Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2024 00:19:55 GMT
From:      Dan Langille <dvl@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a38bf998b911 - main - security/acme.sh: fix 'pkg -r' installation
Message-ID:  <202408190019.47J0JtcJ039292@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dvl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a38bf998b911e2bbcd611e703bd011f49d572d87

commit a38bf998b911e2bbcd611e703bd011f49d572d87
Author:     Siva Mahadevan <me@svmhdvn.name>
AuthorDate: 2024-08-18 23:09:50 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2024-08-19 00:18:39 +0000

    security/acme.sh: fix 'pkg -r' installation
    
    PR:             280916
---
 security/acme.sh/Makefile         | 2 +-
 security/acme.sh/pkg-post-install | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/security/acme.sh/Makefile b/security/acme.sh/Makefile
index 7b383a071e92..06698e11933c 100644
--- a/security/acme.sh/Makefile
+++ b/security/acme.sh/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	acme.sh
 PORTVERSION=	3.0.7
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security
 
 MAINTAINER=	dvl@FreeBSD.org
diff --git a/security/acme.sh/pkg-post-install b/security/acme.sh/pkg-post-install
index 7f1b8ddddc63..fecfc70882d8 100644
--- a/security/acme.sh/pkg-post-install
+++ b/security/acme.sh/pkg-post-install
@@ -1,7 +1,8 @@
 #!/bin/sh
 
 # create the log file, if it does not exist
-if [ ! -f /var/log/acme.sh.log ]
+if [ ! -f "${PKG_ROOTDIR}/var/log/acme.sh.log" ]
 then
-	/usr/bin/install -C -m 640 -o acme -g acme /dev/null /var/log/acme.sh.log
+	chroot "${PKG_ROOTDIR}" \
+		/usr/bin/install -C -m 640 -o acme -g acme /dev/null /var/log/acme.sh.log
 fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408190019.47J0JtcJ039292>