diff options
author | ng0 <ng0@pkgsrc.org> | 2019-08-23 23:00:50 +0000 |
---|---|---|
committer | ng0 <ng0@pkgsrc.org> | 2019-08-23 23:00:50 +0000 |
commit | 2dac5dbece05ced45fee8d54851e59deea7708c3 (patch) | |
tree | bb2348d7a418c8278744496efdf752a32ec8a89e /security | |
parent | 4cdc26d8ae66199a58ea95bfe177f1ca9aa2683e (diff) | |
download | pkgsrc-2dac5dbece05ced45fee8d54851e59deea7708c3.tar.gz |
security/doas: Add version 6.1 (from wip)
doas is a port of OpenBSD's doas which runs on FreeBSD, Linux and
NetBSD.
The doas utility is a program originally written for OpenBSD which
allows a user to run a command as though they were another
user. Typically doas is used to allow non-privleged users to run
commands as though they were the root user. The doas program acts as
an alternative to sudo, which is a popular method in the Linux
community for granting admin access to specific users.
The doas program offers two benefits over sudo: its configuration file
has a simple syntax and it is smaller, requiring less effort to audit
the code. This makes it harder for both admins and coders to make
mistakes that potentially open security holes in the system.
Diffstat (limited to 'security')
-rw-r--r-- | security/Makefile | 3 | ||||
-rw-r--r-- | security/doas/DESCR | 14 | ||||
-rw-r--r-- | security/doas/Makefile | 30 | ||||
-rw-r--r-- | security/doas/PLIST | 4 | ||||
-rw-r--r-- | security/doas/distinfo | 6 |
5 files changed, 56 insertions, 1 deletions
diff --git a/security/Makefile b/security/Makefile index 0992e2341f1..6b3251f45c5 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.710 2019/08/14 15:52:21 fcambus Exp $ +# $NetBSD: Makefile,v 1.711 2019/08/23 23:00:50 ng0 Exp $ # COMMENT= Security tools @@ -70,6 +70,7 @@ SUBDIR+= destroy SUBDIR+= dhbitty SUBDIR+= dirb SUBDIR+= dnssec-tools +SUBDIR+= doas SUBDIR+= dropbear SUBDIR+= dsniff SUBDIR+= dsniff-nox11 diff --git a/security/doas/DESCR b/security/doas/DESCR new file mode 100644 index 00000000000..05991147bc4 --- /dev/null +++ b/security/doas/DESCR @@ -0,0 +1,14 @@ +doas is a port of OpenBSD's doas which runs on FreeBSD, Linux and +NetBSD. + +The doas utility is a program originally written for OpenBSD which +allows a user to run a command as though they were another +user. Typically doas is used to allow non-privleged users to run +commands as though they were the root user. The doas program acts as +an alternative to sudo, which is a popular method in the Linux +community for granting admin access to specific users. + +The doas program offers two benefits over sudo: its configuration file +has a simple syntax and it is smaller, requiring less effort to audit +the code. This makes it harder for both admins and coders to make +mistakes that potentially open security holes in the system. diff --git a/security/doas/Makefile b/security/doas/Makefile new file mode 100644 index 00000000000..6d0b703cb32 --- /dev/null +++ b/security/doas/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1 2019/08/23 23:00:51 ng0 Exp $ + +DISTNAME= doas-6.1 +CATEGORIES= security +MASTER_SITES= ${MASTER_SITE_GITHUB:=slicer69/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/slicer69/doas/ +COMMENT= Execute commands as another user +LICENSE= 2-clause-bsd + +USE_TOOLS+= gmake yacc + +# XXX: Upstream supports only NetBSD, FreeBSD, and Linux. +# Add any failing platforms as BROKEN_ON_PLATFORM. + +SUBST_CLASSES+= fix-paths +SUBST_STAGE.fix-paths= pre-install +SUBST_MESSAGE.fix-paths= Fixing paths. +SUBST_FILES.fix-paths= Makefile +SUBST_SED.fix-paths+= -e 's,$${PREFIX}/etc,${PKG_SYSCONFDIR},g' +SUBST_SED.fix-paths+= -e 's,$$(PREFIX),$$(DESTDIR)$$(PREFIX),g' +SUBST_SED.fix-paths+= -e 's,/man/,/${PKGMANDIR}/,g' + +SPECIAL_PERMS+= bin/doas ${SETUID_ROOT_PERMS} + +INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 + +.include "../../mk/pam.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/security/doas/PLIST b/security/doas/PLIST new file mode 100644 index 00000000000..ee37d04ce48 --- /dev/null +++ b/security/doas/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2019/08/23 23:00:51 ng0 Exp $ +bin/doas +man/man1/doas.1 +man/man5/doas.conf.5 diff --git a/security/doas/distinfo b/security/doas/distinfo new file mode 100644 index 00000000000..35e8aaf9cce --- /dev/null +++ b/security/doas/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2019/08/23 23:00:51 ng0 Exp $ + +SHA1 (doas-6.1.tar.gz) = d9363d1102a92f8a6276684e98c736f49d3d2bfd +RMD160 (doas-6.1.tar.gz) = 62d5258e3e6beeb3afbe1b19eda6423106adcd6d +SHA512 (doas-6.1.tar.gz) = 1397767416ec122170c0a07d0273473e019917c2555446865a5da45168fd81522c1d347ca5cd534ffbe74c5eb21b9f5817847260d8d37c91ffaf4b35ee992c2d +Size (doas-6.1.tar.gz) = 19965 bytes |