--- pvpgn-1.8.1.orig/d2dbs.8 +++ pvpgn-1.8.1/d2dbs.8 @@ -0,0 +1,40 @@ +.TH "d2dbs" "8" +.SH "NAME" +d2dbs \(em Program needed to host Diablo II open and closed servers +.SH "SYNOPSIS" +.TP 8 +\fBd2dbs\fR [\fB\-m\fR \fIfile\fR] [\fB\-c\fR \fIfile\fR] [\fB\-l\fR \fI file\fR] [\fB\-h\fR] [\fB\-v\fR] [\fB\-f\fR] [\fB\-D\fR] +.br +.SH "DESCRIPTION" +.PP +This manual page documents briefly the +\fBd2dbs\fR command. +.PP +d2dbs handles the ladder updating component of Diablo II closed realm servers. +.SH "OPTIONS" +.TP +\fB\-m\fR \fIfile +Set memory debug logging file to FILE +.TP +\fB\-c\fR \fIfile +Set configuration file to FILE +.TP +\fB\-l\fR \fIfile +Set log to FILE +.TP +\fB\-h\fR, \fB\-\-help +Show help message and exit +.TP +\fB\-v\fR, \fB\-\-version +Show version information and exit +.TP +\fB\-f\fR, \fB\-\-foreground +Start in foreground mode (don`t daemonize) +.TP +\fB\-D\fR, \fB\-\-debug +Run in debug mode (run in foreground and log to stdout) +.SH "AUTHOR" +.PP +This manual page was written by Radu Spineanu for +the \fBDebian\fP system (but may be used by others). + --- pvpgn-1.8.1.orig/pvpgn-1.8.1.tar.gz.cdbs-config_list +++ pvpgn-1.8.1/pvpgn-1.8.1.tar.gz.cdbs-config_list @@ -0,0 +1,3 @@ +pvpgn-1.8.1/src/autoconf/config.sub +pvpgn-1.8.1/src/autoconf/config.guess +pvpgn-1.8.1/src/config.h.in --- pvpgn-1.8.1.orig/d2cs.8 +++ pvpgn-1.8.1/d2cs.8 @@ -0,0 +1,40 @@ +.TH "d2cs" "8" +.SH "NAME" +d2cs \(em Program needed to host Diablo II open and closed servers +.SH "SYNOPSIS" +.TP 8 +\fBd2cs\fR [\fB\-m\fR \fIfile\fR] [\fB\-c\fR \fIfile\fR] [\fB\-l\fR \fI file\fR] [\fB\-h\fR] [\fB\-v\fR] [\fB\-f\fR] [\fB\-D\fR] +.br +.SH "DESCRIPTION" +.PP +This manual page documents briefly the +\fBd2cs\fR command. +.PP +d2cs handles the game list and character list component of Diablo II closed realm servers. +.SH "OPTIONS" +.TP +\fB\-m\fR \fIfile +Set memory debug logging file to FILE +.TP +\fB\-c\fR \fIfile +Set configuration file to FILE +.TP +\fB\-l\fR \fIfile +Set log to FILE +.TP +\fB\-h\fR, \fB\-\-help +Show help message and exit +.TP +\fB\-v\fR, \fB\-\-version +Show version information and exit +.TP +\fB\-f\fR, \fB\-\-foreground +Start in foreground mode (don`t daemonize) +.TP +\fB\-D\fR, \fB\-\-debug +Run in debug mode (run in foreground and log to stdout) +.SH "AUTHOR" +.PP +This manual page was written by Radu Spineanu for +the \fBDebian\fP system (but may be used by others). + --- pvpgn-1.8.1.orig/bncdb.1 +++ pvpgn-1.8.1/bncdb.1 @@ -0,0 +1,37 @@ +.TH "bncdb" "1" +.SH "NAME" +bncdb \(em pvpgn Constant DataBase (CDB) tool +.SH "SYNOPSIS" +.B bncdb +.BR \-q +[-m] [-n recno|-a] cdbfile key +.br +.B bncdb +.BR \-d +[-m] [cdbfile|- +.br +.B bncdb +.BR \-l +[-m] [cdbfile|-] +.br +.B bncdb +.BR \-c +[-m] [-wrue] [-t tempfile] cdbfile [infile...] +.br +.B bncdb +.BR \-s +[cdbfile|-] +.br +.B bncdb +.BR \-h +.br + +.SH "DESCRIPTION" +.PP +\fBbncdb\fR isused to query, dump, list, create or analyze CDB (Constant +DataBase) files. +.SH "AUTHOR" +.PP +This manual page was written by Radu Spineanu for +the \fBDebian\fP system (but may be used by others). + --- pvpgn-1.8.1.orig/pvpgn-support-installer.8 +++ pvpgn-1.8.1/pvpgn-support-installer.8 @@ -0,0 +1,28 @@ +.TH "pvpgn-support-installer" "8" +.SH "NAME" +pvpgn-support-installer \(em Downloads the support files needed by pvpgn +.SH "SYNOPSIS" +.PP +\fBpvpgn-support-installer\fR [\fB\-u\fP] [\fB\-l \fP\fIdirectory\fR] [\fB\-d\fP] +.SH "DESCRIPTION" +.PP +This manual page documents briefly the +\fBpvpgn-support-installer\fR command. +.PP +Due to the unclear license situation of pvpgn's support files they +are not distributed together with the Debian package. +.PP +\fBpvpgn-support-installer\fR downloads and installs the needed files. + +.SH "OPTIONS" +.IP "\fB\-u\fP " 10 +Uninstall +.IP "\fB\-l\fP \fIdirectory\fR " 10 +use exist local file instead of downloading +.IP "\fB\-d\fP " 10 +Delete the archive after install. +.SH "AUTHOR" +.PP +This manual page was written by Radu Spineanu for +the \fBDebian\fP system (but may be used by others). + --- pvpgn-1.8.1.orig/debian/copyright +++ pvpgn-1.8.1/debian/copyright @@ -0,0 +1,38 @@ +This package was debianized by: + + Robert Millan + on 2003-12-28 19:06:22 +0100 Sun. + +It was downloaded from: + + http://pvpgn.berlios.de/index.php?page=files + http://developer.berlios.de/projects/pvpgn + http://pvpgn.org/ + + The zlib code is not used in the debian package of pvpgn. zlib is + licensed under the BSD license. + +Upstream Authors: + + The Bnetd project and others, see file CREDITS. + +Copyright: + + Copyright (C) 2004-2010 The Bnetd project and others, see file CREDITS. + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This package 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, see . + +On Debian systems, the complete text of the GNU General +Public License can be found in "/usr/share/common-licenses/GPL-2". --- pvpgn-1.8.1.orig/debian/changelog +++ pvpgn-1.8.1/debian/changelog @@ -0,0 +1,157 @@ +pvpgn (1.8.1-2.1build1) precise; urgency=low + + * Rebuild for libmysqlclient transition + + -- Clint Byrum Thu, 24 Nov 2011 00:06:11 -0800 + +pvpgn (1.8.1-2.1) unstable; urgency=low + + * Non-maintainer upload. + * debian/compat + - Update deprecated 5 to 8. + * debian/control + - (Depends): Update deprecated debhelper 4 to 8. + - (Homepage): New. + - (Standards-Version): Update to 3.9.1. + - pvpgn + + (Depends): Add ${misc:Depends}. + + (Suggests): Add mysql-server-5.1 (Closes: #578011). + * debian/copyright + - Update layout. Add FSF License preamble. + * debian/{init.d,pvpgn-support-installer} + - Fix bashism, patch idea thanks to Prach Pongpanich + with the exception that use plain echo. + (Closes: #530166). + - Clean up extra whitespaces. Move "set -e" and variable definitions + to the beginning of file. Prefer POSIX $(). + * debian/postinst + - Change "sh -e" to safer "set -e". + * debian/README.Debian + - Fix spelling typo. + * d2dbs.8 + - Change d2cs occurrences to d2dbs (Closes: #578013). + + -- Jari Aalto Mon, 25 Oct 2010 13:50:00 +0300 + +pvpgn (1.8.1-2) unstable; urgency=low + + * Move the downloaded archive to /var/lib/pvpgn instead of /tmp.(doh) + - CVE-2008-5370 (closes: #509336) + * Added LSB data to the init.d script. + + -- Radu Spineanu Sun, 21 Dec 2008 17:42:01 +0200 + +pvpgn (1.8.1-1) unstable; urgency=low + + * New upstream release. + * Create data directories during postinst. (closes: #425750) + + -- Radu Spineanu Sun, 30 Sep 2007 14:47:18 +0300 + +pvpgn (1.7.9-3) unstable; urgency=low + + * Move pvpgn to contrib + * Added note in README.Debian about the Battle.Net TOS violation + (closes: #278527) + * Fix pvpgn removal bug (closes: #373245) + + -- Radu Spineanu Mon, 3 Jul 2006 01:13:25 +0300 + +pvpgn (1.7.9-2) unstable; urgency=low + + * Updated libmysqlclient depedency (closes: #343800) + + -- Radu Spineanu Wed, 1 Feb 2006 21:45:49 +0200 + +pvpgn (1.7.9-1) unstable; urgency=low + + * New upstream release + * Create needed directories during installation + * New maintainer's email + + -- Radu Spineanu Sun, 11 Dec 2005 13:22:38 +0200 + +pvpgn (1.7.8-2) unstable; urgency=low + + * Stop using pvpgn's own zlib (closes: #332326) + * Added zlib's license to debian/copyright together with + a note that it's not used (closes: #332327) + * Fixed a small typo in the init file + + -- Radu Spineanu Fri, 7 Oct 2005 22:49:10 +0300 + +pvpgn (1.7.8-1) unstable; urgency=low + + * New upstream release + + -- Radu Spineanu Mon, 3 Oct 2005 12:54:54 +0300 + +pvpgn (1.7.7-1) unstable; urgency=low + + * New Maintainer (closes: #314670) + * New upstream release + * Created a downloader for the pvpgn support files and updated + README.Debian with information about it + * The init script looks for the support files and fails if it + doesn't find them + * Enabled mysql and postgresql support + * Added the missing manpages, the package should now be + lintian clean + * Added a note in README.Debian about upgrading from older + versions of pvpgn + + -- Radu Spineanu Fri, 15 Jul 2005 00:09:05 +0300 + +pvpgn (1.6.4+20040826-2) unstable; urgency=low + + * QA upload + * Orphaning this package + * Updated upstream URL + * Removed the references to a pid file from the init.d script + (Closes: #257619) + * Addressed pvpgn-support in README.Debian (Closes: #278527) + + -- Philipp Kern Tue, 12 Jul 2005 19:24:56 +0000 + +pvpgn (1.6.4+20040826-1) unstable; urgency=low + + * New upstream snapshot. + - Fix security issue with player accounts. (Closes: #268174) + - Use DEB_AUTO_UPDATE_* to generate configure and config.h.in. + + -- Robert Millan Thu, 26 Aug 2004 16:28:06 +0200 + +pvpgn (1.6.0-2) unstable; urgency=low + + * copyright: s|www.pvpgn.de|sourceforge.net/projects/pvpgn|g + + -- Robert Millan Fri, 12 Mar 2004 14:10:48 +0100 + +pvpgn (1.6.0-1) unstable; urgency=low + + * New upstream release. + - patches/00_d2-compat.diff: Nuked. + + -- Robert Millan Fri, 12 Mar 2004 14:04:20 +0100 + +pvpgn (1.5.99+1.6.0pre3+1.6.0beta-2) unstable; urgency=low + + * Bump version. + + -- Robert Millan Mon, 8 Mar 2004 14:01:40 +0100 + +pvpgn (1.5.99+1.6.0pre3+1.6.0beta-1) unstable; urgency=low + + * New upstream pre-release. + * patches/00_d2-compat.diff: New. Fix FTBFS on ia64 and alpha. Thanks + Mihai RUSU. (Closes: #235480) + * control (Suggests): Add fortune. + + -- Robert Millan Sun, 7 Mar 2004 21:52:50 +0100 + +pvpgn (1.5.99+1.6.0pre3-1) unstable; urgency=low + + * Initial Release. (Closes: #224163) + + -- Robert Millan Sun, 28 Dec 2003 19:06:22 +0100 + --- pvpgn-1.8.1.orig/debian/control +++ pvpgn-1.8.1/debian/control @@ -0,0 +1,23 @@ +Source: pvpgn +Section: contrib/net +Priority: optional +Maintainer: Radu Spineanu +Build-Depends: cdbs (>= 0.4.22-1.1), debhelper (>= 8), libmysqlclient15-dev | libmysqlclient-dev, libpq-dev, autoconf, autotools-dev, zlib1g-dev +Standards-Version: 3.9.1 +Homepage: http://freshmeat.net/projects/pvpgn + +Package: pvpgn +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: bnetd +Provides: bnetd +Suggests: fortune, mysql-server-5.1 +Description: Gaming server that emulates Battle.net(R) + The server currently implements most of the same functionality as the + real Battle.net(R) servers from Blizzard Entertainment. You can chat, + play games, use / commands, and things like account passwords, user + icons, ad banners, and channel operators work too. It is by no means + complete, though. + . + More information can be found at the pvpgn web site + http://pvpgn.berlios.de/. --- pvpgn-1.8.1.orig/debian/install +++ pvpgn-1.8.1/debian/install @@ -0,0 +1,2 @@ +debian/pvpgn-support-installer /usr/sbin +build-tree/pvpgn-1.8.1/docs /usr/share/doc/pvpgn --- pvpgn-1.8.1.orig/debian/README.Debian +++ pvpgn-1.8.1/debian/README.Debian @@ -0,0 +1,16 @@ +pvpgn for Debian +================ + +Upgrading from 1.6.x may require a clean install of configuration +files. Please read /usr/share/doc/pvpgn/UPDATE. + +-- +In order to function correctly with Blizzard games, pvpgn needs some +additional files. These files are taken verbatim from the Battle.Net servers, +in violation with Blizzard's Terms of Use. Use at your own risk. + +To download the files, you can either use pvpgn-support-installer which +comes with this package or download the tarball from [1] and place the +contained files in `/var/lib/pvpgn/files'. + +[1] http://download.berlios.de/pvpgn/pvpgn-support-1.0.tar.gz --- pvpgn-1.8.1.orig/debian/rules +++ pvpgn-1.8.1/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +DEB_TAR_SRCDIR = pvpgn-1.8.1 + +DEB_AUTO_UPDATE_AUTOCONF = 2.50 +DEB_AUTO_UPDATE_AUTOHEADER = 2.50 + +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/tarball.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +DEB_SRCDIR := $(DEB_SRCDIR)/src +DEB_CONFIGURE_EXTRA_FLAGS := --with-mysql --with-pgsql --- pvpgn-1.8.1.orig/debian/pvpgn-support-installer +++ pvpgn-1.8.1/debian/pvpgn-support-installer @@ -0,0 +1,114 @@ +#!/bin/sh + +# Downloads pvpgn support files needed to run the daemon from pvpgn.berlios.de. +# +# (C) 2005 Radu Spineanu +# You may freely distribute this file under the terms of the GNU General +# Public License, version 2 or later. +# + +SUPPORT_PATH="http://download.berlios.de/pvpgn/pvpgn-support-1.0.tar.gz" + +usage() +{ + echo "usage: pvpgn-support-installer [options]" + echo "options: + -u -- uninstall + -l [path] -- use local file + -d -- delete archive after install + -h -- this message" +} + +# look through input arguments +until [ -z "$1" ]; do + case $1 in + "-u") + UNINSTALL=1 + ;; + "-l") + # look for the archive + if [ ! "$2" ]; then + echo "You need to specify the path to the local file" + exit 1 + fi + + if [ ! -f "$2" ]; then + echo "Could not find $2" + exit 1 + fi + OFFLINE_PATH=$2 + shift + ;; + "-d") + DELETE_AFTER=1 + ;; + "-h") + usage + exit + ;; + * ) + usage + exit + ;; + esac + shift +done + +echo "" + +if [ "$UNINSTALL" ]; then + echo "Removing support files from /var/lib/pvpgn/files..." + FILES="IX86ver1.mpq XMACver1.mpq bnserver-WAR3.ini icons.bni + matchmaking-war3-enUS.dat PMACver1.mpq bnserver-D2DV.ini + bnserver.ini icons_STAR.bni WAR3IX86.mpq bnserver-D2XP.ini + icons-WAR3.bni matchmaking-war3-default.dat" + for i in $FILES; do + rm -f /var/lib/pvpgn/files/$i + done + exit 0 +fi + +if [ ! $OFFLINE_PATH ]; then # we need wget in order to download the archive + if [ ! -f "/usr/bin/wget" ]; then + echo "You need wget in order to download the archive" + exit 0 + fi +fi + + +# create a temporary work directory +echo "Creating temporary working directory..." +TMPDIR=$(mktemp -d -t pvpgn.XXXXXX) || exit 1 +cd $TMPDIR + +# get the archive +echo "Placing the archive in the temporary directory..." +if [ $OFFLINE_PATH ]; then # copy the archive to the temporary directory + cp -f $OFFLINE_PATH $TMPDIR/pvpgn-support-1.0.tar.gz +else + wget $SUPPORT_PATH || exit 1 +fi + +echo "Unpacking archive..." +tar -xvzf pvpgn-support-1.0.tar.gz || exit 1 + +echo "Placing files..." +cp -f pvpgn-support-1.0/* /var/lib/pvpgn/files + +# cleaning up +if [ "$DELETE_AFTER" ]; then + echo "Removing temporary directory and archive file.." + rm -rf $TMPDIR +else + cp pvpgn-support-1.0.tar.gz /var/lib/pvpgn + echo "Removing temporary directory.." + rm -rf $TMPDIR + if [ ! "$OFFLINE_PATH" ]; then + echo + echo + echo "The archive has been saved as /var/lib/pvpgn/pvpgn-support-1.0.tar.gz" + echo "Use pvpgn-support-installer with the -l flag if you need to reinstall" + fi +fi + +exit 0 --- pvpgn-1.8.1.orig/debian/manpages +++ pvpgn-1.8.1/debian/manpages @@ -0,0 +1,4 @@ +pvpgn-support-installer.8 +bncdb.1 +d2cs.8 +d2dbs.8 --- pvpgn-1.8.1.orig/debian/init.d +++ pvpgn-1.8.1/debian/init.d @@ -0,0 +1,76 @@ +#! /bin/sh +# +# Written by Miquel van Smoorenburg +# Modified for Debian by Ian Murdock +# + +### BEGIN INIT INFO +# Provides: pvpgn +# Required-Start: $local_fs $remote_fs $syslog $network $time +# Required-Stop: $local_fs $remote_fs $syslog $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Gaming server that emulates Battle.net(R) +### END INIT INFO + +set -e + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/bnetd +NAME=bnetd +DESC="bnetd daemon" + +# checks for the pvpgn support files +check_support() +{ + FILES="IX86ver1.mpq XMACver1.mpq bnserver-WAR3.ini icons.bni + matchmaking-war3-enUS.dat PMACver1.mpq bnserver-D2DV.ini + bnserver.ini icons_STAR.bni WAR3IX86.mpq bnserver-D2XP.ini + icons-WAR3.bni matchmaking-war3-default.dat" + + START=1 + for i in $FILES; do + if [ ! -f "/var/lib/pvpgn/files/$i" ]; then + START=0; + fi + done + + if [ "$START" = "0" ]; then + echo + echo "You are missing the pvpgn support files and daemon will not start without them." + echo "Run pvpgn-support-installer or read /usr/share/doc/pvpgn/README.Debian" + exit 0 + fi + +} + +test -x $DAEMON || exit 0 + +case "$1" in + start) + check_support + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --oknodo --exec $DAEMON + echo "$NAME." + ;; + restart|force-reload) + check_support + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --exec $DAEMON + sleep 1 + start-stop-daemon --start --quiet --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- pvpgn-1.8.1.orig/debian/postinst +++ pvpgn-1.8.1/debian/postinst @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +# +# Skip, if we are not in "configure" state +# +if [ "$1" != "configure" ]; then + echo "I: Skipping configuration" + exit 0 +fi + +DIRS="bak/charinfo bak/charsave bnmail chanlogs charinfo + charsave ladder reports status teams users" + +for DIR in $DIRS; do + mkdir -p /var/lib/pvpgn/$DIR +done + +#DEBHELPER# + --- pvpgn-1.8.1.orig/debian/compat +++ pvpgn-1.8.1/debian/compat @@ -0,0 +1 @@ +8 --- pvpgn-1.8.1.orig/debian/dirs +++ pvpgn-1.8.1/debian/dirs @@ -0,0 +1,4 @@ +/var/lib/pvpgn/ladder +/var/lib/pvpgn/status +/var/lib/pvpgn/teams +/var/lib/pvpgn/clans \ No newline at end of file --- pvpgn-1.8.1.orig/debian/docs +++ pvpgn-1.8.1/debian/docs @@ -0,0 +1,8 @@ +build-tree/pvpgn-1.8.1/CREDITS +build-tree/pvpgn-1.8.1/README +build-tree/pvpgn-1.8.1/README.DEV +build-tree/pvpgn-1.8.1/TODO +build-tree/pvpgn-1.8.1/BUGS +build-tree/pvpgn-1.8.1/IGNOREME +build-tree/pvpgn-1.8.1/NEWS +build-tree/pvpgn-1.8.1/UPDATE --- pvpgn-1.8.1.orig/debian/postrm +++ pvpgn-1.8.1/debian/postrm @@ -0,0 +1,8 @@ +#! /bin/sh +set -e + +#DEBHELPER# + +if [ "$1" = "purge" ]; then + rm -fr /var/lib/pvpgn +fi --- pvpgn-1.8.1.orig/debian/patches/01_fix_paths.diff +++ pvpgn-1.8.1/debian/patches/01_fix_paths.diff @@ -0,0 +1,41 @@ +--- Makefile.in.orig 2005-04-26 10:28:10.000000000 +0300 ++++ Makefile.in 2005-07-15 00:28:34.549416376 +0300 +@@ -23,22 +23,22 @@ + bindir = @bindir@ + sbindir = @sbindir@ + mandir = @mandir@ +-confdir = @sysconfdir@ +-sharedir = @localstatedir@ +-filesdir = @localstatedir@/files +-usersdir = @localstatedir@/users +-userscdbdir = @localstatedir@/userscdb +-clandir = @localstatedir@/clans +-teamdir = @localstatedir@/teams +-bnmaildir = @localstatedir@/bnmail +-reportsdir = @localstatedir@/reports +-chanlogsdir = @localstatedir@/chanlogs +-charinfodir = @localstatedir@/charinfo +-charsavedir = @localstatedir@/charsave +-ladderdir = @localstatedir@/ladders +-statusdir = @localstatedir@/status +-bak_charsavedir = @localstatedir@/bak/charsave +-bak_charinfodir = @localstatedir@/bak/charinfo ++confdir = @sysconfdir@/pvpgn ++sharedir = @localstatedir@/lib/pvpgn ++filesdir = @localstatedir@/lib/pvpgn/files ++usersdir = @localstatedir@/lib/pvpgn/files/users ++userscdbdir = @localstatedir@/lib/pvpgn/files/userscdb ++clandir = @localstatedir@/lib/pvpgn/files/clans ++teamdir = @localstatedir@/lib/pvpgn/files/teams ++bnmaildir = @localstatedir@/lib/pvpgn/files/bnmail ++reportsdir = @localstatedir@/lib/pvpgn/files/reports ++chanlogsdir = @localstatedir@/lib/pvpgn/files/chanlogs ++charinfodir = @localstatedir@/lib/pvpgn/files/charinfo ++charsavedir = @localstatedir@/lib/pvpgn/files/charsave ++ladderdir = @localstatedir@/lib/pvpgn/files/ladders ++statusdir = @localstatedir@/lib/pvpgn/files/status ++bak_charsavedir = @localstatedir@/lib/pvpgn/files/bak/charsave ++bak_charinfodir = @localstatedir@/lib/pvpgn/files/bak/charinfo + + SRC_SRCDIR = @srcdir@ + SRC_BINDIR = @srcdir@/../bin --- pvpgn-1.8.1.orig/debian/patches/02_postgresql.diff +++ pvpgn-1.8.1/debian/patches/02_postgresql.diff @@ -0,0 +1,11 @@ +--- configure.in.old 2005-04-28 12:56:45.000000000 +0300 ++++ configure.in 2005-07-19 01:37:00.634941744 +0300 +@@ -233,7 +233,7 @@ + dnl Detecting pgsql paths + if test "$with_pgsql" = "yes" ; then + AC_MSG_CHECKING([for pgsql include path]) +- pgsql_try_includes="/usr/include /usr/include/pgsql /usr/local/include /usr/local/include/pgsql /usr/local/pgsql/include" ++ pgsql_try_includes=`pg_config --includedir` + for i in `echo ${pgsql_try_includes}`; do + if test -f "${i}/libpq-fe.h" ; then + CPPFLAGS="${CPPFLAGS} -I${i}" --- pvpgn-1.8.1.orig/debian/patches/03_zlib.diff +++ pvpgn-1.8.1/debian/patches/03_zlib.diff @@ -0,0 +1,79 @@ +diff -Naur old/src/Makefile.in pvpgn-1.8.1/src/Makefile.in +--- old/src/Makefile.in 2007-09-30 14:52:23.926825167 +0300 ++++ pvpgn-1.8.1/src/Makefile.in 2007-09-30 14:53:49.431697962 +0300 +@@ -60,7 +60,7 @@ + SRC_COMPATDIR = ${SRC_SRCDIR}/compat + SRC_DEBUGDIR = ${SRC_SRCDIR}/debug + SRC_CDBDIR = ${SRC_SRCDIR}/tinycdb +-SRC_ZLIBDIR = ${SRC_SRCDIR}/zlib ++#SRC_ZLIBDIR = ${SRC_SRCDIR}/zlib + SRC_WIN32DIR = ${SRC_SRCDIR}/win32 + + RMF = rm -f +@@ -85,7 +85,7 @@ + LINK = @CC@ @CFLAGS@ @LDFLAGS@ + LINK_LIBS = @LIBS@ + +-PARTS = bnetd bniutils bnpass bnpcap bnproxy bntrackd client common compat d2cs d2dbs tinycdb zlib win32 ++PARTS = bnetd bniutils bnpass bnpcap bnproxy bntrackd client common compat d2cs d2dbs tinycdb + + ifeq (@enable_bnetd@,no) + bnetd_SBIN = +@@ -225,12 +225,12 @@ + ${SRC_CDBDIR}/cdb_make_put.o \ + ${SRC_CDBDIR}/cdb_make_find.o \ + ${SRC_CDBDIR}/cdb_make.o \ +-${SRC_CDBDIR}/cdb_hash.o \ +-${SRC_ZLIBDIR}/pvpgn_adler32.o \ +-${SRC_ZLIBDIR}/pvpgn_deflate.o \ +-${SRC_ZLIBDIR}/pvpgn_trees.o \ +-${SRC_ZLIBDIR}/pvpgn_zutil.o \ +-${SRC_WIN32DIR}/service.o ++${SRC_CDBDIR}/cdb_hash.o ++#${SRC_ZLIBDIR}/pvpgn_adler32.o \ ++#${SRC_ZLIBDIR}/pvpgn_deflate.o \ ++#${SRC_ZLIBDIR}/pvpgn_trees.o \ ++#${SRC_ZLIBDIR}/pvpgn_zutil.o \ ++#${SRC_WIN32DIR}/service.o + endif + + ifeq (@enable_d2cs@,no) +diff -Naur old/src/bnetd/anongame_infos.c pvpgn-1.8.1/src/bnetd/anongame_infos.c +--- old/src/bnetd/anongame_infos.c 2007-09-30 14:52:25.926939214 +0300 ++++ pvpgn-1.8.1/src/bnetd/anongame_infos.c 2007-09-30 14:54:56.435516265 +0300 +@@ -39,7 +39,7 @@ + #include "common/tag.h" + #include "common/bn_type.h" + #include "common/xalloc.h" +-#include "zlib/pvpgn_zlib.h" ++#include + #include "tournament.h" + #include "anongame_maplists.h" + #include "anongame_infos.h" +@@ -1972,7 +1972,7 @@ + tmpdata = (unsigned char *) xmalloc(srclen + (srclen / 0x10) + 0x200 + 0x8000); + + memset(&zcpr, 0, sizeof(z_stream)); +- pvpgn_deflateInit(&zcpr, 9); ++ deflateInit(&zcpr, 9); + zcpr.next_in = (void *) src; + zcpr.next_out = tmpdata; + do +@@ -1980,7 +1980,7 @@ + all_read_before = zcpr.total_in; + zcpr.avail_in = (lorigtodo < 0x8000) ? lorigtodo : 0x8000; + zcpr.avail_out = 0x8000; +- ret = pvpgn_deflate(&zcpr, (zcpr.avail_in == lorigtodo) ? Z_FINISH : Z_SYNC_FLUSH); ++ ret = deflate(&zcpr, (zcpr.avail_in == lorigtodo) ? Z_FINISH : Z_SYNC_FLUSH); + lorigdone += (zcpr.total_in - all_read_before); + lorigtodo -= (zcpr.total_in - all_read_before); + } +@@ -1995,7 +1995,7 @@ + memcpy((*dest) + 4, tmpdata, (*destlen)); + (*destlen) += 4; + } +- pvpgn_deflateEnd(&zcpr); ++ deflateEnd(&zcpr); + + xfree((void *) tmpdata); +