# # Makefile for the dns-check dns monitoring utility. # #Copyleft: # dns-check looks for changes in dns entries # Copyright (C) 2002 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: 6 Manchester Dr. # Lebanon NH, 03766, USA # # Modified for Debian GNU/Linux. DESTDIR = ##Make sure dns-check has DNSCHECKVER updated when this changes DNSCHECKVER = 0.2.7 #No quotes around multi file specs. BINDIR=$(DESTDIR)/usr/bin/ BINFILES=dns-check DOCDIR=$(DESTDIR)/usr/share/doc/dns-check-${DNSCHECKVER}/ DOCFILES=COPYING CREDITS ChangeLog INSTALL Makefile NEWS README TODO dns-check.conf.sample install: @echo -n "Installing files... " @echo -n "bin directory... " @install -o root -g root -m 0755 -d ${BINDIR} @echo -n "${BINFILES}... " @install -o root -g root -m 0644 ${BINFILES} ${BINDIR} @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! #regress: # @if ./samlib regression-test ; then \ # echo Regression test succeeded. ; \ # else \ # echo Regression test failed, exiting. ; \ # exit 1 ; \ # fi distribs: #regress @echo This should only need to be used by the author in @echo packing up the dns-check package. cd .. \ && tar cf - dns-check-${DNSCHECKVER}/ | \ gzip -9 > dns-check-${DNSCHECKVER}.tar.gz \ && rm -f dns-check-current \ && ln -sf dns-check-${DNSCHECKVER} dns-check-current \ && tar cf - dns-check-current/* | \ gzip -9 > dns-check-current.tar.gz \ && cp dns-check-${DNSCHECKVER}.tar.gz /usr/src/redhat/SOURCES/ \ && cd dns-check-${DNSCHECKVER} \ && cp -f redhat/dns-check.spec /usr/src/redhat/SPECS/ \ && rpm --sign -ba /usr/src/redhat/SPECS/dns-check.spec \ && mv -f /usr/src/dns-check-*.tar.gz /usr/src/mysource/ \ && mv -f /usr/src/redhat/RPMS/noarch/dns-check-*.noarch.rpm /usr/src/mysource/ \ && mv -f /usr/src/redhat/SRPMS/dns-check-*.src.rpm /usr/src/mysource/ mini-install: @if [ ! -f ${BINDIR} ]; then \ mkdir -p ${BINDIR} ; \ fi cp -pf dns-check /usr/bin