pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
wip/doas: import doas-6.1
Module Name: pkgsrc-wip
Committed By: ng0 <ng0%NetBSD.org@localhost>
Pushed By: ng0
Date: Tue Aug 20 16:10:29 2019 +0000
Changeset: 930e5c46c9f514e6e28087551c6338aa97985017
Modified Files:
Makefile
Added Files:
doas/DESCR
doas/Makefile
doas/PLIST
doas/TODO
doas/distinfo
doas/patches/patch-Makefile
Log Message:
wip/doas: import doas-6.1
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
ccommunity 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.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=930e5c46c9f514e6e28087551c6338aa97985017
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
doas/DESCR | 14 ++++++++++++++
doas/Makefile | 22 ++++++++++++++++++++++
doas/PLIST | 4 ++++
doas/TODO | 3 +++
doas/distinfo | 7 +++++++
doas/patches/patch-Makefile | 28 ++++++++++++++++++++++++++++
7 files changed, 79 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index e699b25451..8bce1b7942 100644
--- a/Makefile
+++ b/Makefile
@@ -638,6 +638,7 @@ SUBDIR+= dmt-ux
SUBDIR+= dnrd
SUBDIR+= dns2tcp
SUBDIR+= dnswalk
+SUBDIR+= doas
SUBDIR+= docbook-xsl-ko
SUBDIR+= docbook2X
SUBDIR+= docbook2mdoc
diff --git a/doas/DESCR b/doas/DESCR
new file mode 100644
index 0000000000..e496cc9024
--- /dev/null
+++ b/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
+ccommunity 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/doas/Makefile b/doas/Makefile
new file mode 100644
index 0000000000..091a826466
--- /dev/null
+++ b/doas/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD$
+
+GITHUB_PROJECT= doas
+DISTNAME= 6.1
+PKGNAME= doas-6.1
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=slicer69/}
+DIST_SUBDIR= ${GITHUB_PROJECT}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/slicer69/doas/
+COMMENT= Allow others to run commands as root
+LICENSE= 2-clause-bsd
+
+USE_TOOLS+= gmake
+
+WRKSRC= ${WRKDIR}/doas-6.1
+
+#INSTALL_MAKE_FLAGS+= PREFIX=${PREFIX:Q}
+
+.include "../../mk/pam.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/doas/PLIST b/doas/PLIST
new file mode 100644
index 0000000000..7ba8572cbe
--- /dev/null
+++ b/doas/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/doas
+man/man1/doas.1
+man/man5/doas.conf.5
diff --git a/doas/TODO b/doas/TODO
new file mode 100644
index 0000000000..bdc42c9766
--- /dev/null
+++ b/doas/TODO
@@ -0,0 +1,3 @@
+* Fix build on FreeBSD, wants libutil.
+
+* warning: /usr/work/wip/doas/work/.destdir/usr/pkg/bin/doas: set-uid or set-gid files should not be writable by anyone.
\ No newline at end of file
diff --git a/doas/distinfo b/doas/distinfo
new file mode 100644
index 0000000000..159274f9d7
--- /dev/null
+++ b/doas/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+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
+SHA1 (patch-Makefile) = 4bb9619488b35259f6efb85d5897ccceb015d455
diff --git a/doas/patches/patch-Makefile b/doas/patches/patch-Makefile
new file mode 100644
index 0000000000..6d6c5ed43b
--- /dev/null
+++ b/doas/patches/patch-Makefile
@@ -0,0 +1,28 @@
+$NetBSD$
+
+Fix the pkgsrc build, without this the application attempts
+to install to $PREFIX directly.
+
+--- Makefile~ 2019-08-20 15:41:02.216585049 +0000
++++ Makefile 2019-08-20 15:43:46.000655016 +0000
+@@ -34,13 +34,13 @@
+ $(CC) $(CFLAGS) -c y.tab.c
+
+ install: $(BIN)
+- mkdir -p $(PREFIX)/bin
+- cp $(BIN) $(PREFIX)/bin/
+- chmod 4755 $(PREFIX)/bin/$(BIN)
+- mkdir -p $(PREFIX)/man/man1
+- cp doas.1 $(PREFIX)/man/man1/
+- mkdir -p $(PREFIX)/man/man5
+- cp doas.conf.5 $(PREFIX)/man/man5/
++ mkdir -p $(DESTDIR)$(PREFIX)/bin
++ cp $(BIN) $(DESTDIR)$(PREFIX)/bin/
++ chmod 4755 $(DESTDIR)$(PREFIX)/bin/$(BIN)
++ mkdir -p $(DESTDIR)$(PREFIX)/man/man1
++ cp doas.1 $(DESTDIR)$(PREFIX)/man/man1/
++ mkdir -p $(DESTDIR)$(PREFIX)/man/man5
++ cp doas.conf.5 $(DESTDIR)$(PREFIX)/man/man5/
+
+ clean:
+ rm -f $(BIN) $(OBJECTS) y.tab.c
Home |
Main Index |
Thread Index |
Old Index