debian/0000755000000000000000000000000012216734241007170 5ustar debian/rules0000755000000000000000000000571512216734160010260 0ustar #!/usr/bin/make -f INSTALL = install INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755 INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755 package=luakit DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) DEB_BUILD_ARCH_OS ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS) DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) STRIP=strip ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) CONFARGS = --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) STRIP=$(DEB_HOST_GNU_TYPE)-strip endif CFLAGS := $(shell dpkg-buildflags --get CFLAGS) CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) build: build-indep build-arch build-indep: build-arch: $(checkdir) $(MAKE) PREFIX=/usr DEVELOPMENT_PATHS=0 touch build-arch clean: $(checkdir) -rm -f build build-arch $(MAKE) clean -rm -f `find . -name "*~"` \ debian/files* core debian/*ubstvars -rm -rf debian/luakit install: build $(checkdir) $(INSTALL_DIR) debian/$(package)/usr/bin $(MAKE) install PREFIX=/usr DESTDIR=debian/$(package) rm -rf debian/$(package)/usr/share/luakit/docs ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) strip --remove-section=.comment --remove-section=.note \ debian/$(package)/usr/bin/luakit endif binary-indep: checkroot $(checkdir) binary-arch: checkroot build install $(checkdir) cd debian/$(package) && $(INSTALL_DIR) usr/share/doc/$(package) \ usr/share/menu \ DEBIAN $(INSTALL_FILE) debian/copyright debian/$(package)/usr/share/doc/$(package)/copyright $(INSTALL_FILE) debian/changelog debian/$(package)/usr/share/doc/$(package)/changelog.Debian $(INSTALL_FILE) debian/menu debian/$(package)/usr/share/menu/$(package) $(INSTALL_FILE) debian/conffiles debian/$(package)/DEBIAN/conffiles $(INSTALL_SCRIPT) debian/postinst debian/$(package)/DEBIAN/postinst $(INSTALL_SCRIPT) debian/prerm debian/$(package)/DEBIAN/prerm gzip -9f `find debian/$(package)/usr/share/doc -type f ! -name "copyright"` gzip -9f debian/$(package)/usr/share/man/man1/luakit.1 dpkg-shlibdeps -Tdebian/substvars debian/$(package)/usr/bin/luakit dpkg-gencontrol -ldebian/changelog -isp -p$(package) -Tdebian/substvars -Pdebian/luakit cd debian/$(package) && find * -type f ! -regex '^DEBIAN/.*' ! -path "etc/xdg/$(package)/*.lua" -print0 | xargs -r0 md5sum > DEBIAN/md5sums chmod a-x debian/$(package)/etc/xdg/luakit/*.lua chmod a-x debian/$(package)/usr/share/luakit/lib/lousy/*.lua chown -R root:root debian/$(package) chmod -R go=rX debian/$(package) dpkg --build debian/$(package) .. define checkdir test -f debian/rules endef binary: binary-arch prebuild: @true checkroot: $(checkdir) test root = "`whoami`" .PHONY: build build-indep binary binary-arch binary-indep clean checkroot prebuild install debian/control0000644000000000000000000000147312216734160010600 0ustar Source: luakit Section: web Priority: optional Maintainer: Clint Adams Standards-Version: 3.9.4 Build-Depends: liblua5.1-0-dev, libgtk2.0-dev, libwebkitgtk-dev, help2man, lua5.1, libsqlite3-dev, libunique-dev Homepage: http://luakit.org/ Vcs-Git: git://git.debian.org/collab-maint/luakit.git Vcs-Browser: http://git.debian.org/?p=collab-maint/luakit.git;a=summary Package: luakit Architecture: any Depends: ${shlibs:Depends}, lua5.1-filesystem Description: fast and small web browser extensible by Lua Luakit is a highly-configurable browser framework based on WebKitGTK+. It is very fast and extensible by Lua. It is primarily targeted at power users, developers and any people with too much time on their hands who want to have fine-grained control over their web browser's behaviour and interface. debian/conffiles0000644000000000000000000000027012216734160011062 0ustar /etc/xdg/luakit/rc.lua /etc/xdg/luakit/binds.lua /etc/xdg/luakit/globals.lua /etc/xdg/luakit/modes.lua /etc/xdg/luakit/theme.lua /etc/xdg/luakit/webview.lua /etc/xdg/luakit/window.lua debian/menu0000644000000000000000000000032512216734160010057 0ustar ?package(luakit):needs="x11" section="Applications/Network/Web Browsing" \ title="Luakit" \ longtitle="Luakit Web Browser" \ icon="/usr/share/pixmaps/luakit.png" \ command="luakit" debian/postinst0000644000000000000000000000051512216734160010777 0ustar #!/bin/sh -e case "$1" in (configure) update-alternatives --install /usr/bin/x-www-browser \ x-www-browser /usr/bin/luakit 10 ;; (abort-upgrade|abort-remove|abort-deconfigure) ;; (*) echo "postinst called with unknown argument \`$1'" >&2 ;; esac if [ -x /usr/bin/update-menus ] ; then update-menus ; fi exit 0 debian/copyright0000644000000000000000000000110512216734160011120 0ustar This is the Debian prepackaged version of Luakit. This package was put together by Clint Adams with sources obtained from: http://www.luakit.org/ The following copyrights and license apply to this software: Copyright (C) 2010 Mason Larobina Copyright (C) 2007-2009 Julien Danjou Copyright (C) 2006 Pierre Habouzit Luakit is distributed under the terms of the GNU General Public License version 3 or later, which can be found on your Debian system as /usr/share/common-licenses/GPL-3 . debian/patches/0000755000000000000000000000000012216734256010625 5ustar debian/patches/series0000644000000000000000000000000412216734241012026 0ustar ugh debian/patches/ugh0000644000000000000000000001373212216734256011341 0ustar Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . luakit (2012.09.13-r1-3) unstable; urgency=low . [ Enrico Tassi ] * Use post-wheezy Lua package names in Depends: - liblua5.1-filesystem0 -> lua5.1-filesystem Author: Clint Adams --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- luakit-2012.09.13-r1.orig/lib/introspector.lua +++ luakit-2012.09.13-r1/lib/introspector.lua @@ -332,15 +332,15 @@ end local source_lines = {} local function function_source_range(func, info) - local lines = source_lines[info.short_src] + local lines = source_lines[info.source] if not lines then - local source = lousy.load(info.short_src) + local source = lousy.load(info.source) lines = {} string.gsub(source, "([^\n]*)\n", function (line) table.insert(lines, line) end) - source_lines[info.short_src] = lines + source_lines[info.source] = lines end return dedent(table.concat(lines, "\n", info.linedefined, @@ -359,12 +359,12 @@ export_funcs = { if mode.binds then for i, b in pairs(mode.binds) do local info = debug.getinfo(b.func, "uS") - + info.source = info.source:sub(2) binds[i] = { type = b.type, key = bind_tostring(b), desc = b.desc and markdown(dedent(b.desc)) or nil, - filename = info.short_src, + filename = info.source, linedefined = info.linedefined, lastlinedefined = info.lastlinedefined, func = function_source_range(b.func, info), --- luakit-2012.09.13-r1.orig/config/globals.lua +++ luakit-2012.09.13-r1/config/globals.lua @@ -6,8 +6,9 @@ globals = { zoom_step = 0.1, max_cmd_history = 100, max_srch_history = 100, - -- http_proxy = "http://example.com:3128", + -- proxy must now be set through proxy command; environment variable is broken default_window_size = "800x600", + term = "x-terminal-emulator", -- Disables loading of hostnames from /etc/hosts (for large host files) -- load_etc_hosts = false, @@ -16,7 +17,11 @@ globals = { } -- Make useragent -local _, arch = luakit.spawn_sync("uname -sm") +local _, arch = luakit.spawn_sync("uname -m") +-- If luakit doesn't start, try replacing the above line with the output of +-- `uname -m`, such as: +-- local arch = 'x86_64' + -- Only use the luakit version if in date format (reduces identifiability) local lkv = string.match(luakit.version, "^(%d+.%d+.%d+)") globals.useragent = string.format("Mozilla/5.0 (%s) AppleWebKit/%s+ (KHTML, like Gecko) WebKitGTK+/%s luakit%s", @@ -51,15 +56,19 @@ soup.accept_policy = cookie_policy.alway -- it to avoid collisions with lua's string.format characters. -- See: http://www.lua.org/manual/5.1/manual.html#pdf-string.format search_engines = { - duckduckgo = "https://duckduckgo.com/?q=%s", + luakit = "http://luakit.org/search/index/luakit?q=%s", + duckduckgo = "http://duckduckgo.com/?q=%s&t=debian", github = "https://github.com/search?q=%s", - google = "https://google.com/search?q=%s", + google = "http://google.com/search?q=%s", imdb = "http://www.imdb.com/find?s=all&q=%s", - wikipedia = "https://en.wikipedia.org/wiki/Special:Search?search=%s", + wikipedia = "http://en.wikipedia.org/wiki/Special:Search?search=%s", + debbugs = "http://bugs.debian.org/%s", + sourceforge = "http://sf.net/search/?words=%s", + netflix = "http://dvd.netflix.com/Search?v1=%s", } -- Set google as fallback search engine -search_engines.default = search_engines.google +search_engines.default = search_engines.duckduckgo -- Use this instead to disable auto-searching --search_engines.default = "%s" --- luakit-2012.09.13-r1.orig/config/binds.lua +++ luakit-2012.09.13-r1/config/binds.lua @@ -418,6 +418,16 @@ add_binds("normal", { key({"Control"}, "z", "Enter `passthrough` mode, ignores all luakit keybindings.", function (w) w:set_mode("passthrough") end), + + -- Search engine stuff + buf("^,d$", "DuckDuckGo search", + function (w) w:enter_cmd(":open duckduckgo ") end), + + buf("^,h$", "Hackage search", + function (w) w:enter_cmd(":open duckduckgo !hackage ") end), + + buf("^,n$", "Netflix search", + function (w) w:enter_cmd(":open netflix ") end), }) add_binds("insert", { --- luakit-2012.09.13-r1.orig/build-utils/gentokens.lua +++ luakit-2012.09.13-r1/build-utils/gentokens.lua @@ -1,4 +1,4 @@ -#!/usr/bin/env lua +#!/usr/bin/lua5.1 -- build-utils/gentokens.lua - gen tokenize lib -- --- luakit-2012.09.13-r1.orig/build-utils/getversion.sh +++ luakit-2012.09.13-r1/build-utils/getversion.sh @@ -10,7 +10,7 @@ # # This tells git to replace the format string in the following line with the # current short hash upon the calling of the `git archive ` command. -VERSION_FROM_ARCHIVE=0d5f4ab +VERSION_FROM_ARCHIVE=039e319 # The preferred method is to use the git describe command but this is only # possible if the .git directory is present. debian/changelog0000644000000000000000000001713412216734160011050 0ustar luakit (2012.09.13-r1-3) unstable; urgency=low [ Enrico Tassi ] * Use post-wheezy Lua package names in Depends: - liblua5.1-filesystem0 -> lua5.1-filesystem -- Clint Adams Thu, 19 Sep 2013 18:20:31 +0200 luakit (2012.09.13-r1-2) unstable; urgency=low * Cherry-pick 105530f1542d568a6cf8d236eb1dc84fa982703b and d24b8d230c2377e5ee015cbda78098d1da72c899 from luakit-crowd. -- Clint Adams Sat, 13 Jul 2013 11:51:49 -0400 luakit (2012.09.13-r1-1) unstable; urgency=low * New upstream version. * Bump to Standards-Version 3.9.4. * Add build-arch and build-indep targets. * Use dpkg-buildflags. * Change Homepage to http://luakit.org/ . closes: #695288. * Call update-menus in postinst. * Add watch file. * Update descriptions. -- Clint Adams Sun, 30 Dec 2012 19:34:33 -0500 luakit (2012.03.25-1) unstable; urgency=low * New upstream version. * Make DuckDuckGo default search engine. * Add Debian tag to DDG query string. -- Clint Adams Tue, 27 Mar 2012 16:08:46 -0400 luakit (2011.07.22-r1+1015-1) unstable; urgency=low * New upstream development snapshot. -- Clint Adams Sun, 30 Oct 2011 19:14:53 -0400 luakit (2011.07.22-r1-1) unstable; urgency=medium * New upstream bugfix release. -- Clint Adams Thu, 28 Jul 2011 09:39:24 +0200 luakit (2011.07.22-2) unstable; urgency=low * Change WebKitGTK+ build dependency to libwebkitgtk-dev. closes: #635418. -- Clint Adams Tue, 26 Jul 2011 14:36:08 +0200 luakit (2011.07.22-1) unstable; urgency=low * New upstream release. -- Clint Adams Fri, 22 Jul 2011 15:27:45 +0200 luakit (2011.05.06+unique-1) unstable; urgency=low * Add libunique support and corresponding build dependency. * Fix popup inactivity problem. closes: #622594. * Bump to Standards-Version 3.9.2. -- Clint Adams Wed, 15 Jun 2011 19:18:41 -0400 luakit (2011.05.06-2) unstable; urgency=low * Add Debian menu entry from Jonathan Lane. closes: #629103. -- Clint Adams Sat, 04 Jun 2011 12:27:05 -0400 luakit (2011.05.06-1) unstable; urgency=low * New upstream release. -- Clint Adams Fri, 06 May 2011 10:19:05 -0400 luakit (2011.04.13-1) unstable; urgency=low * New upstream bugfix release. * Set term to x-terminal-emulator instead of xterm. closes: #604899. -- Clint Adams Wed, 13 Apr 2011 12:43:47 -0400 luakit (2011.04.04-1) unstable; urgency=low * New upstream release. -- Clint Adams Sun, 03 Apr 2011 12:30:16 -0400 luakit (2010.12.25+0329-1) unstable; urgency=medium * New upstream development snapshot. -- Clint Adams Thu, 31 Mar 2011 15:22:37 -0400 luakit (2010.12.25+0327-1) unstable; urgency=low * New upstream development snapshot. -- Clint Adams Sun, 27 Mar 2011 13:11:21 -0400 luakit (2010.12.25+0310-1) unstable; urgency=low * New upstream development snapshot. -- Clint Adams Sat, 12 Mar 2011 11:02:40 -0500 luakit (2010.12.25+0225-1) unstable; urgency=low * New upstream development snapshot. * Add build dependency on libsqlite3-dev. -- Clint Adams Fri, 25 Feb 2011 10:33:39 -0500 luakit (2010.12.25-2) unstable; urgency=low * New upstream bugfix release (2010.12.25-r1). -- Clint Adams Sun, 26 Dec 2010 21:24:58 -0500 luakit (2010.12.25-1) unstable; urgency=low * New upstream release. -- Clint Adams Sat, 25 Dec 2010 09:14:36 -0500 luakit (2010.09.24+whatthelol-1) unstable; urgency=low * New upstream development snapshot. -- Clint Adams Fri, 03 Dec 2010 21:20:41 -0500 luakit (2010.09.24+veterans-1) unstable; urgency=low * New upstream development snapshot. * Remove misleading http_proxy line from globals.lua. closes: #603037. -- Clint Adams Thu, 11 Nov 2010 18:26:21 -0500 luakit (2010.09.24+halloween-2) unstable; urgency=low * Add dependency on liblua5.1-filesystem0. closes: #602046. -- Clint Adams Wed, 03 Nov 2010 16:01:51 -0400 luakit (2010.09.24+halloween-1) unstable; urgency=low * New upstream development snapshot. -- Clint Adams Sun, 31 Oct 2010 11:13:58 -0400 luakit (2010.09.24-1) unstable; urgency=low * New upstream release. - Drop build-dependency on gperf. - Add build dependency on lua5.1. -- Clint Adams Fri, 24 Sep 2010 06:31:14 -0400 luakit (2010.08.30-2) unstable; urgency=low * Patch from Kumar Appaiah to add AppleWebKit and Webkit-build specific version to user agent string, thereby encouraging websites like Flickr and Google Maps to behave in a more effective manner. closes: #596653, #595289. -- Clint Adams Sat, 18 Sep 2010 10:39:05 -0400 luakit (2010.08.30-1) unstable; urgency=low * New upstream release. -- Clint Adams Mon, 30 Aug 2010 21:25:35 -0400 luakit (0~20100813-10) unstable; urgency=low * New upstream development snapshot. * Add /etc/xdg/luakit/modes.lua as a conffile. -- Clint Adams Sat, 28 Aug 2010 17:39:26 -0400 luakit (0~20100813-9) unstable; urgency=low * New upstream development snapshot. - Adds autogenerated man page. closes: #593762. * Add build dependency on help2man. -- Clint Adams Fri, 27 Aug 2010 11:15:06 -0400 luakit (0~20100813-8) unstable; urgency=low * New upstream development snapshot. * Fix typo in installation of postinst. -- Clint Adams Wed, 25 Aug 2010 11:24:41 -0400 luakit (0~20100813-7) unstable; urgency=low * New upstream development snapshot. * Add /etc/xdg/luakit/{binds,globals,theme,webview,window}.lua as conffiles. -- Clint Adams Tue, 24 Aug 2010 16:24:18 -0400 luakit (0~20100813-6) unstable; urgency=low * New upstream development snapshot. -- Clint Adams Fri, 20 Aug 2010 14:33:36 -0400 luakit (0~20100813-5) unstable; urgency=low * New upstream development snapshot. * Add /usr/bin/luakit to x-www-browser alternative. closes: #593418. -- Clint Adams Wed, 18 Aug 2010 10:15:54 -0700 luakit (0~20100813-4) unstable; urgency=low * New upstream development snapshot. * Add Debian PTS/BTS/Packages websearch shortcuts from Kumar Appaiah. closes: #593307. -- Clint Adams Tue, 17 Aug 2010 09:03:16 -0700 luakit (0~20100813-3) unstable; urgency=low * New upstream development snapshot. * Drop README.Debian file. -- Clint Adams Mon, 16 Aug 2010 09:30:10 -0700 luakit (0~20100813-2) unstable; urgency=low * New upstream development snapshot. * Drop build dependency on libxdg-basedir-dev. -- Clint Adams Fri, 13 Aug 2010 12:19:13 -0400 luakit (0~20100813-1) unstable; urgency=low * New upstream release. -- Clint Adams Thu, 12 Aug 2010 15:33:49 -0400 luakit (0~20100807-2) unstable; urgency=low * Fix build prefix. -- Clint Adams Sun, 08 Aug 2010 21:12:34 -0400 luakit (0~20100807-1) experimental; urgency=low * New upstream snapshot. -- Clint Adams Sat, 07 Aug 2010 10:10:44 -0400 luakit (0~20100806-1) experimental; urgency=low * New upstream snapshot. -- Clint Adams Fri, 06 Aug 2010 08:04:16 -0400 luakit (0~20100725-1) experimental; urgency=low * Initial snapshot. -- Clint Adams Thu, 29 Jul 2010 09:40:48 -0400 debian/source/0000755000000000000000000000000012216734160010470 5ustar debian/source/format0000644000000000000000000000001412216734160011676 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000014312216734160010217 0ustar version=3 https://github.com/mason-larobina/luakit/tags /mason-larobina/luakit/archive/(.+).tar.gz debian/prerm0000644000000000000000000000034212216734160010237 0ustar #!/bin/sh -e case "$1" in (remove|deconfigure) update-alternatives --remove x-www-browser /usr/bin/luakit ;; (upgrade|failed-upgrade) ;; (*) echo "prerm called with unknown argument \`$1'" >&2 ;; esac exit 0