summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-06-26 10:52:34 +0100
committerVincent Sanders <vince@kyllikki.org>2015-06-26 10:52:34 +0100
commit381116c8362391a1d1923b690c66471c29a9db01 (patch)
tree2fcfd3cf21d7069f2d8f1015986418e5df98423f
downloaddebian-381116c8362391a1d1923b690c66471c29a9db01.tar.gz
debian-381116c8362391a1d1923b690c66471c29a9db01.tar.bz2
Initial checkin of debian packagin from upstream debian package
-rw-r--r--changelog170
-rw-r--r--compat1
-rw-r--r--control52
-rw-r--r--copyright147
-rw-r--r--netsurf-common.install1
-rw-r--r--netsurf-common.lintian-overrides1
-rw-r--r--netsurf-fb.1362
-rw-r--r--netsurf-fb.install1
-rw-r--r--netsurf-fb.manpages1
-rw-r--r--netsurf-fb.postinst8
-rw-r--r--netsurf-fb.prerm8
-rw-r--r--netsurf-gtk.1362
-rw-r--r--netsurf-gtk.desktop68
-rw-r--r--netsurf-gtk.install1
-rw-r--r--netsurf-gtk.manpages1
-rw-r--r--netsurf-gtk.menu3
-rw-r--r--netsurf-gtk.postinst8
-rw-r--r--netsurf-gtk.prerm8
-rw-r--r--netsurf.postinst46
-rw-r--r--netsurf.prerm41
-rw-r--r--patches/change-install-binary-targets22
-rw-r--r--patches/series2
-rw-r--r--patches/set-netsurf-config.patch4
-rwxr-xr-xrules30
-rw-r--r--source/format1
-rw-r--r--watch4
26 files changed, 1353 insertions, 0 deletions
diff --git a/changelog b/changelog
new file mode 100644
index 0000000..9fbf64b
--- /dev/null
+++ b/changelog
@@ -0,0 +1,170 @@
+netsurf (3.2+dfsg-2.2) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Remove -DGDK_PIXBUF_DISABLE_DEPRECATED to avoid an implicit function
+ declaration issue that was thought to be the cause of an arm64 build failure.
+ * Make declarations match between generated file and importing file for
+ menu_cursor_pixdata to fix arm64 build failure.
+ * Remove nsgenbind/build* in clean target to avoid "unrepresentable changes
+ to source" error.
+
+ -- Peter Michael Green <plugwash@debian.org> Tue, 02 Jun 2015 10:16:59 +0000
+
+netsurf (3.2+dfsg-2.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ [Sebastian Ramacher]
+ * debian/patches/change-how-gdk-image.patch: Fix build against
+ libgdk-pixbuf2.0-dev 2.31.4. (Closes: #786819)
+
+ -- Peter Michael Green <plugwash@debian.org> Tue, 02 Jun 2015 01:00:37 +0000
+
+netsurf (3.2+dfsg-2) unstable; urgency=medium
+
+ * Do not build with javascript support on s390x
+
+ -- Vincent Sanders <vince@debian.org> Fri, 29 Aug 2014 22:57:28 +0100
+
+netsurf (3.2+dfsg-1) unstable; urgency=medium
+
+ * New upstream release (closes: #756223)
+ * New upstream release allows opening local paths (closes: #577136)
+ * New upstream release fixes test selection (closes: #736983)
+ * New upstream release fixes fallback translations (closes: 670284)
+ * Acknowledge NMU, thanks to Mike Gilbert
+
+ -- Vincent Sanders <vince@debian.org> Thu, 28 Aug 2014 21:56:12 +0100
+
+netsurf (2.9-2.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Use lcms2 (closes: #745534).
+ * Add libssl-dev build-dependency (closes: #747788).
+
+ -- Michael Gilbert <mgilbert@debian.org> Sat, 29 Mar 2014 09:02:51 +0000
+
+netsurf (2.9-2) unstable; urgency=low
+
+ * Fix upgrade as netsurf-common lacked Replaces/Breaks (Closes: #674113)
+
+ -- Vincent Sanders <vince@debian.org> Wed, 23 May 2012 10:48:30 +0100
+
+netsurf (2.9-1) unstable; urgency=low
+
+ * New upstream release
+ * Enable hardening build flags (Closes: #672302)
+
+ -- Vincent Sanders <vince@debian.org> Tue, 22 May 2012 09:59:13 +0100
+
+netsurf (2.8-2) unstable; urgency=high
+
+ * Fix user settings directory permissions (Closes: #659376)
+ Fixes: CVE-2012-0844
+
+ -- Vincent Sanders <vince@debian.org> Thu, 16 Feb 2012 10:59:13 +0000
+
+netsurf (2.8-1) unstable; urgency=low
+
+ * New upstream release
+ - Fixes FTBFS on amd64 (Closes: #634427)
+ - Fixes program abort on https links (Closes: #633506)
+ * Improve short description (Closes: #625220)
+ * Provide vcs-svn header (Closes: #638502)
+
+ -- Vincent Sanders <vince@debian.org> Thu, 22 Sep 2011 00:50:59 +0100
+
+netsurf (2.7-2) unstable; urgency=low
+
+ * Fix FTBFS on kFreeBSD
+ * CSS page centering works in 2.7 (Closes: #577180)
+ * String Serarching available (Closes: #435012)
+ * Tab handling improved in 2.7 (Closes: #589424)
+
+ -- Vincent Sanders <vince@debian.org> Fri, 22 Apr 2011 10:50:37 +0100
+
+netsurf (2.7-1) unstable; urgency=low
+
+ * New upstream (Closes: #586662)
+ * NetSurf no longer requires lemon to build (Closes: #574299)
+
+ -- Vincent Sanders <vince@debian.org> Tue, 19 Apr 2011 09:55:01 +0100
+
+netsurf (2.1-2.1) unstable; urgency=low
+
+ * NMU from Moenchengladbach BSP
+ * Fixes FTBFS on kFreeBSD (Closes: #559479)
+
+ -- Axel Beckert <abe@deuxchevaux.org> Sat, 23 Jan 2010 19:14:01 +0100
+
+netsurf (2.1-2) unstable; urgency=low
+
+ * Add ttf-bitstream-vera to Depends: for framebuffer builds.
+ (Closes: #539897)
+
+ -- Daniel Silverstone <dsilvers@debian.org> Sat, 15 Aug 2009 12:37:06 +0100
+
+netsurf (2.1-1) unstable; urgency=low
+
+ * New upstream release (Closes: #533463)
+ - Now produces variants for linux framebuffer, VNC server and SDL,
+ along with the SDL release from before.
+ - Wikipedia CSS images now rendered properly (Closes: #434964)
+ - Open File now bound to Control+O (Closes: #482755)
+ - No longer asserts on huge box objects (Closes: #471719)
+
+ -- Daniel Silverstone <dsilvers@debian.org> Mon, 20 Jul 2009 10:30:48 +0200
+
+netsurf (2.0-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Daniel Silverstone <dsilvers@debian.org> Tue, 21 Apr 2009 22:58:52 +0100
+
+netsurf (1.2-1) unstable; urgency=low
+
+ * New upstream (Closes: #472599)
+ * Fixes segfault (Closes: #442466)
+ * Form input no longer confuses non-alphanumeric keys (Closes: #435319)
+ * Blank lines in preformatted blocks are displayed correctly (Closes: #435013)
+
+ -- Vincent Sanders <vince@debian.org> Sat, 05 Apr 2008 00:48:41 +0000
+
+netsurf (1.1-2.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Add missing assert.h inclusion in css.h to fix FTBFS (Closes: #470248),
+ thanks Kumar Appaiah for the patch.
+
+ -- Nico Golde <nion@debian.org> Wed, 19 Mar 2008 17:24:40 +0100
+
+netsurf (1.1-2) unstable; urgency=low
+
+ * Fix unusable select widget (Closes: #434963)
+ * Add www-browser provides (Closes: #445376)
+ * Fix memory cache size option.
+ * Fix proxy option handling.
+ * Fix out of bounds window scrolling.
+ * Fix handling of CSS colour values.
+
+ -- Vincent Sanders <vince@debian.org> Sun, 07 Oct 2007 10:59:41 +0000
+
+netsurf (1.1-1) unstable; urgency=low
+
+ * New upstream (Closes: #435463, #437624)
+ * Build against correct library packages (Closes: #433523)
+
+ -- Vincent Sanders <vince@debian.org> Tue, 14 Aug 2007 22:21:05 +0000
+
+netsurf (1.0-1) unstable; urgency=low
+
+ * Initial release (Closes: #427399)
+ * Correct logging output verbosity control switch.
+ * Corrected build to allow for source directory to be renamed.
+ * Correct handling of file: URI when browsing directories.
+ * Fix for crash when viewing sites with frames.
+ * Fix for runaway cpu usage on sites with frames.
+ * Fix for cookie handling.
+ * Fix scrollbar handling for anchors.
+
+ -- Vincent Sanders <vince@debian.org> Sun, 3 Jun 2007 18:14:27 +0100
+
diff --git a/compat b/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/compat
@@ -0,0 +1 @@
+9
diff --git a/control b/control
new file mode 100644
index 0000000..90c68fe
--- /dev/null
+++ b/control
@@ -0,0 +1,52 @@
+Source: netsurf
+Section: web
+Priority: extra
+Maintainer: Vincent Sanders <vince@debian.org>
+Build-Depends: debhelper (>= 9~), libcurl3-dev, libpng-dev, libgtk2.0-dev, flex, bison, libhtml-parser-perl, libmozjs185-dev, librsvg2-dev, libjpeg-dev, imagemagick, libfreetype6-dev, libvncserver-dev, libsdl1.2-dev, libxcb1-dev, libxcb-icccm4-dev, libxcb-image0-dev, libxcb-keysyms1-dev, libxcb-util0-dev, libssl-dev, gperf
+Standards-Version: 3.9.5
+Homepage: http://www.netsurf-browser.org
+Vcs-Browser: http://source.netsurf-browser.org/
+Vcs-Git: git://git.netsurf-browser.org/netsurf-all.git
+
+Package: netsurf
+Architecture: all
+Depends: ${misc:Depends}, netsurf-gtk
+Provides: www-browser
+Section: oldlibs
+Description: small web browser with CSS support - transitional package
+ NetSurf is a multi-platform lightweight web browser. Its aim is to provide
+ comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint
+ while remaining fast.
+ .
+ This is a transitional package and can safely be removed.
+
+Package: netsurf-gtk
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, netsurf-common (=${source:Version})
+Provides: www-browser
+Recommends: mime-support
+Description: small web browser with CSS support for GTK
+ NetSurf is a multi-platform lightweight web browser. It aims to provide
+ comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint
+ without compromising performance.
+
+Package: netsurf-fb
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, netsurf-common (=${source:Version})
+Provides: www-browser
+Recommends: mime-support
+Description: small web browser with CSS support for framebuffers
+ NetSurf is a multi-platform lightweight web browser. It aims to provide
+ comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint
+ without compromising performance.
+
+Package: netsurf-common
+Architecture: all
+Depends: ${misc:Depends}
+Replaces: netsurf-gtk (<< 2.9-2)
+Breaks: netsurf-gtk (<< 2.9-2)
+Description: small web browser with CSS support common files
+ NetSurf is a multi-platform lightweight web browser. It aims to provide
+ comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint
+ without compromising performance.
+
diff --git a/copyright b/copyright
new file mode 100644
index 0000000..d003202
--- /dev/null
+++ b/copyright
@@ -0,0 +1,147 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: NetSurf
+Upstream-Contact: NetSurf Developers <netsurf-dev@netsurf-browser.org>
+Source: http://download.netsurf-browser.org/netsurf/releases/source-full/netsurf-all-3.3.tar.gz
+
+Files: netsurf/*
+Copyright: 2003-2015 John-Mark Bell <jmb@netsurf-browser.org>
+ 2003-2011 James Bursa <bursa@users.sourceforge.net>
+ 2003 Philip Pemberton <philpem@users.sourceforge.net>
+ 2003 Phil Mellor <monkeyson@users.sourceforge.net>
+ 2003 Rob Jackson <jacko@xms.ms>
+ 2004-2009 Richard Wilson <info@tinct.net>
+ 2004-2009 John Tytgat <joty@netsurf-browser.org>
+ 2004 Andrew Timmins <atimmins@blueyonder.co.uk>
+ 2004 Kevin Bagust <kevin.bagust@ntlworld.com>
+ 2005-2009 Adrian Lees <adrianl@users.sourceforge.net>
+ 2005,2008-2012 Chris Young <chris@unsatisfactorysoftware.co.uk>
+ 2006-2015 Daniel Silverstone <dsilvers@netsurf-browser.org>
+ 2006-2015 Rob Kendrick <rjek@netsurf-browser.org>
+ 2007-2015 Vincent Sanders <vince@netsurf-browser.org>
+ 2008 Adam Blokus <adamblokus@gmail.com>
+ 2008 Andrew Sidwell <takkaria@netsurf-browser.org>
+ 2008-2012 François Revol <mmu_man@users.sourceforge.net>
+ 2008 James Shaw <js102@zepler.net>
+ 2008-2015 Michael Drake <tlsa@netsurf-browser.org>
+ 2008-2009 Michael Lester <element3260@gmail.com>
+ 2008 Sean Fox <dyntryx@gmail.com>
+ 2009 Mark Benjamin <MarkBenjamin@dfgh.net>
+ 2009 Paul Blokus <paul_pl@users.sourceforge.net>
+ 2009 Rene W. Olsen <ac@rebels.com>
+ 2009 Stephen Fellner <sf.amiga@gmail.com>
+ 2009 Chris Tarnowski
+ 2010-2011 Stephen Fryatt <stevef@netsurf-browser.org>
+ 2010 Ole Loots <ole@monochrom.net>
+ 2011 Sven Weidauer <sven.weidauer@gmail.com>
+ 1997-2009 Sam Lantinga
+ 1998-2004 Daniel Stenberg <daniel@haxx.se>
+ 2004-2006 Christian Hammond.
+ 2004-2005 Andrew Tridgell
+ 2006 Stefan Metzmacher
+ 2005 Tim Tyler
+License: GPL-2 with OpenSSL exception
+
+Files: netsurf/!NetSurf/*
+Copyright: 2008-2015 Michael Drake <tlsa@netsurf-browser.org>
+License: MIT
+
+Files: libparserutils/*
+Copyright: 2007-2012 John-Mark Bell <jmb@netsurf-browser.org>
+License: MIT
+
+Files: libwapcaplet/*
+Copyright: 2009-2015 Daniel Silverstone <dsilvers@netsurf-browser.org>
+License: MIT
+
+Files: libnsbmp/*
+Copyright: 2003,2008 James Bursa <bursa@users.sourceforge.net>
+ 2004 John Tytgat <joty@netsurf-browser.org>
+ 2006 Richard Wilson <richard.wilson@netsurf-browser.org>
+ 2008 James Bursa <james@netsurf-browser.org>
+ 2008 Sean Fox <dyntryx@gmail.com>
+License: MIT
+
+Files: libnsgif/*
+Copyright: 2003,2008 James Bursa <bursa@users.sourceforge.net>
+ 2004 John Tytgat <joty@netsurf-browser.org>
+ 2006 Richard Wilson <richard.wilson@netsurf-browser.org>
+ 2008 James Bursa <james@netsurf-browser.org>
+ 2008 Sean Fox <dyntryx@gmail.com>
+License: MIT
+
+Files: libhubbub/*
+Copyright: 2007-2008 John-Mark Bell <jmb@netsurf-browser.org>
+ 2008 Andrew Sidwell <takkaria@netsurf-browser.org>
+License: MIT
+
+Files: libcss/*
+Copyright: 2007-2015 John-Mark Bell <jmb@netsurf-browser.org>
+ 2010-2015 Vincent Sanders <vince@netsurf-browser.org>
+ 2010-2015 Daniel Silverstone <dsilvers@netsurf-browser.org>
+License: MIT
+
+Files: debian/*
+Copyright: 2009,2011-2015 Vincent Sanders <vince@debian.org>
+ 2009 Daniel Silverstone <dsilvers@debian.org>
+License: GPL-2+
+
+License: GPL-2+
+ 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 package; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA 02110-1301 USA
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
+
+License: GPL-2 with OpenSSL exception
+ NetSurf 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; version 2 of the License.
+ .
+ In addition, as a special exception, permission is granted to link the
+ code of this release of NetSurf with the OpenSSL project's "OpenSSL"
+ library (or with modified versions of it that use the same licence as
+ the "OpenSSL" library), and distribute the linked executables. You must
+ obey the GNU General Public License version 2 in all respects for all of
+ the code used other than "OpenSSL". If you modify the code, you may
+ extend this exception to your version of the code, but you are not
+ obligated to do so. If you do not wish to do so, delete this exception
+ statement from your version.
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License, version 2, can be found in /usr/share/common-licenses/GPL-2.
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+
diff --git a/netsurf-common.install b/netsurf-common.install
new file mode 100644
index 0000000..dd222db
--- /dev/null
+++ b/netsurf-common.install
@@ -0,0 +1 @@
+usr/share
diff --git a/netsurf-common.lintian-overrides b/netsurf-common.lintian-overrides
new file mode 100644
index 0000000..12492d2
--- /dev/null
+++ b/netsurf-common.lintian-overrides
@@ -0,0 +1 @@
+netsurf-common: extra-license-file
diff --git a/netsurf-fb.1 b/netsurf-fb.1
new file mode 100644
index 0000000..0898116
--- /dev/null
+++ b/netsurf-fb.1
@@ -0,0 +1,362 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH NETSURF 1 "April 19, 2012"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+netsurf \- A small fast web browser
+.SH SYNOPSIS
+.B netsurf
+.RI [ options ]
+.RI [ url ]
+.SH DESCRIPTION
+This manual page documents briefly the
+.B netsurf
+browser.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBnetsurf\fP is a small fast web browser. This man page only describes how to run the browser.
+.SH OPTIONS
+This programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+.PP
+The command line parameters override any options loaded from the users Choices file.
+.PP
+A summary of options is included below.
+.TP
+.B \-v
+Enable verbose logging.
+.TP
+.B \-\-http_proxy
+Bboolean indicating if the http proxy is being used.
+.TP
+.B \-\-http_proxy_host
+The http proxy host.
+.TP
+.B \-\-http_proxy_port
+The http proxy port.
+.TP
+.B \-\-http_proxy_auth
+The authentication scheme for the http proxy.
+.TP
+.B \-\-http_proxy_auth_user
+The authentication schemes user.
+.TP
+.B \-\-http_proxy_auth_pass
+The authentication schemes password.
+.TP
+.B \-\-font_size
+The default font size to use.
+.TP
+.B \-\-font_min_size
+The minimum font size to use.
+.TP
+.B \-\-font_sans
+Family name of the sans serrif font.
+.TP
+.B \-\-font_serif
+Family name of the serrif font.
+.TP
+.B \-\-font_mono
+Family name of the monospace font.
+.TP
+.B \-\-font_cursive
+Family name of the cursive font.
+.TP
+.B \-\-font_fantasy
+Family name of the fantasy font.
+.TP
+.B \-\-accept_language
+Languages to accept.
+.TP
+.B \-\-accept_charset
+Character set to accept
+.TP
+.B \-\-memory_cache_size
+Maximum memory cache size.
+.TP
+.B \-\-disc_cache_age
+Maximum disc cache size.
+.TP
+.B \-\-block_advertisements
+Boolean to enable ad blocking.
+.TP
+.B \-\-minimum_gif_delay
+Minimum time between gif frames
+.TP
+.B \-\-send_referer
+Boolean controlling wether referer data should be sent
+.TP
+.B \-\-animate_images
+Boolean controlling wether images should be animated.
+.TP
+.B \-\-expire_url
+expire url
+.TP
+.B \-\-font_default
+Default font.
+.TP
+.B \-\-ca_bundle
+ca bundle
+.TP
+.B \-\-ca_path
+ca path
+.TP
+.B \-\-cookie_file
+cookie file
+.TP
+.B \-\-cookie_jar
+cookie jar
+.TP
+.B \-\-homepage_url
+homepage url
+.TP
+.B \-\-search_url_bar
+search url bar
+.TP
+.B \-\-search_provider
+search provider
+.TP
+.B \-\-url_suggestion
+url suggestion
+.TP
+.B \-\-window_x
+The X co-ordinate of the initial window.
+.TP
+.B \-\-window_y
+The Y co-ordinate of the initial window.
+.TP
+.B \-\-window_width
+The width of the initial window.
+.TP
+.B \-\-window_height
+The height of the initial window.
+.TP
+.B \-\-window_screen_width
+window screen width
+.TP
+.B \-\-window_screen_height
+window screen height
+.TP
+.B \-\-toolbar_status_size
+toolbar status size
+.TP
+.B \-\-scale
+Initial scale factor.
+.TP
+.B \-\-incremental_reflow
+Boolean controlling wether incremental reflow is performed.
+.TP
+.B \-\-min_reflow_period
+Minimum time between incremental reflows
+.TP
+.B \-\-core_select_menu
+core select menu
+.TP
+.B \-\-max_fetchers
+max fetchers
+.TP
+.B \-\-max_fetchers_per_host
+max fetchers per host
+.TP
+.B \-\-max_cached_fetch_handles
+max cached fetch handles
+.TP
+.B \-\-suppress_curl_debug
+suppress curl debug
+.TP
+.B \-\-target_blank
+target blank
+.TP
+.B \-\-button_2_tab
+button 2 tab
+.TP
+.B \-\-margin_top
+margin top
+.TP
+.B \-\-margin_bottom
+margin bottom
+.TP
+.B \-\-margin_left
+margin left
+.TP
+.B \-\-margin_right
+margin right
+.TP
+.B \-\-export_scale
+export scale
+.TP
+.B \-\-suppress_images
+suppress images
+.TP
+.B \-\-remove_backgrounds
+remove backgrounds
+.TP
+.B \-\-enable_loosening
+enable loosening
+.TP
+.B \-\-enable_PDF_compression
+enable PDF compression
+.TP
+.B \-\-enable_PDF_password
+enable_PDF_password
+.TP
+.B \-\-gui_colour_bg_1
+gui colour bg_1
+.TP
+.B \-\-gui_colour_fg_1
+gui colour fg_1
+.TP
+.B \-\-gui_colour_fg_2
+gui colour fg_2
+.TP
+.B \-\-sys_colour_ActiveBorder
+Override CSS sys_colour_ActiveBorder colour.
+.TP
+.B \-\-sys_colour_ActiveCaption
+Override CSS sys_colour_ActiveCaption colour.
+.TP
+.B \-\-sys_colour_AppWorkspace
+Override CSS sys_colour_AppWorkspace colour.
+.TP
+.B \-\-sys_colour_Background
+Override CSS sys_colour_Background colour.
+.TP
+.B \-\-sys_colour_ButtonFace
+Override CSS sys_colour_ButtonFace colour.
+.TP
+.B \-\-sys_colour_ButtonHighlight
+Override CSS sys_colour_ButtonHighlight colour.
+.TP
+.B \-\-sys_colour_ButtonShadow
+Override CSS sys_colour_ButtonShadow colour.
+.TP
+.B \-\-sys_colour_ButtonText
+Override CSS sys_colour_ButtonText colour.
+.TP
+.B \-\-sys_colour_CaptionText
+Override CSS sys_colour_CaptionText colour.
+.TP
+.B \-\-sys_colour_GrayText
+Override CSS sys_colour_GrayText colour.
+.TP
+.B \-\-sys_colour_Highlight
+Override CSS sys_colour_Highlight colour.
+.TP
+.B \-\-sys_colour_HighlightText
+Override CSS sys_colour_HighlightText colour.
+.TP
+.B \-\-sys_colour_InactiveBorder
+Override CSS sys_colour_InactiveBorder colour.
+.TP
+.B \-\-sys_colour_InactiveCaption
+Override CSS sys_colour_InactiveCaption colour.
+.TP
+.B \-\-sys_colour_InactiveCaptionText
+Override CSS sys_colour_InactiveCaptionText colour.
+.TP
+.B \-\-sys_colour_InfoBackground
+Override CSS sys_colour_InfoBackground colour.
+.TP
+.B \-\-sys_colour_InfoText
+Override CSS sys_colour_InfoText colour.
+.TP
+.B \-\-sys_colour_Menu
+Override CSS sys_colour_Menu colour.
+.TP
+.B \-\-sys_colour_MenuText
+Override CSS sys_colour_MenuText colour.
+.TP
+.B \-\-sys_colour_Scrollbar
+Override CSS sys_colour_Scrollbar colour.
+.TP
+.B \-\-sys_colour_ThreeDDarkShadow
+Override CSS sys_colour_ThreeDDarkShadow colour.
+.TP
+.B \-\-sys_colour_ThreeDFace
+Override CSS sys_colour_ThreeDFace colour.
+.TP
+.B \-\-sys_colour_ThreeDHighlight
+Override CSS sys_colour_ThreeDHighlight colour.
+.TP
+.B \-\-sys_colour_ThreeDLightShadow
+Override CSS sys_colour_ThreeDLightShadow colour.
+.TP
+.B \-\-sys_colour_ThreeDShadow
+Override CSS sys_colour_ThreeDShadow colour.
+.TP
+.B \-\-sys_colour_Window
+Override CSS sys_colour_Window colour.
+.TP
+.B \-\-sys_colour_WindowFrame
+Override CSS sys_colour_WindowFrame colour.
+.TP
+.B \-\-sys_colour_WindowText
+Override CSS sys_colour_WindowText colour.
+.TP
+.B \-\-render_resample
+render resample
+.TP
+.B \-\-downloads_clear
+downloads clear
+.TP
+.B \-\-request_overwrite
+request overwrite
+.TP
+.B \-\-downloads_directory
+downloads directory
+.TP
+.B \-\-url_file
+url file
+.TP
+.B \-\-show_single_tab
+Force tabs to always be show.
+.TP
+.B \-\-button_type
+button type
+.TP
+.B \-\-disable_popups
+disable popups
+.TP
+.B \-\-disable_plugins
+disable plugins
+.TP
+.B \-\-history_age
+history age
+.TP
+.B \-\-hover_urls
+hover urls
+.TP
+.B \-\-focus_new
+focus new
+.TP
+.B \-\-new_blank
+new blank
+.TP
+.B \-\-hotlist_path
+hotlist path
+.TP
+.B \-\-source_tab
+source tab
+.TP
+.B \-\-current_theme
+current theme
+.SH AUTHOR
+netsurf was written by <upstream author>.
+.PP
+This manual page was written by Vincent Sanders <vince@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/netsurf-fb.install b/netsurf-fb.install
new file mode 100644
index 0000000..3829b7a
--- /dev/null
+++ b/netsurf-fb.install
@@ -0,0 +1 @@
+usr/bin/netsurf-fb
diff --git a/netsurf-fb.manpages b/netsurf-fb.manpages
new file mode 100644
index 0000000..f1613ad
--- /dev/null
+++ b/netsurf-fb.manpages
@@ -0,0 +1 @@
+debian/netsurf-fb.1
diff --git a/netsurf-fb.postinst b/netsurf-fb.postinst
new file mode 100644
index 0000000..e317616
--- /dev/null
+++ b/netsurf-fb.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "configure" ]; then
+ update-alternatives --install /usr/bin/netsurf netsurf-browser /usr/bin/netsurf-fb 80 --slave /usr/share/man/man1/netsurf.1.gz netsurf-manual /usr/share/man/man1/netsurf-fb.1.gz
+fi
+
+#DEBHELPER#
diff --git a/netsurf-fb.prerm b/netsurf-fb.prerm
new file mode 100644
index 0000000..8c38472
--- /dev/null
+++ b/netsurf-fb.prerm
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+if [ "$1" != "upgrade" ]; then
+ update-alternatives --remove netsurf-browser /usr/bin/netsurf-fb
+fi
+
+#DEBHELPER#
diff --git a/netsurf-gtk.1 b/netsurf-gtk.1
new file mode 100644
index 0000000..13a0fa5
--- /dev/null
+++ b/netsurf-gtk.1
@@ -0,0 +1,362 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH NETSURF 1 "April 19, 2011"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+netsurf \- A small fast web browser
+.SH SYNOPSIS
+.B netsurf
+.RI [ options ]
+.RI [ url ]
+.SH DESCRIPTION
+This manual page documents briefly the
+.B netsurf
+browser.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBnetsurf\fP is a small fast web browser. This man page only describes how to run the browser.
+.SH OPTIONS
+This programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+.PP
+The command line parameters override any options loaded from the users Choices file.
+.PP
+A summary of options is included below.
+.TP
+.B \-v
+Enable verbose logging.
+.TP
+.B \-\-http_proxy
+Bboolean indicating if the http proxy is being used.
+.TP
+.B \-\-http_proxy_host
+The http proxy host.
+.TP
+.B \-\-http_proxy_port
+The http proxy port.
+.TP
+.B \-\-http_proxy_auth
+The authentication scheme for the http proxy.
+.TP
+.B \-\-http_proxy_auth_user
+The authentication schemes user.
+.TP
+.B \-\-http_proxy_auth_pass
+The authentication schemes password.
+.TP
+.B \-\-font_size
+The default font size to use.
+.TP
+.B \-\-font_min_size
+The minimum font size to use.
+.TP
+.B \-\-font_sans
+Family name of the sans serrif font.
+.TP
+.B \-\-font_serif
+Family name of the serrif font.
+.TP
+.B \-\-font_mono
+Family name of the monospace font.
+.TP
+.B \-\-font_cursive
+Family name of the cursive font.
+.TP
+.B \-\-font_fantasy
+Family name of the fantasy font.
+.TP
+.B \-\-accept_language
+Languages to accept.
+.TP
+.B \-\-accept_charset
+Character set to accept
+.TP
+.B \-\-memory_cache_size
+Maximum memory cache size.
+.TP
+.B \-\-disc_cache_age
+Maximum disc cache size.
+.TP
+.B \-\-block_advertisements
+Boolean to enable ad blocking.
+.TP
+.B \-\-minimum_gif_delay
+Minimum time between gif frames
+.TP
+.B \-\-send_referer
+Boolean controlling wether referer data should be sent
+.TP
+.B \-\-animate_images
+Boolean controlling wether images should be animated.
+.TP
+.B \-\-expire_url
+expire url
+.TP
+.B \-\-font_default
+Default font.
+.TP
+.B \-\-ca_bundle
+ca bundle
+.TP
+.B \-\-ca_path
+ca path
+.TP
+.B \-\-cookie_file
+cookie file
+.TP
+.B \-\-cookie_jar
+cookie jar
+.TP
+.B \-\-homepage_url
+homepage url
+.TP
+.B \-\-search_url_bar
+search url bar
+.TP
+.B \-\-search_provider
+search provider
+.TP
+.B \-\-url_suggestion
+url suggestion
+.TP
+.B \-\-window_x
+The X co-ordinate of the initial window.
+.TP
+.B \-\-window_y
+The Y co-ordinate of the initial window.
+.TP
+.B \-\-window_width
+The width of the initial window.
+.TP
+.B \-\-window_height
+The height of the initial window.
+.TP
+.B \-\-window_screen_width
+window screen width
+.TP
+.B \-\-window_screen_height
+window screen height
+.TP
+.B \-\-toolbar_status_size
+toolbar status size
+.TP
+.B \-\-scale
+Initial scale factor.
+.TP
+.B \-\-incremental_reflow
+Boolean controlling wether incremental reflow is performed.
+.TP
+.B \-\-min_reflow_period
+Minimum time between incremental reflows
+.TP
+.B \-\-core_select_menu
+core select menu
+.TP
+.B \-\-max_fetchers
+max fetchers
+.TP
+.B \-\-max_fetchers_per_host
+max fetchers per host
+.TP
+.B \-\-max_cached_fetch_handles
+max cached fetch handles
+.TP
+.B \-\-suppress_curl_debug
+suppress curl debug
+.TP
+.B \-\-target_blank
+target blank
+.TP
+.B \-\-button_2_tab
+button 2 tab
+.TP
+.B \-\-margin_top
+margin top
+.TP
+.B \-\-margin_bottom
+margin bottom
+.TP
+.B \-\-margin_left
+margin left
+.TP
+.B \-\-margin_right
+margin right
+.TP
+.B \-\-export_scale
+export scale
+.TP
+.B \-\-suppress_images
+suppress images
+.TP
+.B \-\-remove_backgrounds
+remove backgrounds
+.TP
+.B \-\-enable_loosening
+enable loosening
+.TP
+.B \-\-enable_PDF_compression
+enable PDF compression
+.TP
+.B \-\-enable_PDF_password
+enable_PDF_password
+.TP
+.B \-\-gui_colour_bg_1
+gui colour bg_1
+.TP
+.B \-\-gui_colour_fg_1
+gui colour fg_1
+.TP
+.B \-\-gui_colour_fg_2
+gui colour fg_2
+.TP
+.B \-\-sys_colour_ActiveBorder
+Override CSS sys_colour_ActiveBorder colour.
+.TP
+.B \-\-sys_colour_ActiveCaption
+Override CSS sys_colour_ActiveCaption colour.
+.TP
+.B \-\-sys_colour_AppWorkspace
+Override CSS sys_colour_AppWorkspace colour.
+.TP
+.B \-\-sys_colour_Background
+Override CSS sys_colour_Background colour.
+.TP
+.B \-\-sys_colour_ButtonFace
+Override CSS sys_colour_ButtonFace colour.
+.TP
+.B \-\-sys_colour_ButtonHighlight
+Override CSS sys_colour_ButtonHighlight colour.
+.TP
+.B \-\-sys_colour_ButtonShadow
+Override CSS sys_colour_ButtonShadow colour.
+.TP
+.B \-\-sys_colour_ButtonText
+Override CSS sys_colour_ButtonText colour.
+.TP
+.B \-\-sys_colour_CaptionText
+Override CSS sys_colour_CaptionText colour.
+.TP
+.B \-\-sys_colour_GrayText
+Override CSS sys_colour_GrayText colour.
+.TP
+.B \-\-sys_colour_Highlight
+Override CSS sys_colour_Highlight colour.
+.TP
+.B \-\-sys_colour_HighlightText
+Override CSS sys_colour_HighlightText colour.
+.TP
+.B \-\-sys_colour_InactiveBorder
+Override CSS sys_colour_InactiveBorder colour.
+.TP
+.B \-\-sys_colour_InactiveCaption
+Override CSS sys_colour_InactiveCaption colour.
+.TP
+.B \-\-sys_colour_InactiveCaptionText
+Override CSS sys_colour_InactiveCaptionText colour.
+.TP
+.B \-\-sys_colour_InfoBackground
+Override CSS sys_colour_InfoBackground colour.
+.TP
+.B \-\-sys_colour_InfoText
+Override CSS sys_colour_InfoText colour.
+.TP
+.B \-\-sys_colour_Menu
+Override CSS sys_colour_Menu colour.
+.TP
+.B \-\-sys_colour_MenuText
+Override CSS sys_colour_MenuText colour.
+.TP
+.B \-\-sys_colour_Scrollbar
+Override CSS sys_colour_Scrollbar colour.
+.TP
+.B \-\-sys_colour_ThreeDDarkShadow
+Override CSS sys_colour_ThreeDDarkShadow colour.
+.TP
+.B \-\-sys_colour_ThreeDFace
+Override CSS sys_colour_ThreeDFace colour.
+.TP
+.B \-\-sys_colour_ThreeDHighlight
+Override CSS sys_colour_ThreeDHighlight colour.
+.TP
+.B \-\-sys_colour_ThreeDLightShadow
+Override CSS sys_colour_ThreeDLightShadow colour.
+.TP
+.B \-\-sys_colour_ThreeDShadow
+Override CSS sys_colour_ThreeDShadow colour.
+.TP
+.B \-\-sys_colour_Window
+Override CSS sys_colour_Window colour.
+.TP
+.B \-\-sys_colour_WindowFrame
+Override CSS sys_colour_WindowFrame colour.
+.TP
+.B \-\-sys_colour_WindowText
+Override CSS sys_colour_WindowText colour.
+.TP
+.B \-\-render_resample
+render resample
+.TP
+.B \-\-downloads_clear
+downloads clear
+.TP
+.B \-\-request_overwrite
+request overwrite
+.TP
+.B \-\-downloads_directory
+downloads directory
+.TP
+.B \-\-url_file
+url file
+.TP
+.B \-\-show_single_tab
+Force tabs to always be show.
+.TP
+.B \-\-button_type
+button type
+.TP
+.B \-\-disable_popups
+disable popups
+.TP
+.B \-\-disable_plugins
+disable plugins
+.TP
+.B \-\-history_age
+history age
+.TP
+.B \-\-hover_urls
+hover urls
+.TP
+.B \-\-focus_new
+focus new
+.TP
+.B \-\-new_blank
+new blank
+.TP
+.B \-\-hotlist_path
+hotlist path
+.TP
+.B \-\-source_tab
+source tab
+.TP
+.B \-\-current_theme
+current theme
+.SH AUTHOR
+netsurf was written by <upstream author>.
+.PP
+This manual page was written by Vincent Sanders <vince@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/netsurf-gtk.desktop b/netsurf-gtk.desktop
new file mode 100644
index 0000000..4c21d55
--- /dev/null
+++ b/netsurf-gtk.desktop
@@ -0,0 +1,68 @@
+[Desktop Entry]
+Name=NetSurf Web Browser
+Name[ca]=Navegador web NetSurf
+Name[cs]=NetSurf Webový prohlížeč
+Name[es]=Navegador web NetSurf
+Name[fa]=مرورگر اینترنتی NetSurf
+Name[fi]=NetSurf-selain
+Name[fr]=Navigateur Web NetSurf
+Name[hu]=NetSurf webböngésző
+Name[it]=NetSurf Browser Web
+Name[ja]=NetSurf ウェブ・ブラウザ
+Name[ko]=NetSurf 웹 브라우저
+Name[nb]=NetSurf Nettleser
+Name[nl]=NetSurf webbrowser
+Name[nn]=NetSurf Nettlesar
+Name[no]=NetSurf Nettleser
+Name[pl]=Przeglądarka WWW NetSurf
+Name[pt]=NetSurf Navegador Web
+Name[pt_BR]=Navegador Web NetSurf
+Name[sk]=Internetový prehliadač NetSurf
+Comment=Browse the World Wide Web
+Comment[ca]=Navegueu per el web
+Comment[cs]=Prohlížení stránek World Wide Webu
+Comment[de]=Im Internet surfen
+Comment[es]=Navegue por la web
+Comment[fa]=صفحات شبکه جهانی اینترنت را مرور نمایید
+Comment[fi]=Selaa Internetin WWW-sivuja
+Comment[fr]=Navigue sur Internet
+Comment[hu]=A világháló böngészése
+Comment[it]=Esplora il web
+Comment[ja]=ウェブを閲覧します
+Comment[ko]=웹을 돌아 다닙니다
+Comment[nb]=Surf på nettet
+Comment[nl]=Verken het internet
+Comment[nn]=Surf på nettet
+Comment[no]=Surf på nettet
+Comment[pl]=Przeglądanie stron WWW
+Comment[pt]=Navegue na Internet
+Comment[pt_BR]=Navegue na Internet
+Comment[sk]=Prehliadanie internetu
+GenericName=Web Browser
+GenericName[ca]=Navegador web
+GenericName[cs]=Webový prohlížeč
+GenericName[es]=Navegador web
+GenericName[fa]=مرورگر اینترنتی
+GenericName[fi]=WWW-selain
+GenericName[fr]=Navigateur Web
+GenericName[hu]=Webböngésző
+GenericName[it]=Browser Web
+GenericName[ja]=ウェブ・ブラウザ
+GenericName[ko]=웹 브라우저
+GenericName[nb]=Nettleser
+GenericName[nl]=Webbrowser
+GenericName[nn]=Nettlesar
+GenericName[no]=Nettleser
+GenericName[pl]=Przeglądarka WWW
+GenericName[pt]=Navegador Web
+GenericName[pt_BR]=Navegador Web
+GenericName[sk]=Internetový prehliadač
+Exec=netsurf-gtk %u
+Terminal=false
+X-MultipleArgs=false
+Type=Application
+Icon=netsurf.png
+Categories=Network;
+MimeType=text/html;text/xml;application/xhtml+xml;application/xml;image/gif;image/jpeg;image/png
+StartupWMClass=NetSurf-bin
+StartupNotify=true
diff --git a/netsurf-gtk.install b/netsurf-gtk.install
new file mode 100644
index 0000000..39984a6
--- /dev/null
+++ b/netsurf-gtk.install
@@ -0,0 +1 @@
+usr/bin/netsurf-gtk
diff --git a/netsurf-gtk.manpages b/netsurf-gtk.manpages
new file mode 100644
index 0000000..a49aae5
--- /dev/null
+++ b/netsurf-gtk.manpages
@@ -0,0 +1 @@
+debian/netsurf-gtk.1
diff --git a/netsurf-gtk.menu b/netsurf-gtk.menu
new file mode 100644
index 0000000..35b70d5
--- /dev/null
+++ b/netsurf-gtk.menu
@@ -0,0 +1,3 @@
+?package(netsurf-gtk):needs="X11" section="Applications/Network/Web Browsing"\
+ title="Netsurf Web Browser" command="/usr/bin/netsurf-gtk" hints="Web Browsers" \
+ icon="/usr/share/pixmaps/netsurf.xpm"
diff --git a/netsurf-gtk.postinst b/netsurf-gtk.postinst
new file mode 100644
index 0000000..8686b98
--- /dev/null
+++ b/netsurf-gtk.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "configure" ]; then
+ update-alternatives --install /usr/bin/netsurf netsurf-browser /usr/bin/netsurf-gtk 80 --slave /usr/share/man/man1/netsurf.1.gz netsurf-manual /usr/share/man/man1/netsurf-gtk.1.gz
+fi
+
+#DEBHELPER#
diff --git a/netsurf-gtk.prerm b/netsurf-gtk.prerm
new file mode 100644
index 0000000..6294db0
--- /dev/null
+++ b/netsurf-gtk.prerm
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+if [ "$1" != "upgrade" ]; then
+ update-alternatives --remove netsurf-browser /usr/bin/netsurf-gtk
+fi
+
+#DEBHELPER#
diff --git a/netsurf.postinst b/netsurf.postinst
new file mode 100644
index 0000000..f6872cc
--- /dev/null
+++ b/netsurf.postinst
@@ -0,0 +1,46 @@
+#!/bin/sh
+# postinst script for netsurf
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+
+ configure)
+ update-alternatives --quiet \
+ --install /usr/bin/x-www-browser x-www-browser /usr/bin/netsurf 100 \
+ --slave /usr/share/man/man1/x-www-browser.1.gz x-www-browser.1.gz \
+ /usr/share/man/man1/netsurf.1.gz
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/netsurf.prerm b/netsurf.prerm
new file mode 100644
index 0000000..d57cfb6
--- /dev/null
+++ b/netsurf.prerm
@@ -0,0 +1,41 @@
+#!/bin/sh
+# prerm script for netsurf
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ update-alternatives --quiet --remove x-www-browser /usr/bin/netsurf
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/patches/change-install-binary-targets b/patches/change-install-binary-targets
new file mode 100644
index 0000000..9e1a7fd
--- /dev/null
+++ b/patches/change-install-binary-targets
@@ -0,0 +1,22 @@
+--- a/netsurf/framebuffer/Makefile.target
++++ b/netsurf/framebuffer/Makefile.target
+@@ -191,7 +191,7 @@
+ install-framebuffer:
+ $(Q)mkdir -p $(DESTDIR)$(NETSURF_FRAMEBUFFER_BIN)
+ $(Q)mkdir -p $(DESTDIR)$(NETSURF_FRAMEBUFFER_RESOURCES)
+- $(Q)cp -v $(EXETARGET) $(DESTDIR)/$(NETSURF_FRAMEBUFFER_BIN)netsurf$(SUBTARGET)
++ $(Q)cp -v $(EXETARGET) $(DESTDIR)/$(NETSURF_FRAMEBUFFER_BIN)netsurf-fb
+ $(Q)for F in $(NETSURF_FRAMEBUFFER_RESOURCE_LIST); do cp -vL framebuffer/res/$$F $(DESTDIR)/$(NETSURF_FRAMEBUFFER_RESOURCES); done
+ $(Q)$(SPLIT_MESSAGES) -l en -p fb -f messages resources/FatMessages | gzip -9n > $(DESTDIR)$(NETSURF_FRAMEBUFFER_RESOURCES)messages
+
+--- a/netsurf/gtk/Makefile.target
++++ b/netsurf/gtk/Makefile.target
+@@ -142,7 +142,7 @@
+
+ install-gtk:
+ $(Q)mkdir -p $(DESTDIR)$(NETSURF_GTK_BIN)
+- $(Q)install nsgtk $(DESTDIR)$(NETSURF_GTK_BIN)netsurf
++ $(Q)install nsgtk $(DESTDIR)$(NETSURF_GTK_BIN)netsurf-gtk
+ $(Q)mkdir -p $(DESTDIR)$(NETSURF_GTK_RESOURCES)icons
+ $(Q)install -m 0644 gtk/res/icons/*.png $(DESTDIR)$(NETSURF_GTK_RESOURCES)/icons
+ $(Q)mkdir -p $(DESTDIR)$(NETSURF_GTK_RESOURCES)throbber
diff --git a/patches/series b/patches/series
new file mode 100644
index 0000000..3ba4a07
--- /dev/null
+++ b/patches/series
@@ -0,0 +1,2 @@
+set-netsurf-config.patch
+change-install-binary-targets
diff --git a/patches/set-netsurf-config.patch b/patches/set-netsurf-config.patch
new file mode 100644
index 0000000..3c34b50
--- /dev/null
+++ b/patches/set-netsurf-config.patch
@@ -0,0 +1,4 @@
+--- /dev/null
++++ b/netsurf/Makefile.config
+@@ -0,0 +1,1 @@
++NETSURF_FB_FONTLIB := freetype
diff --git a/rules b/rules
new file mode 100755
index 0000000..a34f111
--- /dev/null
+++ b/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
+export DEB_CFLAGS_MAINT_APPEND = -Wno-error
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+%:
+ dh $@
+
+override_dh_auto_build:
+ dh_auto_build -- PREFIX=/usr TARGET=gtk
+ dh_auto_build -- PREFIX=/usr TARGET=framebuffer
+
+override_dh_auto_install:
+ dh_auto_install -- PREFIX=/usr TARGET=gtk
+ mkdir -p debian/netsurf-gtk/usr/share/pixmaps
+ mkdir -p debian/netsurf-gtk/usr/share/applications
+ convert netsurf/gtk/res/netsurf.xpm -resize \!32x\!32 debian/netsurf-gtk/usr/share/pixmaps/netsurf.xpm
+ convert netsurf/gtk/res/netsurf.xpm debian/netsurf-gtk/usr/share/pixmaps/netsurf.png
+ install -m 644 debian/netsurf-gtk.desktop debian/netsurf-gtk/usr/share/applications
+ dh_auto_install -- PREFIX=/usr TARGET=framebuffer
+
+override_dh_auto_clean:
+ dh_auto_clean -- PREFIX=/usr TARGET=gtk
+ dh_auto_clean -- PREFIX=/usr TARGET=framebuffer
+
diff --git a/source/format b/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/watch b/watch
new file mode 100644
index 0000000..1be1f9d
--- /dev/null
+++ b/watch
@@ -0,0 +1,4 @@
+version=3
+opts=uversionmangle=s/-src$//,dversionmangle=s/\+dfsg\d*$// \
+http://download.netsurf-browser.org/netsurf/releases/source-full/ \
+(?:|.*/)netsurf-all(?:[_\-]v?|)(\d[^\s/]*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz) \ No newline at end of file