debian/0000775000000000000000000000000012214570761007175 5ustar debian/gbp.conf0000664000000000000000000000012712200751612010603 0ustar [DEFAULT] upstream-branch = master debian-branch = debian upstream-tag = v%(version)s debian/control.in0000664000000000000000000000201012214566753011204 0ustar Source: plv8 Priority: extra Maintainer: Evgeni Golov Uploaders: Christoph Berg Build-Depends: debhelper (>= 8.0.0), postgresql-server-dev-all (>= 148~), libv8-dev, markdown Standards-Version: 3.9.4 Section: database Homepage: http://code.google.com/p/plv8js/ Vcs-Git: git://anonscm.debian.org/pkg-postgresql/plv8.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/plv8.git XS-Testsuite: autopkgtest Package: postgresql-PGVERSION-plv8 Architecture: any Depends: postgresql-PGVERSION, ${shlibs:Depends}, ${misc:Depends} Provides: postgresql-plv8 Description: Procedural language interface between PostgreSQL and JavaScript V8 is a high performance JavaScript engine written in C++. It is used in the document-oriented data store MongoDB. . PostgreSQL is an open source SQL database server. . This package provides a procedural language interface to JavaScript from PostgreSQL. Procedural languages are used to write functions which can be called in database queries. debian/compat0000664000000000000000000000000212200751612010362 0ustar 7 debian/source/0000775000000000000000000000000012200751612010464 5ustar debian/source/format0000664000000000000000000000001412200751612011672 0ustar 3.0 (quilt) debian/rules0000775000000000000000000000111412214570755010255 0ustar #!/usr/bin/make -f SRCDIR = $(CURDIR) include /usr/share/postgresql-common/pgxs_debian_control.mk clean: debian/control .PHONY: debian/control export DISABLE_DIALECT=1 override_dh_auto_build: +pg_buildext build $(CURDIR) build-%v markdown doc/plv8.md > doc/plv8.html clean: +pg_buildext clean $(CURDIR) build-%v rm -rf build-?.? debian/postgresql-?.?-plv8 debian/*.substvars doc/plv8.html dh $@ override_dh_installdocs: dh_installdocs --all doc/* override_dh_auto_test: # noop override_dh_auto_install: +pg_buildext install $(CURDIR) build-%v postgresql-%v-plv8 %: dh $@ debian/tests/0000775000000000000000000000000012201005346010323 5ustar debian/tests/control0000664000000000000000000000014012200761505011726 0ustar Depends: @, postgresql-server-dev-all Tests: installcheck Restrictions: needs-root allow-stderr debian/tests/installcheck0000775000000000000000000000126012200775037012726 0ustar #!/bin/sh set -eu unset TMPDIR export DISABLE_DIALECT=1 for version in $(pg_buildext supported-versions); do test -e build-$version/sql || { mkdir -p build-$version; ln -s ../sql ../expected build-$version; } # set custom_variable_classes where needed case $version in 9.0|9.1) ccc="-c --createclusterconf=$PWD/debian/createcluster.conf" ;; *) ccc="" ;; esac if ! pg_virtualenv -v $version $ccc \ make -C build-$version -f $PWD/Makefile installcheck \ PG_CONFIG=/usr/lib/postgresql/$version/bin/pg_config USE_PGXS=1; then if [ -r build-$version/regression.diffs ]; then echo "**** regression.diffs ****" cat build-$version/regression.diffs fi exit 1 fi done debian/control0000664000000000000000000000177512214570760010611 0ustar Source: plv8 Priority: extra Maintainer: Evgeni Golov Uploaders: Christoph Berg Build-Depends: debhelper (>= 8.0.0), postgresql-server-dev-all (>= 148~), libv8-dev, markdown Standards-Version: 3.9.4 Section: database Homepage: http://code.google.com/p/plv8js/ Vcs-Git: git://anonscm.debian.org/pkg-postgresql/plv8.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/plv8.git XS-Testsuite: autopkgtest Package: postgresql-9.3-plv8 Architecture: any Depends: postgresql-9.3, ${shlibs:Depends}, ${misc:Depends} Provides: postgresql-plv8 Description: Procedural language interface between PostgreSQL and JavaScript V8 is a high performance JavaScript engine written in C++. It is used in the document-oriented data store MongoDB. . PostgreSQL is an open source SQL database server. . This package provides a procedural language interface to JavaScript from PostgreSQL. Procedural languages are used to write functions which can be called in database queries. debian/copyright0000664000000000000000000000530212200751612011117 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: plv8js Upstream-Contact: Source: http://code.google.com/p/plv8js/ Comment: This Debian package was created for xtuple.com, and donated to the Debian community. Files: * Copyright: 2009-2013 PLV8JS Development Group 2009-2013 Hitoshi Harada 2009-2013 Andrew Dunstan 2009-2013 Takahiro Itagaki 2009-2013 Kiswono Prayogo License: PostgreSQL Files: debian/* Copyright: 2013 Evgeni Golov 2013 Christoph Berg License: Expat License: PostgreSQL Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies. . IN NO EVENT SHALL the PLV8JS Development Group BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF the PLV8JS Development Group HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. . The PLV8JS Development Group SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND the PLV8JS Development Group HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/patches/0000775000000000000000000000000012200751612010613 5ustar debian/patches/series0000664000000000000000000000004012200751612012022 0ustar includedir-server dummy-scripts debian/patches/dummy-scripts0000664000000000000000000000016112200751612013354 0ustar --- /dev/null +++ b/coffee-script.js @@ -0,0 +1 @@ +dummy --- /dev/null +++ b/livescript.js @@ -0,0 +1 @@ +dummy debian/patches/includedir-server0000664000000000000000000000055612200751612014172 0ustar --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) -PG_VERSION_NUM := $(shell cat `$(PG_CONFIG) --includedir`/pg_config*.h \ +PG_VERSION_NUM := $(shell cat `$(PG_CONFIG) --includedir-server`/pg_config*.h \ | perl -ne 'print $$1 and exit if /PG_VERSION_NUM\s+(\d+)/') # set your custom C++ compler debian/watch0000664000000000000000000000024212214570273010222 0ustar version=3 opts="dversionmangle=s/\.ds//" \ http://code.google.com/p/plv8js/downloads/list?can=1 .*/plv8-(\d[\d.]*)\.(?:zip|tgz|tbz2|txz|tar\.gz|tar\.bz2|tar\.xz) debian/changelog0000664000000000000000000000340412214570532011044 0ustar plv8 (1.4.0.ds-2) unstable; urgency=low [ Martin Pitt ] * debian/tests/control: Add missing postgresql-server-dev-all test dependency, so that installcheck can find pg_buildext. * debian/tests/installcheck: Create build-$version if it does not exist. [ Christoph Berg ] * Use plain pg_buildext; pgxs.mk in 9.1/9.2/9.3 got fixed for srcdir. * Install docs in all module packages built. * debian/tests/control: Use allow-stderr (needs autopkgtest 2.3). * debian/pgversions: use "9.0"+ and B-D on pg-server-dev-all >= 148. * debian/control.in: Section: database. * debian/watch: Mangle upstream version to remove .ds. -- Christoph Berg Fri, 13 Sep 2013 13:04:56 +0200 plv8 (1.4.0.ds-1) unstable; urgency=low * Remove coffee-script.js and livescript.js from the source tarball (we don't have source code for these), and disable building the extensions. -- Christoph Berg Mon, 01 Jul 2013 13:21:31 +0200 plv8 (1.4.0-2) unstable; urgency=low * Manually loop over the versions to build/install instead of using pg_buildext because the buildsystem doesn't like "srcdir" in the environment. * Remove 8.4 from debian/pgversions as it fails on i386 (amd64 works). * Makefile: use pg_config --includedir-server so we get the version number for the right PostgreSQL version. * Run make installcheck using autopkgtest. (Needs postgresql-common >= 146). * Point Vcs headers at anonscm.debian.org. -- Christoph Berg Fri, 28 Jun 2013 15:13:29 +0200 plv8 (1.4.0-1) unstable; urgency=low * Initial upload. Closes: #706713 * This Debian package was created for xtuple.com, and donated to the Debian community. -- Evgeni Golov Fri, 03 May 2013 09:55:52 +0200 debian/pgversions0000664000000000000000000000011312201002143011266 0ustar #8.4 works on amd64, but fails on i386, we just exclude it completely 9.0+ debian/createcluster.conf0000664000000000000000000000153612200751612012705 0ustar # Default values for pg_createcluster(8) # Create a "main" cluster when a new postgresql-x.y server package is installed #create_main_cluster = true # Default start.conf value, must be one of "auto", "manual", and "disabled". # See pg_createcluster(8) for more documentation. #start_conf = 'auto' # In the following options, occurrences of '%v' are replaced by the major # version number, and '%c' by the cluster name. Use '%%' for a literal '%'. # Default data directory. #data_directory = '/var/lib/postgresql/%v/%c' # Default directory for transaction logs # Unset by default, i.e. pg_xlog remains in the data directory. #xlogdir = '/var/lib/postgresql/xlog/%v/%c/pg_xlog' # Options to pass to initdb. #initdb_options = '' # All other options are copied into the new cluster's postgresql.conf log_line_prefix = '%%t ' custom_variable_classes = 'plv8'