public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/dilfridge:master commit in: net-mail/novell-groupwise-client/
@ 2013-06-07 20:00 Andreas Hüttel
  0 siblings, 0 replies; only message in thread
From: Andreas Hüttel @ 2013-06-07 20:00 UTC (permalink / raw
  To: gentoo-commits

commit:     719762b1f6aee9ab095fbd6cb2dba2da847a155f
Author:     Andreas K. Huettel <mail <AT> akhuettel <DOT> de>
AuthorDate: Fri Jun  7 19:58:59 2013 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Jun  7 19:58:59 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/dilfridge.git;a=commit;h=719762b1

[net-mail/novell-groupwise-client] Add ebuild from n4g overlay by Mario Fetka

Package-Manager: portage-2.2.0_alpha177

---
 net-mail/novell-groupwise-client/Manifest          |  1 +
 net-mail/novell-groupwise-client/metadata.xml      |  9 +++
 .../novell-groupwise-client-8.0.2.96933.ebuild     | 78 ++++++++++++++++++++++
 3 files changed, 88 insertions(+)

diff --git a/net-mail/novell-groupwise-client/Manifest b/net-mail/novell-groupwise-client/Manifest
new file mode 100644
index 0000000..42937c6
--- /dev/null
+++ b/net-mail/novell-groupwise-client/Manifest
@@ -0,0 +1 @@
+DIST gw802_hp3_full_linux_multi.tar.gz 530427012 SHA256 c1dff9358bdf75050269076a499af69df1c00b64d3ff0a7bd88684a8c1148979

diff --git a/net-mail/novell-groupwise-client/metadata.xml b/net-mail/novell-groupwise-client/metadata.xml
new file mode 100644
index 0000000..db01deb
--- /dev/null
+++ b/net-mail/novell-groupwise-client/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer><email>dilfridge@gentoo.org</email></maintainer>
+	<use>
+		<flag name='multilib'>pull in the required packages on amd64 systems</flag>
+		<flag name='novell-jre'>Use the from novell provided jre</flag>
+	</use>
+</pkgmetadata>

diff --git a/net-mail/novell-groupwise-client/novell-groupwise-client-8.0.2.96933.ebuild b/net-mail/novell-groupwise-client/novell-groupwise-client-8.0.2.96933.ebuild
new file mode 100644
index 0000000..a11ae76
--- /dev/null
+++ b/net-mail/novell-groupwise-client/novell-groupwise-client-8.0.2.96933.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+NOVELL_BUILDID="_XAeStjRFu8~"
+NOVELL_FILE32="patchfiles/gw802_hp3_full_linux_multi.tar.gz"
+RESTRICT="fetch mirror strip"
+
+inherit eutils rpm5 multilib versionator
+
+MY_PV=$(replace_version_separator 3 '-')
+MY_P="${P/_p/-}"
+
+DESCRIPTION="Novell Groupwise 8 Client for Linux"
+HOMEPAGE="http://www.novell.com/en/gropwise/"
+SRC_URI="http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE32}"
+
+LICENSE="Novell-GW-8"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="novell-jre multilib"
+DEPEND=""
+RDEPEND="sys-libs/glibc
+	sys-libs/libstdc++-v3
+	sys-devel/gcc
+	!novell-jre? (
+		|| ( virtual/jdk
+		virtual/jre )
+		multilib? (
+		amd64? ( app-emulation/emul-linux-x86-java ) ) )
+	multilib? (
+		amd64? ( app-emulation/emul-linux-x86-compat ) )"
+
+src_unpack() {
+	unpack ${A}
+	mkdir -p "${WORKDIR}"/${PN}-${MY_PV}
+	cd ${PN}-${MY_PV}
+	rpm5_unpack ./../gw${MY_PV}_full_linux_multi/client/linux/${PN}-${MY_PV}.i586.rpm
+}
+
+src_compile() { :; }
+
+src_install() {
+	JRE_DIR="${WORKDIR}"/${PN}-${MY_PV}/opt/novell/groupwise/client/java;
+
+	if use novell-jre; then
+		# Undo Sun's funny-business with packed .jar's
+		for i in $JRE_DIR/lib/*.pack; do
+		i_b=`echo $i | sed 's/\.pack$//'`;
+		einfo "Unpacking `basename $i` -> `basename $i_b.jar`";
+		$JRE_DIR/bin/unpack200 $i $i_b.jar || die "Unpack failed";
+		done;
+	else
+		if use multilib; then
+		rm -rf "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/groupwise/client/java
+		sed -i 's%/opt/novell/groupwise/client/java/lib/i386%`java-config --select-vm=emul-linux-x86-java --jre-home`/lib/i386/client:`java-config --select-vm=emul-linux-x86-java --jre-home`/lib/i386/server:`java-config --select-vm=emul-linux-x86-java --jre-home`/lib/i386%' "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/groupwise/client/bin/groupwise
+		else
+		rm -rf "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/groupwise/client/java
+		sed -i 's%/opt/novell/groupwise/client/java/lib/i386%`java-config --jre-home`/jre/lib/i386/client:`java-config --jre-home`/jre/lib/i386/server:`java-config --jre-home`/jre/lib/i386%' "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/groupwise/client/bin/groupwise
+		fi
+	fi
+
+	insinto /usr/share/applications
+	doins "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/groupwise/client/gwclient.desktop
+
+	mv "${WORKDIR}"/${PN}-${MY_PV}/opt "${D}"/ || die "mv opt"
+
+	dodir /opt/bin
+	dosym /opt/novell/groupwise/client/bin/groupwise /opt/bin/groupwise
+}
+
+pkg_nofetch() {
+	einfo "This files require you to register at ${HOMEPAGE} (free account)"
+	einfo "Please download following file:"
+	einfo " - ${NOVELL_FILE32}"
+	einfo "from http://download.novell.com/Download?buildid=${NOVELL_BUILDID}"
+	einfo "and place it in ${DISTDIR}"
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-07 20:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07 20:00 [gentoo-commits] dev/dilfridge:master commit in: net-mail/novell-groupwise-client/ Andreas Hüttel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox