add new iprint package
This commit is contained in:
parent
dd7c3ff422
commit
9475040fcd
@ -0,0 +1,4 @@
|
||||
AUX 80novell-iprint 176 RMD160 e6190bfcde19e2da265b790012582d4200c20668 SHA1 8d9051acc2390dd4fd40fb8221043b1ed0c80fe4 SHA256 a8eea0f270391a658d311a6de6f3b543db62a14767d6c9a966b15d845783d9b4
|
||||
AUX 80novell-iprint64 180 RMD160 3a485dd8c9ad50168afa25bb6c643d65a666c810 SHA1 530a627efc418438f0e4ddd7a56d1be3242466a6 SHA256 dd2b575b9016fbd911ba65fcbfc04a5205618d63267021e632b88878b982e96e
|
||||
DIST OES2-i386-CD1.iso 451971072 RMD160 05862048a73feed632aafb5fd4f25a4e9c5ecc6a SHA1 6286002ebef39929eceecee47e6e2a095e66ba71 SHA256 10b3921c5a833bb8fc992e8bd699b28e045471f8338d3480863ca86413161f63
|
||||
EBUILD novell-iprint-xclient-6.500.20070508_p1.ebuild 3445 RMD160 960ffcf9a3f9df19aafc6384829aab3c5eb0ce64 SHA1 a12439d1168febc719d82833f70d28dac7aa39a9 SHA256 b61e51082a75b7661c20e8bafe20c7989537d18c038470335ab30f92272a6f56
|
@ -0,0 +1,5 @@
|
||||
NOVELL_IPRINT_DIR=/opt/novell/iprint
|
||||
PATH=/opt/novell/iprint/bin
|
||||
ROOTPATH=/opt/novell/iprint/bin
|
||||
LDPATH=/opt/novell/lib
|
||||
PRELINK_PATH_MASK=/opt/novell/lib:/opt/novell/iprint/bin
|
@ -0,0 +1,5 @@
|
||||
NOVELL_IPRINT_DIR=/opt/novell/iprint
|
||||
PATH=/opt/novell/iprint/bin
|
||||
ROOTPATH=/opt/novell/iprint/bin
|
||||
LDPATH=/opt/novell/lib64
|
||||
PRELINK_PATH_MASK=/opt/novell/lib64:/opt/novell/iprint/bin
|
@ -0,0 +1,108 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
NOVELL_BUILDID="GsODlkBPM2g~"
|
||||
NOVELL_FILE32="OES2-i386-CD1.iso"
|
||||
RESTRICT="mirror strip"
|
||||
|
||||
inherit novell eutils rpm nsplugins
|
||||
|
||||
MY_PV="${PV/_p/-}"
|
||||
|
||||
DESCRIPTION="Novell iPrint Client for Linux Low Security"
|
||||
HOMEPAGE="http://www.novell.com"
|
||||
SRC_URI="http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE32}"
|
||||
|
||||
LICENSE="Novell-NCL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE="gtk linguas_cs linguas_de linguas_es linguas_fr linguas_hu linguas_it linguas_ja linguas_pl linguas_pt linguas_ru linguas_sl linguas_zh_cn linguas_zh_tw"
|
||||
|
||||
DEPEND=">=app-arch/p7zip-4.15"
|
||||
|
||||
RDEPEND="virtual/libc
|
||||
dev-libs/atk
|
||||
dev-libs/glib
|
||||
>=net-print/cups-1.2
|
||||
x11-libs/gtk+
|
||||
x11-libs/pango
|
||||
sys-libs/zlib
|
||||
www-client/mozilla-firefox
|
||||
!net-print/novell-iprint-xclient-sh
|
||||
!net-print/novell-iprint-xclient-sl"
|
||||
|
||||
src_unpack() {
|
||||
7z x "${DISTDIR}"/${NOVELL_FILE32}
|
||||
cd "${WORKDIR}"
|
||||
rpm_unpack "${WORKDIR}"/suse/noarch/novell-iprint-client-6.0.20070914-2.noarch.rpm
|
||||
mkdir -p "${WORKDIR}"/${PN}-${MY_PV}
|
||||
cd ${PN}-${MY_PV}
|
||||
if use x86
|
||||
then
|
||||
ndir=x86
|
||||
narch=i586
|
||||
nlib=lib
|
||||
elif use amd64
|
||||
then
|
||||
ndir=x86_64
|
||||
narch=x86_64
|
||||
nlib=lib64
|
||||
fi
|
||||
rpm_unpack "${WORKDIR}"/var/opt/novell/iprint/htdocs/clients/linux/${ndir}/novell-iprint-xclient-sl-${MY_PV}.${narch}.rpm
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
CUPSDIR=`cups-config --serverbin`
|
||||
}
|
||||
|
||||
src_install() {
|
||||
for x in cs de es fr hu it ja pl pt ru sl zh_cn zh_tw
|
||||
do
|
||||
if use linguas_${x}
|
||||
then
|
||||
cp "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/iprint/share/locale/${x}/LC_MESSAGES/iprint-client.mo "${WORKDIR}"/${x}.mo
|
||||
domo "${WORKDIR}"/${x}.mo
|
||||
fi
|
||||
done
|
||||
insinto /etc/opt/novell/iprint
|
||||
doins "${WORKDIR}"/${PN}-${MY_PV}/etc/opt/novell/iprint/*
|
||||
into /opt/novell/iprint
|
||||
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/iprint/bin/*
|
||||
insinto /opt/novell/iprint/plugin
|
||||
doins "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/iprint/plugin/npnipp.so
|
||||
inst_plugin /opt/novell/iprint/plugin/npnipp.so
|
||||
insinto /usr/share/autostart
|
||||
doins "${WORKDIR}"/${PN}-${MY_PV}/opt/kde3/share/autostart/*.desktop
|
||||
dosed "s:/usr/share/pixmaps/iprint_32:iprint.gif:g" /usr/share/autostart/iprint.desktop
|
||||
exeinto ${CUPSDIR}/backend
|
||||
doexe "${WORKDIR}"/${PN}-${MY_PV}/usr/${nlib}/cups/backend/*
|
||||
dosym ${CUPSDIR} /usr/$(get_libdir)/cups
|
||||
keepdir /var/opt/novell/log/iprint/client
|
||||
into /opt/novell
|
||||
dolib "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/${nlib}/*
|
||||
doman "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/man/*/*
|
||||
newicon "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/iprint/share/icons/iprint_32.gif iprint.gif
|
||||
|
||||
if use x86
|
||||
then
|
||||
doenvd "${FILESDIR}"/80novell-iprint
|
||||
elif use amd64
|
||||
then
|
||||
doenvd "${FILESDIR}"/80novell-iprint64
|
||||
fi
|
||||
}
|
||||
|
||||
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}"
|
||||
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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user