diff options
author | tonio <tonio@pkgsrc.org> | 2007-04-10 20:24:43 +0000 |
---|---|---|
committer | tonio <tonio@pkgsrc.org> | 2007-04-10 20:24:43 +0000 |
commit | 38fe5753c40902bda9cd4460bd8403e6b75f7074 (patch) | |
tree | 4b33b4892cf7c0274dd345b5fb4a3f94f6293019 /www | |
parent | f9352651f1b38c3f92f3b9afa5b490e037afc94a (diff) | |
download | pkgsrc-38fe5753c40902bda9cd4460bd8403e6b75f7074.tar.gz |
Added www/ocsigen from PR 36103 by Jaap Boender
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/
Diffstat (limited to 'www')
-rw-r--r-- | www/ocsigen/DESCR | 5 | ||||
-rw-r--r-- | www/ocsigen/Makefile | 57 | ||||
-rw-r--r-- | www/ocsigen/PLIST | 146 | ||||
-rw-r--r-- | www/ocsigen/PLIST.ocamlduce | 5 | ||||
-rw-r--r-- | www/ocsigen/distinfo | 7 | ||||
-rw-r--r-- | www/ocsigen/options.mk | 17 | ||||
-rw-r--r-- | www/ocsigen/patches/patch-aa | 111 | ||||
-rw-r--r-- | www/ocsigen/patches/patch-ab | 75 |
8 files changed, 423 insertions, 0 deletions
diff --git a/www/ocsigen/DESCR b/www/ocsigen/DESCR new file mode 100644 index 00000000000..f3ee5f6cbd6 --- /dev/null +++ b/www/ocsigen/DESCR @@ -0,0 +1,5 @@ +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 diff --git a/www/ocsigen/Makefile b/www/ocsigen/Makefile new file mode 100644 index 00000000000..9d8271b9799 --- /dev/null +++ b/www/ocsigen/Makefile @@ -0,0 +1,57 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/04/10 20:24:43 tonio Exp $ +# + +DISTNAME= ocsigen-0.6.0 +CATEGORIES= www +MASTER_SITES= http://www.ocsigen.org/download/ + +MAINTAINER= jaapb@kerguelen.org +HOMEPAGE= http://www.ocsigen.org/ +COMMENT= Web programming framework for OCaml + +DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib +DEPENDS+= ocamlnet-[0-9]*:../../net/ocamlnet + +BUILD_DEFS+= VARBASE + +HAS_CONFIGURE= yes +USE_LANGUAGES= c +CONFIGURE_ARGS= --enable-bytecode \ + --disable-newocamlnet \ + --disable-debug \ + --prefix ${PREFIX} \ + --bindir bin \ + --libdir share/examples \ + --mandir ${PKGMANDIR}/man1 \ + --docdir share/doc \ + --sysconfdir ${PKG_SYSCONFDIR}/ocsigen \ + --logdir ${VARBASE}/ocsigen \ + --staticpagesdir share/ocsigen/www \ + --uploaddir /tmp \ + --ocsigen-user www \ + --ocsigen-group www +CONF_FILES+= ${PREFIX}/share/examples/ocsigen/ocsigen.conf \ + ${PKG_SYSCONFDIR}/ocsigen/ocsigen.conf +USE_TOOLS+= gmake +BUILD_TARGET= all +BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.09 +INSTALL_TARGET= fullinstall +MAKE_ENV= EGDIR=${PREFIX}/share/examples/ocsigen + +PKG_USERS+= www +PKG_GROUPS+= www +OWN_DIRS+= ${VARBASE}/ocsigen +OWN_DIRS_PERMS+= ${VARBASE}/ocsigen www www 0755 + +post-extract: + rm ${WRKSRC}/baselib/ocsiconfig.ml + +pre-install: + mkdir -p ${PKG_SYSCONFDIR}/ocsigen + +.include "options.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../lang/ocaml/buildlink3.mk" +.include "../../devel/pcre-ocaml/buildlink3.mk" +.include "../../security/ocaml-ssl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/ocsigen/PLIST b/www/ocsigen/PLIST new file mode 100644 index 00000000000..5b676424936 --- /dev/null +++ b/www/ocsigen/PLIST @@ -0,0 +1,146 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/04/10 20:24:43 tonio Exp $ +@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/ocsigen +bin/ocsigen +lib/ocaml/site-lib/ocsigen/META +lib/ocaml/site-lib/ocsigen/lwt.cmi +lib/ocaml/site-lib/ocsigen/lwt_unix.cmi +lib/ocaml/site-lib/ocsigen/messages.cmi +lib/ocaml/site-lib/ocsigen/monitoring.cmo +lib/ocaml/site-lib/ocsigen/ocsigen.cmi +lib/ocaml/site-lib/ocsigen/ocsigenboxes.cmi +lib/ocaml/site-lib/ocsigen/ocsigenmod.cma +lib/ocaml/site-lib/ocsigen/parseconfig.cmi +lib/ocaml/site-lib/ocsigen/predefined_senders.cmi +lib/ocaml/site-lib/ocsigen/preemptive.cmi +lib/ocaml/site-lib/ocsigen/simplexmlparser.cmi +lib/ocaml/site-lib/ocsigen/staticmod.cmi +lib/ocaml/site-lib/ocsigen/staticmod.cmo +lib/ocaml/site-lib/ocsigen/tutorial.cmi +lib/ocaml/site-lib/ocsigen/tutorial.cmo +lib/ocaml/site-lib/ocsigen/xHTML.cmi +lib/ocaml/site-lib/ocsigen/xML.cmi +lib/ocaml/site-lib/ocsigen/xhtml.cma +lib/ocaml/site-lib/ocsigen/xhtmlsyntax.cma +lib/ocaml/site-lib/ocsigen/xhtmltypes.cmi +man/man1/ocsigen.1 +share/doc/ocsigen/lwt/Lwt.html +share/doc/ocsigen/lwt/Lwt_unix.html +share/doc/ocsigen/lwt/index.html +share/doc/ocsigen/lwt/index_attributes.html +share/doc/ocsigen/lwt/index_class_types.html +share/doc/ocsigen/lwt/index_classes.html +share/doc/ocsigen/lwt/index_exceptions.html +share/doc/ocsigen/lwt/index_methods.html +share/doc/ocsigen/lwt/index_module_types.html +share/doc/ocsigen/lwt/index_modules.html +share/doc/ocsigen/lwt/index_types.html +share/doc/ocsigen/lwt/index_values.html +share/doc/ocsigen/lwt/style.css +share/doc/ocsigen/lwt/type_Lwt.html +share/doc/ocsigen/lwt/type_Lwt_unix.html +share/doc/ocsigen/oc/Extensions.html +share/doc/ocsigen/oc/Messages.html +share/doc/ocsigen/oc/Ocsigen.Make.html +share/doc/ocsigen/oc/Ocsigen.OCSIGENSIG.html +share/doc/ocsigen/oc/Ocsigen.PAGES.html +share/doc/ocsigen/oc/Ocsigen.Text.html +share/doc/ocsigen/oc/Ocsigen.Xhtml.html +share/doc/ocsigen/oc/Ocsigen.html +share/doc/ocsigen/oc/Ocsigenboxes.html +share/doc/ocsigen/oc/Parseconfig.html +share/doc/ocsigen/oc/Predefined_senders.html +share/doc/ocsigen/oc/Simplexmlparser.ExprOrPatt.html +share/doc/ocsigen/oc/Simplexmlparser.html +share/doc/ocsigen/oc/XHTML.M.html +share/doc/ocsigen/oc/XHTML.M_01_00.html +share/doc/ocsigen/oc/XHTML.M_01_01.html +share/doc/ocsigen/oc/XHTML.T.BASE.html +share/doc/ocsigen/oc/XHTML.T.Basic_Forms.html +share/doc/ocsigen/oc/XHTML.T.Basic_Tables.html +share/doc/ocsigen/oc/XHTML.T.FORMS.html +share/doc/ocsigen/oc/XHTML.T.HYPERTEXT.html +share/doc/ocsigen/oc/XHTML.T.IMAGE.html +share/doc/ocsigen/oc/XHTML.T.LINK.html +share/doc/ocsigen/oc/XHTML.T.LIST.html +share/doc/ocsigen/oc/XHTML.T.METAINFORMATION.html +share/doc/ocsigen/oc/XHTML.T.PRESENTATION.html +share/doc/ocsigen/oc/XHTML.T.SPECIAL.html +share/doc/ocsigen/oc/XHTML.T.STRUCTURE.html +share/doc/ocsigen/oc/XHTML.T.STYLE_SHEET.html +share/doc/ocsigen/oc/XHTML.T.TABLES.html +share/doc/ocsigen/oc/XHTML.T.TEXT.html +share/doc/ocsigen/oc/XHTML.T.html +share/doc/ocsigen/oc/XHTML.T_01_00.html +share/doc/ocsigen/oc/XHTML.T_01_01.html +share/doc/ocsigen/oc/XHTML.html +share/doc/ocsigen/oc/code_VALMessages.access.html +share/doc/ocsigen/oc/code_VALMessages.accesslog.html +share/doc/ocsigen/oc/code_VALMessages.bip.html +share/doc/ocsigen/oc/code_VALMessages.console.html +share/doc/ocsigen/oc/code_VALMessages.debug.html +share/doc/ocsigen/oc/code_VALMessages.debug_noel.html +share/doc/ocsigen/oc/code_VALMessages.errlog.html +share/doc/ocsigen/oc/code_VALMessages.error.html +share/doc/ocsigen/oc/code_VALMessages.log_aux.html +share/doc/ocsigen/oc/code_VALMessages.lwtbip.html +share/doc/ocsigen/oc/code_VALMessages.open_files.html +share/doc/ocsigen/oc/code_VALMessages.warning.html +share/doc/ocsigen/oc/index.html +share/doc/ocsigen/oc/index_attributes.html +share/doc/ocsigen/oc/index_class_types.html +share/doc/ocsigen/oc/index_classes.html +share/doc/ocsigen/oc/index_exceptions.html +share/doc/ocsigen/oc/index_methods.html +share/doc/ocsigen/oc/index_module_types.html +share/doc/ocsigen/oc/index_modules.html +share/doc/ocsigen/oc/index_types.html +share/doc/ocsigen/oc/index_values.html +share/doc/ocsigen/oc/style.css +share/doc/ocsigen/oc/type_Extensions.html +share/doc/ocsigen/oc/type_Messages.html +share/doc/ocsigen/oc/type_Ocsigen.Make.html +share/doc/ocsigen/oc/type_Ocsigen.OCSIGENSIG.html +share/doc/ocsigen/oc/type_Ocsigen.PAGES.html +share/doc/ocsigen/oc/type_Ocsigen.Text.html +share/doc/ocsigen/oc/type_Ocsigen.Xhtml.html +share/doc/ocsigen/oc/type_Ocsigen.html +share/doc/ocsigen/oc/type_Ocsigenboxes.html +share/doc/ocsigen/oc/type_Parseconfig.html +share/doc/ocsigen/oc/type_Predefined_senders.html +share/doc/ocsigen/oc/type_Simplexmlparser.ExprOrPatt.html +share/doc/ocsigen/oc/type_Simplexmlparser.html +share/doc/ocsigen/oc/type_XHTML.M.html +share/doc/ocsigen/oc/type_XHTML.M_01_00.html +share/doc/ocsigen/oc/type_XHTML.M_01_01.html +share/doc/ocsigen/oc/type_XHTML.T.BASE.html +share/doc/ocsigen/oc/type_XHTML.T.Basic_Forms.html +share/doc/ocsigen/oc/type_XHTML.T.Basic_Tables.html +share/doc/ocsigen/oc/type_XHTML.T.FORMS.html +share/doc/ocsigen/oc/type_XHTML.T.HYPERTEXT.html +share/doc/ocsigen/oc/type_XHTML.T.IMAGE.html +share/doc/ocsigen/oc/type_XHTML.T.LINK.html +share/doc/ocsigen/oc/type_XHTML.T.LIST.html +share/doc/ocsigen/oc/type_XHTML.T.METAINFORMATION.html +share/doc/ocsigen/oc/type_XHTML.T.PRESENTATION.html +share/doc/ocsigen/oc/type_XHTML.T.SPECIAL.html +share/doc/ocsigen/oc/type_XHTML.T.STRUCTURE.html +share/doc/ocsigen/oc/type_XHTML.T.STYLE_SHEET.html +share/doc/ocsigen/oc/type_XHTML.T.TABLES.html +share/doc/ocsigen/oc/type_XHTML.T.TEXT.html +share/doc/ocsigen/oc/type_XHTML.T.html +share/doc/ocsigen/oc/type_XHTML.T_01_00.html +share/doc/ocsigen/oc/type_XHTML.T_01_01.html +share/doc/ocsigen/oc/type_XHTML.html +share/examples/ocsigen/mime.types +share/examples/ocsigen/monitoring.cmo +share/examples/ocsigen/ocsigen.conf +share/examples/ocsigen/tutorial.cmi +share/examples/ocsigen/tutorial.cmo +@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/ocsigen +@dirrm lib/ocaml/site-lib/ocsigen +@dirrm share/doc/ocsigen/lwt +@dirrm share/doc/ocsigen/oc +@dirrm share/doc/ocsigen +@dirrm share/examples/ocsigen +@dirrm share/ocsigen/www +@dirrm share/ocsigen diff --git a/www/ocsigen/PLIST.ocamlduce b/www/ocsigen/PLIST.ocamlduce new file mode 100644 index 00000000000..907803169ea --- /dev/null +++ b/www/ocsigen/PLIST.ocamlduce @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST.ocamlduce,v 1.1.1.1 2007/04/10 20:24:43 tonio Exp $ +lib/ocaml/site-lib/ocsigen/ocsigenduce.cma +lib/ocaml/site-lib/ocsigen/ocsigenduce.cmi +lib/ocaml/site-lib/ocsigen/xhtml1_strict.cmi +share/examples/ocsigen/exampleduce.cmo diff --git a/www/ocsigen/distinfo b/www/ocsigen/distinfo new file mode 100644 index 00000000000..254bd12d24d --- /dev/null +++ b/www/ocsigen/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/04/10 20:24:43 tonio Exp $ + +SHA1 (ocsigen-0.6.0.tar.gz) = f1be751468325dc322d11454e92b0cdc1165a0aa +RMD160 (ocsigen-0.6.0.tar.gz) = 2b6b9d4dbcebfc2fa2f160a0cf5d246f3cc02635 +Size (ocsigen-0.6.0.tar.gz) = 984754 bytes +SHA1 (patch-aa) = a6bc20b5d27b77261c7d08101a50a244c6ec88a8 +SHA1 (patch-ab) = 34afdaa574df350254c2685e9d198cce9b599f24 diff --git a/www/ocsigen/options.mk b/www/ocsigen/options.mk new file mode 100644 index 00000000000..3645899ca0d --- /dev/null +++ b/www/ocsigen/options.mk @@ -0,0 +1,17 @@ +# $NetBSD: options.mk,v 1.1.1.1 2007/04/10 20:24:43 tonio Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.ocsigen +PKG_SUPPORTED_OPTIONS= ocamlduce + +.include "../../mk/bsd.prefs.mk" + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mocamlduce) +DEPENDS+= ocamlduce>=3.09.3:../../lang/ocamlduce +CONFIGURE_ARGS+= --enable-ocamlduce +PLIST_SRC+= PLIST.ocamlduce +.else +CONFIGURE_ARGS+= --disable-ocamlduce +.endif +PLIST_SRC+= PLIST diff --git a/www/ocsigen/patches/patch-aa b/www/ocsigen/patches/patch-aa new file mode 100644 index 00000000000..664c0191663 --- /dev/null +++ b/www/ocsigen/patches/patch-aa @@ -0,0 +1,111 @@ +$NetBSD: patch-aa,v 1.1.1.1 2007/04/10 20:24:43 tonio Exp $ + +--- configure.orig 2007-03-15 12:27:54.000000000 +0100 ++++ configure +@@ -51,10 +51,14 @@ set_defaults () { + libdir="/usr/local/lib" + mandir="/usr/local/share/man/man1/" + docdir="/usr/share/doc" ++ sysconfdir="/etc" ++ logdir=/var/log/ocsigen + name="ocsigen" + prefix="/" + ocsigen_user="www-data" + ocsigen_group="www-data" ++ staticpagesdir="/var/www/$name" ++ uploaddir="/tmp" + } + + set_defaults +@@ -132,6 +136,10 @@ print_options () { + echo " --libdir $libdir" + echo " --mandir $mandir" + echo " --docdir $docdir" ++ echo " --sysconfdir $sysconfdir" ++ echo " --logdir $logdir" ++ echo " --staticpagesdir $staticpagesdir" ++ echo " --uploaddir $uploaddir" + echo " --name $name" + } + +@@ -174,6 +182,18 @@ _EOF_ + --docdir dir + Install documentation in this directory + ++--sysconfdir dir ++ Install system configuration files in this directory ++ ++--logdir dir ++ Install log files in this directory ++ ++--staticpagesdir dir ++ Serve static pages from this directory ++ ++--uploaddir dir ++ Put uploaded files in this directory ++ + --name name + The name of the server (and directory for the modules) + +@@ -266,6 +286,26 @@ while [ "$#" -gt 0 ]; do + shift + shift + ;; ++ --sysconfdir) ++ sysconfdir="$2" ++ shift ++ shift ++ ;; ++ --logdir) ++ logdir="$2" ++ shift ++ shift ++ ;; ++ --staticpagesdir) ++ staticpagesdir="$2" ++ shift ++ shift ++ ;; ++ --uploaddir) ++ uploaddir="$2" ++ shift ++ shift ++ ;; + --name) + name="$2" + shift +@@ -322,9 +362,10 @@ fi + ###################################################################### + # Check whether OCaml version is > 3.9 + version=`ocamlc -version` +-ocamlversion=`n1=${version:0:1}; \ +- n2=${version:2:2}; \ +- n3=${version:5}; \ ++ocamlversion=`n1=${version%%.[0-9][0-9].[0-9]}; \ ++ tail=${version##[0-9].}; \ ++ n2=${tail%%.[0-9]}; \ ++ n3=${tail##[0-9][0-9].}; \ + if [ $n1 = "3" ] && [ $n2 -le 9 ]; then \ + echo "OLD"; \ + else \ +@@ -426,16 +467,16 @@ OCSIGENGROUP=$ocsigen_user + OCSIGENNAME=$name + + # ocsigen's logs: +-LOGDIR = /var/log/\$(OCSIGENNAME) ++LOGDIR = $logdir + + # Config files: +-CONFIGDIR = /etc/\$(OCSIGENNAME) ++CONFIGDIR = $sysconfdir + + # Where to put static pages: +-STATICPAGESDIR = /var/www/\$(OCSIGENNAME) ++STATICPAGESDIR = $staticpagesdir + + # Default directory for file upload: +-UPLOADDIR = /tmp ++UPLOADDIR = $uploaddir + + # Where to put Ocsigen documentation: + DOCDIR = $docdir/\$(OCSIGENNAME) diff --git a/www/ocsigen/patches/patch-ab b/www/ocsigen/patches/patch-ab new file mode 100644 index 00000000000..e165a27ebee --- /dev/null +++ b/www/ocsigen/patches/patch-ab @@ -0,0 +1,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) + |