forked from I2P_Developers/i2p.i2p
Debian packaging fixes
This commit is contained in:
70
build.xml
70
build.xml
@@ -45,7 +45,18 @@
|
||||
<echo message=" pkg-portable-win32: build a minimum portable version for win32" />
|
||||
</target>
|
||||
<target name="debianhowto">
|
||||
<echo message="To build debian packages, you must run dpkg-buildpackage as root in the source directory. It will then run ant for you. dpkg-buildpackage is found in the 'dpkg-dev' package. Also it should work fine to use the 'fakeroot' package with dpkg-buildpackage, if you don't want to run as root. Please read 'man dpkg-buildpackage' before building any packages yourself." />
|
||||
<echo message="To build debian packages, you must make sure that you have" />
|
||||
<echo message="the necessary build-dependencies installed." />
|
||||
<echo message="The packages required to build can be found in the file "/>
|
||||
<echo message=""debian/control" in both the Build-Depends and Build-Depends-Indep fields."/>
|
||||
<echo message="In addition to those packages, be sure to install "fakeroot","/>
|
||||
<echo message=""quilt" and "build-essential"!" />
|
||||
<echo message="" />
|
||||
<echo message="The following command will install all dependencies for you:" />
|
||||
<echo message="apt-get install junit debhelper ant debconf default-jdk libgmp3-dev po-debconf fakeroot build-essential quilt" />
|
||||
<echo message=" " />
|
||||
<echo message="Once the dependencies are installed, run "ant debian""/>
|
||||
<echo message="to patch the source and build the packages." />
|
||||
</target>
|
||||
<target name="dist" depends="pkg, javadoc">
|
||||
</target>
|
||||
@@ -1030,38 +1041,51 @@
|
||||
<echo message="... and mtn cert t:i2p-${release.number} branch i2p.i2p.release" />
|
||||
</target>
|
||||
|
||||
<target name="debian" depends="distclean, debian-source, debian-binary" />
|
||||
<target name="debian" depends="debian-clean, debian-binary" />
|
||||
|
||||
<target name="debian-binary" depends="buildProperties" >
|
||||
<echo message="Did you update the version in these files?" />
|
||||
<exec executable="ls" failonerror="true">
|
||||
<arg value="-l" />
|
||||
<arg value="debian/changelog" />
|
||||
</exec>
|
||||
<target name="debian-binary" >
|
||||
<echo message="Did you update the version using dch -i?" />
|
||||
<echo message=" " />
|
||||
<echo message="If the changelog was not updated with dch -i, press" />
|
||||
<echo message="press CTRL+C to abort building this Debian package." />
|
||||
<echo message="" />
|
||||
<echo message="Pausing build for ten seconds to give enough time to read this notice." />
|
||||
<exec executable="sleep" failonerror="true">
|
||||
<arg value="10" />
|
||||
</exec>
|
||||
<echo message="====================" />
|
||||
<!-- bundle the 20MB jetty 5 lib since there probably isn't a deb for it -->
|
||||
<!-- bundle the jetty 5 lib since there isn't a deb for it -->
|
||||
<ant dir="apps/jetty" target="ensureJettylib" />
|
||||
|
||||
<exec dir="debian" executable="./buildpackage.sh" failonerror="true">
|
||||
<arg value="i386" />
|
||||
</exec>
|
||||
<exec dir="debian" executable="./buildpackage.sh" failonerror="true">
|
||||
<arg value="amd64" />
|
||||
<exec executable="fakeroot" failonerror="true">
|
||||
<arg value="debian/rules" />
|
||||
<arg value="patch" />
|
||||
<arg value="binary" />
|
||||
<arg value="clean" />
|
||||
</exec>
|
||||
<delete dir=".pc" />
|
||||
</target>
|
||||
<target name="debian-source" depends="buildProperties" >
|
||||
<!-- bundle the 20MB jetty 5 lib since there probably isn't a deb for it -->
|
||||
<ant dir="apps/jetty" target="ensureJettylib" />
|
||||
<echo message="Did you update the version in these files?" />
|
||||
<exec executable="ls" failonerror="true">
|
||||
<arg value="-l" />
|
||||
<arg value="debian/changelog" />
|
||||
<target name="debian-clean" depends="buildProperties" >
|
||||
<exec executable="fakeroot" failonerror="true">
|
||||
<arg value="debian/rules" />
|
||||
<arg value="clean" />
|
||||
</exec>
|
||||
<delete dir="./.pc" />
|
||||
</target>
|
||||
<target name="debian-patch" depends="buildProperties" >
|
||||
<exec executable="quilt" failonerror="true">
|
||||
<arg value="-a" />
|
||||
<arg value="push" />
|
||||
</exec>
|
||||
<echo message="====================" />
|
||||
<exec dir="debian" executable="./buildpackage.sh" failonerror="true">
|
||||
<arg value="source" />
|
||||
</target>
|
||||
<target name="debian-unpatch" depends="buildProperties">
|
||||
<exec executable="quilt" failonerror="false">
|
||||
<arg value="-a" />
|
||||
<arg value="pop" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="debianrepo" depends="debian">
|
||||
<exec dir="debian" executable="./makerepo.sh" failonerror="true"/>
|
||||
</target>
|
||||
|
Reference in New Issue
Block a user