pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

opendoas: Fix packaging on Darwin.



Module Name:	pkgsrc-wip
Committed By:	Sunil Nimmagadda <sunil%nimmagadda.net@localhost>
Pushed By:	skn
Date:		Tue Dec 15 12:46:14 2020 +0530
Changeset:	04d4c53f3520a13535b06de91f54c6860d5457a6

Modified Files:
	opendoas/Makefile
	opendoas/PLIST

Log Message:
opendoas: Fix packaging on Darwin.

Upstream provides a default pam config for Darwin as well.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=04d4c53f3520a13535b06de91f54c6860d5457a6

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 opendoas/Makefile | 11 ++++++++---
 opendoas/PLIST    |  4 ++--
 2 files changed, 10 insertions(+), 5 deletions(-)

diffs:
diff --git a/opendoas/Makefile b/opendoas/Makefile
index f50c4a652c..17be566235 100644
--- a/opendoas/Makefile
+++ b/opendoas/Makefile
@@ -43,14 +43,19 @@ NOT_FOR_UNPRIVILEGED=	yes
 
 INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 ${EGDIR}
 
-PLIST_VARS+=	linux-pam
+PLIST_VARS+=	pam-conf
 
 .if ${OPSYS} == "Linux" && exists(/usr/include/security/pam_appl.h)
-PLIST.linux-pam=	yes
-REQD_FILES=		${EGDIR}/doas /etc/pam.d/doas
+PLIST.pam-conf=	yes
+REQD_FILES=	${EGDIR}/doas /etc/pam.d/doas
 .include "../../mk/pam.buildlink3.mk"
 .endif
 
+.if ${OPSYS} == "Darwin"
+PLIST.pam-conf=	yes
+REQD_FILES=	${EGDIR}/doas /etc/pam.d/doas
+.endif
+
 .if ${OPSYS} != "Linux"
 .include "../../mk/pam.buildlink3.mk"
 .endif
diff --git a/opendoas/PLIST b/opendoas/PLIST
index 70e18ac55b..8a70f530b7 100644
--- a/opendoas/PLIST
+++ b/opendoas/PLIST
@@ -2,5 +2,5 @@
 bin/doas
 man/man1/doas.1
 man/man5/doas.conf.5
-${PLIST.linux-pam}@pkgdir share/examples/opendoas
-${PLIST.linux-pam}share/examples/opendoas/doas
+${PLIST.pam-conf}@pkgdir share/examples/opendoas
+${PLIST.pam-conf}share/examples/opendoas/doas


Home | Main Index | Thread Index | Old Index