Browse files

Add Debian packaging.

Signed-off-by: Chris Lamb <lamby@debian.org>
  • Loading branch information...
1 parent 8b82bf0 commit 040f688704a69668557d2f246a2af8e0f324fced @lamby lamby committed with lamby Sep 16, 2012
Showing with 59 additions and 0 deletions.
  1. +5 −0 debian/changelog
  2. +1 −0 debian/compat
  3. +14 −0 debian/control
  4. +2 −0 debian/copyright
  5. +18 −0 debian/generate_hashes
  6. +1 −0 debian/install
  7. +1 −0 debian/pyversions
  8. +16 −0 debian/rules
  9. +1 −0 debian/source/format
View
5 debian/changelog
@@ -0,0 +1,5 @@
+librement (0) unstable; urgency=low
+
+ * (No changelog)
+
+ -- Chris Lamb <chris@lambynet.co.uk> Sun, 25 Mar 2012 18:02:00 +0100
View
1 debian/compat
@@ -0,0 +1 @@
+8
View
14 debian/control
@@ -0,0 +1,14 @@
+Source: librement
+Section: net
+Priority: optional
+Maintainer: Chris Lamb <chris@lambynet.co.uk>
+Build-Depends: debhelper (>= 8)
+Standards-Version: 3.9.2
+
+Package: librement
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python:Depends},
+ python-django,
+ python-django-south,
View
2 debian/copyright
@@ -0,0 +1,2 @@
+Files: *
+License: GPLv3+
View
18 debian/generate_hashes
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+
+import os
+import sys
+import hashlib
+
+hashes = {}
+root = sys.argv[1]
+
+for dirpath, _, filenames in os.walk(root):
+ commonpath = os.path.commonprefix((dirpath, root))
+
+ for filename in filenames:
+ fullpath = os.path.join(dirpath, filename)
+ sha = hashlib.sha1(open(fullpath, 'rb').read())
+ hashes[fullpath[len(commonpath) + 1:]] = sha.hexdigest()
+
+print "HASHES = %r" % hashes
View
1 debian/install
@@ -0,0 +1 @@
+src/contrib src/librement src/media src/templates /usr/share/librement/
View
1 debian/pyversions
@@ -0,0 +1 @@
+2.6-
View
16 debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+export PYTHONDONTWRITEBYTECODE = 1
+
+%:
+ dh $@
+
+override_dh_auto_clean:
+ rm -f src/contrib/*/*.log
+
+override_dh_auto_test:
+ src/librement/manage.py test --verbosity=2
+
+override_dh_auto_build:
+ debian/generate_hashes src/media > src/librement/settings/hashes.py
+ echo "from roles.live import *" > src/librement/settings/role.py
View
1 debian/source/format
@@ -0,0 +1 @@
+3.0 (native)

0 comments on commit 040f688

Please sign in to comment.