blob: e165a27ebeeab2c5ffd0abd64d3e43752a56aae7 (
plain)
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
|
$NetBSD: patch-ab,v 1.1.1.1 2007/04/10 20:24:43 tonio Exp $
--- Makefile.orig 2007-03-15 12:27:51.000000000 +0100
+++ Makefile
@@ -64,19 +64,19 @@ depend: xmlp4
.PHONY: install fullinstall doc
install:
- mkdir -p $(PREFIX)/$(MODULEINSTALLDIR)
+ mkdir -p $(MODULEINSTALLDIR)
mkdir -p $(PREFIX)/$(EXAMPLESINSTALLDIR)
$(MAKE) -C server install
cat META.in | sed s/_VERSION_/`head -n 1 VERSION`/ > META
- $(OCAMLFIND) install $(OCSIGENNAME) -destdir "$(PREFIX)/$(MODULEINSTALLDIR)" $(TOINSTALL)
+ $(OCAMLFIND) install $(OCSIGENNAME) -destdir "$(MODULEINSTALLDIR)" $(TOINSTALL)
install -m 644 $(EXAMPLES) $(PREFIX)/$(EXAMPLESINSTALLDIR)
-rm META
fullinstall: doc install
- mkdir -p $(PREFIX)/$(CONFIGDIR)
+ mkdir -p $(EGDIR)
mkdir -p $(PREFIX)/$(STATICPAGESDIR)
- -mv $(PREFIX)/$(CONFIGDIR)/ocsigen.conf $(PREFIX)/$(CONFIGDIR)/ocsigen.conf.old
+# -mv $(EGDIR)/ocsigen.conf $(EGDIR)/ocsigen.conf.old
cat files/ocsigen.conf \
| sed s%_LOGDIR_%$(LOGDIR)%g \
| sed s%_STATICPAGESDIR_%$(STATICPAGESDIR)%g \
@@ -84,16 +84,16 @@ fullinstall: doc install
| sed s%_OCSIGENUSER_%$(OCSIGENUSER)%g \
| sed s%_OCSIGENGROUP_%$(OCSIGENGROUP)%g \
| sed s%_MODULEINSTALLDIR_%$(MODULEINSTALLDIR)/$(OCSIGENNAME)%g \
- > $(PREFIX)/$(CONFIGDIR)/ocsigen.conf
- -mv $(PREFIX)/$(CONFIGDIR)/mime.types $(PREFIX)/$(CONFIGDIR)/mime.types.old
- cp -f files/mime.types $(PREFIX)/$(CONFIGDIR)
- mkdir -p $(PREFIX)/$(LOGDIR)
- $(CHOWN) -R $(OCSIGENUSER):$(OCSIGENGROUP) $(PREFIX)/$(LOGDIR)
+ > $(EGDIR)/ocsigen.conf
+# -mv $(EGDIR)/mime.types $(EGDIR)/mime.types.old
+ cp -f files/mime.types $(EGDIR)
+ mkdir -p $(LOGDIR)
+ $(CHOWN) -R $(OCSIGENUSER):$(OCSIGENGROUP) $(LOGDIR)
$(CHOWN) -R $(OCSIGENUSER):$(OCSIGENGROUP) $(PREFIX)/$(STATICPAGESDIR)
- chmod u+rwx $(PREFIX)/$(LOGDIR)
- chmod a+rx $(PREFIX)/$(CONFIGDIR)
- chmod a+r $(PREFIX)/$(CONFIGDIR)/ocsigen.conf
- chmod a+r $(PREFIX)/$(CONFIGDIR)/mime.types
+ chmod u+rwx $(LOGDIR)
+ chmod a+rx $(EGDIR)
+ chmod a+r $(EGDIR)/ocsigen.conf
+ chmod a+r $(EGDIR)/mime.types
mkdir -p $(PREFIX)/$(DOCDIR)
install -d -m 755 $(PREFIX)/$(DOCDIR)/lwt
install -d -m 755 $(PREFIX)/$(DOCDIR)/oc
@@ -102,13 +102,13 @@ fullinstall: doc install
install -m 644 doc/oc/* $(PREFIX)/$(DOCDIR)/oc
chmod a+rx $(PREFIX)/$(DOCDIR)
chmod a+r $(PREFIX)/$(DOCDIR)/*
- [ -d /etc/logrotate.d ] && \
- { mkdir -p ${PREFIX}/etc/logrotate.d ; \
- cat files/logrotate.IN \
- | sed s%LOGDIR%$(LOGDIR)%g \
- | sed s%USER%$(OCSIGENUSER)%g \
- | sed s%GROUP%$(OCSIGENGROUP)%g \
- > $(PREFIX)/etc/logrotate.d/$(OCSIGENNAME); }
+# [ -d /etc/logrotate.d ] && \
+# { mkdir -p ${PREFIX}/etc/logrotate.d ; \
+# cat files/logrotate.IN \
+# | sed s%LOGDIR%$(LOGDIR)%g \
+# | sed s%USER%$(OCSIGENUSER)%g \
+# | sed s%GROUP%$(OCSIGENGROUP)%g \
+# > $(PREFIX)/etc/logrotate.d/$(OCSIGENNAME); }
install -d -m 755 $(PREFIX)/$(MANDIR)
install -m 644 files/ocsigen.1 $(PREFIX)/$(MANDIR)
|