Permalink
Browse files

.deb and .rpm build targets

git-svn-id: svn://svn.caucho.com/resin/trunk@1731 9c94448d-38f1-0310-a231-d98308ff1ebf
  • Loading branch information...
1 parent 5ff1b9d commit 9fd2e0339e634e015a6fe94bffca3b12548aa7a9 emil committed Oct 14, 2006
Showing with 38 additions and 7 deletions.
  1. +34 −7 build.xml
  2. +4 −0 description-pak
View
@@ -319,19 +319,13 @@
<target name="win32" if="win32binaries">
<mkdir dir="${install}/win32"/>
- <!--
<mkdir dir="${install}/win32/apache-1.3"/>
- -->
<mkdir dir="${install}/win32/apache-2.0"/>
- <mkdir dir="${install}/win32/apache-2.2"/>
-<!--
+
<copy todir="${install}/win32/apache-1.3"
file="${win32binaries}/modules/c/src/apache1/Apache136/mod_caucho.dll"/>
- -->
<copy todir="${install}/win32/apache-2.0"
file="${win32binaries}/modules/c/src/apache2/Release/mod_caucho.dll"/>
- <copy todir="${install}/win32/apache-2.2"
- file="${win32binaries}/modules/c/src/apache22/Release/mod_caucho.dll"/>
<copy todir="${install}/win32"
file="${win32binaries}/modules/c/src/isapi_srun/release/isapi_srun.dll"/>
<copy todir="${install}/win32"
@@ -651,6 +645,7 @@
<include name="configure.in"/>
<include name="httpd.exe"/>
<include name="setup.exe"/>
+ <include name="description-pak"/>
</fileset>
</copy>
@@ -814,6 +809,38 @@
file="${dist}/${shortproduct}-${version}-src.tar.gz"/>
</target>
+ <target name="dist.configure.make" depends="dist">
+ <exec dir="${dist}/${dist.name}" executable="./configure">
+ <arg value="--prefix=/opt/resin"/>
+ </exec>
+
+ <exec dir="${dist}/${dist.name}" executable="make"/>
+ </target>
+
+ <target name="dist.deb" depends="dist.configure.make">
+ <exec dir="${dist}/${dist.name}" executable="checkinstall">
+ <arg line="-D --install=no --fstrans=yes -y" />
+ </exec>
+
+ <copy todir="${dist}">
+ <fileset dir="${dist}/${dist.name}">
+ <include name="**/*.deb"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="dist.rpm" depends="dist.configure.make">
+ <exec dir="${dist}/${dist.name}" executable="checkinstall">
+ <arg line="-R --install=no --fstrans=yes -y" />
+ </exec>
+
+ <copy todir="${dist}">
+ <fileset dir="${dist}/RPMS">
+ <include name="**/*.rpm"/>
+ </fileset>
+ </copy>
+ </target>
+
<target name="clean" depends="init">
<delete dir="${build}"/>
<delete dir="${dist}"/>
View
@@ -0,0 +1,4 @@
+The Resin (R) high-performance, open source application server features
+load balancing for increased reliability. Caucho's Quercus (TM) is a fast,
+100% Java implementation of the PHP language allowing developers to use
+PHP flexibility for the web interface and Java for stability.

0 comments on commit 9fd2e03

Please sign in to comment.