# # Makefile for modwall # #Copyleft: # modwall provides firewall modules that can be integrated into # an existing firewall. # Copyright (C) 2002-2005 William Stearns # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # The author can also be reached at: # William Stearns #email: wstearns@pobox.com (preferred) #web: http://www.stearns.org #snail: 6 Manchester Dr. # Lebanon, NH 03766, USA # # Modified for Debian GNU/Linux. DESTDIR = #Make sure samlib has SAMVER updated when this changes MODWALLVER = 0.2.3 #No quotes around multi file specs. LIBDIR=$(DESTDIR)/usr/lib/modwall/ LIBFILES=address banfor30 blockfwdports bogons catchmapper catchmapreply checkbans established modwall-template modwalllib histogram icmpchk icmpfwdchk identreject ipopts kernel local-forward-accept local-input-accept local-output-accept lockdown mapssh pasvmap plength punishmapper scrutinize scrutinizedst scrutinizesrc tcpchk udpchk sample-script inputsrcaddrtype outputdstaddrtype fwdsrcaddrtype fwddstaddrtype shunsrc shundst policy logremainder autoreject macchk canarydst syncapture DOCDIR=$(DESTDIR)/usr/share/doc/modwall-${MODWALLVER}/ DOCFILES=COPYING README.bricksummary.html README.modwall.html modwall.html CONFDIR=$(DESTDIR)/etc/modwall/ CONFFILES=modwall.conf DATADIR=$(DESTDIR)/var/lib/modwall/ DATAFILES=bogon-hosts bogon-bn-agg.txt SYSVDIR=$(DESTDIR)/etc/init.d/ SYSVFILES=modwall #Others: bricksummary extract-pmap logserver install: @echo -n "Installing files... " @echo -n "lib directory... " @install -o root -g root -m 0750 -d ${LIBDIR} @echo -n "${LIBFILES}... " @install -p -o root -g root -m 0644 ${LIBFILES} ${LIBDIR} @echo -n "doc directory... " @install -o root -g root -m 0750 -d ${DOCDIR} @echo -n "${DOCFILES}... " @install -p -o root -g root -m 0644 ${DOCFILES} ${DOCDIR} @echo -n "conf directory... " @install -o root -g root -m 0750 -d ${CONFDIR} @echo -n "${CONFFILES}... " @install -p -o root -g root -m 0644 ${CONFFILES} ${CONFDIR} @echo -n "data directory... " @install -o root -g root -m 0750 -d ${DATADIR} @echo -n "${DATAFILES}... " @install -p -o root -g root -m 0644 ${DATAFILES} ${DATADIR} @echo -n "SysV directory... " @install -o root -g root -m 0750 -d ${SYSVDIR} @echo -n "${SYSVFILES}... " @install -p -o root -g root -m 0644 ${SYSVFILES} ${SYSVDIR} @echo done! #regress: # @if ./freedups-regression-test ; then \ # echo Regression test succeeded. ; \ # else \ # echo Regression test failed, exiting. ; \ # exit 1 ; \ # fi #regress distribs: @echo This should only need to be used by the author in @echo packing up the modwall package. cd .. \ && tar cf - modwall-${MODWALLVER}/ | \ gzip -9 > modwall-${MODWALLVER}.tar.gz \ && rm -f modwall-current \ && ln -sf modwall-${MODWALLVER} modwall-current \ && tar cf - modwall-current/* | \ gzip -9 > modwall-current.tar.gz \ && cp modwall-${MODWALLVER}.tar.gz /usr/src/redhat/SOURCES/ \ && cd modwall-${MODWALLVER} \ && cp -f redhat/modwall.spec /usr/src/redhat/SPECS/ \ && rpmbuild --sign -ba /usr/src/redhat/SPECS/modwall.spec \ && cp -p /usr/src/modwall-*.tar.gz /usr/src/mysource/ \ && cp -p /usr/src/redhat/RPMS/noarch/modwall-*.noarch.rpm /usr/src/mysource/ \ && cp -p /usr/src/redhat/SRPMS/modwall-*.src.rpm /usr/src/mysource/ #mini-install: # @if [ ! -f ${LIBDIR} ]; then \ # mkdir -p ${LIBDIR} ; \ # fi # cp -pf samlib /usr/lib/samlib