[SCM] librdf-endpoint-perl Debian packaging branch, master, updated. debian/0.04-1-27-gaed461e

Jonas Smedegaard dr at jones.dk
Tue Jun 12 21:02:10 UTC 2012


The following commit has been merged in the master branch:
commit c54479463d01e4ebe6f093ceb483a773127b332e
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Tue Jun 12 22:18:32 2012 +0200

    Add README.Debian and sample uWSGI setup files.

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..2133ccc
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,22 @@
+Debian-specific RDF::Endpoint usage notes
+=========================================
+
+
+Integrate with a PSGI frontend
+------------------------------
+
+RDF::Endpoint uses PSGI.  Debian packaging currently does not integrate
+with any specific PSGI implementation.
+
+The most minimal PSGI setup is to invoke the following:
+
+    plackup /usr/share/librdf-endpoint-perl/rdf_endpoint.psgi
+
+For production use there are many options either with a dedicated PSGI
+server like twiggy or starman, or using bindings to CGI, FCGI or uWSGI.
+
+Included as example files are snippets to integrate with Apache2 via
+uWSGI.
+
+
+ -- Jonas Smedegaard <dr at jones.dk>  Sun, 10 Jun 2012 22:28:54 +0200
diff --git a/debian/uwsgi/README b/debian/uwsgi/README
new file mode 100644
index 0000000..bb2e8cc
--- /dev/null
+++ b/debian/uwsgi/README
@@ -0,0 +1,11 @@
+RDF::Endpoint with uWSGI and Apache2
+====================================
+
+uWSGI started as a Python WSGI but nowadays supports Perl PSGI as well.
+
+Copy the files into /etc and invoke these commands as root:
+
+    aptitude install uwsgi uwsgi-plugin-psgi libapache2-mod-uwsgi
+    service uwsgi start rdf_endpoint
+
+ -- Jonas Smedegaard <dr at jones.dk>  Sun, 10 Jun 2012 19:31:13 +0200
diff --git a/debian/uwsgi/etc/apache2/conf.d/rdf_endpoint b/debian/uwsgi/etc/apache2/conf.d/rdf_endpoint
new file mode 100644
index 0000000..dbc78bd
--- /dev/null
+++ b/debian/uwsgi/etc/apache2/conf.d/rdf_endpoint
@@ -0,0 +1,4 @@
+<Location />
+	SetHandler uwsgi-handler
+	uWSGISocket /run/uwsgi/app/rdf_endpoint/socket
+</Location>
diff --git a/debian/uwsgi/etc/uwsgi/apps-available/rdf_endpoint.ini b/debian/uwsgi/etc/uwsgi/apps-available/rdf_endpoint.ini
new file mode 100644
index 0000000..f9b0517
--- /dev/null
+++ b/debian/uwsgi/etc/uwsgi/apps-available/rdf_endpoint.ini
@@ -0,0 +1,15 @@
+[uwsgi]
+plugins = 0:psgi
+
+# set if using e.g. SQLite and app uid is different from www-data
+#uid = www-app
+# set if web server needs write access to files auto-created by app
+#umask = 007
+
+check-static = /usr/share/perl5/auto/share/dist/RDF-Endpoint/www
+psgi = /etc/rdf-endpoint/rdf_endpoint.psgi
+
+env = RDF_ENDPOINT_CONFIG=/etc/rdf-endpoint
+
+# save memory - more info at <http://projects.unbit.it/uwsgi/wiki/KSM>
+ksm = 1

-- 
librdf-endpoint-perl Debian packaging



More information about the Pkg-perl-cvs-commits mailing list