diff options
| author | Martin Wilke <miwi@FreeBSD.org> | 2007-04-23 10:06:57 +0000 |
|---|---|---|
| committer | Martin Wilke <miwi@FreeBSD.org> | 2007-04-23 10:06:57 +0000 |
| commit | 3c5aa58788a9c3237503307266b92dbff047369d (patch) | |
| tree | 7f96a62bc1bc7e5bfc77ee6d30c9b9c009cdfedb /www/ocsigen/files/patch-Makefile | |
| parent | - Update to 0.2.7-RC2 (diff) | |
Ocsigen is a web programming framework for OCaml. It can be used as a web
server, serving static pages, but it is also possible to implement entire
web sites as OCaml modules.
WWW: http://www.ocsigen.org
PR: ports/111759
Submitted by: Jaap Boender <jaapb at kerguelen.org>
Notes
Notes:
svn path=/head/; revision=190720
Diffstat (limited to 'www/ocsigen/files/patch-Makefile')
| -rw-r--r-- | www/ocsigen/files/patch-Makefile | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/www/ocsigen/files/patch-Makefile b/www/ocsigen/files/patch-Makefile new file mode 100644 index 000000000000..b39fa3cdd23b --- /dev/null +++ b/www/ocsigen/files/patch-Makefile @@ -0,0 +1,80 @@ +--- Makefile.orig Thu Mar 15 12:27:51 2007 ++++ Makefile Mon Apr 23 10:18:24 2007 +@@ -16,7 +16,7 @@ + CAMLDOC = $(OCAMLFIND) ocamldoc $(LIB) + TOINSTALL = modules/tutorial.cmo modules/tutorial.cmi modules/monitoring.cmo server/parseconfig.cmi server/ocsigen.cmi server/ocsigenmod.cma server/staticmod.cmi server/staticmod.cmo server/ocsigenboxes.cmi xmlp4/ohl-xhtml/xHTML.cmi xmlp4/ohl-xhtml/xML.cmi xmlp4/ohl-xhtml/xhtml.cma xmlp4/xhtmltypes.cmi xmlp4/simplexmlparser.cmi xmlp4/xhtmlsyntax.cma META lwt/lwt.cmi lwt/lwt_unix.cmi server/preemptive.cmi http/predefined_senders.cmi baselib/messages.cmi $(DUCEFILES) + EXAMPLES = modules/tutorial.cmo modules/tutorial.cmi modules/monitoring.cmo $(DUCEEXAMPLES) +-PP = -pp "camlp4o ./lib/xhtmlsyntax.cma -loc loc" ++PP = -pp "$(CAMLP4O) ./lib/xhtmlsyntax.cma -loc loc" + + all: $(REPS) + +@@ -62,7 +62,7 @@ + @for i in $(REPS) ; do touch "$$i"/.depend; $(MAKE) -C $$i depend ; done + + +-.PHONY: install fullinstall doc ++.PHONY: install fullinstall doc docinstall + install: + mkdir -p $(PREFIX)/$(MODULEINSTALLDIR) + mkdir -p $(PREFIX)/$(EXAMPLESINSTALLDIR) +@@ -73,10 +73,10 @@ + -rm META + + +-fullinstall: doc install ++fullinstall: install + mkdir -p $(PREFIX)/$(CONFIGDIR) + mkdir -p $(PREFIX)/$(STATICPAGESDIR) +- -mv $(PREFIX)/$(CONFIGDIR)/ocsigen.conf $(PREFIX)/$(CONFIGDIR)/ocsigen.conf.old ++# -mv $(PREFIX)/$(CONFIGDIR)/ocsigen.conf $(PREFIX)/$(CONFIGDIR)/ocsigen.conf.old + cat files/ocsigen.conf \ + | sed s%_LOGDIR_%$(LOGDIR)%g \ + | sed s%_STATICPAGESDIR_%$(STATICPAGESDIR)%g \ +@@ -84,7 +84,7 @@ + | sed s%_OCSIGENUSER_%$(OCSIGENUSER)%g \ + | sed s%_OCSIGENGROUP_%$(OCSIGENGROUP)%g \ + | sed s%_MODULEINSTALLDIR_%$(MODULEINSTALLDIR)/$(OCSIGENNAME)%g \ +- > $(PREFIX)/$(CONFIGDIR)/ocsigen.conf ++ > $(PREFIX)/$(CONFIGDIR)/ocsigen.conf.sample + -mv $(PREFIX)/$(CONFIGDIR)/mime.types $(PREFIX)/$(CONFIGDIR)/mime.types.old + cp -f files/mime.types $(PREFIX)/$(CONFIGDIR) + mkdir -p $(PREFIX)/$(LOGDIR) +@@ -92,8 +92,19 @@ + $(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)/ocsigen.conf.sample + chmod a+r $(PREFIX)/$(CONFIGDIR)/mime.types ++# [ -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) ++ ++docinstall: doc + mkdir -p $(PREFIX)/$(DOCDIR) + install -d -m 755 $(PREFIX)/$(DOCDIR)/lwt + install -d -m 755 $(PREFIX)/$(DOCDIR)/oc +@@ -102,16 +113,6 @@ + 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); } +- install -d -m 755 $(PREFIX)/$(MANDIR) +- install -m 644 files/ocsigen.1 $(PREFIX)/$(MANDIR) +- + + .PHONY: uninstall fulluninstall + uninstall: |
