Package metaproxy introduces ports.d/routes.d include
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 22 Aug 2013 10:53:09 +0000 (12:53 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 22 Aug 2013 10:53:09 +0000 (12:53 +0200)
This allows custom ports and routes to be added by 3rd party.

debian/metaproxy.dirs
debian/metaproxy.xml
metaproxy.spec
rpm/metaproxy.xml

index e92e2fd..21bdacc 100644 (file)
@@ -1,2 +1,4 @@
 etc/metaproxy/filters-enabled
 etc/metaproxy/filters-available
+etc/metaproxy/ports.d
+etc/metaproxy/routes.d
index f766210..4d21276 100644 (file)
@@ -6,6 +6,7 @@
     <filter id="frontend" type="frontend_net">
       <threads>50</threads>
       <port>@:9000</port>
+      <include src="ports.d/*.xml"/>
       <message>FN</message>
     </filter>
   </filters>
@@ -15,6 +16,7 @@
       <include src="filters-enabled/*.xml"/>
       <filter type="bounce"/>
     </route>
+    <include src="routes.d/*.xml"/>
   </routes>
 </metaproxy>
 
index 77876e2..563b7da 100644 (file)
@@ -63,6 +63,8 @@ rm -f ${RPM_BUILD_ROOT}/%{_libdir}/metaproxy/*
 mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/metaproxy4/modules
 mkdir -p ${RPM_BUILD_ROOT}/etc/metaproxy/filters-enabled
 mkdir -p ${RPM_BUILD_ROOT}/etc/metaproxy/filters-available
+mkdir -p ${RPM_BUILD_ROOT}/etc/metaproxy/ports.d
+mkdir -p ${RPM_BUILD_ROOT}/etc/metaproxy/routes.d
 mkdir -p ${RPM_BUILD_ROOT}/etc/logrotate.d
 mkdir -p ${RPM_BUILD_ROOT}/etc/init.d
 mkdir -p ${RPM_BUILD_ROOT}/etc/sysconfig
index 8982a4a..e3ca70a 100644 (file)
@@ -6,6 +6,7 @@
     <filter id="frontend" type="frontend_net">
       <threads>50</threads>
       <port>@:9000</port>
+      <include src="ports.d/*.xml"/>
       <!-- Uncomment the message below to get queue/thread usage logging -->
       <message>FN</message>
     </filter>
@@ -16,6 +17,7 @@
       <include src="filters-enabled/*.xml"/>
       <filter type="bounce"/>
     </route>
+    <include src="routes.d/*.xml"/>
   </routes>
 </metaproxy>