diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 277b5c59c..ab43cdbe4 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -4906,8 +4906,16 @@ sub ensure_config_path() { @config_path = split /:/, $config{CONFIG_PATH}; + # + # To accomodate Cygwin-based compilation, we have separate directories for files whose names + # clash on a case-insensitive filesystem. + # + push @config_path, $globals{SHAREDIR} . "/deprecated"; + push @config_path, $shorewallrc{SHAREDIR}. '/shorewall/deprecated' unless $globals{PRODUCT} eq 'shorewall'; + for ( @config_path ) { $_ .= '/' unless m|/$|; + s|//|/|g; } if ( $shorewall_dir ) { diff --git a/Shorewall/install.sh b/Shorewall/install.sh index 5dab77369..9676a51d3 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -419,11 +419,13 @@ mkdir -p ${DESTDIR}${CONFDIR}/$PRODUCT mkdir -p ${DESTDIR}${LIBEXECDIR}/$PRODUCT mkdir -p ${DESTDIR}${PERLLIBDIR}/Shorewall mkdir -p ${DESTDIR}${SHAREDIR}/$PRODUCT/configfiles +mkdir -p ${DESTDIR}${SHAREDIR}/$PRODUCT/deprecated mkdir -p ${DESTDIR}${VARDIR} chmod 755 ${DESTDIR}${CONFDIR}/$PRODUCT chmod 755 ${DESTDIR}${SHAREDIR}/$PRODUCT chmod 755 ${DESTDIR}${SHAREDIR}/$PRODUCT/configfiles +chmod 755 ${DESTDIR}${SHAREDIR}/$PRODUCT/deprecated if [ -n "$DESTDIR" ]; then mkdir -p ${DESTDIR}${CONFDIR}/logrotate.d @@ -1060,15 +1062,31 @@ fi # Install the Action files # for f in action.* ; do - install_file $f ${DESTDIR}${SHAREDIR}/$PRODUCT/$f 0644 - echo "Action ${f#*.} file installed as ${DESTDIR}${SHAREDIR}/$PRODUCT/$f" + case $f in + action.A_Reject) + install_file $f ${DESTDIR}${SHAREDIR}/$PRODUCT/deprecated/$f 0644 + echo "Action ${f#*.} file installed as ${DESTDIR}${SHAREDIR}/$PRODUCT/deprecated/$f" + ;; + *) + install_file $f ${DESTDIR}${SHAREDIR}/$PRODUCT/$f 0644 + echo "Action ${f#*.} file installed as ${DESTDIR}${SHAREDIR}/$PRODUCT/$f" + ;; + esac done cd Macros for f in macro.* ; do - install_file $f ${DESTDIR}${SHAREDIR}/$PRODUCT/$f 0644 - echo "Macro ${f#*.} file installed as ${DESTDIR}${SHAREDIR}/$PRODUCT/$f" + case $f in + macro.SNMPTrap) + install_file $f ${DESTDIR}${SHAREDIR}/$PRODUCT/deprecated/$f 0644 + echo "Macro ${f#*.} file installed as ${DESTDIR}${SHAREDIR}/$PRODUCT/deprecated/$f" + ;; + *) + install_file $f ${DESTDIR}${SHAREDIR}/$PRODUCT/$f 0644 + echo "Macro ${f#*.} file installed as ${DESTDIR}${SHAREDIR}/$PRODUCT/$f" + ;; + esac done cd ..