pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/sudo Allow sudo to properly build on DragonFl...
details: https://anonhg.NetBSD.org/pkgsrc/rev/414715d33eac
branches: trunk
changeset: 500593:414715d33eac
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Oct 10 17:48:09 2005 +0000
description:
Allow sudo to properly build on DragonFly. Without the detection of
shared linking the noexec wrapper is not build.
diffstat:
security/sudo/PLIST.DragonFly | 5 +
security/sudo/patches/patch-af | 21 ++++-
security/sudo/patches/patch-ag | 126 ++++++++++++++++++++++++++++++++++++++--
3 files changed, 138 insertions(+), 14 deletions(-)
diffs (214 lines):
diff -r 30788dd1509f -r 414715d33eac security/sudo/PLIST.DragonFly
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/sudo/PLIST.DragonFly Mon Oct 10 17:48:09 2005 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST.DragonFly,v 1.1 2005/10/10 17:48:09 joerg Exp $
+man/man5/sudoers.5
+man/man8/sudo.8
+man/man8/sudoedit.8
+man/man8/visudo.8
diff -r 30788dd1509f -r 414715d33eac security/sudo/patches/patch-af
--- a/security/sudo/patches/patch-af Mon Oct 10 17:39:19 2005 +0000
+++ b/security/sudo/patches/patch-af Mon Oct 10 17:48:09 2005 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-af,v 1.13 2004/09/17 09:25:18 cube Exp $
+$NetBSD: patch-af,v 1.14 2005/10/10 17:48:09 joerg Exp $
---- configure.in.orig 2004-09-08 17:49:25.000000000 +0200
-+++ configure.in
-@@ -118,7 +118,6 @@ dnl
+--- configure.in.orig 2004-11-25 18:31:20.000000000 +0100
++++ configure.in 2005-05-11 14:23:01.000000000 +0200
+@@ -118,7 +118,6 @@
test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
@@ -10,7 +10,7 @@
dnl
dnl Deprecated --with options (these all warn or generate an error)
-@@ -244,6 +243,19 @@ AC_ARG_WITH(csops, [ --with-csops
+@@ -244,6 +243,19 @@
;;
esac])
@@ -30,7 +30,16 @@
AC_ARG_WITH(passwd, [ --without-passwd don't use passwd/shadow file for authentication],
[case $with_passwd in
yes) ;;
-@@ -1882,6 +1894,7 @@ if test -n "$with_kerb5" -a -z "$KRB5CON
+@@ -1513,7 +1525,7 @@
+ esac
+ fi
+ ;;
+- *-*-freebsd*)
++ *-*-freebsd*|*-*-dragonfly*)
+ # FreeBSD has a real setreuid(2) starting with 2.1 and
+ # backported to 2.0.5. We just take 2.1 and above...
+ case "`echo $host_os | sed 's/^freebsd\([[0-9\.]]*\).*$/\1/'`" in
+@@ -1894,6 +1906,7 @@
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_HEIMDAL)
SUDO_LIBS="${SUDO_LIBS} -lkrb5 -ldes -lcom_err -lasn1"
diff -r 30788dd1509f -r 414715d33eac security/sudo/patches/patch-ag
--- a/security/sudo/patches/patch-ag Mon Oct 10 17:39:19 2005 +0000
+++ b/security/sudo/patches/patch-ag Mon Oct 10 17:48:09 2005 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ag,v 1.5 2004/05/19 19:26:38 kim Exp $
+$NetBSD: patch-ag,v 1.6 2005/10/10 17:48:10 joerg Exp $
---- configure.orig 2003-05-06 11:22:27.000000000 -0400
-+++ configure 2004-05-19 15:17:50.000000000 -0400
-@@ -873,6 +873,7 @@
+--- configure.orig 2004-11-26 21:04:30.000000000 +0100
++++ configure 2005-05-10 21:38:19.000000000 +0200
+@@ -1051,6 +1051,7 @@
--with-devel add development options
--with-efence link with -lefence for malloc() debugging
--with-csops add CSOps standard options
@@ -10,7 +10,7 @@
--without-passwd don't use passwd/shadow file for authentication
--with-skey=DIR enable S/Key support
--with-opie=DIR enable OPIE support
-@@ -1423,7 +1424,6 @@
+@@ -1622,7 +1623,6 @@
test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
@@ -18,7 +18,7 @@
-@@ -1622,6 +1622,22 @@
+@@ -1820,6 +1820,22 @@
fi;
@@ -41,7 +41,117 @@
# Check whether --with-passwd or --without-passwd was given.
if test "${with_passwd+set}" = set; then
withval="$with_passwd"
-@@ -13230,6 +13246,58 @@
+@@ -5228,7 +5244,7 @@
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+-freebsd*)
++freebsd*|dragonfly*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+@@ -8440,7 +8456,7 @@
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd*)
++ dragonfly*|freebsd*)
+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+@@ -9071,11 +9087,11 @@
+ dynamic_linker=no
+ ;;
+
+-freebsd*)
++dragonfly*|freebsd*)
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ version_type=freebsd-$objformat
+ case $version_type in
+- freebsd-elf*)
++ dragonfly*|freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ ;;
+ freebsd-*)
+@@ -11205,7 +11221,7 @@
+ freebsd-elf*)
+ archive_cmds_need_lc_CXX=no
+ ;;
+- freebsd*)
++ dragonfly*|freebsd*)
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+ # conventions
+ ld_shlibs_CXX=yes
+@@ -12576,11 +12592,11 @@
+ dynamic_linker=no
+ ;;
+
+-freebsd*)
++dragonfly*|freebsd*)
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ version_type=freebsd-$objformat
+ case $version_type in
+- freebsd-elf*)
++ dragonfly*|freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ ;;
+ freebsd-*)
+@@ -14890,7 +14906,7 @@
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd*)
++ dragonfly*|freebsd*)
+ archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec_F77='-R$libdir'
+ hardcode_direct_F77=yes
+@@ -15521,11 +15537,11 @@
+ dynamic_linker=no
+ ;;
+
+-freebsd*)
++dragonfly*|freebsd*)
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ version_type=freebsd-$objformat
+ case $version_type in
+- freebsd-elf*)
++ dragonfly*|freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ ;;
+ freebsd-*)
+@@ -17123,7 +17139,7 @@
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd*)
++ dragonfly*|freebsd*)
+ archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
+ hardcode_direct_GCJ=yes
+@@ -17754,11 +17770,11 @@
+ dynamic_linker=no
+ ;;
+
+-freebsd*)
++dragonfly*|freebsd*)
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ version_type=freebsd-$objformat
+ case $version_type in
+- freebsd-elf*)
++ dragonfly*|freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ ;;
+ freebsd-*)
+@@ -21737,7 +21753,7 @@
+ esac
+ fi
+ ;;
+- *-*-freebsd*)
++ *-*-freebsd*|*-*-dragonfly*)
+ # FreeBSD has a real setreuid(2) starting with 2.1 and
+ # backported to 2.0.5. We just take 2.1 and above...
+ case "`echo $host_os | sed 's/^freebsd\([0-9\.]*\).*$/\1/'`" in
+@@ -29049,6 +29065,58 @@
_ACEOF
SUDO_LIBS="${SUDO_LIBS} -lkrb5 -ldes -lcom_err -lasn1"
@@ -100,7 +210,7 @@
echo "$as_me:$LINENO: checking for main in -lroken" >&5
echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
if test "${ac_cv_lib_roken_main+set}" = set; then
-@@ -13282,7 +13350,6 @@
+@@ -29101,7 +29169,6 @@
SUDO_LIBS="${SUDO_LIBS} -lroken"
fi
Home |
Main Index |
Thread Index |
Old Index