git: beb96db3cafb - main - security/acme.sh: create the log file
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 30 Jul 2023 20:00:06 UTC
The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=beb96db3cafbf2f65508e09de788a93839060dc2 commit beb96db3cafbf2f65508e09de788a93839060dc2 Author: Dan Langille <dvl@FreeBSD.org> AuthorDate: 2023-07-30 19:59:00 +0000 Commit: Dan Langille <dvl@FreeBSD.org> CommitDate: 2023-07-30 19:59:00 +0000 security/acme.sh: create the log file If the log file does not exist on pkg-install, create it with the expected permissions PR: 264789 --- security/acme.sh/Makefile | 1 + security/acme.sh/pkg-install | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/security/acme.sh/Makefile b/security/acme.sh/Makefile index 47c8632c6fb1..a5a379d04530 100644 --- a/security/acme.sh/Makefile +++ b/security/acme.sh/Makefile @@ -1,5 +1,6 @@ PORTNAME= acme.sh PORTVERSION= 3.0.6 +PORTREVISION= 1 CATEGORIES= security MAINTAINER= dvl@FreeBSD.org diff --git a/security/acme.sh/pkg-install b/security/acme.sh/pkg-install new file mode 100644 index 000000000000..63e21b1daa57 --- /dev/null +++ b/security/acme.sh/pkg-install @@ -0,0 +1,11 @@ +#!/bin/sh + +case $2 in + POST-INSTALL) + # create the log file, if it does not exist + if [ !-f /var/log/acme.sh.log ] + then + /usr/bin/install -C -m 640 -o acme -g acme /dev/null /var/log/acme.sh.log + fi + ;; +esac