Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
06c06ad
commit 4ec063f
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1690896135 | ||
SHA256 (ncopa-su-exec-v0.2_GH0.tar.gz) = ec4acbd8cde6ceeb2be67eda1f46c709758af6db35cacbcde41baac349855e25 | ||
SIZE (ncopa-su-exec-v0.2_GH0.tar.gz) = 2426 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
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. |