This is an automated email from the git hooks/post-receive script. js pushed a commit to branch master in repository libatteanx-endpoint-perl.
commit dd1e325a2d953c53542e14cbda5c3c802c08e371 Author: Jonas Smedegaard <d...@jones.dk> Date: Mon Dec 26 00:22:39 2016 +0100 Initial packaging. --- .gitignore | 6 ++++ debian/changelog | 2 +- debian/control | 3 +- debian/copyright_hints | 5 +++ debian/patches/1001_use_codemirror2.patch | 38 ++++++++++++++++++++++ debian/patches/README | 3 ++ debian/patches/series | 1 + debian/rules | 16 +++++++++ debian/uwsgi/README | 12 +++++++ debian/uwsgi/etc/apache2/conf.d/atteanx_endpoint | 4 +++ .../etc/uwsgi/apps-available/atteanx_endpoint.ini | 17 ++++++++++ 11 files changed, 105 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..85a642b --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/.pc +Build +_build +blib +MANIFEST.bak +*.tar.gz diff --git a/debian/changelog b/debian/changelog index bfb16c1..8726299 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,4 +3,4 @@ libatteanx-endpoint-perl (0.001-1) unstable; urgency=low * Initial packaging release. Closes: bug#819270. - -- Jonas Smedegaard <d...@jones.dk> Sun, 25 Dec 2016 23:24:47 +0100 + -- Jonas Smedegaard <d...@jones.dk> Mon, 26 Dec 2016 00:26:33 +0100 diff --git a/debian/control b/debian/control index 897ce32..cde3e9f 100644 --- a/debian/control +++ b/debian/control @@ -23,7 +23,8 @@ Build-Depends: cdbs, libtest-lwp-useragent-perl, libtest-modern-perl, libtest-www-mechanize-psgi-perl, - libmoose-perl + libmoose-perl, + libjs-codemirror Maintainer: Debian Perl Group <pkg-perl-maintain...@lists.alioth.debian.org> Uploaders: Jonas Smedegaard <d...@jones.dk> Standards-Version: 3.9.8 diff --git a/debian/copyright_hints b/debian/copyright_hints index 1bd182e..c183344 100644 --- a/debian/copyright_hints +++ b/debian/copyright_hints @@ -14,9 +14,14 @@ Files: Changes debian/compat debian/control debian/control.in + debian/files debian/gbp.conf + debian/patches/1001_use_codemirror2.patch + debian/patches/README + debian/patches/series debian/source/format debian/source/lintian-overrides + debian/uwsgi/README debian/watch inc/Module/Install/AuthorTests.pm inc/Module/Install/Base.pm diff --git a/debian/patches/1001_use_codemirror2.patch b/debian/patches/1001_use_codemirror2.patch new file mode 100644 index 0000000..edb6a70 --- /dev/null +++ b/debian/patches/1001_use_codemirror2.patch @@ -0,0 +1,38 @@ +Description: Use Codemirror 2.x +Author: Jonas Smedegaard <d...@jones.dk> +Last-Update: 2012-06-12 + +--- a/share/endpoint/index.html ++++ b/share/endpoint/index.html +@@ -3,10 +3,19 @@ + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>SPARQL</title> ++ <link rel="stylesheet" type="text/css" href="/js/codemirror/codemirror.css"/> + <link rel="stylesheet" type="text/css" href="/css/docs.css"/> +- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script> +- <script src="/js/codemirror.js" type="text/javascript"></script> +- <script type="text/javascript" src="/js/sparql_form.js"></script> ++ <script type="text/javascript" src="/js/codemirror/codemirror.js"></script> ++ <script type="text/javascript" src="/js/codemirror/mode/sparql/sparql.js"></script> ++<script type="text/javascript"> ++function init() { ++ var editor = CodeMirror.fromTextArea(document.getElementById("query"), { ++ mode: "application/x-sparql-query", ++ tabMode: "indent", ++ matchBrackets: true ++ }); ++} ++</script> + <style type="text/css"> + <!-- + tr:nth-child(odd) { +@@ -21,7 +30,7 @@ + } + // --> + </style> +-</head><body> ++</head><body onload="init()"> + <form id="queryform" action="" method="post"> + <p> + <textarea id="query" name="query" rows="10" cols="60"> diff --git a/debian/patches/README b/debian/patches/README new file mode 100644 index 0000000..80c1584 --- /dev/null +++ b/debian/patches/README @@ -0,0 +1,3 @@ +0xxx: Grabbed from upstream development. +1xxx: Possibly relevant for upstream adoption. +2xxx: Only relevant for official Debian release. diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..157c434 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +1001_use_codemirror2.patch diff --git a/debian/rules b/debian/rules index e715d0f..992ea37 100755 --- a/debian/rules +++ b/debian/rules @@ -45,3 +45,19 @@ CDBS_DEPENDS_$(pkg) = $(deps) clean:: rm -f Makefile.old + +DEB_DH_INSTALL_$(pkg) = scripts/endpoint.psgi $(DEB_DESTDIR)/usr/share/$(pkg) +DEB_INSTALL_EXAMPLES_$(pkg) = debian/uwsgi + +# use separately packaged Javascript +CDBS_BUILD_DEPENDS +=, libjs-codemirror +CDBS_DEPENDS_$(pkg) = libjs-codemirror +binary-post-install/$(pkg):: + find $(cdbs_curdestdir)usr/share/perl5/auto \ + -type f -not -name codemirror-config.js \ + -delete + find $(cdbs_curdestdir)usr/share/perl5/auto \ + -type f -name sparqlcolors.css \ + -delete + ln -fsT ../../../../../../../javascript/codemirror \ + $(DEB_DESTDIR)usr/share/perl5/auto/share/dist/AtteanX-Endpoint/endpoint/www/js/codemirror diff --git a/debian/uwsgi/README b/debian/uwsgi/README new file mode 100644 index 0000000..21c1245 --- /dev/null +++ b/debian/uwsgi/README @@ -0,0 +1,12 @@ +AtteanX::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 + ln -st /etc/uwsgi/apps-enabled/ ../apps-available/atteanx_endpoint.psgi + service uwsgi start atteanx_endpoint + + -- Jonas Smedegaard <d...@jones.dk> Mon, 26 Dec 2016 00:02:38 +0100 diff --git a/debian/uwsgi/etc/apache2/conf.d/atteanx_endpoint b/debian/uwsgi/etc/apache2/conf.d/atteanx_endpoint new file mode 100644 index 0000000..7854258 --- /dev/null +++ b/debian/uwsgi/etc/apache2/conf.d/atteanx_endpoint @@ -0,0 +1,4 @@ +<Location /> + SetHandler uwsgi-handler + uWSGISocket /run/uwsgi/app/atteanx_endpoint/socket +</Location> diff --git a/debian/uwsgi/etc/uwsgi/apps-available/atteanx_endpoint.ini b/debian/uwsgi/etc/uwsgi/apps-available/atteanx_endpoint.ini new file mode 100644 index 0000000..acf257f --- /dev/null +++ b/debian/uwsgi/etc/uwsgi/apps-available/atteanx_endpoint.ini @@ -0,0 +1,17 @@ +[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/AtteanX-Endpoint/endpoint/www +psgi = /usr/share/libatteanx-endpoint-perl/endpoint.psgi + +# Example: /usr/share/doc/librdf-endpoint-perl/examples/rdf_endpoint.json +# from package librdf-endpoint-perl +#env = RDF_ENDPOINT_FILE=/etc/attean-endpoint/attean_endpoint.json + +# save memory - more info at <http://projects.unbit.it/uwsgi/wiki/KSM> +ksm = 1 -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libatteanx-endpoint-perl.git _______________________________________________ Pkg-perl-cvs-commits mailing list Pkg-perl-cvs-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits