How to download source, modify source, recompile and build .deb package?
Posted
by
burnersk
on Server Fault
See other posts from Server Fault
or by burnersk
Published on 2012-09-25T11:53:57Z
Indexed on
2012/09/26
3:39 UTC
Read the original article
Hit count: 524
I have to customize my Apache2 suExec module to ensure some special environment variables getting passed through suExec.
How to download the source code form Debian package apache2-suexec
, modify suexec.c
-> safe_env_lst
, recompile and build a .deb package again to rollout on the production systems?
I tried apt-get source apache2-suexec
but didn't found the suexec.c
within the occurred apache2-* folder.
The altered source code should be like this:
static const char *const safe_env_lst[] =
{
/* variable name starts with */
"HTTP_",
"SSL_",
/* NEW: Perl debugging variables */
"PERL5OPT=",
"PERL5LIB=",
"PERLDB_OPTS=",
"DBGP_IDEKEY=",
/* NEW: FCGI variables */
"FCGI=",
"FCGI_CONNECTION=",
"FCGI_RUNTIME=",
"FCGI_STARTTIME=",
draft based on: http://static.askapache.com/httpd/support/suexec.c
© Server Fault or respective owner