Move to root
This commit is contained in:
33
net-print/metadata.xml
Normal file
33
net-print/metadata.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<catmetadata>
|
||||
<longdescription lang="en">
|
||||
The net-print category contains network printing packages.
|
||||
</longdescription>
|
||||
<longdescription lang="de">
|
||||
Die Kategorie net-print enthält Software für das Drucken in Netzwerken.
|
||||
</longdescription>
|
||||
<longdescription lang="es">
|
||||
La categoría net-print contiene programas relacionadas con impresion.
|
||||
</longdescription>
|
||||
<longdescription lang="ja">
|
||||
net-printカテゴリーにはネットワーク・プリンティングのパッケージが含まれています。
|
||||
</longdescription>
|
||||
<longdescription lang="nl">
|
||||
De net-print categorie bevat applicaties voor netwerkprinten.
|
||||
</longdescription>
|
||||
<longdescription lang="vi">
|
||||
Nhóm net-print chứa các phần mềm in ấn qua mạng.
|
||||
</longdescription>
|
||||
<longdescription lang="it">
|
||||
La categoria net-print contiene programmi per la stampa via rete.
|
||||
</longdescription>
|
||||
<longdescription lang="pt">
|
||||
A categoria net-print contém pacotes relacionados com impressão
|
||||
de rede.
|
||||
</longdescription>
|
||||
<longdescription lang="pl">
|
||||
Kategoria net-print zawiera programy do drukowania w sieci.
|
||||
</longdescription>
|
||||
</catmetadata>
|
||||
|
||||
35
net-print/novell-iprint-xclient/ChangeLog
Normal file
35
net-print/novell-iprint-xclient/ChangeLog
Normal file
@@ -0,0 +1,35 @@
|
||||
# ChangeLog for net-print/novell-iprint-xclient
|
||||
# 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
|
||||
|
||||
*novell-iprint-xclient-6.500.20081007_p1 (03 Sep 2009)
|
||||
|
||||
03 Sep 2009; Mario Fetka <mario.fetka@gmail.com>
|
||||
+novell-iprint-xclient-6.500.20081007_p1.ebuild:
|
||||
Bump
|
||||
|
||||
04 Sep 2008; Mario Fetka <mario.fetka@gmail.com> +files/post-high,
|
||||
+files/post-low, +novell-iprint-xclient-6.500.20070508_p1-r1.ebuild:
|
||||
default to security low for localhost
|
||||
|
||||
03 Sep 2008; Mario Fetka <mario.fetka@gmail.com>
|
||||
novell-iprint-xclient-6.500.20070508_p1.ebuild:
|
||||
add missing RDEPEND
|
||||
|
||||
03 Sep 2008; Mario Fetka <mario.fetka@gmail.com>
|
||||
novell-iprint-xclient-6.500.20070508_p1.ebuild:
|
||||
add missing RDEPEND's
|
||||
|
||||
03 Sep 2008; Mario Fetka <mario.fetka@gmail.com> +metadata.xml:
|
||||
initial checkin
|
||||
|
||||
8
net-print/novell-iprint-xclient/Manifest
Normal file
8
net-print/novell-iprint-xclient/Manifest
Normal file
@@ -0,0 +1,8 @@
|
||||
AUX 80novell-iprint 176 RMD160 e6190bfcde19e2da265b790012582d4200c20668 SHA1 8d9051acc2390dd4fd40fb8221043b1ed0c80fe4 SHA256 a8eea0f270391a658d311a6de6f3b543db62a14767d6c9a966b15d845783d9b4
|
||||
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 iprntlinuxclient504.tar.gz 1189756 RMD160 ae577bb8790f99ec5a9a2b0eefbdbd6bf15bd2ee SHA1 7cbd7cf9b458d336dfc2b05898cb4b928585daf8 SHA256 f0e1eca760794e23beda9ab6125967a76c14db94b38cad082a2d8c8d11f317ec
|
||||
EBUILD novell-iprint-xclient-6.503.20111013.22.1.ebuild 3788 RMD160 4eac4781a0fd6469e48fbc83246ccaa12f647eea SHA1 01338c02b5b9b01e374954272411c2abdc0fc3f6 SHA256 fb040a7c5cf2787ca4ded23a5a6e7ed6257c23957975be71c02cdc7449a63f90
|
||||
MISC ChangeLog 1142 RMD160 485636aa521f94c84cdd6d0689dccc74c18a18ea SHA1 b234a211a86a06849ef44b1fb7967420f848899a SHA256 7630fbc6394f26939bd2a2c7833d6329e6d1000e34c055f84d5ff2d7e9f3ce7a
|
||||
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
|
||||
5
net-print/novell-iprint-xclient/files/80novell-iprint
Normal file
5
net-print/novell-iprint-xclient/files/80novell-iprint
Normal file
@@ -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
|
||||
5
net-print/novell-iprint-xclient/files/80novell-iprint64
Normal file
5
net-print/novell-iprint-xclient/files/80novell-iprint64
Normal file
@@ -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
|
||||
40
net-print/novell-iprint-xclient/files/post-high
Normal file
40
net-print/novell-iprint-xclient/files/post-high
Normal file
@@ -0,0 +1,40 @@
|
||||
##
|
||||
## 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 'high' 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: high\n# Original configuration backed up to ${BACKUP_FILE}\n#\n\nAuthType BasicDigest\nAuthClass Group\nAuthGroupName sys\n\n## Restrict access to local domain\nOrder Deny,Allow\nDeny From All\nAllow From 127.0.0.1\n#Encryption Required@;
|
||||
}" ${CONF_FILE} > "${TMP_FILE}"
|
||||
# Replace the CONF_FILE with our modified version
|
||||
if ! cp "${CONF_FILE}" "${BACKUP_FILE}"; then
|
||||
echo "Error: Failed to create backup of $(basename ${CONF_FILE})"
|
||||
echo "Add 'Allow From 127.0.0.1' for all users to <Location /admin> section manualy."
|
||||
elif ! mv "${TMP_FILE}" ${CONF_FILE}; then
|
||||
echo "Error: Failed to modify $(basename ${CONF_FILE})"
|
||||
echo "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
|
||||
/sbin/ldconfig
|
||||
# Restart cups
|
||||
# only if it is running ...
|
||||
|
||||
test -n "$FIRST_ARG" || FIRST_ARG=$1
|
||||
if test "$FIRST_ARG" -ge 1 ; then
|
||||
test -f /etc/sysconfig/services && . /etc/sysconfig/services
|
||||
if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_RESTART_ON_UPDATE" != yes ; then
|
||||
for service in cups ; do
|
||||
/etc/init.d/$service try-restart > /dev/null || :
|
||||
done
|
||||
fi
|
||||
fi
|
||||
40
net-print/novell-iprint-xclient/files/post-low
Normal file
40
net-print/novell-iprint-xclient/files/post-low
Normal file
@@ -0,0 +1,40 @@
|
||||
##
|
||||
## 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
|
||||
echo "Error: Failed to create backup of $(basename ${CONF_FILE})"
|
||||
echo "Add 'Allow From 127.0.0.1' for all users to <Location /admin> section manualy."
|
||||
elif ! mv "${TMP_FILE}" ${CONF_FILE}; then
|
||||
echo "Error: Failed to modify $(basename ${CONF_FILE})"
|
||||
echo "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
|
||||
/sbin/ldconfig
|
||||
# Restart cups
|
||||
# only if it is running ...
|
||||
|
||||
test -n "$FIRST_ARG" || FIRST_ARG=$1
|
||||
if test "$FIRST_ARG" -ge 1 ; then
|
||||
test -f /etc/sysconfig/services && . /etc/sysconfig/services
|
||||
if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_RESTART_ON_UPDATE" != yes ; then
|
||||
for service in cups ; do
|
||||
/etc/init.d/$service try-restart > /dev/null || :
|
||||
done
|
||||
fi
|
||||
fi
|
||||
5
net-print/novell-iprint-xclient/metadata.xml
Normal file
5
net-print/novell-iprint-xclient/metadata.xml
Normal 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>
|
||||
@@ -0,0 +1,117 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
NOVELL_BUILDID="APl_7DgzXGA~"
|
||||
NOVELL_FILE32="iprntlinuxclient504.tar.gz"
|
||||
RESTRICT="mirror strip"
|
||||
|
||||
inherit novell eutils rpm5 nsplugins versionator
|
||||
|
||||
MY_PV=$(replace_version_separator 3 '-')
|
||||
|
||||
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/libpng
|
||||
>=net-print/cups-1.2
|
||||
sys-libs/zlib
|
||||
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
|
||||
rpm5_unpack "${WORKDIR}"/linux-sled11/${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
|
||||
doins "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/iprint/plugin/libiprint-plugin.so
|
||||
inst_plugin /opt/novell/iprint/plugin/npnipp.so
|
||||
inst_plugin /opt/novell/iprint/plugin/libiprint-plugin.so
|
||||
insinto /usr/share/applications
|
||||
doins "${WORKDIR}"/${PN}-${MY_PV}/usr/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"
|
||||
}
|
||||
Reference in New Issue
Block a user