Browse Source

sudo: Update to 1.8.24

Changed URLs to HTTPS

Rearranged Makefile for consistency.

Added PKG_BUILD_PARALLEL for faster compilation.

Added PKG_CPE_ID for CVE tracking.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 6 years ago
parent
commit
8ce9f30c42
4 changed files with 16 additions and 27 deletions
  1. +9
    -6
      admin/sudo/Makefile
  2. +4
    -5
      admin/sudo/patches/010-cross-compile-fixes.patch
  3. +3
    -4
      admin/sudo/patches/020-no-owner-change.patch
  4. +0
    -12
      admin/sudo/patches/030-musl-fix-missing-header.patch

+ 9
- 6
admin/sudo/Makefile View File

@ -8,15 +8,18 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=sudo PKG_NAME:=sudo
PKG_VERSION:=1.8.21p2
PKG_VERSION:=1.8.24
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_LICENSE:=ISC
PKG_LICENSE_FILES:=doc/LICENSE
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.sudo.ws/dist
PKG_HASH:=74c5746cd33a814e2431c39faf0d76f7f8a697379bd073862e3b156cf0d76368
PKG_SOURCE_URL:=https://www.sudo.ws/dist
PKG_HASH:=b488557a198ecef30b7ad4011b59a66232dec2364ad956e11d8e17906c225be8
PKG_LICENSE:=ISC
PKG_LICENSE_FILES:=doc/LICENSE
PKG_CPE_ID:=cpe:/a:todd_miller:sudo
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1 PKG_INSTALL:=1
PKG_BUILD_DEPENDS:=sudo/host PKG_BUILD_DEPENDS:=sudo/host
@ -27,7 +30,7 @@ define Package/sudo
SECTION:=admin SECTION:=admin
CATEGORY:=Administration CATEGORY:=Administration
TITLE:=Delegate authority to run commands TITLE:=Delegate authority to run commands
URL:=http://www.sudo.ws/
URL:=https://www.sudo.ws/
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com> MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
endef endef


+ 4
- 5
admin/sudo/patches/010-cross-compile-fixes.patch View File

@ -1,7 +1,6 @@
diff -rupN sudo-1.8.11p2.orig/lib/util/Makefile.in sudo-1.8.11p2/lib/util/Makefile.in
--- sudo-1.8.11p2.orig/lib/util/Makefile.in 2014-10-07 22:26:20.000000000 +0200
+++ sudo-1.8.11p2/lib/util/Makefile.in 2014-12-09 21:44:35.610041162 +0100
@@ -142,10 +142,10 @@ libsudo_util.la: $(LTOBJS) @LT_LDDEP@
--- a/lib/util/Makefile.in
+++ b/lib/util/Makefile.in
@@ -161,10 +161,10 @@ libsudo_util.la: $(LTOBJS) @LT_LDDEP@
esac esac
siglist.c: mksiglist siglist.c: mksiglist
@ -13,4 +12,4 @@ diff -rupN sudo-1.8.11p2.orig/lib/util/Makefile.in sudo-1.8.11p2/lib/util/Makefi
+ mksigname > $@ + mksigname > $@
mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/sudo_compat.h $(top_builddir)/config.h mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/sudo_compat.h $(top_builddir)/config.h
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@
$(CC) $(CPPFLAGS) $(CFLAGS) $(srcdir)/mksiglist.c -o $@

+ 3
- 4
admin/sudo/patches/020-no-owner-change.patch View File

@ -1,7 +1,6 @@
diff -rupN sudo-1.8.11p2.orig/Makefile.in sudo-1.8.11p2/Makefile.in
--- sudo-1.8.11p2.orig/Makefile.in 2014-10-07 22:26:20.000000000 +0200
+++ sudo-1.8.11p2/Makefile.in 2014-12-09 22:00:27.256934143 +0100
@@ -62,7 +62,7 @@ SHELL = @SHELL@
--- a/Makefile.in
+++ b/Makefile.in
@@ -63,7 +63,7 @@ SHELL = @SHELL@
SED = @SED@ SED = @SED@
INSTALL = $(SHELL) $(top_srcdir)/install-sh -c INSTALL = $(SHELL) $(top_srcdir)/install-sh -c


+ 0
- 12
admin/sudo/patches/030-musl-fix-missing-header.patch View File

@ -1,12 +0,0 @@
diff -rupN sudo-1.8.14p3.orig/include/sudo_util.h sudo-1.8.14p3/include/sudo_util.h
--- sudo-1.8.14p3.orig/include/sudo_util.h 2015-07-22 14:22:49.000000000 +0200
+++ sudo-1.8.14p3/include/sudo_util.h 2015-08-30 18:41:24.509814946 +0200
@@ -23,6 +23,8 @@
# include "compat/stdbool.h"
#endif /* HAVE_STDBOOL_H */
+#include <sys/types.h>
+
/*
* Macros for operating on struct timeval.
*/

Loading…
Cancel
Save