summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorryoon <ryoon>2011-09-18 14:18:24 +0000
committerryoon <ryoon>2011-09-18 14:18:24 +0000
commit199878fe3b3c8ce863d72d0ed62ae67803b3d644 (patch)
tree05d873fd9e2d4133ac2b5e4bd34b92319b9277fc /security
parent9b929e65d1227a614a02ac34d264c95006d943f7 (diff)
downloadpkgsrc-199878fe3b3c8ce863d72d0ed62ae67803b3d644.tar.gz
The patch in PR pkg/45280 applied.
* Fix build on DragonFly. * The patches regen. Tested on DragonFly/i386 2.10.1 and NetBSD/i386 5.99.55.
Diffstat (limited to 'security')
-rw-r--r--security/sudo/distinfo11
-rw-r--r--security/sudo/patches/patch-aa6
-rw-r--r--security/sudo/patches/patch-af10
-rw-r--r--security/sudo/patches/patch-ag16
-rw-r--r--security/sudo/patches/patch-alias.c17
-rw-r--r--security/sudo/patches/patch-logging.c6
6 files changed, 42 insertions, 24 deletions
diff --git a/security/sudo/distinfo b/security/sudo/distinfo
index c7808a830fc..0085e875628 100644
--- a/security/sudo/distinfo
+++ b/security/sudo/distinfo
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.73 2011/08/18 12:45:05 taca Exp $
+$NetBSD: distinfo,v 1.74 2011/09/18 14:18:24 ryoon Exp $
SHA1 (sudo-1.7.7.tar.gz) = cb0af05f4fa43920fff538687d4bd9a66ab3b251
RMD160 (sudo-1.7.7.tar.gz) = bd2464dba8a986e6172dd305fc6a1adba78d9779
Size (sudo-1.7.7.tar.gz) = 1152132 bytes
-SHA1 (patch-aa) = df93a99bdcecdcee7f836d1123bcf740b054ed4e
-SHA1 (patch-af) = c9e09c77f520874ea165750380c3b985b31f559c
-SHA1 (patch-ag) = 4c4771911b93c8760c3a8195311cf2b3456aeafd
-SHA1 (patch-logging.c) = b4f10e64564e0cece07d4211d3a3ae6723057393
+SHA1 (patch-aa) = 70aa1a1da2d0cd9c8c8d9cbeab747b85028511f7
+SHA1 (patch-af) = 0dce4ebbc82ab644565f71e8f472c407ddbaabf5
+SHA1 (patch-ag) = fe8409164b61bdb229ca81d391de96898436ea0b
+SHA1 (patch-alias.c) = efe15c21ec221b839806c8b22a6b5c351ac4bf80
+SHA1 (patch-logging.c) = 26608d7423b77f71f17b37cc87f4b2e75978d7cb
diff --git a/security/sudo/patches/patch-aa b/security/sudo/patches/patch-aa
index cf645cea60c..7af8d97dd8b 100644
--- a/security/sudo/patches/patch-aa
+++ b/security/sudo/patches/patch-aa
@@ -1,11 +1,11 @@
-$NetBSD: patch-aa,v 1.27 2011/06/19 15:54:55 taca Exp $
+$NetBSD: patch-aa,v 1.28 2011/09/18 14:18:25 ryoon Exp $
* Fix libtools's link option.
* Prevent to install sudoers files and directory.
* Use standard instal(8) option instead of shell wrapper.
* Don't setuid here.
---- Makefile.in.orig 2011-03-29 19:25:56.000000000 +0000
+--- Makefile.in.orig 2011-08-13 17:29:18 +0000
+++ Makefile.in
@@ -222,7 +222,7 @@ sudo_noexec.lo: $(srcdir)/sudo_noexec.c
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/sudo_noexec.c
@@ -16,7 +16,7 @@ $NetBSD: patch-aa,v 1.27 2011/06/19 15:54:55 taca Exp $
# Uncomment the following if you want "make distclean" to clean the parser
@DEV@GENERATED = gram.h gram.c toke.c def_data.c def_data.h getdate
-@@ -541,43 +541,43 @@ pre-install:
+@@ -543,43 +543,43 @@ pre-install:
./visudo -c -f $(DESTDIR)$(sudoersdir)/sudoers; \
fi
diff --git a/security/sudo/patches/patch-af b/security/sudo/patches/patch-af
index 756b6609583..a4089b4c9a3 100644
--- a/security/sudo/patches/patch-af
+++ b/security/sudo/patches/patch-af
@@ -1,4 +1,4 @@
-$NetBSD: patch-af,v 1.27 2011/06/19 15:54:55 taca Exp $
+$NetBSD: patch-af,v 1.28 2011/09/18 14:18:25 ryoon Exp $
* Add "--with-nbsdops" option, NetBSD standard options.
* Link with util(3) in the case of DragonFly, too.
@@ -7,7 +7,7 @@ $NetBSD: patch-af,v 1.27 2011/06/19 15:54:55 taca Exp $
functions (HAVE_KRB5_*).
* Remove setting sysconfdir to "/etc".
---- configure.in.orig 2011-05-16 17:38:07.000000000 +0000
+--- configure.in.orig 2011-08-17 13:51:59 +0000
+++ configure.in
@@ -326,6 +326,18 @@ AC_ARG_WITH(csops, [AS_HELP_STRING([--wi
;;
@@ -28,7 +28,7 @@ $NetBSD: patch-af,v 1.27 2011/06/19 15:54:55 taca Exp $
AC_ARG_WITH(passwd, [AS_HELP_STRING([--without-passwd], [don't use passwd/shadow file for authentication])],
[case $with_passwd in
yes|no) AC_MSG_CHECKING(whether to use shadow/passwd file authentication)
-@@ -1925,7 +1937,7 @@ SUDO_MAILDIR
+@@ -1968,7 +1980,7 @@ SUDO_MAILDIR
if test ${with_logincap-'no'} != "no"; then
AC_CHECK_HEADERS(login_cap.h, [LOGINCAP_USAGE='[[-c class|-]] '; LCMAN=1
case "$OS" in
@@ -37,7 +37,7 @@ $NetBSD: patch-af,v 1.27 2011/06/19 15:54:55 taca Exp $
;;
esac
])
-@@ -2429,6 +2441,8 @@ if test ${with_kerb5-'no'} != "no"; then
+@@ -2476,6 +2488,8 @@ if test ${with_kerb5-'no'} != "no"; then
])
AUTH_OBJS="$AUTH_OBJS kerb5.o"
fi
@@ -46,7 +46,7 @@ $NetBSD: patch-af,v 1.27 2011/06/19 15:54:55 taca Exp $
_LIBS="$LIBS"
LIBS="${LIBS} ${SUDO_LIBS}"
AC_CHECK_FUNCS(krb5_verify_user krb5_init_secure_context)
-@@ -2869,7 +2883,6 @@ test "$libexecdir" = '${exec_prefix}/lib
+@@ -2932,7 +2946,6 @@ test "$libexecdir" = '${exec_prefix}/lib
test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
diff --git a/security/sudo/patches/patch-ag b/security/sudo/patches/patch-ag
index 069b24dc366..97816abdde5 100644
--- a/security/sudo/patches/patch-ag
+++ b/security/sudo/patches/patch-ag
@@ -1,4 +1,4 @@
-$NetBSD: patch-ag,v 1.18 2011/06/19 15:54:55 taca Exp $
+$NetBSD: patch-ag,v 1.19 2011/09/18 14:18:25 ryoon Exp $
* Add "--with-nbsdops" option, NetBSD standard options.
* Link with util(3) in the case of DragonFly, too.
@@ -7,9 +7,9 @@ $NetBSD: patch-ag,v 1.18 2011/06/19 15:54:55 taca Exp $
functions (HAVE_KRB5_*).
* Remove setting sysconfdir to "/etc".
---- configure.orig 2011-05-16 17:38:16.000000000 +0000
+--- configure.orig 2011-08-17 13:51:59 +0000
+++ configure
-@@ -1596,7 +1596,7 @@ Fine tuning of the installation director
+@@ -1470,7 +1470,7 @@ Fine tuning of the installation director
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
@@ -18,7 +18,7 @@ $NetBSD: patch-ag,v 1.18 2011/06/19 15:54:55 taca Exp $
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
-@@ -1676,6 +1676,7 @@ Optional Packages:
+@@ -1550,6 +1550,7 @@ Optional Packages:
--with-libraries additional libraries to link with
--with-efence link with -lefence for malloc() debugging
--with-csops add CSOps standard options
@@ -26,7 +26,7 @@ $NetBSD: patch-ag,v 1.18 2011/06/19 15:54:55 taca Exp $
--without-passwd don't use passwd/shadow file for authentication
--with-skey=DIR enable S/Key support
--with-opie=DIR enable OPIE support
-@@ -4052,6 +4053,22 @@ $as_echo "$as_me: WARNING: Ignoring unkn
+@@ -3934,6 +3935,22 @@ $as_echo "$as_me: WARNING: Ignoring unkn
esac
fi
@@ -49,7 +49,7 @@ $NetBSD: patch-ag,v 1.18 2011/06/19 15:54:55 taca Exp $
# Check whether --with-passwd was given.
-@@ -14469,7 +14486,7 @@ if test "x$ac_cv_header_login_cap_h" = x
+@@ -15374,7 +15391,7 @@ if test "x$ac_cv_header_login_cap_h" = x
_ACEOF
LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
case "$OS" in
@@ -58,7 +58,7 @@ $NetBSD: patch-ag,v 1.18 2011/06/19 15:54:55 taca Exp $
;;
esac
-@@ -17439,6 +17456,8 @@ fi
+@@ -18438,6 +18455,8 @@ fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
AUTH_OBJS="$AUTH_OBJS kerb5.o"
fi
@@ -67,7 +67,7 @@ $NetBSD: patch-ag,v 1.18 2011/06/19 15:54:55 taca Exp $
_LIBS="$LIBS"
LIBS="${LIBS} ${SUDO_LIBS}"
for ac_func in krb5_verify_user krb5_init_secure_context
-@@ -18811,7 +18830,6 @@ test "$libexecdir" = '${exec_prefix}/lib
+@@ -19859,7 +19878,6 @@ test "$libexecdir" = '${exec_prefix}/lib
test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
diff --git a/security/sudo/patches/patch-alias.c b/security/sudo/patches/patch-alias.c
new file mode 100644
index 00000000000..9903dcf6b57
--- /dev/null
+++ b/security/sudo/patches/patch-alias.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-alias.c,v 1.1 2011/09/18 14:18:25 ryoon Exp $
+
+--- alias.c.orig 2011-08-13 18:39:45 +0000
++++ alias.c
+@@ -40,11 +40,11 @@
+ # include <unistd.h>
+ #endif /* HAVE_UNISTD_H */
+
++#include <errno.h>
+ #include "sudo.h"
+ #include "parse.h"
+ #include "redblack.h"
+ #include <gram.h>
+-#include <errno.h>
+
+ /*
+ * Globals
diff --git a/security/sudo/patches/patch-logging.c b/security/sudo/patches/patch-logging.c
index 8ec5a7a4e26..b60bc562f71 100644
--- a/security/sudo/patches/patch-logging.c
+++ b/security/sudo/patches/patch-logging.c
@@ -1,11 +1,11 @@
-$NetBSD: patch-logging.c,v 1.2 2011/06/19 15:54:55 taca Exp $
+$NetBSD: patch-logging.c,v 1.3 2011/09/18 14:18:25 ryoon Exp $
Make sure CODESET is actually defined, for the sake of
old NetBSD versions
---- logging.c.orig 2011-02-04 22:59:42.000000000 +0000
+--- logging.c.orig 2011-08-13 17:32:04 +0000
+++ logging.c
-@@ -619,7 +619,7 @@ send_mail(fmt, va_alist)
+@@ -573,7 +573,7 @@ send_mail(fmt, va_alist)
(void) fputc(*p, mail);
}