More work on debian packaging

This commit is contained in:
James Cammarata
2013-06-24 01:16:00 -04:00
parent cbd64ee65d
commit 80afb2e08d
3 changed files with 9 additions and 6 deletions

1
.gitignore vendored
View File

@@ -5,6 +5,7 @@ awx/public/media
awx/public/static awx/public/static
env/* env/*
build build
deb-build
dist dist
htmlcov htmlcov
rpm-build rpm-build

View File

@@ -1,6 +1,7 @@
PYTHON=python PYTHON=python
SITELIB=$(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") SITELIB=$(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
RELEASE=awx-1.2b2 RELEASE=awx-1.2b2
VERSION=$(shell $(PYTHON) -c "from awx import __version__; print(__version__.split('-')[0])")
.PHONY: clean rebase push setup requirements requirements_pypi develop refresh \ .PHONY: clean rebase push setup requirements requirements_pypi develop refresh \
adduser syncdb migrate dbchange dbshell runserver celeryd test \ adduser syncdb migrate dbchange dbshell runserver celeryd test \
@@ -126,11 +127,13 @@ rpm: sdist
-ba packaging/rpm/awx.spec -ba packaging/rpm/awx.spec
deb: sdist deb: sdist
cp -r packaging/debian ./ @mkdir -p deb-build
chmod 755 debian/rules @cp dist/*.gz deb-build/
fakeroot debian/rules clean (cd deb-build && tar zxf awx-$(VERSION).tar.gz)
fakeroot dh_install (cd deb-build/awx-$(VERSION) && dh_make --single --yes -f ../awx-$(VERSION).tar.gz)
fakeroot debian/rules binary @rm -rf deb-build/awx-$(VERSION)/debian
@cp -a packaging/debian deb-build/awx-$(VERSION)/
(cd deb-build/awx-$(VERSION) && dpkg-buildpackage -nc -us -uc -b)
install: install:
$(PYTHON) setup.py install egg_info -b "" $(PYTHON) setup.py install egg_info -b ""

View File

@@ -1,5 +1,4 @@
NameVirtualHost *:80 NameVirtualHost *:80
WSGISocketPrefix run/wsgi
<VirtualHost _default_:80> <VirtualHost _default_:80>
ServerName localhost ServerName localhost