debian: fix build of cloudstack-awsapi package

The debian package cloudstack-awsapi is being built empty. This patch
adds the required files to the package and a symlink for webapps/awsapi so the awsapi can
be found by tomcat, without change in configuration.
This commit is contained in:
Emerson Pinter 2013-05-15 09:30:12 -03:00 committed by Chip Childers
parent 1a83bf4b44
commit 08a3023824
2 changed files with 7 additions and 1 deletions

View File

@ -15,4 +15,8 @@
# specific language governing permissions and limitations
# under the License.
/var/log/cloudstack/awsapi
/var/log/cloudstack/awsapi
/usr/share/cloudstack-bridge/*
/usr/bin/cloudstack-aws-api-register
/usr/bin/cloudstack-setup-bridge
/usr/share/cloudstack-management/webapps7080/awsapi

2
debian/rules vendored
View File

@ -80,6 +80,7 @@ install:
mkdir -p $(DESTDIR)/$(SYSCONFDIR)/sudoers.d/
mkdir -p $(DESTDIR)/usr/share/$(PACKAGE)-management
mkdir -p $(DESTDIR)/usr/share/$(PACKAGE)-management/webapps/client
mkdir -p $(DESTDIR)/usr/share/$(PACKAGE)-management/webapps7080
mkdir $(DESTDIR)/usr/share/$(PACKAGE)-management/setup
mkdir $(DESTDIR)/var/log/$(PACKAGE)/management
mkdir $(DESTDIR)/var/cache/$(PACKAGE)/management
@ -153,6 +154,7 @@ install:
mkdir $(DESTDIR)/usr/share/$(PACKAGE)-bridge
mkdir -p $(DESTDIR)/usr/share/$(PACKAGE)-bridge/webapps/awsapi
mkdir $(DESTDIR)/usr/share/$(PACKAGE)-bridge/setup
ln -s /usr/share/$(PACKAGE)-bridge/webapps/awsapi $(DESTDIR)/usr/share/$(PACKAGE)-management/webapps7080/awsapi
cp -r awsapi/target/cloud-awsapi-$(VERSION)-SNAPSHOT/* $(DESTDIR)/usr/share/$(PACKAGE)-bridge/webapps/awsapi
install -D awsapi-setup/setup/cloud-setup-bridge $(DESTDIR)/usr/bin/cloudstack-setup-bridge
install -D awsapi-setup/setup/cloudstack-aws-api-register $(DESTDIR)/usr/bin/cloudstack-aws-api-register