--- phpwebcounter-1.0.orig/debian/control
+++ phpwebcounter-1.0/debian/control
@@ -0,0 +1,22 @@
+Source: phpwebcounter
+Section: web
+Priority: optional
+Maintainer: Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
+Build-Depends: debhelper (>= 5), dpatch
+Standards-Version: 3.8.0
+Vcs-Svn: svn://svn.debian.org/svn/debian-br-team/packages/phpwebcounter
+Vcs-Browser: http://svn.debian.org/wsvn/debian-br-team/packages/phpwebcounter
+Homepage: http://phpwebcounter.sourceforge.net
+
+Package: phpwebcounter
+Architecture: all
+Depends: php5
+Recommends: phpwebcounter-extra
+Description: simple and light web hit counter
+ PHP script to show the number of hits in web pages using ASCII text or PNG
+ images. You can use your custom PNG images. PHP Web Counter is a very
+ easy-to-configure application.
+ .
+ It isn't a CGI program and don't require special things to work.
+ .
+ Demo site: http://phpwebcounter.sf.net
--- phpwebcounter-1.0.orig/debian/dirs
+++ phpwebcounter-1.0/debian/dirs
@@ -0,0 +1 @@
+var/lib/phpwebcounter
--- phpwebcounter-1.0.orig/debian/compat
+++ phpwebcounter-1.0/debian/compat
@@ -0,0 +1 @@
+5
--- phpwebcounter-1.0.orig/debian/watch
+++ phpwebcounter-1.0/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/phpwebcounter/phpwebcounter-([0-9.]*)\.tar\.gz
--- phpwebcounter-1.0.orig/debian/README.Debian
+++ phpwebcounter-1.0/debian/README.Debian
@@ -0,0 +1,30 @@
+phpwebcounter for Debian
+------------------------
+
+1. Apache 2
+-----------
+
+In Debian, the web applications are put in /usr/share directory. Please, see the
+/usr/share/doc/phpwebcounter/examples/phpwebcounter.apache2 to understand how
+to configure PHP Web Counter in Apache Web Server. After install, you must
+restart the Apache. To test, you can use it:
+
+    http://<your ip>/phpwebcounter/phpwebcounter.php
+
+Or use the html code included in the examples directory.
+
+Other alternative is point to file in /usr/share/phpwebcounter.  The PHP5
+configuration file prevents, by default, remote requests using "require" or
+"include" methods. Then you can use it:
+
+    <?php require("/usr/share/phpwebcounter/phpwebcounter.php"); ?>
+
+
+
+2. Extra numbers
+----------------
+
+To have new graphical numbers, install the phpwebcounter-extra package.
+
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Sun, 11 Nov 2007 15:03:30 -0200
--- phpwebcounter-1.0.orig/debian/changelog
+++ phpwebcounter-1.0/debian/changelog
@@ -0,0 +1,11 @@
+phpwebcounter (1.0-1) unstable; urgency=low
+
+  * New upstream release (Closes: #449212)
+  
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Sun, 11 Nov 2007 14:47:22 -0200
+ 
+phpwebcounter (0.2-1) UNRELEASED; urgency=low
+
+  * Initial release
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Sun, 04 Nov 2007 10:18:30 -0200
--- phpwebcounter-1.0.orig/debian/copyright
+++ phpwebcounter-1.0/debian/copyright
@@ -0,0 +1,33 @@
+This package was debianized by Joao Eriberto Mota Filho
+<eriberto@eriberto.pro.br> on Sun, 04 Nov 2007 10:18:30 -0200.
+
+It was downloaded from http://phpwebcounter.sourceforge.net
+
+Upstream Authors:  Andre Bertelli Araujo <bertelli.andre@gmail.com>
+		   Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
+		   Marcos Patricio dos Santos <marpasan@ig.com.br>.
+
+Copyright: (C) 2006-2007 Andre Bertelli Araujo, Joao Eriberto Mota Filho,
+                         Marcos Patricio dos Santos.
+
+License:
+
+    This package 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 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 package; 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'.
+
+The Debian packaging is (C) 2007-2008, Joao Eriberto Mota Filho
+<eriberto@eriberto.pro.br> and is licensed under the GPL 2 or later.
--- phpwebcounter-1.0.orig/debian/docs
+++ phpwebcounter-1.0/debian/docs
@@ -0,0 +1,2 @@
+README
+TODO
--- phpwebcounter-1.0.orig/debian/phpwebcounter.apache2
+++ phpwebcounter-1.0/debian/phpwebcounter.apache2
@@ -0,0 +1,10 @@
+# This is an example how to associate PHP Web Counter shared folder to Apache2.
+# You can put this file in /etc/apache2/conf.d. The file name can be
+# phpwebcounter or anything else.
+
+Alias /phpwebcounter /usr/share/phpwebcounter
+
+<Directory /usr/share/phpwebcounter/>
+    Order allow,deny
+    Allow from all
+</Directory>
--- phpwebcounter-1.0.orig/debian/rules
+++ phpwebcounter-1.0/debian/rules
@@ -0,0 +1,34 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	dh_clean 
+
+install: patch-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	$(MAKE) DESTDIR=$(CURDIR)/debian/phpwebcounter install
+
+binary-indep: install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples test/phpwebcounter_test.php debian/phpwebcounter.apache2
+	dh_compress
+	dh_fixperms -Xvar/lib/phpwebcounter
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep
+.PHONY: build clean binary-indep binary-arch binary install
--- phpwebcounter-1.0.orig/debian/patches/01_Makefile.dpatch
+++ phpwebcounter-1.0/debian/patches/01_Makefile.dpatch
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_Makefile.dpatch by Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Makes Makefile compliant with Debian.
+
+@DPATCH@
+diff -urNad phpwebcounter-0.2~/Makefile phpwebcounter-0.2/Makefile
+--- phpwebcounter-0.2~/Makefile	2007-11-03 23:11:39.000000000 -0200
++++ phpwebcounter-0.2/Makefile	2007-11-04 11:05:23.000000000 -0200
+@@ -4,11 +4,11 @@
+ #
+ # Possible targets: install and uninstall
+ 
+-WEB_STUFF_PATH	= /var/www
++WEB_STUFF_PATH	= $(DESTDIR)/usr/share
+ PROGRAM_PATH	= $(WEB_STUFF_PATH)/phpwebcounter
+ IMAGES_PATH	= $(PROGRAM_PATH)/images
+-CONFIG_PATH	= /etc/phpwebcounter
+-HITS_PATH	= /var/lib/phpwebcounter
++CONFIG_PATH	= $(DESTDIR)/etc/phpwebcounter
++HITS_PATH	= $(DESTDIR)/var/lib/phpwebcounter
+ HTTP_USER	= www-data
+ HTTP_GROUP	= www-data
+ 
--- phpwebcounter-1.0.orig/debian/patches/00list
+++ phpwebcounter-1.0/debian/patches/00list
@@ -0,0 +1 @@
+01_Makefile.dpatch
