Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Apache:Modules
apache2-mod_asn
apache2-mod_asn.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File apache2-mod_asn.spec of Package apache2-mod_asn
# # spec file for package apache2-mod_asn # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # BuildRequires: apache2-devel BuildRequires: apache-rpm-macros BuildRequires: apache2-prefork BuildRequires: apache2-worker # Name: apache2-mod_asn Version: 1.6 Release: 0 Summary: mod_asn Looks up the AS and Network Prefix of IP Address License: Apache-2.0 Group: Productivity/Networking/Web/Servers Url: http://mirrorbrain.org/mod_asn/ # # # http://svn.mirrorbrain.org/svn/mod_asn/trunk Source: mod_asn-%{version}.tar.gz # BuildRoot: %{_tmppath}/%{name}-%{version}-build # %if %{defined suse_version} Requires: %{apache_mmn} Requires: %{apache_suse_maintenance_mmn} Requires: apache2 >= 2.2.6 Requires: libapr-util1 >= 1.3.0 Requires: libapr-util1-dbd-pgsql %else Requires: httpd %endif %description mod_asn is an Apache module doing lookups of the autonomous system (AS)[1], and the network prefix[2] which contains a given (clients) IP address. It is written with scalability in mind. To do high-speed lookups, it uses the PostgreSQL ip4r datatype[3] that is indexable with a Patricia Trie[4] algorithm to store network prefixes. This is the only algorithm that can search through the ~250.000 existing prefixes in a breeze. It comes with script to create such a database (and keep it up to date) with snapshots from global routing data - from a router's "view of the world", so to speak. Apache-internally, the module sets the looked up data as env table variables, for perusal by other Apache modules. In addition, it can send it as response headers to the client. It is published under the Apache License, Version 2.0. Source code can be obtained from http://mirrorbrain.org/mod_asn/ resp. http://svn.mirrorbrain.org/svn/mod_asn/ Links: [1] http://en.wikipedia.org/wiki/Autonomous_system_(Internet) [2] http://en.wikipedia.org/wiki/Subnetwork [3] http://pgfoundry.org/projects/ip4r/ [4] http://en.wikipedia.org/wiki/Radix_tree %prep %setup -q -n mod_asn-%{version} %build %{apache_apxs} -c mod_asn.c %install mkdir -p %{buildroot}%{apache_libexecdir} cp -p .libs/mod_asn.so %{buildroot}%{apache_libexecdir} install -D -m 0755 asn_import.py %{buildroot}%{_bindir}/asn_import install -D -m 0755 asn_get_routeviews.py %{buildroot}%{_bindir}/asn_get_routeviews %files %defattr(-,root,root) %doc docs %doc asn.sql %doc mod_asn.conf %{apache_libexecdir}/*.so %{_bindir}/* %changelog -n apache2-asn
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor