Building ap22-mod_log_firstbyte-1.01_1.txz (origin /buildshare/ports/355755/www/mod_log_firstbyte) for powerpc-10-0 on XXX slot2: created x distfiles/ x distfiles/mod_log_firstbyte/ x distfiles/mod_log_firstbyte/readme.txt x distfiles/mod_log_firstbyte/mod_log_firstbyte.c x packages/ x packages/db48-4.8.30.0.txz x packages/gdbm-1.11.txz x packages/libtool-2.4.2_3.txz x packages/gmake-3.82_1.txz x packages/pkg-1.2.7_2.txz x packages/apr-1.5.1.1.5.3.txz x packages/gettext-0.18.3.1_1.txz x packages/autoconf-2.69.txz x packages/expat-2.1.0.txz x packages/m4-1.4.17_1,1.txz x packages/p5-Locale-gettext-1.05_3.txz x packages/autoconf-wrapper-20131203.txz x packages/help2man-1.43.3_1.txz x packages/perl5-5.16.3_10.txz x packages/apache22-2.2.27_2.txz x packages/pcre-8.34_1.txz ELF ldconfig path: /lib /usr/lib /usr/lib/compat Make depends ===> ap22-mod_log_firstbyte-1.01_1 depends on file: /usr/local/sbin/pkg - not found ===> Verifying install for /usr/local/sbin/pkg in /buildshare/ports/355755/ports-mgmt/pkg ===> Installing existing package /packages/pkg-1.2.7_2.txz Installing pkg-1.2.7_2... done If you are upgrading from the old package format, first run: # pkg2ng ===> Returning to build of ap22-mod_log_firstbyte-1.01_1 ===> ap22-mod_log_firstbyte-1.01_1 depends on file: /usr/local/sbin/apxs - not found ===> Verifying install for /usr/local/sbin/apxs in /buildshare/ports/355755/www/apache22 ===> Installing existing package /packages/apache22-2.2.27_2.txz Installing apache22-2.2.27_2...Installing apr-1.5.1.1.5.3...Installing db48-4.8.30.0... done Installing expat-2.1.0... done Installing gdbm-1.11...Installing gettext-0.18.3.1_1... done done done Installing pcre-8.34_1... done Installing perl5-5.16.3_10... done ===> Creating users and/or groups. Using existing group 'www'. Using existing user 'www'. /usr/local/share/examples/apache22/httpd.conf -> /usr/local/etc/apache22/httpd.conf done To run apache www server from startup, add apache22_enable="YES" in your /etc/rc.conf. Extra options can be found in startup script. Your hostname must be resolvable using at least 1 mechanism in /etc/nsswitch.conf typically DNS or /etc/hosts or apache might have issues starting depending on the modules you are using. ===> Returning to build of ap22-mod_log_firstbyte-1.01_1 ===> ap22-mod_log_firstbyte-1.01_1 depends on file: /usr/local/sbin/apxs - found Make install ===> ap22-mod_log_firstbyte-1.01_1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by ap22-mod_log_firstbyte-1.01_1 for building ===> Extracting for ap22-mod_log_firstbyte-1.01_1 => SHA256 Checksum OK for mod_log_firstbyte/mod_log_firstbyte.c. => SHA256 Checksum OK for mod_log_firstbyte/readme.txt. /bin/mkdir -p /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/mod_log_firstbyte-1.01 /bin/cp /distfiles/mod_log_firstbyte/mod_log_firstbyte.c /distfiles/mod_log_firstbyte/readme.txt /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/mod_log_firstbyte-1.01 ===> Patching for ap22-mod_log_firstbyte-1.01_1 ===> ap22-mod_log_firstbyte-1.01_1 depends on file: /usr/local/sbin/apxs - found ===> Configuring for ap22-mod_log_firstbyte-1.01_1 ===> Building for ap22-mod_log_firstbyte-1.01_1 ===> Generating apache plist /usr/local/share/apr/build-1/libtool --silent --mode=compile cc -prefer-pic -O2 -pipe -I/usr/include -fno-strict-aliasing -I/usr/local/include -I/usr/local/include/apache22 -I/usr/local/include/apr-1 -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/usr/local/include/db48 -c -o mod_log_firstbyte.lo mod_log_firstbyte.c && touch mod_log_firstbyte.slo /usr/local/share/apr/build-1/libtool --silent --mode=link cc -o mod_log_firstbyte.la -rpath /usr/local/libexec/apache22 -module -avoid-version mod_log_firstbyte.lo ===> Staging for ap22-mod_log_firstbyte-1.01_1 ===> ap22-mod_log_firstbyte-1.01_1 depends on file: /usr/local/sbin/apxs - found ===> Generating temporary packing list /usr/local/share/apache22/build/instdso.sh SH_LIBTOOL='/usr/local/share/apr/build-1/libtool' /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/mod_log_firstbyte-1.01/mod_log_firstbyte.la /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/stage/usr/local/libexec/apache22 /usr/local/share/apr/build-1/libtool --mode=install cp /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/mod_log_firstbyte-1.01/mod_log_firstbyte.la /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/stage/usr/local/libexec/apache22/ libtool: install: cp /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/mod_log_firstbyte-1.01/.libs/mod_log_firstbyte.so /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/stage/usr/local/libexec/apache22/mod_log_firstbyte.so libtool: install: cp /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/mod_log_firstbyte-1.01/.libs/mod_log_firstbyte.lai /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/stage/usr/local/libexec/apache22/mod_log_firstbyte.la libtool: install: cp /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/mod_log_firstbyte-1.01/.libs/mod_log_firstbyte.a /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/stage/usr/local/libexec/apache22/mod_log_firstbyte.a libtool: install: chmod 644 /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/stage/usr/local/libexec/apache22/mod_log_firstbyte.a libtool: install: ranlib /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/stage/usr/local/libexec/apache22/mod_log_firstbyte.a libtool: install: warning: remember to run `libtool --finish /usr/local/libexec/apache22' chmod 755 /obj/buildshare/ports/355755/www/mod_log_firstbyte/work/stage/usr/local/libexec/apache22/mod_log_firstbyte.so ===> strip libexec/apache22/mod_log_firstbyte.so ====> Compressing man pages (compress-man) ===> Installing for ap22-mod_log_firstbyte-1.01_1 ===> Checking if www/mod_log_firstbyte already installed ===> Registering installation for ap22-mod_log_firstbyte-1.01_1 [preparing module `log_firstbyte' in /usr/local/etc/apache22/httpd.conf] Installing ap22-mod_log_firstbyte-1.01_1... done Compile and install the module using apxs2, e.g. apxs2 -c mod_log_firstbyte.c apxs2 -i -a mod_log_firstbyte.la This will add a line to your configuration file to load the module: LoadModule log_firstbyte_module /path/to/mod_log_firstbyte.so The module adds a new option to your log format string: '%F'. This is the request-to-first-byte time, in microseconds. Edit your configuration files to include a new LogFormat directive. I usually use: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D %F" combined-with-firstbyte Finally, change the CustomLog directive: CustomLog /var/log/apache2/access.log combined-with-firstbyte Make package ===> Building package for ap22-mod_log_firstbyte-1.01_1 slot2: removed