# # Makefile for the Mason firewall builder # #Copyleft: # Mason interactively creates a Linux packet filtering firewall. # Copyright (C) 1998 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.pobox.com/~wstearns #snail: 544 Winchester Place # Colchester VT, 05446, USA # ##Make sure buildkernel has BKSCRIPTVER updated when this changes MASONVER = 0.7.9 BINDIR = /usr/bin DOCFILES = COPYING mason.txt DOCDIR = /usr/doc/mason-${MASONVER} install: @echo -n "Installing files... " @echo -n "mason... " @install -o root -g root -m 0755 mason ${BINDIR}/mason @echo -n "mason_policy... " @install -o root -g root -m 0755 mason ${BINDIR}/mason_policy @echo -n "doc directory... " @install -o root -g root -m 0755 -d ${DOCDIR} @echo -n "${DOCFILES}... " @install -o root -g root -m 0644 ${DOCFILES} ${DOCDIR} @echo done! #@if [ ! -f /etc/bkrc ] ; then \ #install -o root -g root -m 0644 bkrc /etc ; \ #else \ #echo /etc/bkrc already exists, not overwriting ; \ #fi #distribs: # @echo This should only need to be used by the author in # @echo packing up the buildkernel package. # cd .. \ # && tar cf - buildkernel-${BKSCRIPTVER}/ | \ # gzip -9 > buildkernel-${BKSCRIPTVER}.tar.gz \ # && rm -f buildkernel-current \ # && ln -sf buildkernel-${BKSCRIPTVER} buildkernel-current \ # && tar cf - buildkernel-current/* | \ # gzip -9 > buildkernel-current.tar.gz \ # && cp buildkernel-${BKSCRIPTVER}.tar.gz /usr/src/redhat/SOURCES/ \ # && cd buildkernel-${BKSCRIPTVER} \ # && cp -f buildkernel-${BKSCRIPTVER}-*.spec /usr/src/redhat/SPECS/ \ # && rpm --buildarch noarch -ba /usr/src/redhat/SPECS/buildkernel-${BKSCRIPTVER}-*.spec \ # && mv -f /usr/src/buildkernel-*.tar.gz /usr/src/source/ \ # && mv -f /usr/src/redhat/RPMS/noarch/buildkernel-*.noarch.rpm /usr/src/source/ \ # && mv -f /usr/src/redhat/SRPMS/buildkernel-*.src.rpm /usr/src/source/