This allows custom ports and routes to be added by 3rd party.
etc/metaproxy/filters-enabled
etc/metaproxy/filters-available
+etc/metaproxy/ports.d
+etc/metaproxy/routes.d
<filter id="frontend" type="frontend_net">
<threads>50</threads>
<port>@:9000</port>
+ <include src="ports.d/*.xml"/>
<message>FN</message>
</filter>
</filters>
<include src="filters-enabled/*.xml"/>
<filter type="bounce"/>
</route>
+ <include src="routes.d/*.xml"/>
</routes>
</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
<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>
<include src="filters-enabled/*.xml"/>
<filter type="bounce"/>
</route>
+ <include src="routes.d/*.xml"/>
</routes>
</metaproxy>