In this answer, we describe:
- How to download and compile Apache trunk version (it is the first version with mod_systemd).
- How to compile Apache with signatures of an older version.
When this answer was posted, the trunk version was Apache 2.5
#Download and compile Apache trunk version
I recommend to do this in a testing environment. I've tested it on a debian minbase wheezy system. For arch linux the package names should be similar and instead of apt-get, pacman should be used. The configure script will prompt all missing build dependencies anyway.
###Install build dependencies (debian minbase wheezy example) apt-get install subversion apt-get install autoconf apt-get install libtool apt-get install python apt-get install libexpat1-dev apt-get install libpcre3-dev apt-get install libsystemd-daemon-dev apt-get install g++ apt-get install make
###Download apache development source code mkdir trunk cd trunk svn co http://svn.apache.org/repos/asf/httpd/httpd/trunk ./ svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr
###Configure apache ./buildconf ./configure --enable-systemd
###Build and install make make install
###Enable mod_systemd echo "LoadModule systemd_module modules/mod_systemd.so" >> /usr/local/apache2/conf/httpd.conf
###Check enabled modules /usr/local/apache2/bin/apachectl -M
#Compile Apache with signatures of an older version
If you want to use mod_systemd in an older version of Apache, you may try to compile Apache 2.5 with other version's signatures.
###Check which version of Apache you have
apachectl -v
###Download the source code of your Apache version
https://httpd.apache.org/download.cgi
###Uncompress its contents
tar xf httpd-version.tar.gz
###Copy the signature's file to the trunk version folder
cp httpd-version/include/ap_mmn.h ~/trunk/include/
###Compile the trunk version with yourother version's signatures
cd ~/trunk
make
###Copy mod_systemd wherever you want
find . -name mod_systemd.so -exec cp {} destination/ \;