Files
ports/security/doas/Makefile
T
Jesse Smith b9d5e73e06 security/doas: Update 6.3p13 => 6.4
Changelog:
- Fix some typos in the documentation.
- Cause doasedit to better handle shell variables and find the best
  text editor for altering files.

Improve port:
- Move BINMODE=4755 to plist: "@(,,4755) bin/doas" - BINMODE is applied
  universally (to all programs and scripts). This means helper scripts
  like doasedit, which are meant to be run as a regular user, were also
  installed as setuid. This is a potential security issue.
- Move plist to file.
- Add "@sample" for "etc/doas.conf.sample".

PR:		293628
Sponsored by:	UNIS Labs
MFH:		2026Q2
Co-authored-by:	Vladimir Druzenko <vvd@FreeBSD.org>
2026-04-06 22:24:56 +03:00

44 lines
1.6 KiB
Makefile

PORTNAME= doas
PORTVERSION= 6.4
CATEGORIES= security
MASTER_SITES= https://codeberg.org/thejessesmith/doas/archive/${PORTVERSION}${EXTRACT_SUFX}?dummy=/
MAINTAINER= jsmith@resonatingmedia.com
COMMENT= Simple sudo alternative to run commands as another user
WWW= https://codeberg.org/thejessesmith/doas/
LICENSE= BSD2CLAUSE ISCL
LICENSE_COMB= multi
LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/LICENSE
LICENSE_FILE_ISCL= ${WRKSRC}/LICENSE
USES= cpe gmake
CPE_VENDOR= doas_project
CPE_VERSION= ${PORTVERSION:C/p.+//}
CPE_UPDATE= ${PORTVERSION:C/[^p]*//}
MAKE_ENV+= TARGETPATH=-DGLOBAL_PATH='\"${_GLOBAL_PATH}\"'
CONFLICTS= opendoas
SUB_FILES= pkg-message
WRKSRC= ${WRKDIR}/${PORTNAME}
# These are upstream's default paths that are set for the GLOBAL_PATH variable
# in doas.h since the 6.1 release. Those paths are then used for target user's
# PATH variable instead of those of the original user.
_GLOBAL_PATH?= ${LOCALBASE}/sbin:${LOCALBASE}/bin:/usr/sbin:/usr/bin:/sbin:/bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/vidoas.final ${STAGEDIR}${PREFIX}/bin/vidoas
${INSTALL_SCRIPT} ${WRKSRC}/doasedit ${STAGEDIR}${PREFIX}/bin/doasedit
${INSTALL_MAN} ${WRKSRC}/doas.1.final ${STAGEDIR}${PREFIX}/share/man/man1/doas.1
${INSTALL_MAN} ${WRKSRC}/doas.conf.5.final ${STAGEDIR}${PREFIX}/share/man/man5/doas.conf.5
${INSTALL_MAN} ${WRKSRC}/vidoas.8.final ${STAGEDIR}${PREFIX}/share/man/man8/vidoas.8
${INSTALL_MAN} ${WRKSRC}/doasedit.8 ${STAGEDIR}${PREFIX}/share/man/man8/doasedit.8
${INSTALL_DATA} ${WRKSRC}/doas.conf.sample ${STAGEDIR}${PREFIX}/etc/doas.conf.sample
.include <bsd.port.mk>