Updated to debhelper 7 and better depends.

This commit is contained in:
Monty Taylor 2010-07-13 16:11:42 -05:00
parent a57a210659
commit 8ae4985ea7
4 changed files with 48 additions and 44 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
swift (1.0.0-1) lucid; urgency=low
swift (1.0.0-1) unstable; urgency=low
* Initial release

2
debian/compat vendored
View File

@ -1 +1 @@
5
7

46
debian/control vendored
View File

@ -2,53 +2,71 @@ Source: swift
Section: net
Priority: optional
Maintainer: Michael Barton <michael.barton@rackspace.com>
Build-Depends: debhelper (>> 3.0.0), python (>= 2.6)
Standards-Version: 3.7.2
Uploaders: Monty Taylor <mordred@inaugust.com>
Build-Depends: debhelper (>= 7),
python (>= 2.6),
python-openssl,
python-setuptools,
python-webob (>= 0.9.7.1~hg20100111-1~racklabs1),
python-simplejson,
python-xattr,
net-tools,
python-greenlet (>= 0.3.1),
python-eventlet (>= 0.9.8),
python-nose
Standards-Version: 3.8.4
Homepage: http://launchpad.net/swift
Package: swift
Architecture: all
Depends: python (>= 2.6), python-openssl, python-webob (>= 0.9.7.1~hg20100111-1~racklabs1), python-simplejson, python-xattr, net-tools, python-eventlet (>= 0.9.8pre1-7)
Depends: python (>= 2.6), net-tools, ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
Provides: ${python:Provides}
Description: Swift, a distributed virtual object store (common files)
Swift, a distributed virtual object store.
.
Homepage: https://swift.racklabs.com/trac
Homepage: https://launchpad.net/swift
Package: swift-proxy
Architecture: all
Depends: swift (=${Source-Version})
Depends: swift (=${Source-Version}), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
Provides: ${python:Provides}
Description: The swift proxy server.
The swift proxy server.
.
Homepage: https://swift.racklabs.com/trac
Homepage: https://launchpad.net/swift
Package: swift-object
Architecture: all
Depends: swift (=${Source-Version})
Depends: swift (=${Source-Version}), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
Provides: ${python:Provides}
Description: The swift object server.
The swift object server.
.
Homepage: https://swift.racklabs.com/trac
Homepage: https://launchpad.net/swift
Package: swift-container
Architecture: all
Depends: swift (=${Source-Version})
Depends: swift (=${Source-Version}), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
Provides: ${python:Provides}
Description: The swift container server.
The swift container server.
.
Homepage: https://swift.racklabs.com/trac
Homepage: https://launchpad.net/swift
Package: swift-account
Architecture: all
Depends: swift (=${Source-Version})
Depends: swift (=${Source-Version}), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
Provides: ${python:Provides}
Description: The swift account server.
The swift account server.
.
Homepage: https://swift.racklabs.com/trac
Homepage: https://launchpad.net/swift
Package: swift-auth
Architecture: all
Depends: swift (=${Source-Version})
Depends: swift (=${Source-Version}), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
Provides: ${python:Provides}
Description: The swift auth server.
The swift auth server.
.
Homepage: https://swift.racklabs.com/trac
Homepage: https://launchpad.net/swift

42
debian/rules vendored
View File

@ -3,30 +3,23 @@
# Verbose mode
export DH_VERBOSE=1
DEB_PYTHON_SYSTEM=pysupport
PYTHON = "/usr/bin/python"
build:
dh build
clean:
dh_testdir
dh_testroot
$(PYTHON) setup.py clean --all
rm -rf $(CURDIR)/debian/swift
rm -f build-stamp install-stamp
dh_clean
dh clean
find . -name "*\.pyc" -delete
build: build-stamp
build-stamp:
dh_testdir
$(PYTHON) setup.py build
touch build-stamp
install: build-stamp
dh_testdir
dh_installdirs
install: build
dh install
mkdir -p $(CURDIR)/debian/swift/etc/swift
mkdir -p $(CURDIR)/debian/swift/usr/bin
# Copy files into binary package directories
dh_install --sourcedir=debian/swift
$(PYTHON) setup.py install --root $(CURDIR)/debian/swift
install -m 755 $(CURDIR)/bin/swift-init.py \
$(CURDIR)/debian/swift/usr/bin/swift-init
install -m 755 $(CURDIR)/bin/swift-ring-builder.py \
@ -106,9 +99,10 @@ install: build-stamp
install -m 755 $(CURDIR)/bin/swift-auth-recreate-accounts.py \
$(CURDIR)/debian/swift-auth/usr/bin/swift-auth-recreate-accounts
touch install-stamp
binary-arch:
binary-arch: install
dh binary-arch
binary-indep: install
dh_installinit --no-start
dh_installinit --no-start -pswift-container --init-script=swift-container-replicator
@ -120,15 +114,7 @@ binary-indep: install
dh_installinit --no-start -pswift-object --init-script=swift-object-updater
dh_installinit --no-start -pswift-object --init-script=swift-object-replicator
dh_installinit --no-start -pswift-container --init-script=swift-container-updater
dh_installcron
dh_installdocs
dh_installchangelogs
dh_compress
dh_fixperms
dh_gencontrol
dh_installdeb
dh_md5sums
dh_builddeb
dh binary-indep
binary: binary-arch binary-indep
.PHONY: build clean binary-indep binary-arch binary clean