diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..ceba5cbb0289c5c50d2e1feec38e5b8c9bf4a850
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1,4 @@
+liber
+*.debhelper.log
+*.substvars
+files
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000000000000000000000000000000000000..9d37cfa8203e9c986f3ccd370c1c51acc84d725c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+liber (0.1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- ale <ale@incal.net>  Sun, 16 Nov 2014 09:10:34 +0000
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000000000000000000000000000000000000..45a4fb75db864000d01701c0f7a51864bd4daabf
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000000000000000000000000000000000000..6e77e8ca34a7b52719a7e242a605cc15ee019523
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,14 @@
+Source: liber
+Section: net
+Priority: extra
+Maintainer: ale <ale@incal.net>
+Build-Depends: debhelper (>= 8.0.0), libicu-dev, libleveldb-dev (>=1.15)
+Standards-Version: 3.9.4
+Homepage: https://git.autistici.org/ale/liber
+
+Package: liber
+Architecture: any
+Depends: libleveldb1 (>=1.15), ${shlibs:Depends}, ${misc:Depends}
+Description: Ebook collection indexer.
+ Index and search an ebook collection.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000000000000000000000000000000000000..c7214aa0a1d5df8010cf3fca5076796016770ea8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,20 @@
+Copyright (c) 2014 <ale@incal.net>
+
+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/debian/rules b/debian/rules
new file mode 100755
index 0000000000000000000000000000000000000000..268071dc42c690ae65dc7ca9663b147bfe44c478
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+DEBDIR = $(CURDIR)/debian
+PKGDIR = $(DEBDIR)/liber
+
+%:
+	dh $@ 
+
+override_dh_install:
+	# Build the sources using your locally-installed Go version.
+	# This is crazy, clearly, but it's a temporary workaround for wheezy.
+	install -m 755 -o root -g root -d $(PKGDIR)/usr/bin
+	install -m 755 -o root -g root -d $(PKGDIR)/usr/share/liber
+	go build -o $(PKGDIR)/usr/bin/liber cmd/liber/liber.go
+	(umask 022; cp -R --preserve=timestamps htdocs $(PKGDIR)/usr/share/liber/htdocs)
+