net-print/novell-iprint-xclient: cleanup

This commit is contained in:
geos_one 2010-07-09 07:31:20 +00:00
parent 12286926b2
commit 7665a480de
5 changed files with 7 additions and 387 deletions

View File

@ -2,6 +2,12 @@
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
09 Jul 2010; Mario Fetka <mario.fetka@gmail.com>
-novell-iprint-xclient-6.500.20070508_p1.ebuild,
-novell-iprint-xclient-6.500.20070508_p1-r1.ebuild,
-novell-iprint-xclient-6.500.20081007_p1.ebuild:
cleanup
08 May 2010; Mario Fetka <mario.fetka@gmail.com>
+novell-iprint-xclient-6.502.20090929_p1.ebuild:
Bump

View File

@ -2,12 +2,7 @@ AUX 80novell-iprint 176 RMD160 e6190bfcde19e2da265b790012582d4200c20668 SHA1 8d9
AUX 80novell-iprint64 180 RMD160 3a485dd8c9ad50168afa25bb6c643d65a666c810 SHA1 530a627efc418438f0e4ddd7a56d1be3242466a6 SHA256 dd2b575b9016fbd911ba65fcbfc04a5205618d63267021e632b88878b982e96e
AUX post-high 1982 RMD160 6bc0f5f30af9456b74312d5155e9fe1d95d5494b SHA1 462b945db78d7be1180be672db49aebfba7960c1 SHA256 05da68dbade35edc43b695dd2c83a4e3ee7eb8bac16e4025020866a6152c50b9
AUX post-low 1915 RMD160 d99e230e53fb9fc61fa2c29903f06d41c4b24f95 SHA1 822a3cedcd3e6efb4e97c30181bf79f273bc9d9f SHA256 5a7aa0c41c63676f53d284b5bdc50a50a58dd6ef550945dce9014b175b40da2d
DIST OES2-i386-CD1.iso 451971072 RMD160 05862048a73feed632aafb5fd4f25a4e9c5ecc6a SHA1 6286002ebef39929eceecee47e6e2a095e66ba71 SHA256 10b3921c5a833bb8fc992e8bd699b28e045471f8338d3480863ca86413161f63
DIST iprntlinuxclient438.tar.gz 967940 RMD160 dd580658f9649656345e9188fce98b8bb823ed9e SHA1 37130888ea997dee810491a05dbf7aa59c133317 SHA256 1f1b87f36efae0d3e1f65580eb6e993fc57024731e0b6cfa91bafb46d61dcd1e
DIST iprntlinuxclient500.tar.gz.tar.gz 2077867 RMD160 998e9dca727cb176d460c80f20a6004c8267b6da SHA1 93994a5a02257094e0baaca46edd3608be35ba60 SHA256 8ae471de06fba07586ad1d7b9545670c4ffb9b042432a9d4de35bc05001b98e0
EBUILD novell-iprint-xclient-6.500.20070508_p1-r1.ebuild 5072 RMD160 857276c10b11b5c6e2d1f960496c22c49996dc41 SHA1 6feb8a39a0218a7aafc143b276e0a3b9eb060f6d SHA256 bc1ab4010b05303fc48526e59e1bfb32d60c44bc958c398cf9b94d79493862d6
EBUILD novell-iprint-xclient-6.500.20070508_p1.ebuild 3614 RMD160 0e5fa61cf33248f403ead431cfe18a956e771328 SHA1 c7700e5b54253af6db5ef6cd52e7e07479effffa SHA256 93e36d8de8d01768de058a2221c90a1baef197e2cf37559e1af98efab8ce146e
EBUILD novell-iprint-xclient-6.500.20081007_p1.ebuild 3663 RMD160 064420f7a24094bab542d9bb05286ea5e4ae76e1 SHA1 79b39202986baff5edd74de7a1b43672d2a90e6e SHA256 ab8bdef45dfcda45cba7b36ffca8576a8184abd423c69ba87d334c6ae5aa2a8a
EBUILD novell-iprint-xclient-6.502.20090929_p1.ebuild 3834 RMD160 51754ba95c57d127e75492815c93ed417cfccb12 SHA1 fe5a05ae5869e4e1973a138d9372c586bf16e980 SHA256 5471b1f52434328b146f464e7c6f0d6301ece8d92eb8abbba8bb1de79bbe1680
MISC ChangeLog 924 RMD160 aef967cec28ce086e13017ae5a2c86c2a02e9181 SHA1 c09a7a2efbb96f25efc3e1f7ad408bf965900e78 SHA256 3200cf0e346287a9060074acc7e083c3ea5ee74927be67c1cc9d305bf069c14d
MISC ChangeLog 1142 RMD160 485636aa521f94c84cdd6d0689dccc74c18a18ea SHA1 b234a211a86a06849ef44b1fb7967420f848899a SHA256 7630fbc6394f26939bd2a2c7833d6329e6d1000e34c055f84d5ff2d7e9f3ce7a
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42

