pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security security/doas: Add version 6.1 (from wip)



details:   https://anonhg.NetBSD.org/pkgsrc/rev/14f657162f49
branches:  trunk
changeset: 338397:14f657162f49
user:      ng0 <ng0%pkgsrc.org@localhost>
date:      Fri Aug 23 23:00:50 2019 +0000

description:
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:

 security/Makefile      |   3 ++-
 security/doas/DESCR    |  14 ++++++++++++++
 security/doas/Makefile |  30 ++++++++++++++++++++++++++++++
 security/doas/PLIST    |   4 ++++
 security/doas/distinfo |   6 ++++++
 5 files changed, 56 insertions(+), 1 deletions(-)

diffs (87 lines):

diff -r b4363314bd07 -r 14f657162f49 security/Makefile
--- a/security/Makefile Fri Aug 23 21:29:17 2019 +0000
+++ b/security/Makefile Fri Aug 23 23:00:50 2019 +0000
@@ -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+=       dhbitty
 SUBDIR+=       dirb
 SUBDIR+=       dnssec-tools
+SUBDIR+=       doas
 SUBDIR+=       dropbear
 SUBDIR+=       dsniff
 SUBDIR+=       dsniff-nox11
diff -r b4363314bd07 -r 14f657162f49 security/doas/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/doas/DESCR       Fri Aug 23 23:00:50 2019 +0000
@@ -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 -r b4363314bd07 -r 14f657162f49 security/doas/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/doas/Makefile    Fri Aug 23 23:00:50 2019 +0000
@@ -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@localhost
+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 -r b4363314bd07 -r 14f657162f49 security/doas/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/doas/PLIST       Fri Aug 23 23:00:50 2019 +0000
@@ -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 -r b4363314bd07 -r 14f657162f49 security/doas/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/doas/distinfo    Fri Aug 23 23:00:50 2019 +0000
@@ -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



Home | Main Index | Thread Index | Old Index