mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
switch to ant target to create cloud-scripts.tgz, as there is assumption that the owner of files in this tgz is root.
This commit is contained in:
parent
d1af01fbc8
commit
4c35fae49e
@ -527,8 +527,6 @@
|
|||||||
</tar>
|
</tar>
|
||||||
<copy file="${base.dir}/patches/systemvm/debian/config/root/.ssh/authorized_keys" todir="${dist.dir}/"/>
|
<copy file="${base.dir}/patches/systemvm/debian/config/root/.ssh/authorized_keys" todir="${dist.dir}/"/>
|
||||||
<gzip destfile="${dist.dir}/cloud-scripts.tgz" src="${dist.dir}/patch.tar"/>
|
<gzip destfile="${dist.dir}/cloud-scripts.tgz" src="${dist.dir}/patch.tar"/>
|
||||||
<delete file="${dist.dir}/patch.tar"/>
|
|
||||||
<delete dir="${dist.dir}/build-patch"/>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="help">
|
<target name="help">
|
||||||
|
|||||||
@ -143,7 +143,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<target>
|
<target>
|
||||||
<copy overwrite="true" file="../patches/target/cloud-scripts.tar.gz" tofile="${basedir}/dist/cloud-scripts.tgz"/>
|
<copy overwrite="true" file="../patches/target/cloud-scripts.tgz" tofile="${basedir}/dist/cloud-scripts.tgz"/>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
|||||||
@ -1,22 +1,15 @@
|
|||||||
<!--
|
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
license agreements. See the NOTICE file distributed with this work for additional
|
||||||
or more contributor license agreements. See the NOTICE file
|
information regarding copyright ownership. The ASF licenses this file to
|
||||||
distributed with this work for additional information
|
you under the Apache License, Version 2.0 (the "License"); you may not use
|
||||||
regarding copyright ownership. The ASF licenses this file
|
this file except in compliance with the License. You may obtain a copy of
|
||||||
to you under the Apache License, Version 2.0 (the
|
the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
|
||||||
"License"); you may not use this file except in compliance
|
by applicable law or agreed to in writing, software distributed under the
|
||||||
with the License. You may obtain a copy of the License at
|
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
|
||||||
|
OF ANY KIND, either express or implied. See the License for the specific
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
language governing permissions and limitations under the License. -->
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
Unless required by applicable law or agreed to in writing,
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
software distributed under the License is distributed on an
|
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
KIND, either express or implied. See the License for the
|
|
||||||
specific language governing permissions and limitations
|
|
||||||
under the License.
|
|
||||||
-->
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>cloud-patches</artifactId>
|
<artifactId>cloud-patches</artifactId>
|
||||||
<name>Apache CloudStack SystemVM Patches</name>
|
<name>Apache CloudStack SystemVM Patches</name>
|
||||||
@ -67,22 +60,52 @@
|
|||||||
<defaultGoal>install</defaultGoal>
|
<defaultGoal>install</defaultGoal>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
<version>2.3</version>
|
<version>1.7</version>
|
||||||
<configuration>
|
|
||||||
<finalName>cloud-scripts</finalName>
|
|
||||||
<appendAssemblyId>false</appendAssemblyId>
|
|
||||||
<descriptors>
|
|
||||||
<descriptor>cloudpatch-descriptor.xml</descriptor>
|
|
||||||
</descriptors>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>make-cloud-scripts</id>
|
<id>build-cloud-scripts</id>
|
||||||
<phase>package</phase>
|
<phase>install</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>single</goal>
|
<goal>run</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<mkdir dir="${basedir}/target/build-patch" />
|
||||||
|
<mkdir dir="${basedir}/target/build-patch/usr/sbin" />
|
||||||
|
<copy overwrite="true" todir="${basedir}/target/build-patch">
|
||||||
|
<fileset dir="${basedir}/systemvm/debian/config/">
|
||||||
|
<include name="**/*" />
|
||||||
|
</fileset>
|
||||||
|
<fileset dir="${basedir}/systemvm/debian/vpn/">
|
||||||
|
<include name="**/*" />
|
||||||
|
</fileset>
|
||||||
|
<fileset dir="${basedir}/systemvm/debian/xe/">
|
||||||
|
<include name="**/*" />
|
||||||
|
<exclude name="**/xe-*" />
|
||||||
|
<exclude name="**/xen-*" />
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
<copy overwrite="true" todir="${basedir}/target/build-patch/usr/sbin/">
|
||||||
|
<fileset dir="${basedir}/systemvm/debian/xe/">
|
||||||
|
<include name="**/xe-*" />
|
||||||
|
<include name="**/xen-*" />
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
<tar destfile="${basedir}/target/patch.tar">
|
||||||
|
<tarfileset dir="${basedir}/target/build-patch/"
|
||||||
|
filemode="755">
|
||||||
|
<include name="**/*" />
|
||||||
|
<exclude name="**/.classpath" />
|
||||||
|
<exclude name="**/.project" />
|
||||||
|
<exclude name="**/wscript_build" />
|
||||||
|
</tarfileset>
|
||||||
|
</tar>
|
||||||
|
<gzip destfile="${basedir}/target/cloud-scripts.tgz" src="${basedir}/target/patch.tar" />
|
||||||
|
<delete dir="${basedir}/target/build-patch" />
|
||||||
|
<delete file="${basedir}/target/patch.tar" />
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user