Make separate i386 and amd64 packages, this fixes the arch-independent-package-contains-binary-or-object lintian error
This commit is contained in:
15
build.xml
15
build.xml
@ -933,6 +933,21 @@
|
|||||||
<ant dir="apps/jetty" target="ensureJettylib" />
|
<ant dir="apps/jetty" target="ensureJettylib" />
|
||||||
<exec executable="dpkg-buildpackage" failifexecutionfails="true">
|
<exec executable="dpkg-buildpackage" failifexecutionfails="true">
|
||||||
<arg value="-I_MTN" />
|
<arg value="-I_MTN" />
|
||||||
|
<arg value="-ai386" />
|
||||||
|
</exec>
|
||||||
|
<!-- rather than doing a complete new build, recreate debian/tmp by calling the "build" target in debian/rules -->
|
||||||
|
<delete dir="debian/tmp" />
|
||||||
|
<exec executable="dpkg-buildpackage" failifexecutionfails="true">
|
||||||
|
<arg value="-I_MTN" />
|
||||||
|
<arg value="-Tbuild" />
|
||||||
|
<arg value="-aamd64" />
|
||||||
|
<env key="MAKEFLAGS" value="-B" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="dpkg-buildpackage" failifexecutionfails="true">
|
||||||
|
<arg value="-I_MTN" />
|
||||||
|
<!-- don't clean so the previous package isn't deleted -->
|
||||||
|
<arg value="-nc" />
|
||||||
|
<arg value="-aamd64" />
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
<target name="debian-binary">
|
<target name="debian-binary">
|
||||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -6,7 +6,7 @@ Homepage: http://www.i2p2.de/
|
|||||||
Build-Depends: sun-java6-jdk | openjdk-6-jdk | default-jdk | java-sdk, ant, fakeroot, gettext
|
Build-Depends: sun-java6-jdk | openjdk-6-jdk | default-jdk | java-sdk, ant, fakeroot, gettext
|
||||||
|
|
||||||
Package: i2p
|
Package: i2p
|
||||||
Architecture: all
|
Architecture: i386 amd64
|
||||||
Section: net
|
Section: net
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Depends: libc6, sun-java6-jre | default-jre | java-runtime
|
Depends: libc6, sun-java6-jre | default-jre | java-runtime
|
||||||
|
28
debian/rules
vendored
28
debian/rules
vendored
@ -3,30 +3,50 @@
|
|||||||
VERSION=`grep String\ VERSION core/java/src/net/i2p/CoreVersion.java | cut -d\" -f2`
|
VERSION=`grep String\ VERSION core/java/src/net/i2p/CoreVersion.java | cut -d\" -f2`
|
||||||
SOURCEURL=http://mirror.i2p2.de/i2psource_${VERSION}.tar.bz2
|
SOURCEURL=http://mirror.i2p2.de/i2psource_${VERSION}.tar.bz2
|
||||||
|
|
||||||
|
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
||||||
|
ifeq ($(DEB_HOST_ARCH),i386)
|
||||||
|
wrapperpath = installer/lib/wrapper/linux
|
||||||
|
else ifeq ($(DEB_HOST_ARCH),amd64)
|
||||||
|
wrapperpath = installer/lib/wrapper/linux64
|
||||||
|
# other architectures could be supported by using runplain.sh
|
||||||
|
endif
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
echo Target Architecture is $(DEB_HOST_ARCH)
|
||||||
|
ifndef wrapperpath
|
||||||
|
@echo "Architecture not supported: $(DEB_HOST_ARCH)"
|
||||||
|
exit 1
|
||||||
|
endif
|
||||||
ant preppkg-linux-only
|
ant preppkg-linux-only
|
||||||
mkdir -p debian/tmp/usr/lib
|
mkdir -p debian/tmp/usr/lib
|
||||||
mkdir -p debian/tmp/etc/init.d
|
mkdir -p debian/tmp/etc/init.d
|
||||||
cp -a debian/scripts/init debian/tmp/etc/init.d/i2p
|
cp -a debian/scripts/init debian/tmp/etc/init.d/i2p
|
||||||
cp -a pkg-temp debian/tmp/usr/lib/i2p
|
cp -a pkg-temp debian/tmp/usr/lib/i2p
|
||||||
chmod +x debian/tmp/usr/lib/i2p/postinstall.sh
|
|
||||||
sed 's|$$INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/wrapper.config > debian/tmp/usr/lib/i2p/a
|
sed 's|$$INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/wrapper.config > debian/tmp/usr/lib/i2p/a
|
||||||
sed 's|$$SYSTEM_java_io_tmpdir|/tmp|g' debian/tmp/usr/lib/i2p/a > debian/tmp/usr/lib/i2p/wrapper.config
|
sed 's|$$SYSTEM_java_io_tmpdir|/tmp|g' debian/tmp/usr/lib/i2p/a > debian/tmp/usr/lib/i2p/wrapper.config
|
||||||
mkdir -p debian/tmp/usr/bin
|
mkdir -p debian/tmp/usr/bin
|
||||||
sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/eepget > debian/tmp/usr/lib/i2p/a
|
sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/eepget > debian/tmp/usr/lib/i2p/a
|
||||||
mv debian/tmp/usr/lib/i2p/a debian/tmp/usr/lib/i2p/eepget
|
mv debian/tmp/usr/lib/i2p/a debian/tmp/usr/lib/i2p/eepget
|
||||||
ln -s /usr/lib/i2p/eepget debian/tmp/usr/bin/eepget
|
ln -s /usr/lib/i2p/eepget debian/tmp/usr/bin/eepget
|
||||||
|
chmod +x debian/tmp/usr/lib/i2p/eepget
|
||||||
sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/runplain.sh > debian/tmp/usr/lib/i2p/a
|
sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/runplain.sh > debian/tmp/usr/lib/i2p/a
|
||||||
sed 's|%SYSTEM_java_io_tmpdir|/tmp|g' debian/tmp/usr/lib/i2p/a > debian/tmp/usr/lib/i2p/runplain.sh
|
sed 's|%SYSTEM_java_io_tmpdir|/tmp|g' debian/tmp/usr/lib/i2p/a > debian/tmp/usr/lib/i2p/runplain.sh
|
||||||
sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/i2prouter > debian/tmp/usr/lib/i2p/a
|
sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/i2prouter > debian/tmp/usr/lib/i2p/a
|
||||||
sed 's|%SYSTEM_java_io_tmpdir|/tmp|g' debian/tmp/usr/lib/i2p/a > debian/tmp/usr/lib/i2p/i2prouter
|
sed 's|%SYSTEM_java_io_tmpdir|/tmp|g' debian/tmp/usr/lib/i2p/a > debian/tmp/usr/lib/i2p/i2prouter
|
||||||
ln -s /usr/lib/i2p/i2prouter debian/tmp/usr/bin/i2prouter
|
ln -s /usr/lib/i2p/i2prouter debian/tmp/usr/bin/i2prouter
|
||||||
|
chmod +x debian/tmp/usr/lib/i2p/i2prouter
|
||||||
rm debian/tmp/usr/lib/i2p/a
|
rm debian/tmp/usr/lib/i2p/a
|
||||||
touch debian/build
|
touch debian/build
|
||||||
mkdir -p debian/tmp/usr/share/doc/i2p
|
mkdir -p debian/tmp/usr/share/doc/i2p
|
||||||
|
|
||||||
|
@# copy wrapper files
|
||||||
|
cp ${wrapperpath}/libwrapper.so debian/tmp/usr/lib/i2p/lib/
|
||||||
|
cp ${wrapperpath}/wrapper.jar debian/tmp/usr/lib/i2p/lib/
|
||||||
|
cp ${wrapperpath}/i2psvc debian/tmp/usr/lib/i2p/
|
||||||
|
chmod +x debian/tmp/usr/lib/i2p/i2psvc
|
||||||
|
|
||||||
# Create the Debian copyright file, move the licenses dir,
|
@# Create the Debian copyright file, move the licenses dir,
|
||||||
# and delete all license files that are already in /usr/share/common-licenses/
|
@# and delete all license files that are already in /usr/share/common-licenses/
|
||||||
cat debian/copyright.part1 LICENSE.txt > debian/tmp/usr/share/doc/i2p/copyright
|
cat debian/copyright.part1 LICENSE.txt > debian/tmp/usr/share/doc/i2p/copyright
|
||||||
mv debian/tmp/usr/lib/i2p/licenses debian/tmp/usr/share/doc/i2p
|
mv debian/tmp/usr/lib/i2p/licenses debian/tmp/usr/share/doc/i2p
|
||||||
rm debian/tmp/usr/lib/i2p/LICENSE.txt
|
rm debian/tmp/usr/lib/i2p/LICENSE.txt
|
||||||
@ -34,7 +54,7 @@ build:
|
|||||||
rm debian/tmp/usr/share/doc/i2p/licenses/LICENSE-GPLv2.txt
|
rm debian/tmp/usr/share/doc/i2p/licenses/LICENSE-GPLv2.txt
|
||||||
rm debian/tmp/usr/share/doc/i2p/licenses/LICENSE-LGPLv2.1.txt
|
rm debian/tmp/usr/share/doc/i2p/licenses/LICENSE-LGPLv2.1.txt
|
||||||
|
|
||||||
# changelog
|
@# changelog
|
||||||
gzip -9c history.txt > debian/tmp/usr/share/doc/i2p/changelog.gz
|
gzip -9c history.txt > debian/tmp/usr/share/doc/i2p/changelog.gz
|
||||||
gzip -9c debian/changelog > debian/tmp/usr/share/doc/i2p/changelog.Debian.gz
|
gzip -9c debian/changelog > debian/tmp/usr/share/doc/i2p/changelog.Debian.gz
|
||||||
|
|
||||||
|
7
debian/scripts/postinst
vendored
7
debian/scripts/postinst
vendored
@ -10,11 +10,4 @@ chown $I2PUSER:$I2PUSER $SVCHOME
|
|||||||
|
|
||||||
update-rc.d i2p defaults
|
update-rc.d i2p defaults
|
||||||
|
|
||||||
cd $I2P
|
|
||||||
su $I2PUSER ./postinstall.sh
|
|
||||||
|
|
||||||
chmod 755 /usr/lib/i2p/eepget
|
|
||||||
chmod 755 /usr/lib/i2p/i2prouter
|
|
||||||
chmod 755 /usr/lib/i2p/i2psvc
|
|
||||||
|
|
||||||
invoke-rc.d i2p start
|
invoke-rc.d i2p start
|
||||||
|
5
debian/scripts/prerm
vendored
5
debian/scripts/prerm
vendored
@ -7,10 +7,7 @@ rm -f /tmp/wrapper.log /tmp/wrapper.log.1 /tmp/wrapper.log.2 /tmp/i2p.pid /tmp/r
|
|||||||
# /etc/rc*.d/*i2p files
|
# /etc/rc*.d/*i2p files
|
||||||
update-rc.d -f i2p remove
|
update-rc.d -f i2p remove
|
||||||
|
|
||||||
# dpkg doesn't know about these files, created by postinstall.sh
|
# dpkg doesn't know about these files, they were copied out of jbigi.jar by the router
|
||||||
I2P=/usr/lib/i2p
|
|
||||||
rm -f $I2P/i2psvc $I2P/lib/libwrapper.so $I2P/lib/wrapper.jar
|
|
||||||
# copied out of jbigi.jar by the router
|
|
||||||
rm -f $I2P/libjbigi.so $I2P/libjcpuid.so
|
rm -f $I2P/libjbigi.so $I2P/libjcpuid.so
|
||||||
|
|
||||||
# the home directory for the i2p daemon
|
# the home directory for the i2p daemon
|
||||||
|
Reference in New Issue
Block a user