openbsd-ports/www/mod_geoip/files/mod_geoip-enable
naddy 098a46786d Import mod_geoip 1.2.0.
Submitted by Xavier Santolaria <xavier@santolaria.net>.

mod_geoip is an Apache module for finding the country that a web request
originated from.  It uses the GeoIP library and database to perform
the lookup.
2003-06-27 15:06:13 +00:00

19 lines
369 B
Bash

#!/bin/sh
#
# $OpenBSD: mod_geoip-enable,v 1.1.1.1 2003/06/27 15:06:13 naddy Exp $
MODULE=!!PREFIX!!/lib/mod_geoip.so
if [ `id -u` -ne 0 ]; then
echo "You must be root to run this script."
exit
fi
if [ ! -f ${MODULE} ]; then
echo "Cannot find mod_geoip module (${MODULE})"
exit 1
else
echo "Enabling GeoIP module..."
/usr/sbin/apxs -i -a -n geoip ${MODULE}
fi