diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..33c6526 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +sudo: required +language: generic + +services: + - docker + +script: + - wget -O- http://travis.debian.net/script.sh | sh - + +branches: + except: + - /^debian\/\d/ diff --git a/debian/compat b/debian/compat index 7ed6ff8..f599e28 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -5 +10 diff --git a/debian/control b/debian/control index cf37c44..fd20984 100644 --- a/debian/control +++ b/debian/control @@ -2,15 +2,21 @@ Source: ebsmount Section: misc Priority: optional Maintainer: Alon Swartz -Build-Depends: debhelper (>> 4.2.0) -Standards-Version: 3.6.1 +Build-Depends: + debhelper (>= 10), + python-all (>= 2.6.6-3~), +Standards-Version: 4.0.0 +X-Python-Version: >= 2.6 Package: ebsmount Architecture: any -Depends: python (>= 2.4), udev, turnkey-pylib -Section: misc +Depends: + dh-python, + ${misc:Depends}, + ${python:Depends}, + turnkey-pylib, + udev, Description: Automatically mount EC2/Eucalyptus EBS devices Automatically mounts EBS (Elastic Block Storage) devices when they are attached, supports formatted devices as well as partitions, uniquely identifiable mount points, and hooking scripts execution upon mount. - diff --git a/debian/copyright b/debian/copyright index b82972b..08158cd 100644 --- a/debian/copyright +++ b/debian/copyright @@ -26,4 +26,3 @@ License: On Debian and Ubuntu systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL file. - diff --git a/debian/ebsmount.docs b/debian/ebsmount.docs new file mode 100644 index 0000000..a188e06 --- /dev/null +++ b/debian/ebsmount.docs @@ -0,0 +1 @@ +docs/* diff --git a/debian/ebsmount.manpages b/debian/ebsmount.manpages new file mode 100644 index 0000000..4603ab8 --- /dev/null +++ b/debian/ebsmount.manpages @@ -0,0 +1,2 @@ +man/ebsmount-manual.1 +man/ebsmount-udev.8 diff --git a/debian/rules b/debian/rules index 348eab2..aa44a7e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,37 +1,9 @@ #! /usr/bin/make -f -progname=$(shell awk '/^Source/ {print $$2}' debian/control) -buildroot=debian/$(progname) -prefix=$(buildroot)/usr +include /usr/share/dpkg/pkg-info.mk -clean: - dh_clean +%: + dh $@ --with python2 -build: - mkdir -p $(prefix) - -install: - dh_testroot - dh_clean -k - dh_testdir - dh_installdirs - dh_install - $(MAKE) install prefix=$(prefix) destdir=$(buildroot) - dh_link - -binary-indep: install - dh_testdir - dh_testroot - dh_installdocs docs/ - dh_installman man/ebsmount-manual.1 man/ebsmount-udev.8 - dh_installchangelogs - dh_compress - dh_installdeb - dh_gencontrol - dh_md5sums - dh_builddeb - -binary-arch: install - -binary: binary-indep binary-arch -.PHONY: clean binary-indep binary-arch binary install +override_dh_auto_install: + dh_auto_install -- prefix=debian/$(DEB_SOURCE)/usr destdir=debian/$(DEB_SOURCE) diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)