summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/control2
-rwxr-xr-xdebian/rules62
2 files changed, 9 insertions, 55 deletions
diff --git a/debian/control b/debian/control
index 42686e084a6..9e2416f28fe 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: net
Priority: optional
Maintainer: Debian Open Object Maintainers <open-object@lists.debian-maintainers.org>
Uploaders: Daniel Baumann <daniel@debian.org>
-Build-Depends: debhelper (>= 7), python-dev, quilt
+Build-Depends: debhelper (>= 7.0.50~), python-dev, quilt (>= 0.46-7)
Build-Depends-Indep: python-libxslt1, python-lxml, python-psycopg2
Standards-Version: 3.8.3
Homepage: http://www.openerp.com/
diff --git a/debian/rules b/debian/rules
index 54f3cfdd503..c533fe28505 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,42 +1,14 @@
#!/usr/bin/make -f
-SHELL := sh -e
+%:
+ dh ${@} --with quilt
-include /usr/share/quilt/quilt.make
+override_dh_auto_clean:
+ dh_auto_clean
-update:
- # Needs: shell-helper
-
- cd debian; \
- debconf-create-preseed *.config; \
-
- for FILE in debian/*.preseed; \
- do \
- grep -v preseed $$FILE > $$FILE.tmp; \
- mv $$FILE.tmp $$FILE; \
- echo $$FILE >> debian/`basename $$FILE .preseed`.examples; \
- done
-
-clean: clean-patched unpatch
-clean-patched: patch
- dh_testdir
- dh_testroot
- rm -f build-stamp
-
- python setup.py clean
- rm -rf build openerp-server
-find $(CURDIR) -type f -name "*.pyc" | xargs rm -f
- dh_clean
-
-build:
-
-install: patch
- dh_testdir
- dh_testroot
- dh_prep
- dh_installdirs
-
+override_dh_auto_install:
python setup.py install --no-compile --prefix=$(CURDIR)/debian/openerp-server/usr
# Adjusting program location
@@ -50,26 +22,8 @@ install: patch
# Removing double files
rm -rf debian/openerp-server/usr/share/doc/openerp-server-*
-binary: binary-indep
-
-binary-arch:
-
-binary-indep: install
- dh_testdir
- dh_testroot
+override_dh_installchangelogs:
dh_installchangelogs doc/Changelog
- dh_installdocs
- dh_installexamples
- dh_install
- dh_installinit --update-rcd-params='defaults 21'
- dh_installdebconf
- dh_lintian
- dh_link
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-.PHONY: clean build install binary binary-arch binary-indep
+override_dh_installinit:
+ dh_installinit --update-rcd-params='defaults 21'