summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/control8
-rw-r--r--debian/dirs3
-rw-r--r--debian/install6
-rwxr-xr-xdebian/rules14
4 files changed, 11 insertions, 20 deletions
diff --git a/debian/control b/debian/control
index a2812cae..b171f568 100644
--- a/debian/control
+++ b/debian/control
@@ -2,12 +2,14 @@ Source: ec2-init
Section: admin
Priority: extra
Maintainer: Soren Hansen <soren@ubuntu.com>
-Build-Depends: cdbs, debhelper (>= 5)
+Build-Depends: cdbs, debhelper (>= 5), debhelper (>= 5.0.38), python-all-dev (>= 2.3.5-11), python-central (>= 0.5.6)
+XS-Python-Version: all
Standards-Version: 3.8.0
Package: ec2-init
Architecture: i386 amd64
-Depends: python, procps, python-configobj, python-cheetah, python-apt, update-motd
-Description: Init scripts for EC2 instances,
+Depends: python, procps, python-configobj, python-cheetah, update-motd, ${python:Depends}
+XB-Python-Version: ${python:Versions}
+Description: Init scripts for EC2 instances
EC2 instances need special scripts to run during initialisation
to retrieve and install ssh keys and to let the user run various scripts.
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644
index 3c349733..00000000
--- a/debian/dirs
+++ /dev/null
@@ -1,3 +0,0 @@
-var/ec2
-usr/sbin
-etc/ec2-init
diff --git a/debian/install b/debian/install
index 33e2382f..7cea0e92 100644
--- a/debian/install
+++ b/debian/install
@@ -1,3 +1,3 @@
-debian/tmp/usr/sbin/*
-debian/tmp/etc/ec2-init/templates/*
-debian/ec2-config.cfg etc/ec2-init
+#debian/ec2-init/usr/bin/*
+#debian/ec2-init/etc/ec2-init/templates/*
+#debian/ec2-config.cfg etc/ec2-init
diff --git a/debian/rules b/debian/rules
index 488b93d9..a96b88fa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,18 +1,10 @@
#!/usr/bin/make -f
+DEB_PYTHON_SYSTEM=pycentral
include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
DEB_UPDATE_RCD_PARAMS:= start 15 2 3 4 5 . stop 20 1 .
-build/ec2-init::
- install -d debian/tmp/usr/sbin
- mkdir -p debian/tmp/var/ec2
- mkdir -p debian/tmp/etc/ec2-init/templates
- install -m 775 ec2-fetch-credentials.py debian/tmp/usr/sbin/ec2-fetch-credentials
- install -m 775 ec2-run-user-data.py debian/tmp/usr/sbin/ec2-run-user-data
- install -m 755 ec2-set-hostname.py debian/tmp/usr/sbin/ec2-set-hostname
- install -m 755 ec2-set-apt-sources.py debian/tmp/usr/sbin/ec2-set-apt-sources
- install -m755 ec2-get-info.py debian/tmp/usr/sbin/ec2-get-info
- install -m755 ec2-set-defaults.py debian/tmp/usr/sbin/ec2-set-defaults
- install -m755 templates/* debian/tmp/etc/ec2-init/templates
+binary-install/ec2-init::
dh_installinit -p ec2-init --name rightscale-init -- defaults 99 09