View File

@ -1,147 +0,0 @@
# 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/expat
dev-libs/glib
media-libs/fontconfig
media-libs/freetype
media-libs/glitz
media-libs/libpng
>=net-print/cups-1.2
sys-libs/zlib
www-client/mozilla-firefox
x11-libs/gtk+
x11-libs/pango
x11-libs/cairo
x11-libs/libXrender
x11-libs/libX11
x11-libs/libXext
!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"
}
pkg_postinst() {
##
## First, modify cupsd.conf to allow local access to /admin:
##
DATE=$(date +%Y%m%d)
TMP_DIR=/tmp
TMP_FILE="$(mktemp ${TMP_DIR}/.cupsd.conf.XXXXXX)"
EDIT_TAG="Edited by Novell-iPrint:"
CONF_FILE="/etc/cups/cupsd.conf"
BACKUP_FILE=${CONF_FILE}.bak.${DATE}.$$
# Modify CONF_FILE for 'low' security model for /admin section
if [ -f ${CONF_FILE} ]; then
sed -e "/^ *< *Location *\/admin/,/^ *< *\/Location *>/{ # Work only in the '<Location /admin>' block
/^.*Location/!d; # Delete all but the location directives
s@\(^ *< *Location.*$\)@\1\n# ${EDIT_TAG} ${DATE}\n#\n# Security setting: low\n# Original configuration backed up to ${BACKUP_FILE}\n#\n\nAuthType None\n\n## Restrict access to local domain\nOrder Deny,Allow\nDeny From All\nAllow From 127.0.0.1@;
}" ${CONF_FILE} > "${TMP_FILE}"
# Replace the CONF_FILE with our modified version
if ! cp "${CONF_FILE}" "${BACKUP_FILE}"; then
eerror "Failed to create backup of $(basename ${CONF_FILE})"
einfo "Add 'Allow From 127.0.0.1' for all users to <Location /admin> section manualy."
elif ! mv "${TMP_FILE}" ${CONF_FILE}; then
eerror "Failed to modify $(basename ${CONF_FILE})"
einfo "Add 'Allow From 127.0.0.1' for all users to <Location /admin> section manualy."
fi
rm -rf "${TMP_FILE}"
else
echo "${CONF_FILE}: No such file or directory or already modified by Novell iPrint"
fi
}

View File

@ -1,117 +0,0 @@
# 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/expat
dev-libs/glib
media-libs/fontconfig
media-libs/freetype
media-libs/glitz
media-libs/libpng
>=net-print/cups-1.2
sys-libs/zlib
www-client/mozilla-firefox
x11-libs/gtk+
x11-libs/pango
x11-libs/cairo
x11-libs/libXrender
x11-libs/libX11
x11-libs/libXext
!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"
}

View File

@ -1,117 +0,0 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
NOVELL_BUILDID="rBrHikQRbTg~"
NOVELL_FILE32="iprntlinuxclient438.tar.gz"
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="media-gfx/imagemagick"
RDEPEND="virtual/libc
dev-libs/atk
dev-libs/expat
dev-libs/glib
media-libs/fontconfig
media-libs/freetype
media-libs/glitz
media-libs/libpng
>=net-print/cups-1.2
sys-libs/zlib
www-client/mozilla-firefox
x11-libs/gtk+
x11-libs/pango
x11-libs/cairo
x11-libs/libXrender
x11-libs/libX11
x11-libs/libXext
!net-print/novell-iprint-xclient-sh
!net-print/novell-iprint-xclient-sl"
src_unpack() {
unpack ${A}
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}"/iprntlinuxclient438/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/applications
doins "${WORKDIR}"/${PN}-${MY_PV}/opt/kde3/share/applications/*.desktop
dosed "s:/opt/novell/iprint/share/icons/iprint_32.gif:iprint.png:g" /usr/share/applications/novell-iprint.desktop
dosym ../applications/novell-iprint.desktop /usr/share/autostart/novell-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/*/*
convert -size 32x32 "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/iprint/share/icons/iprint_32.gif "${WORKDIR}"/iprint_32.png
newicon "${WORKDIR}"/iprint_32.png iprint.png
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"
}