forked from yaslama/bouncehammer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
162 lines (146 loc) · 6.45 KB
/
Makefile.am
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# $Id: Makefile.am,v 1.58.2.27 2014/07/28 05:23:58 ak Exp $
# -Id: Makefile.am,v 1.14 2009/12/01 10:35:23 ak Exp -
# -Id: Makefile.am,v 1.14 2009/08/27 06:05:39 ak Exp -
# Copyright (C) 2009-2014 Cubicroot Co. Ltd.
# This is the auto-Makefile for bounceHammer, is processed by automake to create Makefile.in.
ENGINENAME = Kanadzuchi
SYSTEMNAME = bounceHammer
SYSVERSION = 2.7.12p1
CMD_MODULE = ./Modules.PL
CMD_IMPLEM = ./Implement.PL
PATCH_TBOP = ./diff/perl-TB-option-on-filehandle.patch
if WEBUI
SUBDIRS = src template
else
SUBDIRS = src
endif
.PHONY: clean
all-am: Makefile apply-patch
install-am: sublocalstatedir message
clean-am: reverse-patch
rm -f ./*~ ./*.bak ./*.tmp ./*.db ./diff/*.done
find . -name '*.rej' -type f -exec rm -f {} \;
find . -name '*.rej.orig' -type f -exec rm -f {} \;
rm -fr ./.temp ./.test
rm -f /tmp/hammer.1970-01-01.11111111.111111.tmp
rm -f /tmp/bouncehammer-test.db
distclean-am: clean-am
rm -fr ./dist
check-pm:
@test -x $(PERL) && test -f $(CMD_MODULE) && $(PERL) $(CMD_MODULE) check
check-implement:
@test -x $(PERL) && test -f $(CMD_IMPLEM) && $(PERL) $(CMD_IMPLEM) tb
test:
LANG="C"; export LANG
@mkdir -p ./.test && test -w ./.test && $(PROVE)
apply-patch:
if [ "$(PI_IMPLEMENT_TB)" = "NO" ]; then \
$(PATCH) -tuNs -p0 < $(PATCH_TBOP) || true ;\
$(TOUCH) $(PATCH_TBOP).done ;\
else \
true ;\
fi
reverse-patch:
if [ "$(PI_IMPLEMENT_TB)" = "NO" ]; then \
test -f $(PATCH_TBOP).done && $(PATCH) -tuRs -p0 < $(PATCH_TBOP) || true ;\
rm -f $(PATCH_TBOP).done ;\
fi
sublocalstatedir:
mkdir -pm 0755 @localstatedir@/cache
mkdir -pm 0755 @localstatedir@/db
mkdir -pm 0755 @localstatedir@/incoming
mkdir -pm 0755 @localstatedir@/log
mkdir -pm 0755 @localstatedir@/mail
mkdir -pm 0755 @localstatedir@/run
mkdir -pm 0755 @localstatedir@/spool
mkdir -pm 0755 @localstatedir@/tmp
$(CHMOD) g+w @localstatedir@/db
$(CHMOD) 1777 @localstatedir@/cache
$(CHMOD) 1777 @localstatedir@/incoming
$(CHMOD) 1777 @localstatedir@/run
$(CHMOD) 1777 @localstatedir@/spool
$(CHMOD) 1777 @localstatedir@/tmp
uninstall-old-files:
@echo "Uninstall files which are removed at ver 2.3.0"
rm -f @prefix@/lib/Kanadzuchi/RDB.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/MasterTable.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Schema.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Schema/Addressers.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Schema/BounceLogs.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Schema/Destinations.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Schema/HostGroups.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Schema/Providers.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Schema/Reasons.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Schema/SenderDomains.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Table.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Table/Addressers.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Table/Destinations.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Table/HostGroups.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Table/Providers.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Table/Reasons.pm
rm -f @prefix@/lib/Kanadzuchi/RDB/Table/SenderDomains.pm
rm -f @prefix@/lib/Kanadzuchi/Mail/Stored/RDB.pm
rm -f @prefix@/share/template/standard/element/div-pager.??.html
rm -f @prefix@/share/template/standard/stylesheet/pager.css
@echo "Uninstall files which are renamed at ver 2.4.0"
rm -f @prefix@/lib/Kanadzuchi/API/Dispatch.pm
rm -f @prefix@/lib/Kanadzuchi/Mail/Bounced/NTTDoCoMo.pm
rm -f @prefix@/lib/Kanadzuchi/Mail/Bounced/aubyKDDI.pm
rm -f @prefix@/lib/Kanadzuchi/Mail/Bounced/SoftBank.pm
rm -f @prefix@/lib/Kanadzuchi/Mail/Why/TooBig.pm
rm -f @prefix@/lib/Kanadzuchi/Mbox/*.pm
rm -f @prefix@/share/template/standard/page/*.en.html
rm -f @prefix@/share/template/standard/page/*.ja.html
rm -f @prefix@/share/template/standard/element/*.en.html
rm -f @prefix@/share/template/standard/element/*.ja.html
rm -f @prefix@/share/template/standard/help/*.html
rm -rf @prefix@/lib/Kanadzuchi/Mbox/
rm -rf @prefix@/share/template/standard/help/
@echo "Uninstall files which are renamed at ver 2.6.0"
rm -f @prefix@/lib/Kanadzuchi/Mail/Why/Makefile.am
rm -f @prefix@/lib/Kanadzuchi/MTA/Google.pm
@echo "Uninstall files which are renamed at ver 2.6.1"
rm -f @prefix@/lib/Kanadzuchi/RFC1893.pm
rm -f @prefix@/lib/Kanadzuchi/Mail/Bounced/JP/aubyKDDI.pm
rm -f @prefix@/lib/Kanadzuchi/Mail/Bounced/JP/NTTDoCoMo.pm
rm -f @prefix@/lib/Kanadzuchi/Mail/Bounced/JP/SoftBank.pm
@echo "Uninstall files which are renamed at ver 2.7.11"
rm -f @prefix@/lib/Kanadzuchi/Mail/Bounced/Yahoo.pm
message:
@echo "-----------------------------------------------------------------------------"
@echo " ****** Upgrade information is available at ./UPGRADE ******"
@echo "-----------------------------------------------------------------------------"
@echo " $(SYSTEMNAME) $(SYSVERSION) "
@echo "-----------------------------------------------------------------------------"
@echo " To use bounceHammer Command line tools"
@echo
@echo " 1. Setup and start database (PostgreSQL, MySQL, or SQLite)"
@echo " 2. Create tables"
@echo " a. Run @datadir@/script/{PostgreSQL,MySQL,SQLite}*.sql"
@echo " b. Run @datadir@/script/mastertable-*.sql"
@echo " c. Run @datadir@/script/records-example.sql"
@echo " 3. Copy @sysconfdir@/bouncehammer.cf-example as @sysconfdir@/bouncehammer.cf"
@echo " 4. Edit @sysconfdir@/bouncehammer.cf "
@echo " 5. Install the perl module for DB: 'DBD::Pg', 'DBD::mysql' or 'DBD::SQLite'"
@echo " 6. @bindir@/* command line tools are avaliable"
@echo " 7. bin/mailboxparser -v /path/to/message.eml"
@echo
if WEBUI
@echo "-----------------------------------------------------------------------------"
@echo " To use bounceHammer WebUI"
@echo
@echo " 1. Configure your web server, turn 'ExecCGI' on "
@echo " 2. Copy @sysconfdir@/webui.cf-example @sysconfdir@/webui.cf"
@echo " 3. Edit @sysconfdir@/webui.cf "
@echo " 4. Copy @datadir@/script/bouncehammer.cgi to 'DocumentRoot'"
@echo " 5. Do not forget chmod a+x 'DocumentRoot'/bouncehammer.cgi"
@echo " 6. Open 'http://yourhost/path/to/docroot/bouncehammer.cgi/index' "
@echo
endif
@echo "-----------------------------------------------------------------------------"
@echo " To show this screen, type 'make message' and hit 'Return' key"
@echo " More description about bounceHmammer is availalbe at http://bouncehammer.jp/"
@echo "-----------------------------------------------------------------------------"
@echo " ****** Upgrade information is available at ./UPGRADE ******"
@echo "-----------------------------------------------------------------------------"
@echo