add jping

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1520 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2009-08-31 13:23:13 +00:00
parent 7ea578d829
commit a570f5ca08
5 changed files with 102 additions and 0 deletions

View File

@ -0,0 +1,12 @@
# ChangeLog for net-misc/ibm-jping
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
07 Dec 2008; Mario Fetka <mario.fetka@gmail.com> +metadata.xml,
ibm-jping-2.0.ebuild:
add arch amd64
30 Jul 2007; Mario Fetka <mario-fetka@gmx.at> +ibm-jping-2.0.ebuild,
+files/jping-2.0-pre:
initial Ebuild for a real great tool

View File

@ -0,0 +1,5 @@
AUX jping-2.0-pre 636 RMD160 291c50816d76608449cf02c5821b378b3e3368ea SHA1 335efb4d0cbcc10df22c7b674a73dd131ec73a21 SHA256 940db5983fc9642ede3ad153480f9f418e443cc9f3b81a30c5f034388d8c64cf
DIST jping.zip 37222 RMD160 25fdf05c43b23f7a1d53ab09fba7b476ecc1bb58 SHA1 e32c9cdcaa5761b3fba487f9cb2bbd299ae294dc SHA256 66b1300d251b089745d6f66c79098841708b4d25f572bca3a5d150b7f1828666
EBUILD ibm-jping-2.0.ebuild 1161 RMD160 9bcd311d248138c20412fb2149d741c8f6b4691e SHA1 0f73047aee26624757b82e2955bb9df92fa02598 SHA256 cf08bffbcb23879180b90e052aa3faa3df74c2dca896b10815a89897a105cf40
MISC ChangeLog 362 RMD160 bb2bd064b6d64cde542e49fdbb0f488f3762fef7 SHA1 79f350165b16cf9e2ba0b3d7f6d577b5f8f2c81a SHA256 b46f527fb9800bb5074dfc18fa8c571650b1fd4f9c71f5a5a5a86e623139c4b7
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42

View File

@ -0,0 +1,32 @@
#
# Copyright (c) 2007, Mario Fetka <mario-fetka@gmx.at>
#
# Licensed under the GNU General Public License, v2
dotibmdir="${HOME}/.ibm"
jpingcfg="${dotibmdir}/JPing.ini"
create_initial_config() {
if [[ ! -e "${dotibmdir}" ]] ; then
mkdir "${dotibmdir}"
echo "Creating ${dotibmdir}"
fi
echo "Creating ${jpingcfg}"
# Create the config file
cat > "${jpingcfg}" <<END
-- listing properties --
JPingScheduledMinutes=0
JPingHttpProxyHost=
JPingSocksProxyPort=1080
EnableProxy=NONE
JPingSocksProxyHost=
MsgNotification=false
xServer1=mars.arge.at
JPingHttpProxyPort=8080
END
}
[[ ! -e "${jpingcfg}" ]] && create_initial_config

View File

@ -0,0 +1,48 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils java-utils-2
DESCRIPTION="JPing is a network connectivity diagnostic tool"
HOMEPAGE="http://www-10.lotus.com/ldd/sandbox.nsf/ByApplicationName/222294a30361b72888256aa20083873e?OpenDocument"
SRC_URI="jping.zip"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="app-arch/unzip
media-gfx/imagemagick"
RDEPEND="virtual/libc
>=virtual/jdk-1.3"
S=${WORKDIR}
RESTRICT="mirror strip fetch"
src_unpack() {
unpack ${A}
unzip -o JPing2.jar || die "unpacking"
}
src_compile() { :; }
src_install() {
java-pkg_dojar "${WORKDIR}"/JPing2.jar
java-pkg_dolauncher jping --jar JPing2.jar --pwd \$\{dotibmdir\} -pre "${FILESDIR}"/jping-2.0-pre
dohtml "${WORKDIR}"/*.htm
convert -size 48x48 "${WORKDIR}"/images/JPing2.jpg "${WORKDIR}"/JPing2.png
doicon "${WORKDIR}"/JPing2.png
make_desktop_entry jping "JPing diagnostic tool" JPing2.png Network
}
pkg_nofetch() {
einfo "Please download the appropriate JPing2 archive (${SRC_URI}) from"
einfo "${HOMEPAGE}"
einfo ""
einfo "Then put the file in ${DISTDIR}"
}

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>maintainer-wanted</herd>
</pkgmetadata>