1 |
--- Makefile.orig 2010-02-07 23:19:00.000000000 +0100 |
2 |
+++ Makefile 2010-02-07 23:22:50.000000000 +0100 |
3 |
@@ -34,9 +34,9 @@ |
4 |
LIBIMSPECTOR_OBJS = socket.o options.o tools.o |
5 |
|
6 |
PROTOCOL_PLUGINS = msnprotocolplugin.so icqprotocolplugin.so yahooprotocolplugin.so ircprotocolplugin.so ggprotocolplugin.so jabberprotocolplugin.so httpsprotocolplugin.so |
7 |
-LOGGING_PLUGINS = fileloggingplugin.so debugloggingplugin.so catsloggingplugin.so |
8 |
+LOGGING_PLUGINS = fileloggingplugin.so debugloggingplugin.so catsloggingplugin.so mysqlloggingplugin.so sqliteloggingplugin.so postgresqlloggingplugin.so |
9 |
FILTER_PLUGINS = badwordsfilterplugin.so aclfilterplugin.so miscfilterplugin.so censordfilterplugin.so |
10 |
-RESPONDER_PLUGINS = |
11 |
+RESPONDER_PLUGINS = dbresponderplugin.so |
12 |
|
13 |
PLUGINS = $(PROTOCOL_PLUGINS) $(LOGGING_PLUGINS) $(CONTENT_PLUGINS) $(FILTER_PLUGINS) $(RESPONDER_PLUGINS) $(ADD_PLUGINS) |
14 |
|
15 |
@@ -160,30 +160,30 @@ |
16 |
$(CXX) $(CXXFLAGS) dbresponderplugin.cpp -c -I$(PREFIX)/include |
17 |
|
18 |
install: imspector libimspector.so $(PLUGINS) |
19 |
- -mkdir -p $(DESTDIR)/$(PREFIX)/sbin |
20 |
- -mkdir -p $(DESTDIR)/$(PREFIX)/lib/imspector |
21 |
- -install imspector $(DESTDIR)/$(PREFIX)/sbin/imspector |
22 |
- -install libimspector.so $(DESTDIR)/$(PREFIX)/lib/libimspector.so |
23 |
+ -mkdir -p $(sbindir) |
24 |
+ -mkdir -p $(libdir)/imspector |
25 |
+ -install imspector $(sbindir)/imspector |
26 |
+ -install libimspector.so $(libdir)/libimspector.so |
27 |
-(for PLUGIN in $(PLUGINS) $(ADD_PLUGINS); do \ |
28 |
- install $$PLUGIN $(DESTDIR)/$(PREFIX)/lib/imspector/$$PLUGIN; \ |
29 |
+ install $$PLUGIN $(libdir)/imspector/$$PLUGIN; \ |
30 |
done); |
31 |
- -mkdir -p $(DESTDIR)/$(PREFIX)/etc/imspector |
32 |
- -install imspector.conf $(DESTDIR)/$(PREFIX)/etc/imspector/imspector.conf |
33 |
- -install badwords.txt $(DESTDIR)/$(PREFIX)/etc/imspector/badwords.txt |
34 |
- -install acl.txt $(DESTDIR)/$(PREFIX)/etc/imspector/acl.txt |
35 |
- -mkdir -p /var/log/imspector |
36 |
- -mkdir -p /var/lib/imspector |
37 |
+ -mkdir -p $(sysconfdir)/imspector |
38 |
+ -install imspector.conf $(sysconfdir)/imspector/imspector.conf |
39 |
+ -install badwords.txt $(sysconfdir)/imspector/badwords.txt |
40 |
+ -install acl.txt $(sysconfdir)/imspector/acl.txt |
41 |
+ -mkdir -p $(localstatedir)/log/imspector |
42 |
+ -mkdir -p $(libdir)/imspector |
43 |
|
44 |
install-cert: |
45 |
- -mkdir -p $(DESTDIR)/$(PREFIX)/etc/imspector |
46 |
+ -mkdir -p $(DESTDIR)/$(sysconfdir)/ssl/imspector |
47 |
-openssl req -new -newkey rsa:1024 -days 365 -nodes -x509 \ |
48 |
- -keyout $(DESTDIR)/$(PREFIX)/etc/imspector/serverkey.pem \ |
49 |
- -out $(DESTDIR)/$(PREFIX)/etc/imspector/servercert.pem |
50 |
+ -keyout $(DESTDIR)/$(sysconfdir)/ssl/imspector/serverkey.pem \ |
51 |
+ -out $(DESTDIR)/$(sysconfdir)/ssl/imspector/servercert.pem |
52 |
|
53 |
install-ca-cert: install-cert |
54 |
-openssl req -new -newkey rsa:1024 -days 365 -nodes -x509 \ |
55 |
- -keyout $(DESTDIR)/$(PREFIX)/etc/imspector/cakey.pem \ |
56 |
- -out $(DESTDIR)/$(PREFIX)/etc/imspector/cacert.pem |
57 |
+ -keyout $(DESTDIR)/$(sysconfdir)/ssl/imspector/cakey.pem \ |
58 |
+ -out $(DESTDIR)/$(sysconfdir)/ssl/imspector/cacert.pem |
59 |
|
60 |
uninstall: |
61 |
-rm -f $(DESTDIR)/$(PREFIX)/sbin/imspector |