SF.net SVN: gar:[22277] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Mon Oct 21 18:39:13 CEST 2013


Revision: 22277
          http://gar.svn.sourceforge.net/gar/?rev=22277&view=rev
Author:   dmichelsen
Date:     2013-10-21 16:39:12 +0000 (Mon, 21 Oct 2013)
Log Message:
-----------
mod_asn/trunk: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/mod_asn/
    csw/mgar/pkg/mod_asn/Makefile
    csw/mgar/pkg/mod_asn/branches/
    csw/mgar/pkg/mod_asn/tags/
    csw/mgar/pkg/mod_asn/trunk/
    csw/mgar/pkg/mod_asn/trunk/Makefile
    csw/mgar/pkg/mod_asn/trunk/checksums
    csw/mgar/pkg/mod_asn/trunk/files/
    csw/mgar/pkg/mod_asn/trunk/files/CSWap2-mod-asn.postinstall
    csw/mgar/pkg/mod_asn/trunk/files/CSWap2-mod-asn.preremove
    csw/mgar/pkg/mod_asn/trunk/files/asn_import.conf

Added: csw/mgar/pkg/mod_asn/Makefile
===================================================================
--- csw/mgar/pkg/mod_asn/Makefile	                        (rev 0)
+++ csw/mgar/pkg/mod_asn/Makefile	2013-10-21 16:39:12 UTC (rev 22277)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*


Property changes on: csw/mgar/pkg/mod_asn/trunk
___________________________________________________________________
Added: svn:ignore
   + work


Added: csw/mgar/pkg/mod_asn/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mod_asn/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/mod_asn/trunk/Makefile	2013-10-21 16:39:12 UTC (rev 22277)
@@ -0,0 +1,67 @@
+NAME = mod_asn
+VERSION = 1.5
+GARTYPE = v2
+
+DESCRIPTION = An Apache module to look up routing data
+
+MASTER_SITES += http://mirrorbrain.org/files/releases/
+DISTFILES += $(NAME)-$(VERSION).tar.gz
+DISTFILES += CSWap2-mod-asn.postinstall
+DISTFILES += CSWap2-mod-asn.preremove
+DISTFILES += asn_import.conf
+
+VENDOR_URL = http://mirrorbrain.org/mod_asn/
+
+LICENSE = debian/copyright
+
+PACKAGES = CSWap2-mod-asn
+RUNTIME_DEP_PKGS_CSWap2-mod-asn += CSWapache2
+
+REINPLACEMENTS += cswpython
+REINPLACE_MATCH_cswpython = \#!/usr/bin/env\ python
+REINPLACE_WITH_cswpython = \#!/opt/csw/bin/python
+REINPLACE_FILES_cswpython += asn_get_routeviews.py
+REINPLACE_FILES_cswpython += asn_import.py
+
+REINPLACEMENTS += importconf
+REINPLACE_MATCH_importconf = /etc/etc/asn_import.conf
+REINPLACE_WITH_importconf = $(sysconfdir)/asn_import.conf
+REINPLACE_FILES_importconf += asn_import.py
+
+# Apache paths
+AP2_ROOT      = $(prefix)/apache2
+AP2_LIBEXEC   = $(AP2_ROOT)/libexec
+AP2_APXS      = $(AP2_ROOT)/sbin/apxs
+AP2_MODS = 1
+AP2_MODFILES += mod_geoip2.so
+
+# No test suite available
+TEST_SCRIPTS =
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS = custom
+INSTALL_SCRIPTS = custom
+
+PRESERVECONF += $(prefix)/apache2/etc/extra/mod_asn.conf
+PRESERVECONF += $(sysconfdir)/asn_import.conf
+
+include gar/category.mk
+
+build-custom:
+	$(BUILD_ENV) $(AP2_APXS) -c $(WORKSRC)/mod_asn.c
+	$(MAKECOOKIE)
+
+install-custom: DOCDEST=$(DESTDIR)$(docdir)/ap2_mod_asn
+install-custom:
+	ginstall -d -m 755 $(DESTDIR)$(AP2_LIBEXEC)
+	cd $(WORKSRC) && $(AP2_APXS) -S LIBEXECDIR=$(DESTDIR)$(AP2_LIBEXEC) -i mod_asn.la
+	ginstall -d -m 755 $(DESTDIR)$(prefix)/apache2/etc/extra
+	ginstall -m 0644 $(WORKSRC)/mod_asn.conf $(DESTDIR)$(prefix)/apache2/etc/extra/mod_asn.conf
+	ginstall -d -m 755 $(DESTDIR)$(bindir)
+	ginstall -m 0755 $(WORKSRC)/asn_get_routeviews.py $(DESTDIR)$(bindir)/asn_get_routeviews
+	ginstall -m 0755 $(WORKSRC)/asn_import.py $(DESTDIR)$(bindir)/asn_import
+	ginstall -d -m 755 $(DESTDIR)$(sysconfdir)
+	ginstall -m 0644 $(WORKDIR)/asn_import.conf $(DESTDIR)$(sysconfdir)
+	ginstall -d -m 755 $(DOCDEST)
+	ginstall -m 644 $(WORKSRC)/asn.sql $(DOCDEST)/asn.sql
+	$(MAKECOOKIE)
+


