# install the Distributed Checksum Clearinghouse sample white list CGI files

# Copyright (c) 2005 by Rhyolite Software

# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.

# THE SOFTWARE IS PROVIDED "AS IS" AND RHYOLITE SOFTWARE DISCLAIMS ALL
# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL RHYOLITE SOFTWARE
# BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.

# Rhyolite Software DCC 1.2.74-1.8 $Revision$

# Install only the CGI scripts in the cgi-bin directory to minimize
#   the risks of letting Apache execute files in it.  Install the other
#   scripts in the usual DCC libexec directory.

DEPTH	=..
CSCRIPTS=chgpasswd edit-whiteclnt list-log list-msg http2https
OFILES	=README common webuser-notify

@MAKE_PROG@
@MAKE_INC2@

INST_BINDIR=@installroot@@cgibin@

install:
	$(INSTALL) -d $(SET_BINOWN) -m 755 $(INST_BINDIR)
	for NM in $(CSCRIPTS); do $(INSTALL) $(SET_BINOWN) \
		-m $(BINMODE) -c $$NM $(INST_BINDIR)/$$NM; done
	for NM in $(OFILES); do $(INSTALL) $(SET_BINOWN) \
		-m 644 -c $$NM $(INST_BINDIR)/$$NM; done
