Initial import, thanks to Pierre Clairambault <pclairam@gmail.com>, bug #171135
authorAlexis Ballier <aballier@gentoo.org>
Wed, 28 Mar 2007 17:20:45 +0000 (17:20 +0000)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 28 Mar 2007 17:20:45 +0000 (17:20 +0000)
Package-Manager: portage-2.1.2.2

www-servers/ocsigen/ChangeLog [new file with mode: 0644]
www-servers/ocsigen/Manifest [new file with mode: 0644]
www-servers/ocsigen/files/digest-ocsigen-0.6.0 [new file with mode: 0644]
www-servers/ocsigen/files/ocsigen.confd [new file with mode: 0644]
www-servers/ocsigen/files/ocsigen.initd [new file with mode: 0644]
www-servers/ocsigen/metadata.xml [new file with mode: 0644]
www-servers/ocsigen/ocsigen-0.6.0.ebuild [new file with mode: 0644]

diff --git a/www-servers/ocsigen/ChangeLog b/www-servers/ocsigen/ChangeLog
new file mode 100644 (file)
index 0000000..4d6eb3e
--- /dev/null
@@ -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 (file)
index 0000000..ebca409
--- /dev/null
@@ -0,0 +1,34 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+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 1301 RMD160 5d4d14da5745974ede00fd98c1646360c8441d5e SHA1 97b06e84b4dee9232c095da39dff8389e418036f SHA256 222e6c51a59284aeaf28df5d39b869e0034b4e6ac894204c545e7319773ac66b
+MD5 493ee2973a5cba58fc740964cb317366 ocsigen-0.6.0.ebuild 1301
+RMD160 5d4d14da5745974ede00fd98c1646360c8441d5e ocsigen-0.6.0.ebuild 1301
+SHA256 222e6c51a59284aeaf28df5d39b869e0034b4e6ac894204c545e7319773ac66b ocsigen-0.6.0.ebuild 1301
+MISC ChangeLog 462 RMD160 545c38a0ad9e227d8a7c1aad01d02717ed8c7e5e SHA1 47805c0c6ad4cad99c12c34255092a002cd5e63e SHA256 ef482b3e2e7b035653936ff804f1e70a14d672d21ee332ff7d21c150c1ef3ce0
+MD5 2579da4bfd917ed9ff2f0bfb4324277a ChangeLog 462
+RMD160 545c38a0ad9e227d8a7c1aad01d02717ed8c7e5e ChangeLog 462
+SHA256 ef482b3e2e7b035653936ff804f1e70a14d672d21ee332ff7d21c150c1ef3ce0 ChangeLog 462
+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
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.3 (GNU/Linux)
+
+iD8DBQFGCqPwvFcC4BYPU0oRAvNuAKDE94hTPK6cK3UEGlSDzwEb6/bJSACfZP96
+abxG7+Inz8jzkDFXC224AEk=
+=Ixot
+-----END PGP SIGNATURE-----
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 (file)
index 0000000..adeeee0
--- /dev/null
@@ -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 (file)
index 0000000..d9bdac2
--- /dev/null
@@ -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 (file)
index 0000000..3edb268
--- /dev/null
@@ -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 (file)
index 0000000..a6ad2aa
--- /dev/null
@@ -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 (file)
index 0000000..ebb40b9
--- /dev/null
@@ -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
+}
+