summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2007-03-28 17:20:45 +0000
committerAlexis Ballier <aballier@gentoo.org>2007-03-28 17:20:45 +0000
commitf7ce3f0eae6d6eeb66810e66d53c965b24abf776 (patch)
treef8ab490b961d10ff7f464b75ddd0688a32bf7002 /www-servers/ocsigen
parentocsigen ocamlduce useflag (diff)
downloadgentoo-2-f7ce3f0eae6d6eeb66810e66d53c965b24abf776.tar.gz
gentoo-2-f7ce3f0eae6d6eeb66810e66d53c965b24abf776.tar.bz2
gentoo-2-f7ce3f0eae6d6eeb66810e66d53c965b24abf776.zip
Initial import, thanks to Pierre Clairambault <pclairam@gmail.com>, bug #171135
(Portage version: 2.1.2.2)
Diffstat (limited to 'www-servers/ocsigen')
-rw-r--r--www-servers/ocsigen/ChangeLog10
-rw-r--r--www-servers/ocsigen/Manifest24
-rw-r--r--www-servers/ocsigen/files/digest-ocsigen-0.6.03
-rw-r--r--www-servers/ocsigen/files/ocsigen.confd21
-rw-r--r--www-servers/ocsigen/files/ocsigen.initd39
-rw-r--r--www-servers/ocsigen/metadata.xml21
-rw-r--r--www-servers/ocsigen/ocsigen-0.6.0.ebuild51
7 files changed, 169 insertions, 0 deletions
diff --git a/www-servers/ocsigen/ChangeLog b/www-servers/ocsigen/ChangeLog
new file mode 100644
index 000000000000..4d6eb3e0e082
--- /dev/null
+++ b/www-servers/ocsigen/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for www-servers/ocsigen
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigen/ChangeLog,v 1.1 2007/03/28 17:20:45 aballier Exp $
+
+*ocsigen-0.6.0 (28 Mar 2007)
+
+ 28 Mar 2007; Alexis Ballier <aballier@gentoo.org> +files/ocsigen.confd,
+ +files/ocsigen.initd, +metadata.xml, +ocsigen-0.6.0.ebuild:
+ Initial import, thanks to Pierre Clairambault <pclairam@gmail.com>, bug #171135
+
diff --git a/www-servers/ocsigen/Manifest b/www-servers/ocsigen/Manifest
new file mode 100644
index 000000000000..02c9a577703e
--- /dev/null
+++ b/www-servers/ocsigen/Manifest
@@ -0,0 +1,24 @@
+AUX ocsigen.confd 335 RMD160 7196593f5d8ec7b40488771bdf0f60a904eca476 SHA1 e896da5ae6ef2da8f6a375bddbc2dad4c0c26fa8 SHA256 19be530156391d674a4db516303ff614e897a38e50bbff065ddcbf897d0feb8d
+MD5 7582be61e93a278254e65370d192d8e6 files/ocsigen.confd 335
+RMD160 7196593f5d8ec7b40488771bdf0f60a904eca476 files/ocsigen.confd 335
+SHA256 19be530156391d674a4db516303ff614e897a38e50bbff065ddcbf897d0feb8d files/ocsigen.confd 335
+AUX ocsigen.initd 646 RMD160 4fedd20af021de8bdbe9aa667b046dd5090d9ed4 SHA1 2f7fc15f7ea8be892b7cfa803a848b70a3480875 SHA256 0ddd7a56a51b8f07249efeb41b5ecee9deeda9a6b1ab856e4c136cdfd98ec6be
+MD5 d9e3b3db8c086b4ccf41ab6685119688 files/ocsigen.initd 646
+RMD160 4fedd20af021de8bdbe9aa667b046dd5090d9ed4 files/ocsigen.initd 646
+SHA256 0ddd7a56a51b8f07249efeb41b5ecee9deeda9a6b1ab856e4c136cdfd98ec6be files/ocsigen.initd 646
+DIST ocsigen-0.6.0.tar.gz 984754 RMD160 2b6b9d4dbcebfc2fa2f160a0cf5d246f3cc02635 SHA1 f1be751468325dc322d11454e92b0cdc1165a0aa SHA256 29d877e25a6fe444b7b6dce33f4f3d2513cc34365e2e9eb01f915f0f9dfa55de
+EBUILD ocsigen-0.6.0.ebuild 1197 RMD160 0f8f5925b103f817161945946c14fd7d824de7c1 SHA1 c8574db654e81c2f70827bd1c85be53ddae25ae0 SHA256 0e8c3baa900769397a94ebb68f59a425653cf2a153a6b99e329f6d1413aef1bb
+MD5 4ecc2d0a285386c61bed5be5ffe33955 ocsigen-0.6.0.ebuild 1197
+RMD160 0f8f5925b103f817161945946c14fd7d824de7c1 ocsigen-0.6.0.ebuild 1197
+SHA256 0e8c3baa900769397a94ebb68f59a425653cf2a153a6b99e329f6d1413aef1bb ocsigen-0.6.0.ebuild 1197
+MISC ChangeLog 369 RMD160 4100916f4b5ef90fba959e392f206625118d8612 SHA1 15dbdc0a1b51f6cbee204ee077ba808f9772a933 SHA256 1245ecc94e7531b0f87a8189ccec1d991eaa7af7309c18a5f3a792e1081fd6f4
+MD5 6cade9ea6de4262cfe5ab75c13f4f328 ChangeLog 369
+RMD160 4100916f4b5ef90fba959e392f206625118d8612 ChangeLog 369
+SHA256 1245ecc94e7531b0f87a8189ccec1d991eaa7af7309c18a5f3a792e1081fd6f4 ChangeLog 369
+MISC metadata.xml 841 RMD160 c7f3cbfccfead79ea5e4d2f160b1f70e2afe4ea7 SHA1 d115b8c68be11da73572acd44157570e5f4ba533 SHA256 ab11b758ab9af2d5e744da8fba2f0cf1ff745164bc4f151ce0d03d180f41c03f
+MD5 87f83bf5516968db6765794fae27a186 metadata.xml 841
+RMD160 c7f3cbfccfead79ea5e4d2f160b1f70e2afe4ea7 metadata.xml 841
+SHA256 ab11b758ab9af2d5e744da8fba2f0cf1ff745164bc4f151ce0d03d180f41c03f metadata.xml 841
+MD5 830b3f6ceac78657324250330a0d03e1 files/digest-ocsigen-0.6.0 241
+RMD160 5187929c5bc1c532570bd26674eb23f10fbe6fe6 files/digest-ocsigen-0.6.0 241
+SHA256 b569ac22f3318f476c0fde75d09c2b63acb2569809f253e549e62d8cc5752751 files/digest-ocsigen-0.6.0 241
diff --git a/www-servers/ocsigen/files/digest-ocsigen-0.6.0 b/www-servers/ocsigen/files/digest-ocsigen-0.6.0
new file mode 100644
index 000000000000..adeeee042b6f
--- /dev/null
+++ b/www-servers/ocsigen/files/digest-ocsigen-0.6.0
@@ -0,0 +1,3 @@
+MD5 942e8395c0959c18512722320514bd7d ocsigen-0.6.0.tar.gz 984754
+RMD160 2b6b9d4dbcebfc2fa2f160a0cf5d246f3cc02635 ocsigen-0.6.0.tar.gz 984754
+SHA256 29d877e25a6fe444b7b6dce33f4f3d2513cc34365e2e9eb01f915f0f9dfa55de ocsigen-0.6.0.tar.gz 984754
diff --git a/www-servers/ocsigen/files/ocsigen.confd b/www-servers/ocsigen/files/ocsigen.confd
new file mode 100644
index 000000000000..d9bdac200930
--- /dev/null
+++ b/www-servers/ocsigen/files/ocsigen.confd
@@ -0,0 +1,21 @@
+# /etc/conf.d/ocsigen : config file for /etc/init.d/ocsigen
+
+# Path for the ocsigen binary
+
+DAEMON=/usr/bin/ocsigen
+
+# Name for ocsigen daemon
+
+NAME=ocsigen
+
+# Locstion of Ocsigen config file
+
+CONF=/etc/$NAME/ocsigen.conf
+
+# PID file location
+
+PIDFILE=/var/run/$NAME.pid
+
+# Add here any additional aptions for ocsigen
+
+OCSIGEN_OPTS=""
diff --git a/www-servers/ocsigen/files/ocsigen.initd b/www-servers/ocsigen/files/ocsigen.initd
new file mode 100644
index 000000000000..3edb2685af02
--- /dev/null
+++ b/www-servers/ocsigen/files/ocsigen.initd
@@ -0,0 +1,39 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+opts="depend checkconfig start stop"
+
+depend() {
+ need net
+ use logger
+}
+
+
+checkconfig() {
+ if [[ ! -f $DAEMON ]] ; then
+ ewarn "Unable to find $DAEMON"
+ return 1
+ fi
+ if [[ ! -f $CONF ]] ; then
+ ewarn $CONF " does not exist."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting ocsigen"
+ start-stop-daemon --start --exec $DAEMON -- \
+ --pidfile $PIDFILE \
+ --daemon \
+ $OCSIGEN_OPTS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ocsigen"
+ start-stop-daemon --stop --pidfile $PIDFILE
+ eend $?
+}
diff --git a/www-servers/ocsigen/metadata.xml b/www-servers/ocsigen/metadata.xml
new file mode 100644
index 000000000000..a6ad2aa245ef
--- /dev/null
+++ b/www-servers/ocsigen/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ml</herd>
+ <maintainer>
+ <email>aballier@gentoo.org</email>
+ <name>Alexis Ballier</name>
+ </maintainer>
+ <maintainer>
+ <email>pclairam@gmail.com</email>
+ <name>Pierre Clairambault</name>
+ </maintainer>
+ <longdescription lang="en">
+ Ocsigen is a Web server and a programming framework providing a new way to
+ create dynamic Web sites. Its goal is to offer an alternative to Apache/PHP,
+ based on cutting-edge technologies coming from research in programming
+ languages. With Ocsigen, you program in a concise and modular way, with a
+ strong type system which helps you to produce valid xhtml. The server handles
+ sessions, URLs, and page parameters automatically.
+ </longdescription>
+</pkgmetadata>
diff --git a/www-servers/ocsigen/ocsigen-0.6.0.ebuild b/www-servers/ocsigen/ocsigen-0.6.0.ebuild
new file mode 100644
index 000000000000..ebb40b95480b
--- /dev/null
+++ b/www-servers/ocsigen/ocsigen-0.6.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/ocsigen/ocsigen-0.6.0.ebuild,v 1.1 2007/03/28 17:20:45 aballier Exp $
+
+inherit eutils findlib multilib
+
+DESCRIPTION="Ocaml-powered webserver and framework for dynamic web programming"
+HOMEPAGE="http://www.ocsigen.org"
+SRC_URI="http://www.ocsigen.org/download/ocsigen-0.6.0.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug ocamlduce"
+RESTRICT="nostrip"
+
+DEPEND="dev-ml/findlib
+ >=dev-lang/ocaml-3.08.4
+ >=dev-ml/ocamlnet-2.2
+ >=dev-ml/ocaml-ssl-0.4
+ ocamlduce? ( dev-ml/ocamlduce )"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup ocsigen
+ enewuser ocsigen -1 -1 /var/www ocsigen
+}
+
+src_compile() {
+ ./configure \
+ --prefix "${D}" \
+ --bindir /usr/bin \
+ --docdir /usr/share/doc \
+ --mandir /usr/share/man/man1 \
+ --libdir /usr/$(get_libdir) \
+ $(use_enable debug) \
+ $(use_enable ocamlduce) \
+ --ocsigen-group ocsigen \
+ --ocsigen-user ocsigen \
+ --name ocsigen \
+ || die "Error : configure failed!"
+ emake -j1 depend
+ emake -j1 || die "Error : make failed!"
+}
+
+src_install() {
+ emake -j1 fullinstall
+ newinitd "${FILESDIR}"/ocsigen.initd ocsigen || die
+ newconfd "${FILESDIR}"/ocsigen.confd ocsigen || die
+}
+