1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/security/doas/Makefile
2022-09-20 17:31:27 +02:00

55 lines
1.8 KiB
Makefile

PORTNAME= doas
PORTVERSION= 6.3p9
CATEGORIES= security
MAINTAINER= jsmith@resonatingmedia.com
COMMENT= Simple sudo alternative to run commands as another user
WWW= https://github.com/slicer69/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]*//}
USE_GITHUB= yes
GH_ACCOUNT= slicer69
MAKE_ENV+= TARGETPATH=-DGLOBAL_PATH='\"${_GLOBAL_PATH}\"'
BINMODE= 4755
SUB_FILES= pkg-message
PLIST_FILES= bin/doas \
bin/doasedit \
bin/vidoas \
etc/doas.conf.sample \
man/man1/doas.1.gz \
man/man5/doas.conf.5.gz \
man/man8/doasedit.8.gz \
man/man8/vidoas.8.gz
# 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.
#
# See also:
# * https://github.com/slicer69/doas/blob/6.1/doas.h#L36
# * https://github.com/slicer69/doas/releases/tag/6.1
_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}${MAN1PREFIX}/man/man1/doas.1
${INSTALL_MAN} ${WRKSRC}/doas.conf.5.final ${STAGEDIR}${MAN5PREFIX}/man/man5/doas.conf.5
${INSTALL_MAN} ${WRKSRC}/vidoas.8.final ${STAGEDIR}${MAN5PREFIX}/man/man8/vidoas.8
${INSTALL_MAN} ${WRKSRC}/doasedit.8 ${STAGEDIR}${MAN5PREFIX}/man/man8/doasedit.8
${INSTALL_DATA} ${WRKSRC}/doas.conf.sample ${STAGEDIR}${PREFIX}/etc/doas.conf.sample
.include <bsd.port.mk>