From b00ae830f33ef5245f60cfddbd86fbaf5c792613 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sat, 16 Aug 2014 07:57:50 +0200 Subject: [PATCH] change layout and depnd on new name and install requred 8.7 liebs to consoleone libdir Package-Manager: portage-2.2.8-r1 RepoMan-Options: --force --- app-admin/netiq-novlc1/ChangeLog | 10 ++ app-admin/netiq-novlc1/Manifest | 5 + .../netiq-novlc1/files/ConsoleOne-136-pre | 25 ++++ app-admin/netiq-novlc1/metadata.xml | 5 + .../netiq-novlc1-1.3.6.1_p2-r2.ebuild | 128 ++++++++++++++++++ 5 files changed, 173 insertions(+) create mode 100644 app-admin/netiq-novlc1/ChangeLog create mode 100644 app-admin/netiq-novlc1/Manifest create mode 100644 app-admin/netiq-novlc1/files/ConsoleOne-136-pre create mode 100644 app-admin/netiq-novlc1/metadata.xml create mode 100644 app-admin/netiq-novlc1/netiq-novlc1-1.3.6.1_p2-r2.ebuild diff --git a/app-admin/netiq-novlc1/ChangeLog b/app-admin/netiq-novlc1/ChangeLog new file mode 100644 index 00000000..d0441163 --- /dev/null +++ b/app-admin/netiq-novlc1/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-admin/netiq-novlc1 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*netiq-novlc1-1.3.6.1_p2-r2 (16 Aug 2014) + + 16 Aug 2014; Mario Fetka +files/ConsoleOne-136-pre, + +metadata.xml, +netiq-novlc1-1.3.6.1_p2-r2.ebuild: + change layout and depnd on new name and install requred 8.7 liebs to + consoleone libdir diff --git a/app-admin/netiq-novlc1/Manifest b/app-admin/netiq-novlc1/Manifest new file mode 100644 index 00000000..9cb22e67 --- /dev/null +++ b/app-admin/netiq-novlc1/Manifest @@ -0,0 +1,5 @@ +AUX ConsoleOne-136-pre 783 SHA256 798d8424ab5bb65d90fe76cee815ae3e18eae63bc8b707d92621a374c6b6aa26 SHA512 3a003d167659084163ba6376bde1d5c8a325fe8ad8ed6b533630bb37cb506d238713b46e2e16b8a250922ca07f34040afd5b915aa9350854957d990403077554 WHIRLPOOL 46022bbef4a5b9018f6143b22ea8c5600df431e526a963bda78a555885ddeb44567b3ce5e10313fe0a0214942146bcf33d06e6700c6a6c9b4843a804946be9ee +DIST gw12.0.2_full_linux_multi.tar.gz 769427891 SHA256 0239d8b01361d6b272dfb2bec35f78b029e16b9df8d5252f85d5ad9eaa8e4f36 SHA512 bff0b71c9814af02e3119f9b435ba68f09cd3ab89ada3ebf2d6baf07433d222f4a3c0120e4167dec1e0f4075909a35b80361799e57681910e735c911744aac19 WHIRLPOOL fec027bf6e452c0190d54c0ffcfd68ee2682fc995d39b2579726ce39fab1376001dbb9a637808f98a50b2dbbd5d96590b3423b37a5e3f75c0fc394f00188f065 +EBUILD netiq-novlc1-1.3.6.1_p2-r2.ebuild 5726 SHA256 fb14288264337065963307533c0817823efbac375f7c76c1bdab744976f4bb28 SHA512 9a899c3519b314522be2bbad183452cbca5757e00fec5bf67d4ea331efa707984559ac81c75a78d958fdbaf2a95f8014f8d67ed51cdf5e6a75e568da3a84bda1 WHIRLPOOL 8c4631ca90fd0a9ffaa60ef459d567cfc1e9ca05c984367b8a58c7a2a6ed6a11d4dd7b545b666b23bad3031d15e2a3caf832083977cc7ae153485c87d7272b9b +MISC ChangeLog 388 SHA256 892cf0d5ef7414ef5ea41d3e059b4175e3912f2643195b946d24f78285e8543c SHA512 04cced6339a8c84a535ecc901aea99243de81cf44c5aa9a27bfb6dd19d639ea308c5838c8a3c79b745974051ac21f738be8c9e005d32e89caa588d8b495fff76 WHIRLPOOL 1ec031a0212fd35e34691f23adaec4c8796f7da1b2564eff6e1af040eee9da0b2ed2477fd7d8d44557c3e9a2c1c9fe680b32e02eddf19402160ab01dedc4c9f8 +MISC metadata.xml 170 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 SHA512 c011e0dc20997640fdaf4dbdd0493106446df3ff753040a8ffc638cea0512a535bce9e1c4d2969e708993529c473d9dc17c59804c15a0eee2b0a7e9854b65143 WHIRLPOOL b33b91daccf2a989c728257c6372f7f8a7481bd72af841bf3c76e6625750d6f5e0d31c942fe88368fc016edcc5be954656c488b6d44ea00e4fe0caaec1bdd41e diff --git a/app-admin/netiq-novlc1/files/ConsoleOne-136-pre b/app-admin/netiq-novlc1/files/ConsoleOne-136-pre new file mode 100644 index 00000000..24dbfcfe --- /dev/null +++ b/app-admin/netiq-novlc1/files/ConsoleOne-136-pre @@ -0,0 +1,25 @@ +# +# Copyright (c) 2007-2008, Mario Fetka +# +# Licensed under the GNU General Public License, v2 + +if [ ! -d "/var/novell/nici/`id -u`" ] ; then + /var/novell/nici/primenici +fi + +if [ "`uname -m`" = "x86_64" ] ; then + export GENTOO_VM="emul-linux-x86-java-1.6" + echo "using emul-linux-x86-java-1.6 java VM" +else + export GENTOO_VM="sun-jdk-1.6" + echo "using sun-jdk-1.6 java VM" +fi + +LD_LIBRARY_PATH="/usr/ConsoleOne/bin:/usr/ConsoleOne/lib:/usr/ConsoleOne/lib32:/usr/lib:/usr/lib32:/opt/novell/lib:/opt/novell/lib32:/opt/novell/eDirectory/lib:/opt/novell/eDirectory/lib32:$LD_LIBRARY_PATH" +export LD_LIBRARY_PATH + +for jar in /usr/ConsoleOne/ConsoleOneExt/*.jar; do + classpath="$classpath:$jar" +done +CLASSPATH="$classpath:$CLASSPATH" +export CLASSPATH diff --git a/app-admin/netiq-novlc1/metadata.xml b/app-admin/netiq-novlc1/metadata.xml new file mode 100644 index 00000000..7e328698 --- /dev/null +++ b/app-admin/netiq-novlc1/metadata.xml @@ -0,0 +1,5 @@ + + + +maintainer-wanted + diff --git a/app-admin/netiq-novlc1/netiq-novlc1-1.3.6.1_p2-r2.ebuild b/app-admin/netiq-novlc1/netiq-novlc1-1.3.6.1_p2-r2.ebuild new file mode 100644 index 00000000..fa4ef3d0 --- /dev/null +++ b/app-admin/netiq-novlc1/netiq-novlc1-1.3.6.1_p2-r2.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +NOVELL_BUILDID="23yZ-f32-A0~" +NOVELL_FILE32="patchfiles/gw12.0.2_full_linux_multi.tar.gz" +GWVERSION="12.0.2-108211" +RESTRICT="mirror strip" + +inherit novell eutils rpm java-utils-2 multilib versionator + +MY_PVV=$(replace_version_separator 3 '-') +MY_PV="${MY_PVV/_p*/}" + +DESCRIPTION="Novell ConsoleOne" +HOMEPAGE="http://www.novell.com" +SRC_URI="http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE32}" + +LICENSE="Novell-eDir-87" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="linguas_de linguas_es linguas_fr linguas_it linguas_ja linguas_pt linguas_ru linguas_zh_CN linguas_zh_TW" + +DEPEND="net-nds/netiq-ndsbase:8.7 + net-nds/netiq-novlsas:8.7 + app-crypt/netiq-npkiapi:8.7" + +RDEPEND="virtual/libc + x86? ( =dev-java/sun-jre-bin-1.6* ) + amd64? ( =app-emulation/emul-linux-x86-java-1.6* ) + >=dev-java/java-config-2 + dev-java/javahelp + net-nds/netiq-ndsbase:8.7 + net-nds/netiq-nldapbase:8.7 + net-nds/netiq-nldapsdk:8.7 + net-nds/netiq-novlice:8.7 + net-nds/netiq-novllmgnt:8.7 + net-nds/netiq-novlsas:8.7 + net-nds/netiq-novlxis:8.7 + app-crypt/netiq-npkit:8.7 + app-crypt/netiq-npkiapi:8.7" + +src_unpack() { + unpack ${A} + mkdir -p "${WORKDIR}"/${PN}-${MY_PV} + cd ${PN}-${MY_PV} + rpm_unpack ../work/gw${GWVERSION}_full_linux_multi/consoleone/Linux/NOVLc1-${MY_PV}.i386.rpm + use linguas_de && rpm_unpack ../work/gw${GWVERSION}_full_linux_multi/consoleone/Linux/NOVLc1_de-${MY_PV}.i386.rpm + use linguas_es && rpm_unpack ../work/gw${GWVERSION}_full_linux_multi/consoleone/Linux/NOVLc1_es-${MY_PV}.i386.rpm + use linguas_fr && rpm_unpack ../work/gw${GWVERSION}_full_linux_multi/consoleone/Linux/NOVLc1_fr-${MY_PV}.i386.rpm + use linguas_it && rpm_unpack ../work/gw${GWVERSION}_full_linux_multi/consoleone/Linux/NOVLc1_it-${MY_PV}.i386.rpm + use linguas_ja && rpm_unpack ../work/gw${GWVERSION}_full_linux_multi/consoleone/Linux/NOVLc1_ja-${MY_PV}.i386.rpm + use linguas_pt && rpm_unpack ../work/gw${GWVERSION}_full_linux_multi/consoleone/Linux/NOVLc1_pt-${MY_PV}.i386.rpm + use linguas_ru && rpm_unpack ../work/gw${GWVERSION}_full_linux_multi/consoleone/Linux/NOVLc1_ru-${MY_PV}.i386.rpm + use linguas_zh_CN && rpm_unpack ../work/gw${GWVERSION}_full_linux_multi/consoleone/Linux/NOVLc1_zh_CN-${MY_PV}.i386.rpm + use linguas_zh_TW && rpm_unpack ../work/gw${GWVERSION}_full_linux_multi/consoleone/Linux/NOVLc1_zh_TW-${MY_PV}.i386.rpm + java-pkg_jar-from netiq-ndsbase-8.7 jclient.jar + java-pkg_jar-from netiq-npkiapi-8.7 npki.jar + java-pkg_jar-from netiq-novlsas-8.7 nssl.jar + java-pkg_jar-from netiq-novlsas-8.7 jssl.jar + java-pkg_addcp /usr/ConsoleOne/ConsoleOneExt + java-pkg_addcp /usr/ConsoleOne/help + java-pkg_addcp /usr/ConsoleOne/lib + java-pkg_addcp /usr/ConsoleOne/bin + java-pkg_addcp /usr/ConsoleOne + #java-pkg_addcp /opt/novell/eDirectory/lib + java-pkg_jar-from javahelp +} + +src_compile() { :; } + +src_install() { + has_multilib_profile && ABI="x86" + + java-pkg_jarinto /usr/ConsoleOne + java-pkg_dojar "${WORKDIR}"/${PN}-${MY_PV}/usr/ConsoleOne/*.jar + java-pkg_jarinto /usr/ConsoleOne/ConsoleOneExt + java-pkg_dojar "${WORKDIR}"/${PN}-${MY_PV}/usr/ConsoleOne/ConsoleOneExt/*.jar + java-pkg_jarinto /usr/ConsoleOne/lib/core + java-pkg_dojar "${WORKDIR}"/${PN}-${MY_PV}/usr/ConsoleOne/lib/core/*.jar + java-pkg_jarinto /usr/ConsoleOne/lib/mach + java-pkg_dojar "${WORKDIR}"/${PN}-${MY_PV}/usr/ConsoleOne/lib/mach/*.jar + java-pkg_jarinto /usr/ConsoleOne/resources/core + java-pkg_dojar "${WORKDIR}"/${PN}-${MY_PV}/usr/ConsoleOne/resources/core/*.jar + java-pkg_jarinto /usr/ConsoleOne/resources/mach + java-pkg_dojar "${WORKDIR}"/${PN}-${MY_PV}/usr/ConsoleOne/resources/mach/*.jar + java-pkg_jarinto /usr/ConsoleOne/resources/widgets + java-pkg_dojar "${WORKDIR}"/${PN}-${MY_PV}/usr/ConsoleOne/resources/widgets/*.jar + java-pkg_jarinto /usr/ConsoleOne/snapins/core + java-pkg_dojar "${WORKDIR}"/${PN}-${MY_PV}/usr/ConsoleOne/snapins/core/*.jar + java-pkg_jarinto /usr/ConsoleOne/snapins/mach + java-pkg_dojar "${WORKDIR}"/${PN}-${MY_PV}/usr/ConsoleOne/snapins/mach/*.jar + into /usr/ConsoleOne + #dobin "${WORKDIR}"/${PN}-${MY_PV}/usr/ConsoleOne/bin/* + #dosed 's%$APPHOME/jre%`java-config --jre-home`%' /usr/ConsoleOne/bin/ConsoleOne + insinto /usr/ConsoleOne/help + doins -r "${WORKDIR}"/${PN}-${MY_PV}/usr/ConsoleOne/help/* + java-pkg_dolauncher ConsoleOne --java_args "-noverify -Dapplication.home=\"/usr/ConsoleOne\" " \ + --main com.novell.application.console.shell.Console \ + --pwd /usr/ConsoleOne/bin \ + -pre "${FILESDIR}"/ConsoleOne-136-pre + +# insinto /usr/ConsoleOne/bin + doicon "${WORKDIR}"/gw${GWVERSION}_full_linux_multi/consoleone/Linux/ConsoleOneIcon.png + + insinto /usr/share/applications + doins "${WORKDIR}"/gw${GWVERSION}_full_linux_multi/consoleone/Linux/consoleone.desktop + dosed 's%/usr/ConsoleOne/bin/ConsoleOneIcon.png%ConsoleOneIcon.png%' /usr/share/applications/consoleone.desktop +} + +pkg_nofetch() { + einfo "This files require you to register at ${HOMEPAGE} (free account)" + einfo "Please download following file:" + einfo " - ${NOVELL_FILE32}" + einfo " - ${NOVELL_FILE32_1}" + einfo "from http://download.novell.com/Download?buildid=${NOVELL_BUILDID}" + einfo "from http://download.novell.com/Download?buildid=${NOVELL_BUILDID_1}" + einfo "and place them in ${DISTDIR}" + einfo "" + einfo "To get rid of downloading files from ${HOMEPAGE}" + einfo "you can create a file /etc/portage/novell.acc" + einfo "containing the novell account infos with following commands" + einfo "# echo \"NOVELL_ACCOUNT_USERNAME=\\\"balduin\\\"\" >> /etc/portage/novell.acc" + einfo "# echo \"NOVELL_ACCOUNT_PASSWORD=\\\"derfisch\\\"\" >> /etc/portage/novell.acc" +} +