Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 21971
Collapse All | Expand All

(-)httpd-2.0.46/acinclude.m4 (-3 / +4 lines)
Lines 60-65 Link Here
60
  APACHE_SUBST(HTTPD_LDFLAGS)
60
  APACHE_SUBST(HTTPD_LDFLAGS)
61
  APACHE_SUBST(UTIL_LDFLAGS)
61
  APACHE_SUBST(UTIL_LDFLAGS)
62
  APACHE_SUBST(LIBS)
62
  APACHE_SUBST(LIBS)
63
  APACHE_SUBST(SSL_LIBS)
63
  APACHE_SUBST(DEFS)
64
  APACHE_SUBST(DEFS)
64
  APACHE_SUBST(INCLUDES)
65
  APACHE_SUBST(INCLUDES)
65
  APACHE_SUBST(NOTEST_CPPFLAGS)
66
  APACHE_SUBST(NOTEST_CPPFLAGS)
Lines 190-196 Link Here
190
])dnl
191
])dnl
191
192
192
dnl
193
dnl
193
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
194
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config[, libs]]]]])
194
dnl
195
dnl
195
dnl default is one of:
196
dnl default is one of:
196
dnl   yes    -- enabled by default. user must explicitly disable.
197
dnl   yes    -- enabled by default. user must explicitly disable.
Lines 266-272 Link Here
266
      fi
267
      fi
267
      shared="";;
268
      shared="";;
268
    esac
269
    esac
269
    APACHE_MODPATH_ADD($1, $shared, $3)
270
    APACHE_MODPATH_ADD($1, $shared, $3,, $7)
270
  fi
271
  fi
271
])dnl
272
])dnl
272
273
Lines 488-494 Link Here
488
      APR_ADDTO(LDFLAGS, [$ap_platform_runtime_link_flag$ap_ssltk_libdir])
489
      APR_ADDTO(LDFLAGS, [$ap_platform_runtime_link_flag$ap_ssltk_libdir])
489
    fi
490
    fi
490
  fi
491
  fi
491
  APR_ADDTO(LIBS, [-lssl -lcrypto])
492
  APR_ADDTO(SSL_LIBS, [-lssl -lcrypto])
492
  ap_cv_ssltk="$ap_ssltk_base"
493
  ap_cv_ssltk="$ap_ssltk_base"
493
fi
494
fi
494
])
495
])
(-)httpd-2.0.46/modules/ssl/config.m4 (-1 / +1 lines)
Lines 79-85 Link Here
79
    APACHE_CHECK_SSL_TOOLKIT
79
    APACHE_CHECK_SSL_TOOLKIT
80
    AC_CHECK_FUNCS(SSL_set_state)
80
    AC_CHECK_FUNCS(SSL_set_state)
81
    AC_CHECK_FUNCS(SSL_set_cert_store)
81
    AC_CHECK_FUNCS(SSL_set_cert_store)
82
])
82
], [\$(SSL_LIBS)])
83
83
84
dnl #  end of module specific part
84
dnl #  end of module specific part
85
APACHE_MODPATH_FINISH
85
APACHE_MODPATH_FINISH
(-)httpd-2.0.46/os/unix/unixd.c (-10 / +7 lines)
Lines 243-265 Link Here
243
243
244
AP_DECLARE(void) unixd_pre_config(apr_pool_t *ptemp)
244
AP_DECLARE(void) unixd_pre_config(apr_pool_t *ptemp)
245
{
245
{
246
    apr_finfo_t wrapper;
246
    struct stat wrapper;
247
247
248
    unixd_config.user_name = DEFAULT_USER;
248
    unixd_config.user_name = DEFAULT_USER;
249
    unixd_config.user_id = ap_uname2id(DEFAULT_USER);
249
    unixd_config.user_id = ap_uname2id(DEFAULT_USER);
250
    unixd_config.group_id = ap_gname2id(DEFAULT_GROUP);
250
    unixd_config.group_id = ap_gname2id(DEFAULT_GROUP);
251
251
252
    /* Check for suexec */
252
    /* Check for suexec */
253
    unixd_config.suexec_enabled = 0;
253
    if (stat(SUEXEC_BIN, &wrapper) == 0 && 
254
    if ((apr_stat(&wrapper, SUEXEC_BIN, 
254
	(wrapper.st_mode & S_ISUID) && wrapper.st_uid == 0) {
255
                  APR_FINFO_NORM, ptemp)) != APR_SUCCESS) {
256
        return;
257
    }
258
259
    /* XXX - apr_stat is incapable of checking suid bits (grumble) */
260
    /* if ((wrapper.filetype & S_ISUID) && wrapper.user == 0) { */
261
        unixd_config.suexec_enabled = 1;
255
        unixd_config.suexec_enabled = 1;
262
    /* } */
256
    } else {
257
	unixd_config.suexec_enabled = 0;
258
    }
259
    
263
}
260
}
264
261
265
262
(-)httpd-2.0.46/support/apachectl.in (-1 / +2 lines)
Lines 28-34 Link Here
28
# --------------------                              --------------------
28
# --------------------                              --------------------
29
# 
29
# 
30
# the path to your httpd binary, including options if necessary
30
# the path to your httpd binary, including options if necessary
31
HTTPD='@exp_sbindir@/@progname@'
31
. /etc/conf.d/apache2
32
HTTPD="@exp_sbindir@/@progname@ ${APACHE2_OPTS}"
32
#
33
#
33
# pick up any necessary environment variables
34
# pick up any necessary environment variables
34
if test -f @exp_bindir@/envvars; then
35
if test -f @exp_bindir@/envvars; then
(-)httpd-2.0.46/support/apxs.in (-13 lines)
Lines 237-255 Link Here
237
    ($httpd = $0) =~ s:support/apxs$::;
237
    ($httpd = $0) =~ s:support/apxs$::;
238
}
238
}
239
239
240
unless (-x "$httpd") {
241
	error("$httpd not found or not executable");
242
	exit 1;
243
}
244
245
unless (grep /mod_so/, `. $envvars && $httpd -l`) {
246
    error("Sorry, no shared object support for Apache");
247
    error("available under your platform. Make sure");
248
    error("the Apache module mod_so is compiled into");
249
    error("your server binary `$httpd'.");
250
    exit 1;
251
}
252
253
sub get_config_vars{
240
sub get_config_vars{
254
    my ($file, $rh_config) = @_;
241
    my ($file, $rh_config) = @_;
255
242
(-)httpd-2.0.46/srclib/apr/build/buildcheck.sh (-1 / +1 lines)
Lines 3-9 Link Here
3
echo "buildconf: checking installation..."
3
echo "buildconf: checking installation..."
4
 
4
 
5
# autoconf 2.13 or newer
5
# autoconf 2.13 or newer
6
ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
6
ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
7
if test -z "$ac_version"; then
7
if test -z "$ac_version"; then
8
echo "buildconf: autoconf not found."
8
echo "buildconf: autoconf not found."
9
echo "           You need autoconf version 2.13 or newer installed"
9
echo "           You need autoconf version 2.13 or newer installed"

Return to bug 21971