View | Details | Raw Unified | Return to bug 245713 | Differences between
and this patch

Collapse All | Expand All

(-)b/security/doas/Makefile (+9 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	doas
3
PORTNAME=	doas
4
PORTVERSION=	6.2p4
4
PORTVERSION=	6.2p4
5
PORTREVISION=	1
5
CATEGORIES=	security
6
CATEGORIES=	security
6
7
7
MAINTAINER=	jsmith@resonatingmedia.com
8
MAINTAINER=	jsmith@resonatingmedia.com
Lines 16-21 USES= gmake Link Here
16
USE_GITHUB=	yes
17
USE_GITHUB=	yes
17
GH_ACCOUNT=	slicer69
18
GH_ACCOUNT=	slicer69
18
19
20
OPTIONS_DEFINE=	PAM
21
PAM_CFLAGS+=	-D USE_PAM
22
19
MAKE_ENV+=	TARGETPATH=-DGLOBAL_PATH='\"${_GLOBAL_PATH}\"'
23
MAKE_ENV+=	TARGETPATH=-DGLOBAL_PATH='\"${_GLOBAL_PATH}\"'
20
24
21
BINMODE=	4755
25
BINMODE=	4755
Lines 25-30 PLIST_FILES= bin/doas \ Link Here
25
		man/man5/doas.conf.5.gz \
29
		man/man5/doas.conf.5.gz \
26
		man/man1/doas.1.gz
30
		man/man1/doas.1.gz
27
31
32
PAM_PLIST_FILES+= "@sample etc/pam.d/doas.default etc/pam.d/doas"
33
28
# These are upstream's default paths that are set for the GLOBAL_PATH variable
34
# These are upstream's default paths that are set for the GLOBAL_PATH variable
29
# in doas.h since the 6.1 release. Those paths are then used for target user's
35
# in doas.h since the 6.1 release. Those paths are then used for target user's
30
# PATH variable instead of those of the original user.
36
# PATH variable instead of those of the original user.
Lines 39-42 do-install: Link Here
39
	${INSTALL_MAN} ${WRKSRC}/doas.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
45
	${INSTALL_MAN} ${WRKSRC}/doas.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
40
	${INSTALL_MAN} ${WRKSRC}/doas.conf.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
46
	${INSTALL_MAN} ${WRKSRC}/doas.conf.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
41
47
48
do-install-PAM-on:
49
	${INSTALL_DATA} ${FILESDIR}/pam.conf ${STAGEDIR}${PREFIX}/etc/pam.d/doas.default
50
42
.include <bsd.port.mk>
51
.include <bsd.port.mk>
(-)b/security/doas/files/pam.conf (+19 lines)
Added Link Here
1
#
2
# $FreeBSD$
3
#
4
# PAM configuration for the "doas" service
5
#
6
7
# auth
8
auth		include		system
9
10
# account
11
account		include		system
12
13
# session
14
# XXX: pam_lastlog (used in system) causes users to appear as though
15
# they are no longer logged in in system logs.
16
session		required	pam_permit.so
17
18
# password
19
password	include		system

Return to bug 245713