forked from I2P_Developers/i2p.i2p
Debian: Add files for jessie with libtomcat8-java
Fix missing glassfish dependency in trusty/control
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
If you have libjetty9-java from jessie-backports: use the stretch files in ../../debian.
|
If you have libjetty9-java from jessie-backports: use the stretch files in ../../debian.
|
||||||
|
|
||||||
If you do not have libjetty9-java from jessie-backports: use the trusty files in ../trusty.
|
If you do not have libjetty9-java from jessie-backports: use the trusty files in ../trusty,
|
||||||
|
or use the files here to depend on libtomcat8-java.
|
||||||
|
109
debian-alt/jessie/control
Normal file
109
debian-alt/jessie/control
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
Source: i2p
|
||||||
|
Maintainer: zzz <zzz@i2pmail.org>
|
||||||
|
Section: net
|
||||||
|
Standards-Version: 3.9.6
|
||||||
|
Priority: optional
|
||||||
|
Bugs: mailto:zzz@i2pmail.org
|
||||||
|
Homepage: https://geti2p.net/
|
||||||
|
Build-Depends: debhelper (>= 7.0.50~)
|
||||||
|
,ant (>= 1.8)
|
||||||
|
,debconf
|
||||||
|
,openjdk-7-jdk
|
||||||
|
# Ant requires java 6 tools.jar:
|
||||||
|
# Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar
|
||||||
|
,openjdk-6-jdk
|
||||||
|
,libtomcat8-java
|
||||||
|
,dh-apparmor
|
||||||
|
,gettext
|
||||||
|
,libgetopt-java
|
||||||
|
,libgmp-dev (>= 2:5.0.2)
|
||||||
|
,libservice-wrapper-java
|
||||||
|
,hardening-wrapper
|
||||||
|
,po-debconf
|
||||||
|
|
||||||
|
Package: i2p
|
||||||
|
Architecture: all
|
||||||
|
Section: net
|
||||||
|
Priority: optional
|
||||||
|
Depends: ${java:Depends}, ${shlibs:Depends},
|
||||||
|
adduser,
|
||||||
|
debconf,
|
||||||
|
i2p-router (>= 0.8.6-5),
|
||||||
|
libjbigi-jni,
|
||||||
|
lsb-base,
|
||||||
|
service-wrapper
|
||||||
|
Description: I2P anonymous network
|
||||||
|
I2P is an anonymizing network, offering a simple layer that identity-sensitive
|
||||||
|
applications can use to securely communicate. All data is wrapped with several
|
||||||
|
layers of encryption, and the network is both distributed and dynamic, with no
|
||||||
|
trusted parties.
|
||||||
|
.
|
||||||
|
This package depends on the router, jbigi, the java service wrapper, and
|
||||||
|
includes support to run I2P as a daemon.
|
||||||
|
|
||||||
|
Package: libjbigi-jni
|
||||||
|
Architecture: any
|
||||||
|
Section: java
|
||||||
|
Priority: optional
|
||||||
|
Depends: ${shlibs:Depends}, i2p-router
|
||||||
|
Homepage: https://geti2p.net/
|
||||||
|
Description: I2P libjbigi library
|
||||||
|
This Package contains the libjbigi JNI library (and on x86 platforms, jcpuid).
|
||||||
|
.
|
||||||
|
libjbigi is a math library that is part of the I2P installation. Use of this
|
||||||
|
library greatly enhances the efficiency of cryptographic algorithms, such as
|
||||||
|
the ones used by I2P. You can expect to see a 5-7x speed improvement on certain
|
||||||
|
tasks, such as elGamal encryption/decryption.
|
||||||
|
|
||||||
|
Package: i2p-doc
|
||||||
|
Architecture: all
|
||||||
|
Section: doc
|
||||||
|
Priority: extra
|
||||||
|
Depends: ${misc:Depends}
|
||||||
|
Suggests: i2p, default-jdk-doc
|
||||||
|
Description: I2P developer documentation
|
||||||
|
I2P is an anonymizing network, offering a simple layer that identity-sensitive
|
||||||
|
applications can use to securely communicate. All data is wrapped with several
|
||||||
|
layers of encryption, and the network is both distributed and dynamic, with no
|
||||||
|
trusted parties.
|
||||||
|
.
|
||||||
|
This package contains the Javadoc files.
|
||||||
|
|
||||||
|
Package: i2p-router
|
||||||
|
Architecture: all
|
||||||
|
Section: net
|
||||||
|
Priority: optional
|
||||||
|
Depends: ${misc:Depends}, ${java:Depends}, ${shlibs:Depends},
|
||||||
|
openjdk-8-jre-headless | openjdk-7-jre-headless | java8-runtime-headless | java7-runtime-headless,
|
||||||
|
libtomcat8-java,
|
||||||
|
geoip-database,
|
||||||
|
gettext-base,
|
||||||
|
libgetopt-java,
|
||||||
|
Replaces: i2p ( << 0.8.6-5)
|
||||||
|
Breaks: i2p (<< 0.8.6-5)
|
||||||
|
Recommends: libjbigi-jni, ttf-dejavu
|
||||||
|
Suggests: tor
|
||||||
|
,apparmor
|
||||||
|
,i2p-messenger
|
||||||
|
,i2phex
|
||||||
|
,i2p-tahoe-lafs
|
||||||
|
,imule
|
||||||
|
,irc-client
|
||||||
|
,itoopie
|
||||||
|
,mail-client
|
||||||
|
,mail-reader
|
||||||
|
,news-reader
|
||||||
|
,polipo
|
||||||
|
,privoxy
|
||||||
|
,robert
|
||||||
|
,syndie
|
||||||
|
,www-browser
|
||||||
|
,xul-ext-torbutton
|
||||||
|
Description: I2P router
|
||||||
|
I2P is an anonymizing network, offering a simple layer that identity-sensitive
|
||||||
|
applications can use to securely communicate. All data is wrapped with several
|
||||||
|
layers of encryption, and the network is both distributed and dynamic, with no
|
||||||
|
trusted parties.
|
||||||
|
.
|
||||||
|
TrueType fonts (such as those provided in the package ttf-dejavu) are required
|
||||||
|
in order to generate graphs.
|
72
debian-alt/jessie/i2p-router.install
Normal file
72
debian-alt/jessie/i2p-router.install
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
# history.txt is installed to /usr/share/i2p because
|
||||||
|
# it's shown in the router console at http://127.0.0.1:7657
|
||||||
|
# (this is also why I don't use dh_installchangelogs -k for it)
|
||||||
|
history.txt usr/share/i2p
|
||||||
|
|
||||||
|
pkg-temp/blocklist.txt usr/share/i2p
|
||||||
|
pkg-temp/certificates usr/share/i2p
|
||||||
|
pkg-temp/clients.config usr/share/i2p
|
||||||
|
pkg-temp/docs usr/share/i2p/
|
||||||
|
pkg-temp/eepget usr/bin
|
||||||
|
pkg-temp/eepsite usr/share/i2p
|
||||||
|
pkg-temp/geoip usr/share/i2p
|
||||||
|
pkg-temp/hosts.txt usr/share/i2p
|
||||||
|
pkg-temp/i2prouter-nowrapper usr/bin
|
||||||
|
pkg-temp/i2psnark.config usr/share/i2p
|
||||||
|
pkg-temp/i2ptunnel.config usr/share/i2p
|
||||||
|
pkg-temp/router.config usr/share/i2p
|
||||||
|
pkg-temp/systray.config usr/share/i2p
|
||||||
|
pkg-temp/webapps usr/share/i2p
|
||||||
|
|
||||||
|
|
||||||
|
pkg-temp/lib/BOB.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/desktopgui.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/i2p.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/i2psnark.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/i2ptunnel.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jetty-i2p.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jrobin.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/mstreaming.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/routerconsole.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/router.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/sam.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/streaming.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/systray.jar usr/share/i2p/lib
|
||||||
|
|
||||||
|
|
||||||
|
# uncomment if not building with libjetty9-java
|
||||||
|
# ubuntu: in trusty vivid wily xenial
|
||||||
|
# debian: in wheezy jessie stretch sid
|
||||||
|
pkg-temp/lib/jetty-continuation.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jetty-deploy.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jetty-http.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jetty-io.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jetty-rewrite-handler.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jetty-security.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jetty-servlet.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jetty-servlets.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jetty-start.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jetty-util.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jetty-webapp.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/jetty-xml.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/org.mortbay.jetty.jar usr/share/i2p/lib
|
||||||
|
pkg-temp/lib/org.mortbay.jmx.jar usr/share/i2p/lib
|
||||||
|
|
||||||
|
|
||||||
|
# uncomment if not building with libtomcat8-java
|
||||||
|
#pkg-temp/lib/commons-el.jar usr/share/i2p/lib
|
||||||
|
# legacy name, contains only tomcat-juli, not commons-logging
|
||||||
|
#pkg-temp/lib/commons-logging.jar usr/share/i2p/lib
|
||||||
|
#pkg-temp/lib/jasper-runtime.jar usr/share/i2p/lib
|
||||||
|
#pkg-temp/lib/javax.servlet.jar usr/share/i2p/lib
|
||||||
|
|
||||||
|
|
||||||
|
# uncomment if not building with either glassfish-javaee or libjakarta-taglibs-standard-java
|
||||||
|
# ubuntu and debian: everywhere
|
||||||
|
# glassfish-javaee.jar has ancient and conflicting classes, e.g. javax.mail
|
||||||
|
pkg-temp/lib/jstl.jar usr/share/i2p/lib
|
||||||
|
|
||||||
|
|
||||||
|
# uncomment if not building with either glassfish-javaee or libjstl1.1-java
|
||||||
|
# ubuntu and debian: everywhere
|
||||||
|
#pkg-temp/lib/standard.jar usr/share/i2p/lib
|
85
debian-alt/jessie/i2p-router.links
Normal file
85
debian-alt/jessie/i2p-router.links
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
usr/share/common-licenses/GPL-2 usr/share/doc/i2p-router/licenses/LICENSE-GPLv2.txt
|
||||||
|
usr/share/common-licenses/LGPL-2.1 usr/share/doc/i2p-router/licenses/LICENSE-LGPLv2.1.txt
|
||||||
|
usr/share/common-licenses/Apache-2.0 usr/share/doc/i2p-router/licenses/LICENSE-Apache2.0.txt
|
||||||
|
usr/share/common-licenses/BSD usr/share/doc/i2p-router/licenses/LICENSE-BSD.txt
|
||||||
|
|
||||||
|
|
||||||
|
# comment out if not building with libjetty9-java
|
||||||
|
# ubuntu: in trusty vivid wily xenial
|
||||||
|
# debian: in wheezy jessie stretch sid
|
||||||
|
#usr/share/java/jetty9-continuation.jar usr/share/i2p/lib/jetty-continuation.jar
|
||||||
|
#usr/share/java/jetty9-deploy.jar usr/share/i2p/lib/jetty-deploy.jar
|
||||||
|
#usr/share/java/jetty9-http.jar usr/share/i2p/lib/jetty-http.jar
|
||||||
|
#usr/share/java/jetty9-io.jar usr/share/i2p/lib/jetty-io.jar
|
||||||
|
# legacy name in lib/
|
||||||
|
#usr/share/java/jetty9-rewrite.jar usr/share/i2p/lib/jetty-rewrite-handler.jar
|
||||||
|
#usr/share/java/jetty9-security.jar usr/share/i2p/lib/jetty-security.jar
|
||||||
|
#usr/share/java/jetty9-servlet.jar usr/share/i2p/lib/jetty-servlet.jar
|
||||||
|
#usr/share/java/jetty9-servlets.jar usr/share/i2p/lib/jetty-servlets.jar
|
||||||
|
#usr/share/java/jetty9-start.jar usr/share/i2p/lib/jetty-start.jar
|
||||||
|
#usr/share/java/jetty9-util.jar usr/share/i2p/lib/jetty-util.jar
|
||||||
|
#usr/share/java/jetty9-webapp.jar usr/share/i2p/lib/jetty-webapp.jar
|
||||||
|
#usr/share/java/jetty9-xml.jar usr/share/i2p/lib/jetty-xml.jar
|
||||||
|
# legacy name in lib/
|
||||||
|
#usr/share/java/jetty9-server.jar usr/share/i2p/lib/org.mortbay.jetty.jar
|
||||||
|
# legacy name in lib/
|
||||||
|
#usr/share/java/jetty9-jmx.jar usr/share/i2p/lib/org.mortbay.jmx.jar
|
||||||
|
# following two are from libservlet3.1-java which is a dependency of libjetty9-java
|
||||||
|
# legacy name in lib/
|
||||||
|
#usr/share/java/servlet-api-3.1.jar usr/share/i2p/lib/javax.servlet.jar
|
||||||
|
# combined into javax.servlet.jar in non-package builds
|
||||||
|
#usr/share/java/jsp-api-2.3.jar usr/share/i2p/lib/jsp-api.jar
|
||||||
|
|
||||||
|
|
||||||
|
# comment out if not building with libtomcat8-java
|
||||||
|
# ubuntu: only in xenial+
|
||||||
|
# debian: wheezy-backports, jessie+
|
||||||
|
# legacy name, contains only tomcat-juli, not commons-logging
|
||||||
|
usr/share/java/tomcat8-juli.jar usr/share/i2p/lib/commons-logging.jar
|
||||||
|
usr/share/java/tomcat8-jasper.jar usr/share/i2p/lib/jasper-runtime.jar
|
||||||
|
# combined into jasper-runtime.jar in non-package builds
|
||||||
|
usr/share/java/tomcat8-coyote.jar usr/share/i2p/lib/tomcat-coyote.jar
|
||||||
|
usr/share/java/tomcat8-api.jar usr/share/i2p/lib/tomcat-api.jar
|
||||||
|
usr/share/java/tomcat8-util.jar usr/share/i2p/lib/tomcat-util.jar
|
||||||
|
usr/share/java/tomcat8-util-scan.jar usr/share/i2p/lib/tomcat-util-scan.jar
|
||||||
|
# combined into commons-el.jar in non-package builds
|
||||||
|
usr/share/java/tomcat8-jasper-el.jar usr/share/i2p/lib/jasper-el.jar
|
||||||
|
# legacy name in lib/
|
||||||
|
usr/share/java/tomcat8-el-api.jar usr/share/i2p/lib/commons-el.jar
|
||||||
|
usr/share/java/tomcat8-servlet-api.jar usr/share/i2p/lib/javax.servlet.jar
|
||||||
|
usr/share/java/tomcat8-jsp-api.jar usr/share/i2p/lib/jsp-api.jar
|
||||||
|
|
||||||
|
|
||||||
|
# comment out if not building with glassfish-javaee
|
||||||
|
# glassfish-javaee.jar has ancient and conflicting classes, e.g. javax.mail
|
||||||
|
#usr/share/java/glassfish-javaee.jar usr/share/i2p/lib/jstl.jar
|
||||||
|
usr/share/java/glassfish-appserv-jstl.jar usr/share/i2p/lib/standard.jar
|
||||||
|
|
||||||
|
|
||||||
|
# comment out if not building with libjakarta-taglibs-standard-java
|
||||||
|
# ubuntu and debian: everywhere
|
||||||
|
#usr/share/java/standard.jar usr/share/i2p/lib/standard.jar
|
||||||
|
|
||||||
|
|
||||||
|
# comment out if not building with libjstl1.1-java
|
||||||
|
# ubuntu and debian: everywhere
|
||||||
|
#usr/share/java/jstl1.1.jar usr/share/i2p/lib/jstl.jar
|
||||||
|
|
||||||
|
|
||||||
|
# comment out if not building with gettext-base
|
||||||
|
# ubuntu and debian: everywhere
|
||||||
|
usr/share/java/libintl.jar usr/share/i2p/lib/libintl.jar
|
||||||
|
|
||||||
|
|
||||||
|
# comment out if not building with libgetopt-java
|
||||||
|
# ubuntu and debian: everywhere
|
||||||
|
usr/share/java/gnu-getopt.jar usr/share/i2p/lib/gnu-getopt.jar
|
||||||
|
|
||||||
|
|
||||||
|
# comment out if not building with libhttpclient-java and libhttpcore-java
|
||||||
|
# 2 MB of dependencies vs. 20 KB of copied source
|
||||||
|
# Requires 4.4 or higher.
|
||||||
|
# Debian: Not in wheezy/jessie
|
||||||
|
# Ubuntu: Only in wily and later
|
||||||
|
#usr/share/java/httpclient.jar usr/share/i2p/lib/httpclient.jar
|
||||||
|
#usr/share/java/httpcore.jar usr/share/i2p/lib/httpcore.jar
|
205
debian-alt/jessie/rules
Executable file
205
debian-alt/jessie/rules
Executable file
@ -0,0 +1,205 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
# Quoting Policy version 3.9.2.0, 2011-04-07 section 4.9:
|
||||||
|
|
||||||
|
# /start quote
|
||||||
|
# For some packages, notably ones where the same source tree is compiled in
|
||||||
|
# different ways to produce two binary packages, the build target does not make
|
||||||
|
# much sense. For these packages it is good enough to provide two (or more)
|
||||||
|
# targets (build-a and build-b or whatever) for each of the ways of building the
|
||||||
|
# package, and a build target that does nothing. The binary target will have to
|
||||||
|
# build the package in each of the possible ways and make the binary package out
|
||||||
|
# of each.
|
||||||
|
# ...
|
||||||
|
# When a package has a configuration and build routine which takes a long time,
|
||||||
|
# or when the makefiles are poorly designed, or when build needs to run clean
|
||||||
|
# first, it is a good idea to touch build when the build process is complete.
|
||||||
|
# This will ensure that if debian/rules build is run again it will not rebuild
|
||||||
|
# the whole program.
|
||||||
|
# /end quote
|
||||||
|
|
||||||
|
# Since that fits building I2P very well, we override the build target.
|
||||||
|
#
|
||||||
|
|
||||||
|
build:
|
||||||
|
@echo 'The build target is disabled. Use the appropriate binary target.'
|
||||||
|
|
||||||
|
JAVA_HOME=/usr/lib/jvm/default-java
|
||||||
|
I2P=$(CURDIR)/pkg-temp
|
||||||
|
ROUTERVERSION=$(CURDIR)/router/java/src/net/i2p/router/RouterVersion.java
|
||||||
|
export DEB_BUILD_HARDENING=1
|
||||||
|
|
||||||
|
# I2P's version will be displayed in the router console as "$I2PVERSION-$EXTRAPREFIX$DEBIANVERSION", eg. 0.8.12-0-deb1
|
||||||
|
#export EXTRAPREFIX := deb
|
||||||
|
export JAVA_HOME I2P
|
||||||
|
export DEBIANVERSION := $(shell dpkg-parsechangelog |awk -F' ' '/^Version:/{print $$2}' |sed 's/.*-\([.0-9A-Za-z~+]\{1,\}\)$$/\1/')
|
||||||
|
# required for jbigi/jcpuid build
|
||||||
|
export BITS := $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)
|
||||||
|
#export DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --with systemd,quilt
|
||||||
|
|
||||||
|
clean: createcopyright
|
||||||
|
|
||||||
|
override_dh_auto_clean:
|
||||||
|
-[ -r $(CURDIR)/debian/routerversion.java.bak ] && mv -f $(CURDIR)/debian/routerversion.java.bak $(ROUTERVERSION)
|
||||||
|
dh_auto_clean
|
||||||
|
ant distclean
|
||||||
|
find $(CURDIR)/core \( -name '*\.so' -o -name '*\.o' \) -exec rm -f {} \;
|
||||||
|
rm -rf $(CURDIR)/core/c/jcpuid/lib/
|
||||||
|
rm -f $(CURDIR)/installer/lib/wrapper/all/wrapper.jar
|
||||||
|
rm -rf $(CURDIR)/debian/python-i2p
|
||||||
|
rm -f $(CURDIR)/override.properties
|
||||||
|
debconf-updatepo
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
|
||||||
|
override_dh_systemd_enable:
|
||||||
|
# We purposely do not set I2P to start at boot.
|
||||||
|
# This matches the behavior of the initscript
|
||||||
|
# and the setting RUN_DAEMON=false in /etc/default/i2p
|
||||||
|
|
||||||
|
binary-indep: build-indep
|
||||||
|
build-indep:
|
||||||
|
dh_prep
|
||||||
|
mkdir -p $(CURDIR)/installer/lib/wrapper/all
|
||||||
|
ln -sf /usr/share/java/wrapper.jar $(CURDIR)/installer/lib/wrapper/all/wrapper.jar
|
||||||
|
if [ ! -e $(CURDIR)/debian/routerversion.java.bak ]; then \
|
||||||
|
cp $(ROUTERVERSION) $(CURDIR)/debian/routerversion.java.bak; \
|
||||||
|
fi
|
||||||
|
ifeq "$(findstring deb,$(shell grep 'deb' $(ROUTERVERSION)))" ""
|
||||||
|
sed -e "s/\(.*EXTRA\ =\ \)[^ ]*\"\(.*\)\"/\1\"\2-$$EXTRAPREFIX$$DEBIANVERSION\"/" < $(ROUTERVERSION) > $(ROUTERVERSION).tmp
|
||||||
|
mv -f $(ROUTERVERSION).tmp $(ROUTERVERSION)
|
||||||
|
else
|
||||||
|
@echo "Already found deb in version, not doing anything"
|
||||||
|
endif
|
||||||
|
@# build options
|
||||||
|
@/bin/echo -e "javac.version=1.7" > $(CURDIR)/override.properties
|
||||||
|
@/bin/echo -e "javac.compilerargs=-bootclasspath $(JAVA_HOME)/jre/lib/rt.jar:$(JAVA_HOME)/jre/lib/jce.jar" >> $(CURDIR)/override.properties
|
||||||
|
@/bin/echo -e "javac.compilerargs7=-bootclasspath $(JAVA_HOME)/jre/lib/rt.jar:$(JAVA_HOME)/jre/lib/jce.jar" >> $(CURDIR)/override.properties
|
||||||
|
@/bin/echo -e "build.built-by=debian" >> $(CURDIR)/override.properties
|
||||||
|
|
||||||
|
@# debian and ubuntu: everywhere
|
||||||
|
@/bin/echo -e "with-geoip-database=true" >> $(CURDIR)/override.properties
|
||||||
|
|
||||||
|
@# ubuntu: in xenial
|
||||||
|
@# debian: in jessie-backports stretch sid
|
||||||
|
@#/bin/echo -e "with-libjetty9-java=true" >> $(CURDIR)/override.properties
|
||||||
|
@#mkdir -p $(CURDIR)/apps/jetty/jettylib
|
||||||
|
@#ln -sf /usr/share/java/jetty9-continuation.jar $(CURDIR)/apps/jetty/jettylib/jetty-continuation.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-deploy.jar $(CURDIR)/apps/jetty/jettylib/jetty-deploy.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-http.jar $(CURDIR)/apps/jetty/jettylib/jetty-http.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-io.jar $(CURDIR)/apps/jetty/jettylib/jetty-io.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-rewrite.jar $(CURDIR)/apps/jetty/jettylib/jetty-rewrite-handler.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-security.jar $(CURDIR)/apps/jetty/jettylib/jetty-security.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-servlet.jar $(CURDIR)/apps/jetty/jettylib/jetty-servlet.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-servlets.jar $(CURDIR)/apps/jetty/jettylib/jetty-servlets.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-start.jar $(CURDIR)/apps/jetty/jettylib/jetty-start.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-util.jar $(CURDIR)/apps/jetty/jettylib/jetty-util.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-webapp.jar $(CURDIR)/apps/jetty/jettylib/jetty-webapp.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-xml.jar $(CURDIR)/apps/jetty/jettylib/jetty-xml.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-server.jar $(CURDIR)/apps/jetty/jettylib/org.mortbay.jetty.jar
|
||||||
|
@#ln -sf /usr/share/java/jetty9-jmx.jar $(CURDIR)/apps/jetty/jettylib/org.mortbay.jmx.jar
|
||||||
|
@# following two are from libservlet3.1-java which is a dependency of libjetty9-java
|
||||||
|
@#ln -sf /usr/share/java/servlet-api-3.1.jar $(CURDIR)/apps/jetty/jettylib/javax.servlet.jar
|
||||||
|
@#ln -sf /usr/share/java/jsp-api-2.3.jar $(CURDIR)/apps/jetty/jettylib/jsp-api.jar
|
||||||
|
|
||||||
|
@# debian and ubuntu: wheezy-backports, jessie+, xenial+
|
||||||
|
@/bin/echo -e "with-libtomcat8-java=true" >> $(CURDIR)/override.properties
|
||||||
|
@mkdir -p $(CURDIR)/apps/jetty/jettylib
|
||||||
|
ln -sf /usr/share/java/tomcat8-api.jar $(CURDIR)/apps/jetty/jettylib/tomcat-api.jar
|
||||||
|
ln -sf /usr/share/java/tomcat8-coyote.jar $(CURDIR)/apps/jetty/jettylib/tomcat-coyote.jar
|
||||||
|
ln -sf /usr/share/java/tomcat8-el-api.jar $(CURDIR)/apps/jetty/jettylib/commons-el.jar
|
||||||
|
ln -sf /usr/share/java/tomcat8-jasper.jar $(CURDIR)/apps/jetty/jettylib/jasper-runtime.jar
|
||||||
|
ln -sf /usr/share/java/tomcat8-jasper-el.jar $(CURDIR)/apps/jetty/jettylib/jasper-el.jar
|
||||||
|
ln -sf /usr/share/java/tomcat8-jsp-api.jar $(CURDIR)/apps/jetty/jettylib/jsp-api.jar
|
||||||
|
ln -sf /usr/share/java/tomcat8-juli.jar $(CURDIR)/apps/jetty/jettylib/commons-logging.jar
|
||||||
|
ln -sf /usr/share/java/tomcat8-servlet-api.jar $(CURDIR)/apps/jetty/jettylib/javax.servlet.jar
|
||||||
|
ln -sf /usr/share/java/tomcat8-util.jar $(CURDIR)/apps/jetty/jettylib/tomcat-util.jar
|
||||||
|
ln -sf /usr/share/java/tomcat8-util-scan.jar $(CURDIR)/apps/jetty/jettylib/tomcat-util-scan.jar
|
||||||
|
|
||||||
|
@# debian and ubuntu: everywhere
|
||||||
|
@/bin/echo -e "with-glassfish-javaee=true" >> $(CURDIR)/override.properties
|
||||||
|
@# glassfish-javaee.jar has ancient and conflicting classes, e.g. javax.mail
|
||||||
|
@#ln -sf /usr/share/java/glassfish-javaee.jar $(CURDIR)/apps/susidns/src/lib/jstl.jar
|
||||||
|
ln -sf /usr/share/java/glassfish-appserv-jstl.jar $(CURDIR)/apps/susidns/src/lib/standard.jar
|
||||||
|
|
||||||
|
@# debian and ubuntu: everywhere
|
||||||
|
@#/bin/echo -e "with-libjakarta-taglibs-standard-java=true" >> $(CURDIR)/override.properties
|
||||||
|
@#ln -sf /usr/share/java/standard.jar $(CURDIR)/apps/susidns/src/lib/standard.jar
|
||||||
|
|
||||||
|
@# debian and ubuntu: everywhere
|
||||||
|
@#/bin/echo -e "with-libjstl1.1-java=true" >> $(CURDIR)/override.properties
|
||||||
|
@#ln -sf /usr/share/java/jstl1.1.jar $(CURDIR)/apps/susidns/src/lib/jstl.jar
|
||||||
|
|
||||||
|
@# debian and ubuntu: everywhere
|
||||||
|
@/bin/echo -e "with-gettext-base=true" >> $(CURDIR)/override.properties
|
||||||
|
@mkdir -p $(CURDIR)/core/java/build
|
||||||
|
ln -sf /usr/share/java/libintl.jar $(CURDIR)/core/java/build/libintl.jar
|
||||||
|
|
||||||
|
@# debian and ubuntu: everywhere
|
||||||
|
@/bin/echo -e "with-libgetopt-java=true" >> $(CURDIR)/override.properties
|
||||||
|
@mkdir -p $(CURDIR)/core/java/build
|
||||||
|
ln -sf /usr/share/java/gnu-getopt.jar $(CURDIR)/core/java/build/gnu-getopt.jar
|
||||||
|
|
||||||
|
@# 2 MB of dependencies vs. 20 KB of copied source
|
||||||
|
@# Requires 4.4 or higher.
|
||||||
|
@# Debian: Not in wheezy/jessie
|
||||||
|
@# Ubuntu: Only in wily and later
|
||||||
|
@#/bin/echo -e "with-libhttpclient-java=true" >> $(CURDIR)/override.properties
|
||||||
|
@#mkdir -p $(CURDIR)/core/java/build
|
||||||
|
@#ln -sf /usr/share/java/httpclient.jar $(CURDIR)/core/java/build/httpclient.jar
|
||||||
|
@#ln -sf /usr/share/java/httpcore.jar $(CURDIR)/core/java/build/httpcore.jar
|
||||||
|
|
||||||
|
TZ=UTC JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 ant preppkg-unix javadoc
|
||||||
|
echo router.updateDisabled=true > $(I2P)/router.config
|
||||||
|
mv $(I2P)/runplain.sh $(I2P)/i2prouter-nowrapper
|
||||||
|
|
||||||
|
binary-arch: build-arch
|
||||||
|
build-arch:
|
||||||
|
# build jbigi
|
||||||
|
cd $(CURDIR)/core/c/jbigi && ./build_jbigi.sh dynamic
|
||||||
|
# build jcpuid
|
||||||
|
cd $(CURDIR)/core/c/jcpuid && ./build.sh
|
||||||
|
|
||||||
|
binary: binary-arch binary-indep
|
||||||
|
|
||||||
|
createcopyright:
|
||||||
|
@echo " *** Creating debian/copyright*** "
|
||||||
|
@rm -f $(CURDIR)/debian/copyright
|
||||||
|
@/bin/echo -e "This package was Debianized by kytv <killyourtv@i2pmail.org>" >> $(CURDIR)/debian/copyright
|
||||||
|
@/bin/echo -e "Sun, 23 Jan 2011 20:26:51 +0000" >> $(CURDIR)/debian/copyright
|
||||||
|
@/bin/echo -e "\nIt was downloaded from https://geti2p.net" >> $(CURDIR)/debian/copyright
|
||||||
|
@/bin/echo -e "\nI2P is tracked upstream using the Monotone VCS" >> $(CURDIR)/debian/copyright
|
||||||
|
@/bin/echo -e "Complete information on fetching the source with monotone can be found" >> $(CURDIR)/debian/copyright
|
||||||
|
@/bin/echo -e "at https://geti2p.net/newdevelopers#getting-the-i2p-code\n\n\n" >> $(CURDIR)/debian/copyright
|
||||||
|
@/bin/cat $(CURDIR)/LICENSE.txt >> $(CURDIR)/debian/copyright
|
||||||
|
@/bin/echo -e "\n\n The debian packaging has been released into the public domain." >> $(CURDIR)/debian/copyright
|
||||||
|
|
||||||
|
override_dh_compress:
|
||||||
|
dh_compress -X.xsl -X.xml
|
||||||
|
|
||||||
|
override_dh_install:
|
||||||
|
dh_install --list-missing
|
||||||
|
dh_apparmor --profile-name=system_i2p -pi2p
|
||||||
|
dh_apparmor --profile-name=usr.bin.i2prouter -pi2p
|
||||||
|
|
||||||
|
override_dh_installchangelogs:
|
||||||
|
dh_installchangelogs history.txt
|
||||||
|
|
||||||
|
override_dh_installdocs:
|
||||||
|
dh_installdocs -pi2p -plibjbigi-jni --link-doc=i2p-router
|
||||||
|
dh_installdocs --remaining-packages
|
||||||
|
|
||||||
|
override_dh_dhlibdeps:
|
||||||
|
dh_shlibdeps -llibjbigi-jni debian/libjbigi-jni/usr/lib/jni/*.so
|
||||||
|
|
||||||
|
#override_dh_installinit:
|
||||||
|
# dh_installinit -r
|
||||||
|
|
||||||
|
override_dh_builddeb:
|
||||||
|
dh_builddeb -- -Zxz
|
||||||
|
|
||||||
|
get-orig-source:
|
||||||
|
uscan --verbose --rename --destdir $(CURDIR)/.. --watchfile debian/watch --force-download
|
@ -12,6 +12,7 @@ Build-Depends: debhelper (>= 7.0.50~)
|
|||||||
# Ant requires java 6 tools.jar:
|
# Ant requires java 6 tools.jar:
|
||||||
# Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar
|
# Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar
|
||||||
,openjdk-6-jdk
|
,openjdk-6-jdk
|
||||||
|
,glassfish-javaee
|
||||||
,dh-apparmor
|
,dh-apparmor
|
||||||
,gettext
|
,gettext
|
||||||
,libgetopt-java
|
,libgetopt-java
|
||||||
@ -74,6 +75,7 @@ Section: net
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Depends: ${misc:Depends}, ${java:Depends}, ${shlibs:Depends},
|
Depends: ${misc:Depends}, ${java:Depends}, ${shlibs:Depends},
|
||||||
openjdk-8-jre-headless | openjdk-7-jre-headless | java8-runtime-headless | java7-runtime-headless,
|
openjdk-8-jre-headless | openjdk-7-jre-headless | java8-runtime-headless | java7-runtime-headless,
|
||||||
|
glassfish-javaee,
|
||||||
geoip-database,
|
geoip-database,
|
||||||
gettext-base,
|
gettext-base,
|
||||||
libgetopt-java,
|
libgetopt-java,
|
||||||
|
Reference in New Issue
Block a user