Jesús Daniel Colmenares Oviedo 4ec063fe52 security/su-exec: New port: Switch user and group id and exec
su-exec is a simple tool that will simply execute a program with
different privileges. The program will be executed directly and not
run as a child, like su and sudo does, which avoids TTY and signal
issues.

WWW: https://github.com/ncopa/su-exec

PR:		272867
2023-08-09 15:01:35 +02:00

34 lines
671 B
Makefile

PORTNAME= su-exec
DISTVERSIONPREFIX= v
DISTVERSION= 0.2
CATEGORIES= security
MAINTAINER= DtxdF@disroot.org
COMMENT= Switch user and group id and exec
WWW= https://github.com/ncopa/su-exec
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
FLAVORS= default static
default_CONFLICTS_INSTALL= su-exec-static
static_PKGNAMESUFFIX= -static
static_CONFLICTS_INSTALL= su-exec
USE_GITHUB= yes
GH_ACCOUNT= ncopa
.if ${FLAVOR:U} == static
LDFLAGS+= -static
.endif
PLIST_FILES= bin/su-exec
do-build:
cd ${WRKSRC} && ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o su-exec su-exec.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/su-exec ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>