Property changes on: csw/mgar/pkg/mod_asn/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/mod_asn/trunk/checksums
===================================================================
--- csw/mgar/pkg/mod_asn/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/mod_asn/trunk/checksums	2013-10-21 16:39:12 UTC (rev 22277)
@@ -0,0 +1 @@
+a9fd63e5026155b898da3df7648de344  mod_asn-1.5.tar.gz

Copied: csw/mgar/pkg/mod_asn/trunk/files/CSWap2-mod-asn.postinstall (from rev 22069, csw/mgar/pkg/mod_auth_radius/trunk/files/CSWap2modauthradius.postinstall)
===================================================================
--- csw/mgar/pkg/mod_asn/trunk/files/CSWap2-mod-asn.postinstall	                        (rev 0)
+++ csw/mgar/pkg/mod_asn/trunk/files/CSWap2-mod-asn.postinstall	2013-10-21 16:39:12 UTC (rev 22277)
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+AP2_PREFIX=$CSW_PREFIX/apache2
+AP2_BINDIR=$AP2_PREFIX/sbin
+AP2_LIBEXEC=$AP2_PREFIX/libexec
+AP2_CONFDIR=$AP2_PREFIX/etc
+AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_CONFIG=$AP2_CONFDIR/httpd.conf
+
+# Enable the auth_radius modules
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
+chroot $PKG_INSTALL_ROOT \
+    $AP2_BINDIR/apxs -S LIBEXECDIR=$AP2_LIBEXEC -e -a -n \
+    asn mod_asn.so
+
+# Finito
+cat <<END
+
+NOTICE: mod_asn is enabled in httpd.conf but the server was not restarted.
+        Please check your configuration and restart apache.
+
+END
+
+exit 0

Copied: csw/mgar/pkg/mod_asn/trunk/files/CSWap2-mod-asn.preremove (from rev 22069, csw/mgar/pkg/mod_auth_radius/trunk/files/CSWap2modauthradius.preremove)
===================================================================
--- csw/mgar/pkg/mod_asn/trunk/files/CSWap2-mod-asn.preremove	                        (rev 0)
+++ csw/mgar/pkg/mod_asn/trunk/files/CSWap2-mod-asn.preremove	2013-10-21 16:39:12 UTC (rev 22277)
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+AP2_PREFIX=$CSW_PREFIX/apache2
+AP2_BINDIR=$AP2_PREFIX/sbin
+AP2_LIBEXEC=$AP2_PREFIX/libexec
+AP2_CONFDIR=$AP2_PREFIX/etc
+AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_CONFIG=$AP2_CONFDIR/httpd.conf
+
+# Disable the auth_pam modules
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
+chroot $PKG_INSTALL_ROOT \
+    $AP2_BINDIR/apxs -S LIBEXECDIR=$AP2_LIBEXEC -e -A -n \
+    asn mod_asn.so
+
+cat <<END
+
+NOTICE: mod_asn is disabled in httpd.conf but the server was not restarted.
+        Please check your configuration and restart apache.
+
+END
+
+exit 0

Added: csw/mgar/pkg/mod_asn/trunk/files/asn_import.conf
===================================================================
--- csw/mgar/pkg/mod_asn/trunk/files/asn_import.conf	                        (rev 0)
+++ csw/mgar/pkg/mod_asn/trunk/files/asn_import.conf	2013-10-21 16:39:12 UTC (rev 22277)
@@ -0,0 +1,6 @@
+[general]
+user = database_user
+password = database_password
+host = database_server
+dbname = name_of_database
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list