add a debian.trunk dir and tools/bddeb to easily build a deb from here
This commit is contained in:
parent
452e9688d3
commit
b2f4c4194d
5
debian.trunk/changelog
Normal file
5
debian.trunk/changelog
Normal file
@ -0,0 +1,5 @@
|
||||
cloud-init (0.6.0) UNRELEASED; urgency=low
|
||||
|
||||
* build
|
||||
|
||||
-- Scott Moser <smoser@ubuntu.com> Tue, 01 Feb 2011 16:15:30 -0500
|
1
debian.trunk/compat
Normal file
1
debian.trunk/compat
Normal file
@ -0,0 +1 @@
|
||||
5
|
15
debian.trunk/control
Normal file
15
debian.trunk/control
Normal file
@ -0,0 +1,15 @@
|
||||
Source: cloud-init
|
||||
Section: admin
|
||||
Priority: extra
|
||||
Maintainer: Scott Moser <smoser@ubuntu.com>
|
||||
Build-Depends: cdbs, debhelper (>= 5.0.38), python, python-central (>= 0.5.6)
|
||||
XS-Python-Version: all
|
||||
Standards-Version: 3.9.1
|
||||
|
||||
Package: cloud-init
|
||||
Architecture: all
|
||||
Depends: python, procps, python-configobj, python-cheetah, python-yaml, python-software-properties, cloud-utils, ${python:Depends}, ${misc:Depends}
|
||||
XB-Python-Version: ${python:Versions}
|
||||
Description: Init scripts for cloud instances
|
||||
Cloud instances need special scripts to run during initialisation
|
||||
to retrieve and install ssh keys and to let the user run various scripts.
|
51
debian.trunk/copyright
Normal file
51
debian.trunk/copyright
Normal file
@ -0,0 +1,51 @@
|
||||
Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
|
||||
Name: cloud-init
|
||||
Maintainer: Scott Moser <scott.moser@canonical.com>
|
||||
Source: https://launchpad.net/cloud-init
|
||||
|
||||
This package was debianized by Soren Hansen <soren@ubuntu.com> on
|
||||
Thu, 04 Sep 2008 12:49:15 +0200 as ec2-init. It was later renamed to
|
||||
cloud-utils by Scott Moser <scott.moser@canonical.com>
|
||||
|
||||
Upstream Author: Scott Moser <smoser@canonical.com>
|
||||
Soren Hansen <soren@canonical.com>
|
||||
Chuck Short <chuck.short@canonical.com>
|
||||
|
||||
Copyright: 2010, Canonical Ltd.
|
||||
License: GPL-3
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 3, as
|
||||
published by the Free Software Foundation.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
The complete text of the GPL version 3 can be seen in
|
||||
/usr/share/common-licenses/GPL-3.
|
||||
|
||||
Files: cloudinit/boto_utils.py
|
||||
Copyright: 2006,2007, Mitch Garnaat http://garnaat.org/
|
||||
License: MIT
|
||||
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, dis-
|
||||
tribute, sublicense, and/or sell copies of the Software, and to permit
|
||||
persons to whom the Software is furnished to do so, subject to the fol-
|
||||
lowing 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 MERCHANTABIL-
|
||||
ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
||||
SHALL THE AUTHOR 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.
|
5
debian.trunk/dirs
Normal file
5
debian.trunk/dirs
Normal file
@ -0,0 +1,5 @@
|
||||
var/lib/cloud
|
||||
usr/bin
|
||||
etc/init
|
||||
usr/share/doc/cloud
|
||||
etc/cloud
|
1
debian.trunk/pycompat
Normal file
1
debian.trunk/pycompat
Normal file
@ -0,0 +1 @@
|
||||
2
|
29
debian.trunk/rules
Executable file
29
debian.trunk/rules
Executable file
@ -0,0 +1,29 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
DEB_PYTHON_SYSTEM := pycentral
|
||||
export DH_PYCENTRAL=include-links
|
||||
|
||||
binary-install/cloud-init::cloud-init-fixups
|
||||
|
||||
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||
include /usr/share/cdbs/1/class/python-distutils.mk
|
||||
|
||||
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
|
||||
|
||||
cloud-init-fixups:
|
||||
for x in $(DEB_DESTDIR)/usr/bin/*.py; do mv "$$x" "$${x%.py}"; done
|
||||
install -d $(DEB_DESTDIR)/etc/rsyslog.d
|
||||
cp tools/21-cloudinit.conf $(DEB_DESTDIR)/etc/rsyslog.d/21-cloudinit.conf
|
||||
|
||||
# You only need to run this immediately after checking out the package from
|
||||
# revision control.
|
||||
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572204
|
||||
quilt-setup:
|
||||
@[ ! -d .pc ] || { echo ".pc exists. remove it and re-run to start fresh"; exit 1; }
|
||||
set -e; for patch in $$(quilt series | tac); do \
|
||||
patch -p1 -R --no-backup-if-mismatch <"debian/patches/$$patch"; \
|
||||
done
|
||||
quilt push -a
|
||||
|
||||
.PHONY: quilt-setup
|
||||
|
20
tools/bddeb
Executable file
20
tools/bddeb
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
TEMP_D=$(mktemp -d "${TMPDIR:-/tmp}/${0##*/}.XXXXXXX")
|
||||
#TEMP_D=/tmp/my.d
|
||||
start=${PWD}
|
||||
rm -Rf "${TEMP_D}"; mkdir "${TEMP_D}"
|
||||
set -e
|
||||
trap "rm -Rf '${TEMP_D}'" exit
|
||||
files=$(bzr ls --versioned)
|
||||
mkdir "${TEMP_D}/cloud-init"
|
||||
tar -cf - ${files} | tar -C "${TEMP_D}/cloud-init" -xf -
|
||||
if [ ! -d "${TEMP_D}/cloud-init/debian" ]; then
|
||||
rsync -a debian.trunk/ "${TEMP_D}/cloud-init/debian"
|
||||
fi
|
||||
cd "${TEMP_D}/cloud-init"
|
||||
debuild "$@"
|
||||
for x in ../*.deb; do
|
||||
echo wrote ${x##*/}
|
||||
done
|
||||
mv ../*.deb "${start}"
|
Loading…
x
Reference in New Issue
Block a user