debian/0000755000000000000000000000000012236101566007170 5ustar debian/source/0000755000000000000000000000000012235741216010471 5ustar debian/source/format0000644000000000000000000000001412235741216011677 0ustar 3.0 (quilt) debian/control.in0000644000000000000000000000221212235741216011176 0ustar Source: plr Priority: optional Section: database Maintainer: Christoph Berg Build-Depends: debhelper (>= 7.0.50~), pkg-config, postgresql-server-dev-all (>= 148~), r-base-core, quilt Standards-Version: 3.9.4 Homepage: http://www.joeconway.com/plr/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/plr.git Vcs-Git: git://anonscm.debian.org/pkg-postgresql/plr.git XS-Testsuite: autopkgtest Package: postgresql-PGVERSION-plr Architecture: any Depends: r-base-core (>= 2.10), postgresql-PGVERSION, ${shlibs:Depends}, ${misc:Depends} Suggests: r-recommended Provides: postgresql-plr Description: Procedural language interface between PostgreSQL and R R is a language and environment for statistical computing and graphics, providing a wide variety of statistical and graphical techniques (linear and nonlinear modelling, statistical tests, time series analysis, classification, clustering, and so on). . PostgreSQL is an open source SQL database server. . This package provides a procedural language interface to R from PostgreSQL. Procedural languages are used to write functions which can be called in database queries. debian/pgversions0000644000000000000000000000005312235741216011311 0ustar # versions <= 8.3 have VPATH problems 8.4+ debian/README.Debian0000644000000000000000000000035512235741216011235 0ustar PostgreSQL PLR for Debian ========================= You have to create the PL/R language for your database via psql < /usr/share/postgresql/8.4/plr.sql -- Andreas Tille Mon, 24 Nov 2008 15:21:23 +0100 debian/control0000644000000000000000000000217712235741216010603 0ustar Source: plr Priority: optional Section: database Maintainer: Christoph Berg Build-Depends: debhelper (>= 7.0.50~), pkg-config, postgresql-server-dev-all (>= 148~), r-base-core, quilt Standards-Version: 3.9.4 Homepage: http://www.joeconway.com/plr/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/plr.git Vcs-Git: git://anonscm.debian.org/pkg-postgresql/plr.git XS-Testsuite: autopkgtest Package: postgresql-9.3-plr Architecture: any Depends: r-base-core (>= 2.10), postgresql-9.3, ${shlibs:Depends}, ${misc:Depends} Suggests: r-recommended Provides: postgresql-plr Description: Procedural language interface between PostgreSQL and R R is a language and environment for statistical computing and graphics, providing a wide variety of statistical and graphical techniques (linear and nonlinear modelling, statistical tests, time series analysis, classification, clustering, and so on). . PostgreSQL is an open source SQL database server. . This package provides a procedural language interface to R from PostgreSQL. Procedural languages are used to write functions which can be called in database queries. debian/tests/0000755000000000000000000000000012236101306010322 5ustar debian/tests/control0000644000000000000000000000013712235741433011740 0ustar Depends: @, postgresql-server-dev-all, pkg-config Tests: installcheck Restrictions: needs-root debian/tests/installcheck0000755000000000000000000000136712236101305012722 0ustar #!/bin/sh set -eu # we want to test the installed extension, so don't source from the build tree sed -i.orig 's/\\i plr.sql/CREATE EXTENSION plr;/' sql/plr.sql trap "mv sql/plr.sql.orig sql/plr" EXIT HUP INT QUIT PIPE TERM for version in $(pg_buildext supported-versions); do # redirect stderr to stdout so autopkgtest doesn't consider "NOTICE: # database "contrib_regression" does not exist, skipping" to be an # error if ! pg_virtualenv -v $version \ make installcheck PG_CONFIG=/usr/lib/postgresql/$version/bin/pg_config USE_PGXS=1 2>&1; then if [ -r regression.diffs ]; then echo "**** regression.diffs ****" cat regression.diffs fi if [ "$version" = "8.4" ]; then echo "Expected failure on 8.4" continue fi exit 1 fi done debian/copyright0000644000000000000000000000204612235741216011126 0ustar This package was debianized by Martin Pitt on Wed, 21 Jan 2004 16:04:23 +0100. It was downloaded from: http://www.joeconway.com/plr/ Upstream Author: Joe Conway Copyright: (c) 2003-2006 by Joseph E. Conway This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. debian/changelog0000644000000000000000000002016212236101566011043 0ustar plr (1:8.3.0.15-1git1) trusty; urgency=low Upload current Debian packaging git head to fix autopkgtest. * Add postgresql-server-dev-all and pkg-config test dependencies as the test uses pg_buildext and pkg-config. * debian/tests/installcheck: Temporarily modify test script to use CREATE EXTENSION instead of sourcing the build tree's plr.psql. We want to test the installed package and avoid building. -- Martin Pitt Tue, 05 Nov 2013 06:34:31 +0100 plr (1:8.3.0.15-1) unstable; urgency=low * New upstream version. * Use "8.4+" in debian/pgversions and B-D on postgresql-server-dev-all >= 148. Closes: #725572. -- Christoph Berg Fri, 16 Aug 2013 12:48:32 +0200 plr (1:8.3.0.14-1) experimental; urgency=low * New upstream version. -- Christoph Berg Sun, 31 Mar 2013 23:40:26 +0200 plr (1:8.3.0.13.1-1) experimental; urgency=low [ Andreas Tille ] * debian/control[.in] - Fixed Vcs fields - Standards-Version: 3.9.3 (no changes needed) [ Christoph Berg ] * New upstream version. * Add autopkgtest regression test. (Expected failure on 8.4.) * debian/pgversions: Add 9.2 and 9.3. * debian/rules: Use system pg_buildext again (>= 140). -- Christoph Berg Thu, 31 Jan 2013 11:22:58 +0100 plr (1:8.3.0.13-1) unstable; urgency=low * Take over as maintainer, thanks to Andreas for the permission! * New upstream version. * Rewrite debian/rules to build for multiple PostgreSQL versions using pg_buildext. Closes: #639473 * Setting RPATH seems to be redundant, remove it * As debian/rules doesn't set R_HOME, remove the Makefile patch around it. -- Christoph Berg Thu, 06 Oct 2011 23:41:43 +0200 plr (1:8.3.0.9-1) unstable; urgency=low * New upstream version * Standards-Version: 3.8.4 (no changes needed) * Versioned depends from r-base-core Closes: #544644 * Probably because of the upstream version number the reporter of bug #559586 assumed that the package would be related to PostgreSQL version 8.3. According to upstream it works with both PostgreSQL 8.3 *and* 8.4 but the package is build to work with version 8.4 exclusively since latest upload. Closes: #559586 -- Andreas Tille Wed, 10 Feb 2010 14:38:45 +0100 plr (1:8.3.0.8-2) unstable; urgency=low * Section database instead of libs * Standards-Version: 3.8.3 (no changes needed) * Works also with postgresql 8.4 * debian/postinst: Make sure libR.so will be found by PL/R -- Andreas Tille Thu, 19 Nov 2009 07:51:12 +0100 plr (1:8.3.0.8-1) unstable; urgency=low * New upstream version Patch debian/patches/20_r2.8compat.patch was adopted upstream * Prevent default "pg_config" from returning 8.4-related paths (Thanks to Chris Lamb ) Closes: #537008 * Standards-Version: 3.8.2 (no changes needed) * Debhelper 7 -- Andreas Tille Thu, 30 Jul 2009 19:05:30 +0200 plr (1:8.3.0.6-3) unstable; urgency=low * Fix FTBFS bug when building against R2.8 according to a hint from upstream. Closes: #510251, #512891 -- Andreas Tille Mon, 26 Jan 2009 07:20:17 +0100 plr (1:8.3.0.6-2) unstable; urgency=low * Fixed Vcs fields * Adding README.Debian with hints what is needed to configure PL/R and makesure that ldconfig is called in postinst script Closes: #506728 -- Andreas Tille Mon, 24 Nov 2008 15:21:23 +0100 plr (1:8.3.0.6-1) unstable; urgency=low * New upstream version * New maintainer (package was removed from Debian and is subject to reinclude) Closes: #491156 * Added watch file * Use quilt to apply patch * Standards-Version: 3.8.0 (Added README.Sources because of using quilt) * debian/install: Make sure that any new version of the library gets moved to the right destination Closes: #461995 * debian/rules: Remove -rpath stuff * debian/control: - Provides: postgresql-plr - Added Homepage field - Added Vcs fields -- Andreas Tille Wed, 16 Jul 2008 16:17:11 +0200 plr (1:8.2.0.7-3) unstable; urgency=low * QA Upload * Add build-dep on pkg-config * Fix pg_config call in Makefile (Closes: #460366) -- Barry deFreese Fri, 18 Jan 2008 14:16:08 -0500 plr (1:8.2.0.7-2) unstable; urgency=low * Orphan package (see #228074). -- Martin Pitt Sun, 30 Dec 2007 20:38:42 +0100 plr (1:8.2.0.7-1) unstable; urgency=low * New upstream release. * Drop debian/patches/R_HOME_default.patch: Upstream now checks R's pkg-config for R's home directory and uses it as a default. -- Martin Pitt Sun, 16 Sep 2007 14:48:32 +0200 plr (1:8.2.0.1-2) unstable; urgency=low * Move packaging to cdbs. * Add debian/patches/R_HOME_default.patch: Fall back to /usr/lib/R if R_HOME is not defined. This is pretty much a constant in Debian and Ubuntu, and doing it with an implicit default is much more elegant than hacking in configuration files. Thanks to Luca Falavigna for this patch! Closes: #439270 and LP: #130059 -- Martin Pitt Fri, 24 Aug 2007 17:42:15 +0200 plr (1:8.2.0.1-1) unstable; urgency=low * New upstream version, now works with PostgreSQL 8.2. * Drop the 7.4 and 8.1 packages, only build 8.2 extension. * Greatly simplify the build scripts to only build one version of the extension. * debian/control: Update Standards-Version. * debian/copyright: Update FSF address and copyright years. * plr.h: Fix R_PARSEVECTOR macro for new R_ParseVector() API of R 2.5. -- Martin Pitt Thu, 19 Apr 2007 23:35:06 +0200 plr (1:0.6.2-4) unstable; urgency=low * Build on mips and mipsel again, now that the PostgreSQL SIGBUS problem turned out to be a kernel bug (which is fixed in 2.6.16). -- Martin Pitt Sun, 23 Jul 2006 10:21:03 +0200 plr (1:0.6.2-3) unstable; urgency=medium * Urgency medium since this blocks postgresql-7.4 migration to testing and only has one important bug fix. * Do not build packages on mips and mipsel any more, since PostgreSQL does not currently work on these architectures (see bug #357603). * debian/rules: Add rpath /usr/lib/R/lib to plr.so libraries so that PL/R can be created without manual hacking. Closes: #360796 -- Martin Pitt Sun, 16 Jul 2006 18:04:54 +0200 plr (1:0.6.2-2) unstable; urgency=high * Urgency high since this only fixes an RC bug. * Fix FTBFS. Closes: #356102: - debian/rules: Fix R include path for 7.4 build. - debian/Makefile.Debian.7.4: Fix R include path for 8.1 build. -- Martin Pitt Mon, 13 Mar 2006 17:35:46 +0100 plr (1:0.6.2-1) unstable; urgency=low * New upstream version. * Drop package for PostgreSQL 8.0, build 8.1 package. Closes: #339416 -- Martin Pitt Thu, 17 Nov 2005 19:38:03 +0100 plr (1:0.6.1-1) unstable; urgency=low * New upstream version; orig.tar.gz now contains just the upstream tarball for easier multi-build. * Transition to new PostgreSQL architecture. * debian/control: - Changed build dependency postgresql-dev to postgresql-server-dev-7.4 and postgresql-server-dev-8.0. - Now build packages for 7.4 and 8.0 servers. -- Martin Pitt Mon, 6 Jun 2005 17:23:32 +0200 plr (1:0.5.3+0.5.4alpha-2) unstable; urgency=high * debian/Makefile.Debian: libR.so is now in /usr/lib/R/lib (not in /usr/lib/R/bin any more), which caused an FTBFS (closes: #278422) * urgency high since this is an RC bug and nothing else changed -- Martin Pitt Wed, 27 Oct 2004 11:31:26 +0200 plr (1:0.5.3+0.5.4alpha-1) unstable; urgency=low * Separated out of postgresql source package; thus a new epoch had to be created, postgresql is already at 7.4.1 * created new Makefile.Debian to allow building outside of the PostgreSQL source tree * added depencendy postgresql since this package does not make sense without it * now ships documentation stylesheet -- Martin Pitt Fri, 16 Jan 2004 22:54:37 +0100 debian/README.source0000644000000000000000000000067512235741216011360 0ustar Short explanation how to handle the patch system quilt for this package to comply with Policy 3.8.0 (4.14. Source package handling: `debian/README.source'): This package uses the quilt patch system. You can use quilt push -a to apply all patches that were used to build this package. If you use quilt pop -a all patches will be reverted to get the clean source. -- Andreas Tille Wed, 16 Jul 2008 12:01:33 +0200 debian/rules0000755000000000000000000000103312235741216010246 0ustar #!/usr/bin/make -f SRCDIR = $(CURDIR) include /usr/share/postgresql-common/pgxs_debian_control.mk clean: debian/control .PHONY: debian/control override_dh_auto_build: +pg_buildext build $(CURDIR) build-%v override_dh_auto_test: # no tests here, we are using autopkgtest override_dh_auto_clean: +pg_buildext clean $(CURDIR) build-%v rm -rf build-?.? debian/postgresql-?.?-plr override_dh_installdocs: dh_installdocs --all doc/*.html override_dh_auto_install: +pg_buildext install $(CURDIR) build-%v postgresql-%v-plr %: dh $@ debian/watch0000644000000000000000000000007212235741216010221 0ustar version=3 http://www.joeconway.com/plr/plr-(.*)\.tar\.gz debian/postinst0000644000000000000000000000212212235741216010774 0ustar #!/bin/sh # postinst script for postgresql-plr # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) if [ ! -e /usr/lib/libR.so ] ; then # Make sure libR will be found even if R_HOME is not set ln -s R/lib/libR.so /usr/lib/libR.so fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/compat0000644000000000000000000000000212235741216010367 0ustar 7