Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 143 lines (109 sloc) 3.742 kB
c1d9c53 remove autoloads.out during clean.
dancy authored
1 # $Id: Makefile,v 1.32 2006/03/01 22:27:38 dancy Exp $
b1adb73 2003-06-25 Kevin Layer <layer@relay.known.net>
layer authored
2
2863ec4 updated build lisp.
dancy authored
3 preferred_lisp=/fi/cl/8.0/bin/mlisp
4 alt_lisp0=/usr/local/acl80/mlisp
7fd5dff See ChangeLog
dancy authored
5 alt_lisp1=/storage1/acl80/mlisp
6e45ecc 8.0.beta changes. see ChangeLog.
dancy authored
6
7 lisp:=$(shell if test -x $(preferred_lisp); then \
8 echo $(preferred_lisp); \
9 elif test -x $(alt_lisp0); then \
10 echo $(alt_lisp0); \
11 elif test -x $(alt_lisp1); then \
12 echo $(alt_lisp1); \
b1adb73 2003-06-25 Kevin Layer <layer@relay.known.net>
layer authored
13 else \
788e0b9 2005-10-10 Kevin Layer <layer@relay.known.net>
layer authored
14 echo mlisp; \
b1adb73 2003-06-25 Kevin Layer <layer@relay.known.net>
layer authored
15 fi)
9a494bb Changes to various files to support RPM packaging.
dancy authored
16
17 ROOT ?= /
18 prefix ?= $(ROOT)/usr
19 libdir ?= $(prefix)/lib
20 bindir ?= $(prefix)/bin
21 sbindir ?= $(prefix)/sbin
8eca0cb Added Makefile
dancy authored
22
c608824 See ChangeLog.. no programmatic changes
dancy authored
23 version := $(shell grep 'allegro-maild-version' version.cl | sed -e 's,.*"v\([0-9.]*\)".*,\1,')
24
d36a7b6 added install-dmz rule.
dancy authored
25 installer-package := maild-$(version)-installer.tar.gz
26
9a494bb Changes to various files to support RPM packaging.
dancy authored
27 SRCFILES=Makefile \
08b372c Added first rev of SuSE RPM support
dancy authored
28 maild.init maild.init.suse9 maild.sysconfig \
9a494bb Changes to various files to support RPM packaging.
dancy authored
29 aliases.cl auth.cl blacklist.cl bounce.cl checkers.cl \
30 config.cl deliver.cl deliver-smtp.cl dns.cl emailaddr.cl \
31 greylist.cl headers.cl input.cl ipaddr.cl lex.cl load.cl \
32 lock.cl log.cl maild.cl mailer.cl queue.cl queue-process.cl \
33 recips.cl rep-server.cl rewrite.cl sasl.cl security.cl smtp.cl \
34 smtp-server-checkers.cl smtp-server.cl utils.cl version.cl www.cl
35
36 DOCFILES=ALIASES MAILERS.txt NOTES STATS greylist.sql greylist.sql.notes
37
38 GREYADMINSRCFILES=Makefile greyadmin.cl login.clp menu.clp super.clp
39
40 all: clean maild/maild
6e45ecc 8.0.beta changes. see ChangeLog.
dancy authored
41 (cd greyadmin; ACL=$(lisp) make)
abf2125 updated Makefile
dancy authored
42
80e243e see ChangeLog
dancy authored
43 maild/maild: *.cl
8eca0cb Added Makefile
dancy authored
44 rm -fr maild
1fd22cb 2004-11-10 Kevin Layer <layer@relay.known.net>
layer authored
45 $(lisp) -batch -L load.cl -e "(build)" -kill
8eca0cb Added Makefile
dancy authored
46
4c0d503 See ChangeLog
dancy authored
47 check-mail-virus/check-mail-virus: check-mail-virus.cl
48 rm -fr check-mail-virus
1fd22cb 2004-11-10 Kevin Layer <layer@relay.known.net>
layer authored
49 $(lisp) -batch -L check-mail-virus.cl -e '(build)' -kill
4c0d503 See ChangeLog
dancy authored
50
9a494bb Changes to various files to support RPM packaging.
dancy authored
51 install: install-system install-maild install-greyadmin
5b0037b 2005-12-19 Kevin Layer <layer@relay.known.net>
layer authored
52
53 install-stop: FORCE
647e076 see ChangeLog
dancy authored
54 -/etc/init.d/maild stop
5b0037b 2005-12-19 Kevin Layer <layer@relay.known.net>
layer authored
55
56 install-start: FORCE
647e076 see ChangeLog
dancy authored
57 /etc/init.d/maild start
4c0d503 See ChangeLog
dancy authored
58
59 install-common:
9a494bb Changes to various files to support RPM packaging.
dancy authored
60 mkdir -p $(libdir) $(sbindir)
4c0d503 See ChangeLog
dancy authored
61
62 install-maild: maild/maild install-common
9a494bb Changes to various files to support RPM packaging.
dancy authored
63 rm -fr $(libdir)/maild.old
64 -mv $(libdir)/maild $(libdir)/maild.old
65 cp -r maild $(libdir)
66 chmod +s $(libdir)/maild/maild
67 rm -f $(sbindir)/maild
68 ln -s $(libdir)/maild/maild $(sbindir)/maild
dd72f46 See ChangeLog
dancy authored
69
4c0d503 See ChangeLog
dancy authored
70 install-check-mail-virus: check-mail-virus/check-mail-virus install-common
9a494bb Changes to various files to support RPM packaging.
dancy authored
71 rm -fr $(libdir)/check-mail-virus
72 cp -r check-mail-virus $(libdir)
73 chown root $(libdir)/check-mail-virus/*
e841ad1 2004-11-10 Kevin Layer <layer@relay.known.net>
layer authored
74 ln -sf ../lib/check-mail-virus/check-mail-virus \
9a494bb Changes to various files to support RPM packaging.
dancy authored
75 $(sbindir)/check-mail-virus
4c0d503 See ChangeLog
dancy authored
76
9a494bb Changes to various files to support RPM packaging.
dancy authored
77 install-system: FORCE
08b372c Added first rev of SuSE RPM support
dancy authored
78 ifeq ($(VENDOR),suse)
79 cp maild.init.suse9 $(ROOT)/etc/init.d/maild
80 else
9a494bb Changes to various files to support RPM packaging.
dancy authored
81 cp maild.init $(ROOT)/etc/rc.d/init.d/maild
08b372c Added first rev of SuSE RPM support
dancy authored
82 endif
9a494bb Changes to various files to support RPM packaging.
dancy authored
83 if [ ! -e $(ROOT)/etc/sysconfig/maild ]; then \
84 cp maild.sysconfig $(ROOT)/etc/sysconfig/maild; \
85 fi
6fb3c2b see ChangeLog
dancy authored
86
5b0037b 2005-12-19 Kevin Layer <layer@relay.known.net>
layer authored
87 install-greyadmin: FORCE
88 (cd greyadmin; make install)
89
d36a7b6 added install-dmz rule.
dancy authored
90 install-dmz: dist
91 for host in duck spider; do \
92 scp $(installer-package) root@$$host:; \
93 ssh root@$$host "tar zxf $(installer-package) && ./maild-installer"; \
94 done
95
e841ad1 2004-11-10 Kevin Layer <layer@relay.known.net>
layer authored
96 clean: FORCE
c1d9c53 remove autoloads.out during clean.
dancy authored
97 rm -f *.fasl maild.tar.gz maild-*.tar.gz autoloads.out
9a494bb Changes to various files to support RPM packaging.
dancy authored
98 rm -fr maild check-mail-virus
27ec557 2004-11-10 Kevin Layer <layer@relay.known.net>
layer authored
99 (cd greyadmin; make clean)
e841ad1 2004-11-10 Kevin Layer <layer@relay.known.net>
layer authored
100
29c67e8 added SSL support
dancy authored
101 update: FORCE
102 cvs -q update -dP
103
c608824 See ChangeLog.. no programmatic changes
dancy authored
104 tarball: all
105 tar zcf maild.tar.gz maild
106
107 dist: tarball
d36a7b6 added install-dmz rule.
dancy authored
108 tar zcf $(installer-package) \
c608824 See ChangeLog.. no programmatic changes
dancy authored
109 maild.tar.gz \
110 maild.init \
111 maild-installer
112
9a494bb Changes to various files to support RPM packaging.
dancy authored
113 src-tarball: FORCE
114 rm -fr maild-$(version) maild-$(version).tar.gz
115 mkdir maild-$(version)
116 cp $(SRCFILES) $(DOCFILES) maild-$(version)
117 mkdir maild-$(version)/greyadmin
118 (cd greyadmin && cp $(GREYADMINSRCFILES) ../maild-$(version)/greyadmin)
119 tar zcf maild-$(version).tar.gz maild-$(version)
120 rm -fr maild-$(version)
121
08b372c Added first rev of SuSE RPM support
dancy authored
122 maild.spec: maild.spec.in
123 sed -e "s/__VERSION__/$(version)/" < maild.spec.in > maild.spec
124
125 maild-suse.spec: maild-suse.spec.in
126 sed -e "s/__VERSION__/$(version)/" < maild-suse.spec.in > maild-suse.spec
127
128 ifeq ($(VENDOR),suse)
129 rpm: suse-rpm
130
131 else
132 rpm: redhat-rpm
133
134 endif
135
136 redhat-rpm: maild.spec src-tarball
137 rpmbuild -ba maild.spec
138
139 suse-rpm: maild-suse.spec src-tarball
140 rpmbuild -ba maild-suse.spec
141
e841ad1 2004-11-10 Kevin Layer <layer@relay.known.net>
layer authored
142 FORCE:
Something went wrong with that request. Please try again.