Skip to content

Commit 2f135be

Browse files
author
Noa Resare
committed
CLOUDSTACK-1415: Debian & Ubuntu packaging work
Some concepts included: * the replace.properties location used by maven is parameterized to allow for a build that does not modify the currently git tracked files * package naming is updated along the lines of what was discussed on the -dev mailing list and between committers at the Build a Cloud Day in Belgi * package version pattern is updated (since we redo all package names, we might as well drop the epoch)
1 parent 23e232f commit 2f135be

39 files changed

Lines changed: 830 additions & 655 deletions

agent/pom.xml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<filterreader
8484
classname="org.apache.tools.ant.filters.ReplaceTokens">
8585
<param type="propertiesfile"
86-
value="${basedir}/../build/replace.properties" />
86+
value="${cs.replace.properties}" />
8787
</filterreader>
8888
</filterchain>
8989
</copy>
@@ -97,7 +97,7 @@
9797
<filterreader
9898
classname="org.apache.tools.ant.filters.ReplaceTokens">
9999
<param type="propertiesfile"
100-
value="${basedir}/../build/replace.properties" />
100+
value="${cs.replace.properties}" />
101101
</filterreader>
102102
</filterchain>
103103
</copy>
@@ -106,6 +106,24 @@
106106
</execution>
107107
</executions>
108108
</plugin>
109+
<plugin>
110+
<groupId>org.apache.maven.plugins</groupId>
111+
<artifactId>maven-dependency-plugin</artifactId>
112+
<version>2.5.1</version>
113+
<executions>
114+
<execution>
115+
<id>copy-dependencies</id>
116+
<phase>package</phase>
117+
<goals>
118+
<goal>copy-dependencies</goal>
119+
</goals>
120+
<configuration>
121+
<outputDirectory>${project.build.directory}/dependencies</outputDirectory>
122+
<includeScope>runtime</includeScope>
123+
</configuration>
124+
</execution>
125+
</executions>
126+
</plugin>
109127
</plugins>
110128
</build>
111129
</project>

awsapi/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@
354354
<filterreader
355355
classname="org.apache.tools.ant.filters.ReplaceTokens">
356356
<param type="propertiesfile"
357-
value="${basedir}/../build/replace.properties" />
357+
value="${cs.replace.properties}" />
358358
</filterreader>
359359
</filterchain>
360360
</copy>

client/pom.xml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
<filterreader
309309
classname="org.apache.tools.ant.filters.ReplaceTokens">
310310
<param type="propertiesfile"
311-
value="${basedir}/../build/replace.properties" />
311+
value="${cs.replace.properties}" />
312312
</filterreader>
313313
</filterchain>
314314
</copy>
@@ -319,7 +319,7 @@
319319
<globmapper from="*.in" to="*" />
320320
<filterchain>
321321
<filterreader classname="org.apache.tools.ant.filters.ReplaceTokens">
322-
<param type="propertiesfile" value="${basedir}/../build/replace.properties" />
322+
<param type="propertiesfile" value="${cs.replace.properties}" />
323323
</filterreader>
324324
</filterchain>
325325
</copy>
@@ -330,7 +330,7 @@
330330
<globmapper from="*.in" to="*" />
331331
<filterchain>
332332
<filterreader classname="org.apache.tools.ant.filters.ReplaceTokens">
333-
<param type="propertiesfile" value="${basedir}/../build/replace.properties" />
333+
<param type="propertiesfile" value="${cs.replace.properties}" />
334334
</filterreader>
335335
</filterchain>
336336
</copy>
@@ -341,7 +341,7 @@
341341
<globmapper from="*.in" to="*" />
342342
<filterchain>
343343
<filterreader classname="org.apache.tools.ant.filters.ReplaceTokens">
344-
<param type="propertiesfile" value="${basedir}/../build/replace.properties" />
344+
<param type="propertiesfile" value="${cs.replace.properties}" />
345345
</filterreader>
346346
</filterchain>
347347
</copy>
@@ -351,10 +351,26 @@
351351
</fileset>
352352
<filterchain>
353353
<filterreader classname="org.apache.tools.ant.filters.ReplaceTokens">
354-
<param type="propertiesfile" value="${basedir}/../build/replace.properties" />
354+
<param type="propertiesfile" value="${cs.replace.properties}" />
355355
</filterreader>
356356
</filterchain>
357357
</copy>
358+
<copy overwrite="true" todir="${basedir}/target/conf">
359+
<fileset dir="${basedir}/tomcatconf">
360+
<include name="*.in" />
361+
</fileset>
362+
<globmapper from="*.in" to="*" />
363+
<filterchain>
364+
<filterreader classname="org.apache.tools.ant.filters.ReplaceTokens">
365+
<param type="propertiesfile" value="${cs.replace.properties}" />
366+
</filterreader>
367+
</filterchain>
368+
</copy>
369+
<copy overwrite="true" todir="${basedir}/target/conf">
370+
<fileset dir="${basedir}/tomcatconf">
371+
<exclude name="*.in" />
372+
</fileset>
373+
</copy>
358374
</target>
359375
</configuration>
360376
</execution>

client/tomcatconf/classpath.conf.in

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,11 @@
1616
# specific language governing permissions and limitations
1717
# under the License.
1818

19-
SYSTEMJARS="@SYSTEMJARS@"
20-
SCP=$(build-classpath $SYSTEMJARS 2>/dev/null) ; if [ $? != 0 ] ; then export SCP="@SYSTEMCLASSPATH@" ; fi
21-
MCP="@MSCLASSPATH@"
22-
DCP="@DEPSCLASSPATH@"
23-
CLASSPATH=$SCP:$DCP:$MCP:@MSCONF@:@SETUPDATADIR@
24-
for jarfile in "@PREMIUMJAVADIR@"/* ; do
25-
if [ ! -e "$jarfile" ] ; then continue ; fi
26-
CLASSPATH=$jarfile:$CLASSPATH
27-
done
28-
for plugin in "@PLUGINJAVADIR@"/* ; do
29-
if [ ! -e "$plugin" ] ; then continue ; fi
30-
CLASSPATH=$plugin:$CLASSPATH
31-
done
32-
for vendorconf in "@MSCONF@"/vendor/* ; do
33-
if [ ! -d "$vendorconf" ] ; then continue ; fi
34-
CLASSPATH=$vendorconf:$CLASSPATH
19+
# We use WEB-INF/lib in the webapp for including things into
20+
# the classpath nowdays
21+
22+
for jar in /usr/share/tomcat6/lib/*.jar; do
23+
CLASSPATH=$jar:$CLASSPATH
3524
done
25+
CLASSPATH=${CLASSPATH}/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/mysql-connector-java-5.1.21.jar
3626
export CLASSPATH
37-
PATH=/sbin:/usr/sbin:$PATH
38-
export PATH

debian/README

Lines changed: 0 additions & 6 deletions
This file was deleted.

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
cloudstack (4.1.0-incubating-0.0.snapshot) unstable; urgency=low
2+
3+
* Incorporate incubating into version, remove epoch
4+
5+
-- Noa Resare <noa@spotify.com> Tue, 05 Feb 2013 18:05:28 +0000
6+
17
cloud (1:4.0.0-1) unstable; urgency=low
28

39
* Bumping the version to 4.0.0

debian/cloud-agent.config

Lines changed: 0 additions & 17 deletions
This file was deleted.

debian/cloud-cli.install

Lines changed: 0 additions & 21 deletions
This file was deleted.

debian/cloud-client-ui.install

Lines changed: 0 additions & 19 deletions
This file was deleted.

debian/cloud-client.install

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)