debian/0000755000000000000000000000000012263317456007177 5ustar debian/source/0000755000000000000000000000000011504726140010466 5ustar debian/source/format0000644000000000000000000000001411504726140011674 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000031212263076310010213 0ustar version=3 opts=uversionmangle=s/(\d)[\.\+\-_]?(beta|alpha|dev)/$1~$2/ \ http://pgfoundry.org/frs/?group_id=1000300 \ (?:.*/|.*=|)pg_top[\-\._](\d\S*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)(?:/\S*)? debian/docs0000644000000000000000000000003012260560665010042 0ustar FAQ README TODO HISTORY debian/changelog0000644000000000000000000000721312263317456011054 0ustar pgtop (3.7.0-1) unstable; urgency=low * New upstream release - ptop is now called pg_top - rename package to pgtop - ptop is incompatible with PostgreSQL >= 9.2 (closes: #718697) - removed patches becouse they are now in new upstream release * debian/control: Provide transitional dummy package * debian.control: Changed Standards-Version to 3.9.5 * debian/control: Updated VCS urls in control file to anonscm.debian.org instead of git.debian.org * debian/control: Changed dependency of debhelper to <= 9 * debian/compat: Changed Debhelper compatibility level to 9 * debian/copyright: updated, reformatted to DEP5 format * debian/watch: update watch file to ignore alpha en beta versions * Special thanks to Willi Mann for helping to get this package back up to specs -- Bastiaan Franciscus van den Dikkenberg Tue, 07 Jan 2014 23:17:52 +0100 ptop (3.6.2-5) unstable; urgency=low * Applyed patch (closes: #594077) * Adopted packages Bug-Debian: (closes: #654552) * fixed lintian warnings * Changed Standards-Version to 3.9.2 * Closes request for sponsorshop Bug-Debian: (closes: #658775) -- Bastiaan Franciscus van den Dikkenberg Sat, 04 Feb 2012 12:00:00 +0100 ptop (3.6.2-4) unstable; urgency=low * Merge with Ubuntu - Fix FTBFS with ld --as-needed. (closes: #607811) -- Francois Marier Fri, 24 Dec 2010 09:01:33 +1300 ptop (3.6.2-3) unstable; urgency=low * Convert the "Recommends" on posgresql to an "Enhances" (closes: #600102) * Bump Standards-Version up to 3.9.1 * Bump debhelper compatibility to 8 * Switch to 3.0 (quilt) source package format * Fix hyphen in manpage * Drop reference to BSD in /usr/share/common-licenses -- Francois Marier Wed, 22 Dec 2010 17:04:09 +1300 ptop (3.6.2-2) unstable; urgency=low * Adopt orphaned package (closes: #547981) * Bump Standards-Version up to 3.8.3 * Bump debhelper compatibility to 7 * Fix lintian notice in debian/copyright * Add git vcs fields to debian/control -- Francois Marier Thu, 01 Oct 2009 13:27:34 +1300 ptop (3.6.2-1) unstable; urgency=low * New upstream release + Change of binary name to pg_top to avoid conflict with a pascal tool in fp-utils package (closes: #465175) * Updated the watch file to look for the new package name * Removed Debian.README as it is not longer needed + Some remote functionality was added to pg_top * debian/rules + Rebuild 'sigdesc.h' each time we build, instead of using a cached version + No longer need to remove the manpage in the cleanup section * Updated Standards to 3.8.0 -- Adam Majer Fri, 25 Jul 2008 12:16:23 -0500 ptop (3.6.2~b2-1) unstable; urgency=low * New upstream release + Cumulative table and index stats in addition to differential stats. + Run 'EXPLAIN ANALYZE' on currently running queries -- Adam Majer Sat, 22 Mar 2008 13:34:46 -0500 ptop (3.6.1-2) unstable; urgency=low * Add a missing build dependency on libncurses -- Adam Majer Sat, 08 Mar 2008 20:08:54 -0600 ptop (3.6.1-1) unstable; urgency=low * New upstream release + first non-beta release * Fix a FTBFS by using `rm -f` instead of `rm` (closes: #465041) * Updated the description with one supplied by Noah Slater. Thanks! (closes: #464887) -- Adam Majer Sat, 08 Mar 2008 14:06:55 -0600 ptop (3.6.1~b3-1) unstable; urgency=low * Initial release (Closes: #446316) -- Adam Majer Wed, 27 Jan 2008 10:25:45 -0600 debian/compat0000644000000000000000000000000212262605072010366 0ustar 9 debian/copyright0000644000000000000000000000620212263071357011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pg_top Source: http://pgfoundry.org/frs/?group_id=1000300 Files: * Copyright:2005-2007 William LeFebvre 2007-2014 Mark Wong, License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2007-2008, Adam Majer 2009-2010, Francois Marier 2012-2014, Bastiaan Franciscus van den Dikkenberg License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/rules0000755000000000000000000000365212262610355010256 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_CFLAGS ?= $(shell dpkg-buildflags --get CFLAGS) DEB_LDFLAGS ?= $(shell dpkg-buildflags --get LDFLAGS) config.status: configure dh_testdir # update config files chmod +x debian/configupdate debian/configupdate update # configure :) ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(DEB_CFLAGS)" LDFLAGS="$(DEB_LDFLAGS)" --enable-dependency-tracking build: build-stamp build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: config.status dh_testdir $(MAKE) sigdesc.h $(MAKE) touch $@ clean: dh_testdir dh_testroot rm -f build-stamp # Clean up after build, including reverting updates of config files if [ -f Makefile ]; then $(MAKE) distclean; fi chmod +x debian/configupdate debian/configupdate reset # Remove extra cruft left over rm -f sigdesc.h dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/ptop. $(MAKE) prefix=$(CURDIR)/debian/pgtop/usr install # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installman dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/configupdate0000755000000000000000000000243011504726140011563 0ustar #!/bin/bash # Original written and copyright by Adam Majer # # This file is 100% public domain. Use it for whatever you wish. # function update_configs() { [ -x /usr/share/misc/config.${1} ] || return 0 LATEST_VERSION=`/usr/share/misc/config.${1} -t` UPDATE_FILES=`find -type f | grep "/config\.${1}\$"` echo "Latest version of config.${1} file is ${LATEST_VERSION}" for i in $UPDATE_FILES; do head -1 "$i" | grep -q '#!.*\/bin\/sh' EXE=$? if [ -x "$i" ] || [ $EXE -eq 0 ]; then V=`sh -e "${i}" -t` echo "Updating ${V} version file at ${i}" if [[ "$LATEST_VERSION" > "$V" ]]; then mv "${i}" "${i}.orig_update" ln -s /usr/share/misc/config.$1 "${i}" else echo "WARNING: Debian version of config.${1} is older than this package's upstream." fi fi done return 0 } function reset_configs() { UPDATED_FILES=`find -type l | grep "/config\.${1}\$"` for i in ${UPDATED_FILES}; do if [ -e "${i}.orig_update" ]; then mv "${i}.orig_update" "${i}" fi done return 0 } # Check if we are updating, reseting or whatever case "$1" in update) update_configs sub update_configs guess ;; reset) reset_configs sub reset_configs guess ;; *) echo "The only allowed parameters are 'update' or 'reset'" exit 2; ;; esac exit 0 debian/control0000644000000000000000000000217312263064014010572 0ustar Source: pgtop Section: misc Priority: optional Maintainer: Bastiaan Franciscus van den Dikkenberg Build-Depends: debhelper (>= 9), autotools-dev, libpq-dev, libncurses5-dev Standards-Version: 3.9.5 Homepage: http://ptop.projects.postgresql.org/ Vcs-Git: git://anonscm.debian.org/collab-maint/ptop.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/ptop.git;a=summary Package: pgtop Replaces: ptop (<< 3.7.0-1~) Breaks: ptop (<< 3.7.0-1~) Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Enhances: postgresql Description: PostgreSQL performance monitoring tool akin to top pg_top is a console-based tool for monitoring a PostgreSQL database. . With pg_top you can: * View currently running SQL statement of a process * View query plan of a currently running SELECT statement * View locks held by a process * View user table statistics * View user index statistics Package: ptop Depends: pgtop, ${misc:Depends} Architecture: all Section: oldlibs Description: transitional dummy package This is a transitional dummy package. It can safely be removed. ptop is replaced by pgtop