Skip to content

Commit 4cdfbf3

Browse files
rsafonsecayadvr
authored andcommitted
Fixes problem with having to change the "-SNAPSHOT" string in debian/rules for releases, deb packaging was broken in master due to this in a merge with release version. Fixes some warnings generated by dpkg-buildpackage regarding upstream tarball an source versioning Reduces source tarball from 669MB to 183MB (it was including .git), now build is faster and takes up less space
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent cde6ef9 commit 4cdfbf3

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

‎debian/changelog‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
cloudstack (4.6.0-snapshot) unstable; urgency=low
1+
cloudstack (4.6.0-SNAPSHOT) unstable; urgency=low
22

3+
[ Hugo Trippaers ]
34
* Update the version to 4.6.0.snapshot
45

5-
-- Hugo Trippaers <hugo@apache.org> Thu, 3 Nov 2014 12:00:00 -0400
6+
[ Rafael da Fonseca ]
7+
* Switch to dpkg-source 3.0 (native) format
8+
9+
-- Rafael da Fonseca <rsafonseca@gmail.com> Fri, 22 May 2015 16:03:55 +0200
610

711
cloudstack (4.5.0-snapshot) unstable; urgency=low
812

‎debian/rules‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/usr/bin/make -f
22
# -*- makefile -*-
3-
4-
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
5-
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
6-
MVNADD := $(shell if echo '$(DEBVERS)' | grep -q snapshot; then echo -SNAPSHOT; fi )
3+
VERSION := $(shell mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v "\[")
74
PACKAGE = $(shell dh_listpackages|head -n 1|cut -d '-' -f 1)
85
SYSCONFDIR = "/etc"
96
DESTDIR = "debian/tmp"
@@ -41,8 +38,8 @@ override_dh_auto_install:
4138
mkdir $(DESTDIR)/var/log/$(PACKAGE)/agent
4239
mkdir $(DESTDIR)/usr/share/$(PACKAGE)-agent
4340
mkdir $(DESTDIR)/usr/share/$(PACKAGE)-agent/plugins
44-
install -D agent/target/cloud-agent-$(VERSION)$(MVNADD).jar $(DESTDIR)/usr/share/$(PACKAGE)-agent/lib/$(PACKAGE)-agent.jar
45-
install -D plugins/hypervisors/kvm/target/cloud-plugin-hypervisor-kvm-$(VERSION)$(MVNADD).jar $(DESTDIR)/usr/share/$(PACKAGE)-agent/lib/
41+
install -D agent/target/cloud-agent-$(VERSION).jar $(DESTDIR)/usr/share/$(PACKAGE)-agent/lib/$(PACKAGE)-agent.jar
42+
install -D plugins/hypervisors/kvm/target/cloud-plugin-hypervisor-kvm-$(VERSION).jar $(DESTDIR)/usr/share/$(PACKAGE)-agent/lib/
4643
install -D plugins/hypervisors/kvm/target/dependencies/* $(DESTDIR)/usr/share/$(PACKAGE)-agent/lib/
4744
install -D packaging/debian/init/cloud-agent $(DESTDIR)/$(SYSCONFDIR)/init.d/$(PACKAGE)-agent
4845
install -D agent/target/transformed/cloud-setup-agent $(DESTDIR)/usr/bin/cloudstack-setup-agent
@@ -69,7 +66,7 @@ override_dh_auto_install:
6966
mkdir $(DESTDIR)/var/lib/$(PACKAGE)/management
7067
mkdir $(DESTDIR)/var/lib/$(PACKAGE)/mnt
7168
cp -r client/target/utilities/scripts/db/* $(DESTDIR)/usr/share/$(PACKAGE)-management/setup/
72-
cp -r client/target/cloud-client-ui-$(VERSION)$(MVNADD)/* $(DESTDIR)/usr/share/$(PACKAGE)-management/webapps/client/
69+
cp -r client/target/cloud-client-ui-$(VERSION)/* $(DESTDIR)/usr/share/$(PACKAGE)-management/webapps/client/
7370
cp server/target/conf/* $(DESTDIR)/$(SYSCONFDIR)/$(PACKAGE)/server/
7471
cp client/target/conf/* $(DESTDIR)/$(SYSCONFDIR)/$(PACKAGE)/management/
7572

@@ -122,7 +119,7 @@ override_dh_auto_install:
122119
mkdir $(DESTDIR)/var/log/$(PACKAGE)/usage
123120
mkdir $(DESTDIR)/usr/share/$(PACKAGE)-usage
124121
mkdir $(DESTDIR)/usr/share/$(PACKAGE)-usage/plugins
125-
install -D usage/target/cloud-usage-$(VERSION)$(MVNADD).jar $(DESTDIR)/usr/share/$(PACKAGE)-usage/lib/$(PACKAGE)-usage.jar
122+
install -D usage/target/cloud-usage-$(VERSION).jar $(DESTDIR)/usr/share/$(PACKAGE)-usage/lib/$(PACKAGE)-usage.jar
126123
install -D usage/target/dependencies/* $(DESTDIR)/usr/share/$(PACKAGE)-usage/lib/
127124
cp usage/target/transformed/db.properties $(DESTDIR)/$(SYSCONFDIR)/$(PACKAGE)/usage/
128125
cp usage/target/transformed/log4j-cloud_usage.xml $(DESTDIR)/$(SYSCONFDIR)/$(PACKAGE)/usage/log4j-cloud.xml

‎debian/source/format‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (native)

0 commit comments

Comments
 (0)