1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
########### Makefile
# Edit the settings below, if you like, and say `make install'.
#
# This file is part of SAUCE, a very picky anti-spam receiver-SMTP.
# SAUCE is Copyright (C) 1997-2003 Ian Jackson
#
# 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, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# $Id: Makefile,v 1.27 2006/04/02 18:30:36 ian Exp $
# Edit these variables, if you want to:
prefix=/usr/local
var_base=/var
var_dir=$(var_base)/lib/sauce
log_dir=/var/log/sauce
etc_dir=/etc
tclsh=/usr/bin/tclsh
var_run_dir=$(var_base)/run
fw_lockfile=$(var_run_dir)/sauce-firewall.lock
username=mail
userlist=/etc/userlist
bin_dir=$(prefix)/bin
sbin_dir=$(prefix)/sbin
share_dir=$(prefix)/share
sharelib_dir=$(share_dir)/sauce
doc_dir=$(share_dir)/doc/sauce
config_dir=$(etc_dir)/sauce
userv_dir=$(etc_dir)/userv
uservserv_dir=$(userv_dir)/services.d
INSTALL=/usr/bin/install
INSTALL_DATA=$(INSTALL) -c
INSTALL_PROGRAM=$(INSTALL) -c
# You should not need to edit anything beyond this point.
#
#
VERSION= 0.1
USERV_SERVS= sauce-userblacklist sauce-firewall sauce-rcptpolicy
TCL_LIBS= readlibs readconf library thread dns avf avfpool \
smtp msgdata notifybl datastate yesmaster sconfig stall
TCL_USEREXECS= sauce-bwlist sauce-setuserpolicy
TCL_SYSEXECS= sauce sauceadmin sauce-setsyspolicy sauce9-convert \
sauce-await-startup
TCL_LIBEXECS= firewall rcpt-policy clean-site-annoy convertdb
TARGETS= $(TCL_USEREXECS) $(TCL_SYSEXECS) $(TCL_LIBEXECS) \
$(TCL_LIBS) $(USERV_SERVS)
DOC_FILES= BLURB.text README.text ERRORS.text EXIM-CONFIG.text \
INSTALL.text POLICY-CONFIG.text
all: $(TARGETS)
install: $(TARGETS)
$(INSTALL_DATA) $(TCL_LIBS) $(sharelib_dir)
$(INSTALL_PROGRAM) $(TCL_LIBEXECS) $(sharelib_dir)
$(INSTALL_PROGRAM) $(TCL_USEREXECS) $(bin_dir)
$(INSTALL_PROGRAM) $(TCL_SYSEXECS) $(sbin_dir)
set -e; for f in $(USERV_SERVS); do \
$(INSTALL_DATA) $$f $(uservserv_dir)/$$f:example; \
done
databases:
SAUCE9_CONVERTB=./convertdb sauce9-convert $(var_dir)
install_doc: $(DOC_FILES)
$(INSTALL_DATA) $(DOC_FILES) $(doc_dir)
settings: Makefile
$(tclsh) setsettings.tcl >$@-n \
_tclsh "$(tclsh)" \
var_dir "$(var_dir)" \
log_dir "$(log_dir)" \
sbin_dir "$(sbin_dir)" \
config_dir "$(config_dir)" \
share_dir "$(sharelib_dir)" \
readlibs "$(sharelib_dir)/readlibs" \
username "$(username)" \
userlist "$(userlist)" \
fw_lockfile "$(fw_lockfile)" \
tcl_lib_ext? ""
@mv -f $@-n $@
%: %.tcl settings
$(tclsh) subst.tcl settings $<
%: %.in settings
$(tclsh) subst.tcl settings $<
clean distclean:
rm -f settings $(TARGETS) *.new *~ ./#*# *.bak
rm -f debian/*~ debian/#*# debian/*.bak
rm -f cdb.addr-seen.main cdb.addr-list.log
rm -f cdb.site-seen.main cdb.site-list.log
rm -f cdb.site-annoy.main cdb.site-annoy.log
|