How to download source, modify source, recompile and build .deb package?
- by burnersk
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