pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
opendoas: Track upstream tip.
Module Name: pkgsrc-wip
Committed By: Sunil Nimmagadda <sunil%nimmagadda.net@localhost>
Pushed By: skn
Date: Mon Nov 2 20:00:26 2020 +0530
Changeset: 74a3ee88f9f484fc277467017564d6672d15eeaf
Modified Files:
opendoas/Makefile
opendoas/distinfo
opendoas/patches/patch-doas.c
Log Message:
opendoas: Track upstream tip.
Upstream merged a PR honoring --sysconfdir path for doas.conf.
Suggestions from Greg Troxel.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=74a3ee88f9f484fc277467017564d6672d15eeaf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
opendoas/Makefile | 5 ++---
opendoas/distinfo | 10 +++++-----
opendoas/patches/patch-doas.c | 16 +++-------------
3 files changed, 10 insertions(+), 21 deletions(-)
diffs:
diff --git a/opendoas/Makefile b/opendoas/Makefile
index 3f3fba0e20..1a388d0c4a 100644
--- a/opendoas/Makefile
+++ b/opendoas/Makefile
@@ -4,7 +4,7 @@ DISTNAME= OpenDoas-6.6.1
PKGNAME= ${DISTNAME:tl}
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GITHUB:=duncaen/}
-GITHUB_TAG= v${PKGVERSION_NOREV}
+GITHUB_TAG= 84ccfe0b9ac591199d0464ede10a4130c8a3482d
MAINTAINER= sunil%nimmagadda.net@localhost
HOMEPAGE= https://github.com/duncaen/opendoas
@@ -13,7 +13,7 @@ LICENSE= isc
CONFLICTS= doas-[0-9]*
-WRKSRC= ${WRKDIR}/OpenDoas-${PKGVERSION_NOREV}
+WRKSRC= ${WRKDIR}/OpenDoas-${GITHUB_TAG}
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
@@ -30,7 +30,6 @@ USE_TOOLS= gmake yacc
BUILD_TARGET= default
CFLAGS+= -D_OPENBSD_SOURCE=1
-CFLAGS+= -DDOAS_CONF="\"${PKG_SYSCONFDIR}/doas.conf\""
SPECIAL_PERMS+= bin/doas ${SETUID_ROOT_PERMS}
diff --git a/opendoas/distinfo b/opendoas/distinfo
index a936b77b79..be8787aa3a 100644
--- a/opendoas/distinfo
+++ b/opendoas/distinfo
@@ -1,10 +1,10 @@
$NetBSD$
-SHA1 (OpenDoas-6.6.1.tar.gz) = 4509c04803c27e8c9940322e51dc4b9184360c4a
-RMD160 (OpenDoas-6.6.1.tar.gz) = b938edf57caf8cf90df3393f0c9c2cf0ee95e851
-SHA512 (OpenDoas-6.6.1.tar.gz) = 390e0e139a2641be22c4493c3ed755d9cb4091f4ab8d590123b7c8c4f2f116cea3b3500926ff191fb98d92192ca9e92118cbcbeb463a7833763e00c65603e678
-Size (OpenDoas-6.6.1.tar.gz) = 30783 bytes
+SHA1 (OpenDoas-6.6.1-84ccfe0b9ac591199d0464ede10a4130c8a3482d.tar.gz) = ca667704b05604c3d25e0e9416999182335dffc0
+RMD160 (OpenDoas-6.6.1-84ccfe0b9ac591199d0464ede10a4130c8a3482d.tar.gz) = e428e96df32d3d680dc755b80047e64098902476
+SHA512 (OpenDoas-6.6.1-84ccfe0b9ac591199d0464ede10a4130c8a3482d.tar.gz) = 34c3755bebf43c4142e35683e59b2fa12cf4fdc028f3350ed22b1dc95a86e293fa8a1c22a69d956949b4a4c38f080017cacc19bdb0abdf646809e57a057fb3ff
+Size (OpenDoas-6.6.1-84ccfe0b9ac591199d0464ede10a4130c8a3482d.tar.gz) = 30797 bytes
SHA1 (patch-bsd.prog.mk) = 78db9daba2593e6481c1da29ad96bee4d87785b9
SHA1 (patch-configure) = e144a8009b96a00da0320cffc477f36c32c1cfc1
-SHA1 (patch-doas.c) = 7c9ac462d1a370286d1299d5eaf666a34fef7ec4
+SHA1 (patch-doas.c) = de7bc8c1312cb186f44fe3f071a34e87dea0f478
SHA1 (patch-pam.c) = 35df55b83d0071aba476d61dd80ec3e7081f5d4a
diff --git a/opendoas/patches/patch-doas.c b/opendoas/patches/patch-doas.c
index e159e9f2a7..5491eab669 100644
--- a/opendoas/patches/patch-doas.c
+++ b/opendoas/patches/patch-doas.c
@@ -1,28 +1,18 @@
$NetBSD$
setresuid/setresguid are not supported on NetBSD.
-Do not hard code config file path.
---- doas.c.orig 2020-11-01 09:47:52.740280363 +0000
+--- doas.c.orig 2020-11-02 14:26:25.771778844 +0000
+++ doas.c
@@ -34,6 +34,11 @@
#include "includes.h"
#include "doas.h"
+#ifdef __netbsd__
-+#define setresgid(a, b, c) setgid(a)
-+#define setresuid(a, b, c) setuid(a)
++#define setresgid(a, b, c) setgid(a)
++#define setresuid(a, b, c) setuid(a)
+#endif
+
static void __dead
usage(void)
{
-@@ -325,7 +330,7 @@ main(int argc, char **argv)
- if (geteuid())
- errx(1, "not installed setuid");
-
-- parseconfig("/etc/doas.conf", 1);
-+ parseconfig(DOAS_CONF, 1);
-
- /* cmdline is used only for logging, no need to abort on truncate */
- (void)strlcpy(cmdline, argv[0], sizeof(cmdline));
Home |
Main Index |
Thread Index |
Old Index