debian/0000755000000000000000000000000012237151733007172 5ustar debian/control0000644000000000000000000000244512237151655010605 0ustar Source: pnopaste Section: web Priority: optional Homepage: http://www.sourceforge.net/projects/pnopaste/ Maintainer: Patrick Matthäi Build-Depends: debhelper (>= 9) Standards-Version: 3.9.5 Package: pnopaste Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, dbconfig-common, libsyntax-highlight-engine-kate-perl, libgeo-ip-perl Recommends: apache2 | httpd Suggests: pnopaste-cli Description: Pastebin with syntax highlighting Perl Nopaste is a Pastebin written in Perl using MySQL as backend. It features syntax highlighting for more than 120 languages, badword and IP address blacklists with hit counter, expiration date on postings, raw download of posted files, automatic multilanguage support and more. Package: pnopaste-cli Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libwww-perl Suggests: pnopaste Description: Pastebin with syntax highlighting (cli tool) Perl Nopaste is a Pastebin written in Perl using MySQL as backend. It features syntax highlighting for more than 120 languages, badword and IP address blacklists with hit counter, expiration date on postings, raw download of posted files, automatic multilanguage support and more. . This package contains the cli tool to add pastes using the command-line interface on remote servers. debian/changelog0000644000000000000000000001066312237151655011055 0ustar pnopaste (1.5-2) unstable; urgency=low * Add db_stop to postinst. Closes: #728241 * Bump Standards-Version to 3.9.5 (no changes needed). * Don't explicitly request xz compression - dpkg 1.17 does this by default. -- Patrick Matthäi Fri, 08 Nov 2013 13:05:26 +0100 pnopaste (1.5-1) unstable; urgency=low * New upstream release. - Remove merged patch 03-empty-geoip-answer. - Remove merged patch 04-amp-escape. - Remove merged patch 05-apache2-deprecated-auth-config. * Depend on correct virtual package httpd. Closes: #726523 * Update debian/copyright. * Enable Apache cgid module. -- Patrick Matthäi Fri, 25 Oct 2013 13:18:10 +0200 pnopaste (1.4-8) unstable; urgency=low * Remove option Indexes from Apache configuration. * Remove whitespaces from shebangs. * Remove README.Debian. The information are deprecated with using apache2-maintscript-helper. * Add patch 05-apache2-deprecated-auth-config to fix lintian warning apache2-deprecated-auth-config. -- Patrick Matthäi Thu, 05 Sep 2013 11:01:17 +0200 pnopaste (1.4-7) unstable; urgency=low * Uploading to unstable. -- Patrick Matthäi Mon, 06 May 2013 09:42:06 +0200 pnopaste (1.4-6) experimental; urgency=low * Bump Standards-Version to 3.9.4 (no changes needed). * Convert package from cdbs to debhelper and also bump compat level to 9. * Switch to xz compression and add a Pre-Depends on dpkg. * Transition to Apache 2.4 packaging. Closes: #669838 -- Patrick Matthäi Thu, 20 Dec 2012 10:13:11 +0100 pnopaste (1.4-5) unstable; urgency=low * Bump Standards-Version to 3.9.3 (no changes needed). * Wrap all debian/control fields. * Set dbc_first_version. -- Patrick Matthäi Fri, 06 Apr 2012 20:51:38 +0200 pnopaste (1.4-4) unstable; urgency=low * Bump Standards-Version to 3.9.2 (no changes needed). * Wrap build dependencies. * Limit Depends line to 80 chars. -- Patrick Matthäi Sat, 30 Apr 2011 17:21:52 +0200 pnopaste (1.4-3) unstable; urgency=low * Pass --debconf-ok to ucf. * Bump Standards-Version to 3.9.1 (no changes needed). * Only execute ucf in postrm, if it is available. * Add patch from 04-amp-escape from Harri Porten , to fix a missing amp escape in HTML. Closes: #606710 -- Patrick Matthäi Sun, 06 Feb 2011 20:24:29 +0100 pnopaste (1.4-2) unstable; urgency=low * Add upstream patch 03-empty-geoip-answer.diff, which ensures that pnopaste sets the default language english instead of writing Perl warnings to the webservers error log, if GeoIP does not return a country flag. -- Patrick Matthäi Tue, 17 Aug 2010 20:46:41 +0200 pnopaste (1.4-1) unstable; urgency=low * New upstream release. - Adjust debian/copyright. * Bump Standards-Version to 3.8.4 (no changes needed). * Convert package to the 3.0 (quilt) format. * Execute the expired_delete.pl cronjob as user www-data, because nobody does not have the rights to read the debiandb.pm file. Closes: #582764 -- Patrick Matthäi Sun, 23 May 2010 20:59:28 +0200 pnopaste (1.3-2) unstable; urgency=low * Bump Standards-Version to 3.8.3 (no changes needed). * Remove Bjoern Boschman from uploaders. -- Patrick Matthäi Mon, 07 Sep 2009 12:52:28 +0200 pnopaste (1.3-1) unstable; urgency=low * New upstream release. - Add 02-fix-libdir-expired.patch which makes expired_delete.pl working. * Bump Standards-Version to 3.8.2 (no changes needed). -- Patrick Matthäi Wed, 05 Aug 2009 19:01:23 +0200 pnopaste (1.2-3) unstable; urgency=low * Improve the packages short- and long-description. Much thanks to Michael Ziegler. Closes: #529199 -- Patrick Matthäi Fri, 29 May 2009 22:14:51 +0200 pnopaste (1.2-2) unstable; urgency=low * Change my email address. * Remove DM-Upload-Allowed control field. * Refer in debian/copyright to the GPL-2 file instead of GPL. This fixes the lintian warning copyright-refers-to-symlink-license. -- Patrick Matthäi Sun, 17 May 2009 09:47:26 +0200 pnopaste (1.2-1) unstable; urgency=low * Initial release. Closes: #506983 -- Patrick Matthäi Wed, 15 Apr 2009 13:51:48 +0200 debian/pnopaste.prerm0000644000000000000000000000020412237151655012071 0ustar #!/bin/sh set -e . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/prerm dbc_go pnopaste $@ #DEBHELPER# exit 0 debian/pnopaste.dirs0000644000000000000000000000006012237151655011705 0ustar usr/share/dbconfig-common/data/pnopaste/install debian/pnopaste.config0000644000000000000000000000045612237151655012222 0ustar #!/bin/sh set -e . /usr/share/debconf/confmodule if [ -f /usr/share/dbconfig-common/dpkg/config ]; then dbc_dbtypes="mysql" dbc_authmethod_user="password" dbc_first_version="1.2-1" . /usr/share/dbconfig-common/dpkg/config dbc_go pnopaste $@ fi #DEBHELPER# exit 0 debian/pnopaste.conf0000644000000000000000000000027212237151655011676 0ustar Alias /pnopaste /usr/share/pnopaste AllowOverride all DirectoryIndex index.pl AddHandler cgi-script .pl Options ExecCGI debian/pnopaste.postinst0000644000000000000000000000070412237151655012634 0ustar #!/bin/sh set -e . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/postinst dbc_generate_include=perl:/etc/pnopaste/debiandb.pm dbc_generate_include_owner="root:www-data" dbc_generate_include_perms="0640" dbc_go pnopaste $@ if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_invoke enmod cgid apache2_invoke enconf pnopaste.conf fi db_stop #DEBHELPER# exit 0 debian/pnopaste.install0000644000000000000000000000045512237151655012422 0ustar debian/pnopaste.conf etc/apache2/conf-available/ bin/expired_delete.pl usr/share/pnopaste/bin/ conf/SQL_Access.pm etc/pnopaste/ conf/Syntax_Languages.pm etc/pnopaste/ index.pl usr/share/pnopaste/ lib usr/share/pnopaste/ lang usr/share/pnopaste/ templates usr/share/pnopaste/ skins usr/share/pnopaste/ debian/pnopaste-cli.manpages0000644000000000000000000000002112237151655013301 0ustar man/nopaste-it.1 debian/copyright0000644000000000000000000000251712237151655011135 0ustar This package was debianized by Patrick Matthäi on Sun, 12 Apr 2009 19:18:12 +0200. It was downloaded from: http://sourceforge.net/projects/pnopaste Copyright: 2008-2013 by Patrick Matthäi Upstream Authors: Patrick Matthäi Uli Schlachter License: 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 St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. The Debian packaging is © 2009-2013, Patrick Matthäi and is licensed under the GPL, see above. debian/pnopaste-cli.install0000644000000000000000000000003012237151655013154 0ustar bin/nopaste-it usr/bin/ debian/pnopaste.links0000644000000000000000000000004612237151655012070 0ustar etc/pnopaste /usr/share/pnopaste/conf debian/watch0000644000000000000000000000007012237151655010223 0ustar version=3 http://sf.net/pnopaste/pnopaste-(.*)\.tar\.gz debian/rules0000755000000000000000000000043712237151655010261 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_install: dh_install cp sql/mysql_5.sql debian/pnopaste/usr/share/dbconfig-common/data/pnopaste/install/mysql chmod 0755 debian/pnopaste/usr/share/pnopaste/bin/expired_delete.pl debian/pnopaste.cron.d0000644000000000000000000000023012237151655012126 0ustar */30 * * * * www-data if [ -f /usr/share/pnopaste/bin/expired_delete.pl ]; then /usr/bin/perl /usr/share/pnopaste/bin/expired_delete.pl > /dev/null; fi debian/patches/0000755000000000000000000000000012237151655010624 5ustar debian/patches/series0000644000000000000000000000006012237151655012035 0ustar 01-use-debiandb.diff 02-fix-libdir-expired.diff debian/patches/02-fix-libdir-expired.diff0000644000000000000000000000101612237151655015362 0ustar # Add additional libdir. diff -Naur pnopaste-1.3.orig/bin/expired_delete.pl pnopaste-1.3/bin/expired_delete.pl --- pnopaste-1.3.orig/bin/expired_delete.pl 2009-08-05 18:45:46.000000000 +0200 +++ pnopaste-1.3/bin/expired_delete.pl 2009-08-05 18:45:58.000000000 +0200 @@ -13,10 +13,10 @@ # Distribution mode. Just uncomment the following lines # if you are a packager! -#use FindBin qw($Bin); -#BEGIN { -# push(@INC, $Bin . '/../'); -#} +use FindBin qw($Bin); +BEGIN { + push(@INC, $Bin . '/../'); +} use lib::Expire; debian/patches/01-use-debiandb.diff0000644000000000000000000000135412237151655014221 0ustar # Use the Debian database settings. diff -Naur pnopaste-1.2.orig/conf/SQL_Access.pm pnopaste-1.2/conf/SQL_Access.pm --- pnopaste-1.2.orig/conf/SQL_Access.pm 2009-04-13 10:00:03.000000000 +0200 +++ pnopaste-1.2/conf/SQL_Access.pm 2009-04-13 10:02:05.000000000 +0200 @@ -1,16 +1,16 @@ package SQL_Access; -use warnings; -use strict; - +#use warnings; +#use strict; +use conf::debiandb; # DBI driver (we only support officaly mysql at the moment!). -our $Driver = 'mysql'; +our $Driver = $dbtype; # SQL Access. -our $Hostname = 'localhost'; -our $Database = 'pnopaste'; -our $Username = 'pnopaste'; -our $Password = 'INSERT_PW'; +our $Hostname = $dbserver; +our $Database = $dbname; +our $Username = $dbuser; +our $Password = $dbpass; 1; debian/pnopaste.postrm0000644000000000000000000000147012237151655012276 0ustar #!/bin/sh set -e if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then . /usr/share/dbconfig-common/dpkg/postrm dbc_go pnopaste $@ fi case "$1" in purge) rm -f /etc/pnopaste/debiandb.pm if [ -x /usr/bin/ucf ]; then ucf --debconf-ok --purge /etc/pnopaste/debiandb.pm fi if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_invoke disconf pnopaste.conf fi ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac #DEBHELPER# exit 0 debian/source/0000755000000000000000000000000012237151655010475 5ustar debian/source/format0000644000000000000000000000001412237151655011703 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212237151655010373 0ustar 9