--- html2wml-0.4.11.orig/Makefile
+++ html2wml-0.4.11/Makefile
@@ -1,7 +1,11 @@
# =========================================================================== #
# Configuration
-PREFIX=/usr/local
-CGIDIR=/home/httpd/cgi-bin
+DESTDIR=
+PREFIX=${DESTDIR}/usr
+
+#CGIDIR=/home/httpd/cgi-bin
+# changed for Debian
+CGIDIR=$(DESTDIR)/usr/lib/cgi-bin/
# =========================================================================== #
# Do not edit the following unless you know what are you are doing
@@ -11,8 +15,10 @@
# Standard subdirectories locations
BINDIR=$(PREFIX)/bin
-MANDIR=$(PREFIX)/man
-DOCDIR=$(PREFIX)/doc/html2wml
+# added /share for Debian
+MANDIR=$(PREFIX)/share/man
+# added /share for Debian
+DOCDIR=$(PREFIX)/share/doc/html2wml
MAN1DIR=$(MANDIR)/man1
@@ -33,12 +39,15 @@
install: check-config directories
install -m 555 html2wml.cgi $(BINDIR)/html2wml
install -m 444 doc/html2wml.man $(MAN1DIR)/html2wml.1
- install -m 444 COPYING INSTALL NEWS NOTES README TODO ChangeLog $(DOCDIR)
+# modified for Debian
+# install -m 444 COPYING INSTALL NEWS NOTES README TODO ChangeLog $(DOCDIR)
+ install -m 444 NEWS NOTES README TODO $(DOCDIR)
make -C t/ install DOCDIR=$(DOCDIR)
make -C doc/ install DOCDIR=$(DOCDIR)
installcgi: check-config
- install -m 555 html2wml.cgi $(CGIDIR)
+# install -m 555 html2wml.cgi $(CGIDIR)
+ install -m 555 html2wml.cgi $(CGIDIR)/html2wml
uninstall:
rm -f $(BINDIR)/html2wml
@@ -46,10 +55,18 @@
rm -rf $(DOCDIR)
directories:
- install -d $(BINDIR) $(MAN1DIR) $(DOCDIR)
+# install -d $(BINDIR) $(MAN1DIR) $(DOCDIR)
+ install -d $(BINDIR) $(MAN1DIR) $(DOCDIR) $(CGIDIR)
check-config:
- @echo "Checking if your config looks good..."
- @perl checkconfig.pl
- @echo "Sounds ok."
+# DEBIAN - skipping since we don't actually require the depends
+# at build time
+ @echo "Skipping checkconfig.pl for Debian package."
+# @echo "Checking if your config looks good..."
+# @perl checkconfig.pl
+# @echo "Sounds ok."
+# added for Debian
+clean : uninstall
+ @echo
+ @echo "cleaning up"
--- html2wml-0.4.11.orig/debian/changelog
+++ html2wml-0.4.11/debian/changelog
@@ -0,0 +1,70 @@
+html2wml (0.4.11-1.1) unstable; urgency=high
+
+ * Non-maintainer upload
+ * Replace dependency on "perl5" with just "perl". (Closes: #808189)
+
+ -- Axel Beckert Sat, 19 Dec 2015 00:36:01 +0100
+
+html2wml (0.4.11-1) unstable; urgency=low
+
+ * New upstream release
+ * Standards-Version: bumped to 3.7.2. No changes.
+ * Suggests: iceweasel and wapua have been added
+ * Description: iceweasel WAP plugin and wapua as a means to view
+ the results of html2wml are now mentioned
+ * Build-Depends: debhelper has been bumped to 5 and greater
+ * DESTDIR has been added to clean target in rules file, to avoid a
+ build error
+ * moved DH_COMPAT from rules to compat
+ * polished copyright file: author(s) -> author
+ * download address changed in copyright file
+
+ -- Werner Heuser Mon, 9 Jan 2009 13:08:10 +0100
+
+html2wml (0.4.10b5-1.2) unstable; urgency=low
+
+ * NMU at the Munich Bugsquasing Party
+ * dropped Recommends: viewml, since that was removed (Closes: #240561)
+
+ -- Erich Schubert Sun, 18 Apr 2004 13:28:12 +0200
+
+html2wml (0.4.10b5-1.1) unstable; urgency=low
+
+ * NMU (patch available in the BTS)
+ * Dropped dependency on non-free wap-wml-tools package from
+ Recommends: to Suggests:. The only tool used from that package
+ seems to be wmlc which is not strictly necessary and not used by
+ default. (Closes: Bug#216563)
+
+ -- Stefano Zacchiroli Sun, 28 Dec 2003 11:45:08 +0100
+
+html2wml (0.4.10b5-1) unstable; urgency=low
+
+ * new upstream release
+ * added man page, which was silently gone
+ * modified package description to show new features
+ * modified Makefile and rules to include the main script
+ and the CGI finally, thanks to Kalle Valo
+ (closes: Bug#162404).
+
+ -- Werner Heuser Wed, 27 Nov 2002 10:19:30 -0100
+
+html2wml (0.4.9-1) unstable; urgency=low
+
+ * New upstream release
+ * modified target check-config to clean Build-Depends, thanks to
+ Matt Taggart taggart@debian.org (closes: Bug#133743).
+
+ -- Werner Heuser Tue, 25 Jun 2002 10:18:41 -0100
+
+html2wml (0.3.9-2) unstable; urgency=low
+
+ * removed some nasty control chars from dsc and changes file
+
+ -- Werner Heuser Thu, 18 Jan 2001 09:22:02 -0100
+
+html2wml (0.3.9-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Werner Heuser Mon, 8 Jan 2001 14:07:10 -0100
--- html2wml-0.4.11.orig/debian/compat
+++ html2wml-0.4.11/debian/compat
@@ -0,0 +1 @@
+5
--- html2wml-0.4.11.orig/debian/control
+++ html2wml-0.4.11/debian/control
@@ -0,0 +1,21 @@
+Source: html2wml
+Section: web
+Priority: optional
+Maintainer: Werner Heuser
+Build-Depends: debhelper (>= 5)
+Standards-Version: 3.7.2
+
+Package: html2wml
+Architecture: all
+Depends: perl, libhtml-parser-perl, liburi-perl, libwww-perl, libtext-template-perl
+Recommends: libxml-parser-perl, tidy, httpd | httpd-cgi
+Suggests: wap-wml-tools, iceweasel, wapua
+Description: converts HTML pages to WML (WAP) or i-mode pages
+ html2wml converts HTML pages to WML or i-mode(tm) pages, suitable
+ for being viewed on a WAP or i-mode devices, e.g. cell phones.
+ The conversion can be done either on the command line to create
+ static pages or on-the-fly by calling this program as a CGI.
+ .
+ Different WAP browsers are available to view the results of
+ html2wml, e.g. the wmlbrowser add-on for iceweasel (aka firefox)
+ and wapua.
--- html2wml-0.4.11.orig/debian/copyright
+++ html2wml-0.4.11/debian/copyright
@@ -0,0 +1,14 @@
+This package was debianized by Werner Heuser on
+Mon, 8 Jan 2001 14:07:10 -0100.
+
+It was downloaded from http://maddingue.free.fr/softwares/download/Html2Wml/
+
+Upstream Author: Se\*'bastien Aperghis-Tramoni
+
+Copyright:
+
+Html2Wml is Copyright (C)2000 Se\*'bastien Aperghis-Tramoni.
+
+This program is free software. You can redistribute it and/or modify it
+under the terms of either the Perl Artistic License or the GNU General
+Public License, version 2 or later.
--- html2wml-0.4.11.orig/debian/dirs
+++ html2wml-0.4.11/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- html2wml-0.4.11.orig/debian/docs
+++ html2wml-0.4.11/debian/docs
@@ -0,0 +1,6 @@
+NEWS
+README
+TODO
+NOTES
+t
+wml_compilation
--- html2wml-0.4.11.orig/debian/rules
+++ html2wml-0.4.11/debian/rules
@@ -0,0 +1,95 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+#export DH_COMPAT=5
+
+
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+ #/usr/bin/docbook-to-man debian/html2wml.sgml > html2wml.1
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ -$(MAKE) clean DESTDIR=$(CURDIR)/debian/html2wml
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/html2wml.
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/html2wml
+ $(MAKE) installcgi DESTDIR=$(CURDIR)/debian/html2wml
+
+
+# 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_installdebconf
+ dh_installdocs
+ dh_installexamples
+ dh_installmenu
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+ dh_installcron
+ dh_installman
+ dh_installinfo
+# dh_undocumented
+ dh_installchangelogs ChangeLog
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_makeshlibs
+ dh_installdeb
+# dh_perl
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure