Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 341946 Details for
Bug 297660
net-p2p/i2p - An anonymous network.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
i2p-0.9.5-r1.ebuild
i2p-0.9.5-r1.ebuild (text/plain), 4.80 KB, created by
M. B.
on 2013-03-13 20:04:15 UTC
(
hide
)
Description:
i2p-0.9.5-r1.ebuild
Filename:
MIME Type:
Creator:
M. B.
Created:
2013-03-13 20:04:15 UTC
Size:
4.80 KB
patch
obsolete
># Copyright 1999-2013 Gentoo Foundation ># Distributed under the terms of the WTFPL ># $Header: $ > >EAPI="4" > >inherit user eutils java-pkg-2 java-ant-2 pax-utils > >DESCRIPTION="I2P is an anonymous network." > >SRC_URI="http://mirror.i2p2.de/${PN}source_${PV}.tar.bz2" >HOMEPAGE="http://www.i2p2.de/" > >SLOT="0" >KEYWORDS="~x86 ~amd64 ~x86-fbsd ~amd64-fbsd ~ppc" >LICENSE="Apache-2.0 BSD GPL-2 GPL-3 IJG LGPL-2.1 LGPL-3 MIT MPL-1.1 public-domain" >IUSE="initscript" >DEPEND=">=virtual/jdk-1.6 > dev-java/jakarta-jstl > dev-java/java-service-wrapper > dev-java/jrobin > dev-libs/gmp > sys-devel/gettext" >RDEPEND="${DEPEND}" > >EANT_BUILD_TARGET=pkg > >pkg_setup() { > if use initscript > then > enewgroup ${PN} > enewuser ${PN} -1 -1 /var/lib/i2p ${PN} -m > fi >} > >src_prepare() { > echo "noExe=true" > override.properties >} > >src_install() { > i2p_home="${EROOT}/usr/share/${PN}" > cd pkg-temp || die "Where did our stuffs go?" > ># all our edits > sed -i '/appropriate\ paths/a\ >USER_HOME="$HOME"\ >SYSTEM_java_io_tmpdir="$USER_HOME/.i2p"' \ > i2prouter || die > sed -e 's:%USER_HOME:$USER_HOME:g' \ > -i i2prouter || die > sed -i 's:[%$]INSTALL_PATH:'${i2p_home}':g' \ > eepget i2prouter runplain.sh wrapper.config || die > sed -i "s:%SYSTEM_java_io_tmpdir:$SYSTEM_java_io_tmpdir:g" \ > i2prouter runplain.sh || die > ># Just for good measure: place a warning in the default configs > for i in `ls *.config` > do > echo "# DO NOT EDIT! ># Instead, put a copy into \"/var/lib/i2p/.i2p\", play with that. This file ># will be overwritten during the next merge." > tmp > cat ${i} >> tmp > mv tmp ${i} > done > ># This enables us to use listed libs from system > sed -e '/wrapper\.java\.classpath\.1=\/\/usr\/share\/i2p\/lib\/\*\.jar/ a\ >wrapper.java.classpath.2=//usr/share/jrobin/lib/*.jar \ >wrapper.java.classpath.3=//usr/share/jakarta-jstl/lib/*.jar \ >wrapper.java.classpath.4=//usr/share/java-service-wrapper/lib/*.jar' \ > -e '/wrapper\.java\.library\.path\.2=\/\/usr\/share\/i2p\/lib/ a\ >wrapper.java\.library\.path.3=//usr/lib/java-service-wrapper/' \ > -i wrapper.config || \ > die "sed of wrapper.config failed" > ># fix moronic autostart of lynx on i2p start > clientAppNum=`grep UrlLauncher clients.config | \ > sed -e 's/clientApp\.\(.\)\.main.*/\1/'` > sed -e 's/\(clientApp\.'${clientAppNum}'\.startOnLoad=\)true/\1false/' \ > -i clients.config || die "sed of clients.config failed" > ># Install files to package lib > insinto "${i2p_home}/lib" ># we only install these .jars. Beware of breakage with system-wide libs! > for i in BOB \ > commons-el \ > commons-logging \ > i2p \ > i2psnark \ > i2ptunnel \ > jasper-compiler \ > jasper-runtime \ > javax.servlet \ > jbigi \ > jetty* \ > mstreaming \ > org.mortbay.* \ > router* \ > sam \ > standard \ > streaming \ > systray \ > systray4j > do echo "dojar "${i}"..." > java-pkg_dojar lib/${i}.jar || die "dojar of "${i}" failed." > done ># FIXME - setting paths is not sufficient for those, so we symlink ># dosym /usr/lib/commons-logging/commons-logging.jar ${i2p_home}/lib/commons-logging.jar || die ># dosym /usr/lib/commons-el/commons-el.jar ${i2p_home}/lib/commons-el.jar || die > dosym /usr/bin/wrapper ${i2p_home}/i2psvc || die > > # do the symlinks to our binaries > dosym ${i2p_home}/i2prouter /usr/bin/i2prouter || die > dosym ${i2p_home}/eepget /usr/bin/eepget || die > ># Install files > exeinto ${i2p_home} > insinto ${i2p_home} > doins blocklist.txt hosts.txt *.config || die > doexe eepget i2prouter runplain.sh || die > > dodoc history.txt INSTALL-headless.txt LICENSE.txt || die > doman man/* || die > ># Install dirs > doins -r certificates docs eepsite geoip scripts || die > java-pkg_dowar webapps/*.war || die > dodoc -r licenses || die > > if use initscript; then > doinitd "${FILESDIR}/i2p" || die > keepdir /var/lib/i2p > fperms 750 /var/lib/i2p > fowners i2p:i2p /var/lib/i2p > fi >} > >pkg_postinst() { > if use initscript > then > #Mv old home if it exists > OLD_HOME="`egethome i2p`" > NEW_HOME="/var/lib/i2p" > if [[ -n "${OLD_HOME}" && "${OLD_HOME}" != "${NEW_HOME}" ]]; then > esethome i2p "${NEW_HOME}" || die ># mv "${OLD_HOME}"/* "${NEW_HOME}"/ || ewarn "Couldn't move some files to i2p's new home dir." > ewarn "I2P's home directory have been changed to \"${NEW_HOME}\"" > ewarn "Be sure to move your stuff in systemwide i2p home directory" > ewarn "to new location like that:" > ewarn "# mv ${OLD_HOME}/* ${NEW_HOME}/" > ewarn "before the first launch of I2P after this update." > fi > einfo "Configure the router now : http://localhost:7657/index.jsp" > einfo "Use /etc/init.d/i2p start to start I2P" > else > einfo "Configure the router now : http://localhost:7657/index.jsp" > einfo "Use 'i2prouter start' to run I2P and 'i2prouter stop' to stop it." > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 297660
:
213577
|
230163
|
231615
|
231617
|
236717
|
252461
|
252819
|
252823
|
253185
|
255349
|
258433
|
261671
|
264073
|
264613
|
270017
|
270019
|
270023
|
271105
|
274571
|
279977
|
286635
|
292375
|
299921
|
304547
|
311347
|
322454
|
325016
|
329340
|
329352
|
332804
|
335166
|
335170
|
335180
|
336744
|
336746
|
341832
|
341838
|
341946
|
342216
|
345582
|
350120
|
353670
|
354154
|
356712
|
369434
|
381294
|
381350
|
389340
|
397348