net-misc/novell-client-script: cleanup
This commit is contained in:
parent
1b11378bba
commit
e2271a1820
@ -2,6 +2,12 @@
|
|||||||
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
|
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
|
||||||
# $Header: $
|
# $Header: $
|
||||||
|
|
||||||
|
07 Jul 2010; Mario Fetka <mario.fetka@gmail.com>
|
||||||
|
-novell-client-script-2.0.0_p30.ebuild,
|
||||||
|
-novell-client-script-2.0.0_p32.ebuild,
|
||||||
|
-novell-client-script-2.0.1.0.12.ebuild:
|
||||||
|
cleanup
|
||||||
|
|
||||||
07 Jul 2010; Mario Fetka <mario.fetka@gmail.com>
|
07 Jul 2010; Mario Fetka <mario.fetka@gmail.com>
|
||||||
+novell-client-script-3.0.0.4.ebuild:
|
+novell-client-script-3.0.0.4.ebuild:
|
||||||
Bump
|
Bump
|
||||||
|
@ -1,17 +1,8 @@
|
|||||||
DIST Novell_Client_SLE11-i586-20081218-CD1.iso 8058880 RMD160 4a2a4146e82f0bb6f3f64e47f992fafcd20ce2e4 SHA1 e688c2571d90d5726928ff325e8da274f863d89f SHA256 7c3a6487879ae7846f3859e906e52811321b049667cbb04cb48fac079e6aee2e
|
|
||||||
DIST Novell_Client_SLE11-x86_64-20081218-CD1.iso 8388608 RMD160 749d45b32a1317a8e48f5c4346ea235078bab721 SHA1 7bb062942005e1316539e8b97e961c8cbb0a0c2e SHA256 cc0be51b5f3c61bd071751c26c65fd3fc0a5cea495622bbce2e811973fa70d59
|
|
||||||
DIST novell-client-2.0-sp2-patch2-sle11-i586.iso 7997440 RMD160 e65eb47b944800d92ca4e37f3397e325f97034ab SHA1 10388020720829678b39fa73ce113d1edb16fd5b SHA256 3df7fd33504543cbbd0cef9a1917c3b9979c70f0ad27643d80daba7e28523021
|
DIST novell-client-2.0-sp2-patch2-sle11-i586.iso 7997440 RMD160 e65eb47b944800d92ca4e37f3397e325f97034ab SHA1 10388020720829678b39fa73ce113d1edb16fd5b SHA256 3df7fd33504543cbbd0cef9a1917c3b9979c70f0ad27643d80daba7e28523021
|
||||||
DIST novell-client-2.0-sp2-patch2-sle11-x86_64.iso 7976960 RMD160 f81ab1c343291b428a05230e33e306679825a027 SHA1 9d13af47bf0dd34576ecaa8ff16f7e34bc5bf485 SHA256 7e985f980a3cc197fb9dc0017d4c72e4be61709b894080825315cf0c84b705be
|
DIST novell-client-2.0-sp2-patch2-sle11-x86_64.iso 7976960 RMD160 f81ab1c343291b428a05230e33e306679825a027 SHA1 9d13af47bf0dd34576ecaa8ff16f7e34bc5bf485 SHA256 7e985f980a3cc197fb9dc0017d4c72e4be61709b894080825315cf0c84b705be
|
||||||
DIST novell-client-2.0-sp2-sle11-i586.iso 8083456 RMD160 2cbd4ff77d1c4894621efed58a92c728ee9adfe1 SHA1 4e61f5421b369a44966c848671c6db20aa478d1d SHA256 9aa9f5cc4cd415476bcfaae278c38947c5809802c36ae40855252d9167189a1f
|
|
||||||
DIST novell-client-2.0-sp2-sle11-x86_64.iso 8400896 RMD160 92fe3ecfdb89e28cc3b417d1305e2ea8d79970f5 SHA1 b8241956f966ce55a24572aee25aa4747826f760 SHA256 cfb27415884042ecde16be9f671dc8910d578fb850b57aeb57bc96d26329dee9
|
|
||||||
DIST novell-client-2.0-sp3-sled10sp3-i386-CD1.iso 9959424 RMD160 48242b1ae27a15d3755c437d2a204dfef974e887 SHA1 94f49fe432aa136cb0dc30f7cd3970c11931c659 SHA256 7c2448eccbf057d820442b88861c81696fc1e3155cd799da29c8ac809e35eeca
|
|
||||||
DIST novell-client-2.0-sp3-sled10sp3-x86_64-CD1.iso 10782720 RMD160 f005eea112c4139256511713d3f9b3cbcb3c0caf SHA1 938f29ab820cd6aa79dd504bcc71164e3885f8ac SHA256 16da3ebf0e100825605b71515ac94daf5f382206e60c009f47a715da24094bb8
|
|
||||||
DIST novell-client-3.0-sled11-i586-CD1.iso 7987200 RMD160 b98b4cb79ddfbd7fe6dc3442288ef71fac6baef3 SHA1 a15b18e570d32e3c0b3ae8f7cdb51c233214ee45 SHA256 59dba7ed244811c645b52c4b8476c725b771064e1ff43c33f37001f01c7584ed
|
DIST novell-client-3.0-sled11-i586-CD1.iso 7987200 RMD160 b98b4cb79ddfbd7fe6dc3442288ef71fac6baef3 SHA1 a15b18e570d32e3c0b3ae8f7cdb51c233214ee45 SHA256 59dba7ed244811c645b52c4b8476c725b771064e1ff43c33f37001f01c7584ed
|
||||||
DIST novell-client-3.0-sled11-x86_64-CD1.iso 7968768 RMD160 9262874512d6c2ac7ae63b2ed108d097194741b5 SHA1 ef1987e0f71f4775d2e3b5d342fdeacd4f9ca3db SHA256 3223dc757e1788222d95c1b3353b9b156072d1b3a027b6fa4b71007b6aae4a05
|
DIST novell-client-3.0-sled11-x86_64-CD1.iso 7968768 RMD160 9262874512d6c2ac7ae63b2ed108d097194741b5 SHA1 ef1987e0f71f4775d2e3b5d342fdeacd4f9ca3db SHA256 3223dc757e1788222d95c1b3353b9b156072d1b3a027b6fa4b71007b6aae4a05
|
||||||
EBUILD novell-client-script-2.0.0_p30.ebuild 3296 RMD160 3bc4724e36174999579a167b809f3284701cd57d SHA1 16edc4828339c7f5dc16ede270ff7e354f5a0b08 SHA256 27782369d9b6ec1e1bb191db5c6c52bd06161b874855b45c5e421e3a023f5e7c
|
|
||||||
EBUILD novell-client-script-2.0.0_p32.ebuild 3225 RMD160 caaa8e923ee9269ee0c0ce613b9ecf3fa26bbf44 SHA1 c2781db98a146f98c1574b23a158f9881fb41723 SHA256 b84ce72bb9af1fff4f483b565557c0c92bc5ce518eb8982a6e831f8121c0d0eb
|
|
||||||
EBUILD novell-client-script-2.0.1.0.12.ebuild 3292 RMD160 a2bdf9e89f046ba1881d34dd5c88b3e48dc20528 SHA1 d1c8c0869855987857da31fcd02a02f4d4f13c2a SHA256 9535aa7101082ad2f52a03a1316a96ae338129490bc61a28c30d5f1a43938c31
|
|
||||||
EBUILD novell-client-script-3.0.0.2.ebuild 3278 RMD160 f256b81d253212af9301ca09a301342d765e9438 SHA1 71cc34d0b05c22597d410e95cad8990680074165 SHA256 b6ed5d5fc5f612d51541fbde383c30da5c78a43cd7da24e92865ea10f49efd37
|
EBUILD novell-client-script-3.0.0.2.ebuild 3278 RMD160 f256b81d253212af9301ca09a301342d765e9438 SHA1 71cc34d0b05c22597d410e95cad8990680074165 SHA256 b6ed5d5fc5f612d51541fbde383c30da5c78a43cd7da24e92865ea10f49efd37
|
||||||
EBUILD novell-client-script-3.0.0.4.ebuild 3313 RMD160 434c78c691db3629c16b736dd4857a3cf6d42069 SHA1 743808d4d930a23bbffcfddb1459b4958a6577a2 SHA256 d622e080cbd9b2d455a566a5d3b78fa42f3c32e4d39f22f81531b81e9c747511
|
EBUILD novell-client-script-3.0.0.4.ebuild 3313 RMD160 434c78c691db3629c16b736dd4857a3cf6d42069 SHA1 743808d4d930a23bbffcfddb1459b4958a6577a2 SHA256 d622e080cbd9b2d455a566a5d3b78fa42f3c32e4d39f22f81531b81e9c747511
|
||||||
MISC ChangeLog 2385 RMD160 37493701582a9906af4d3eca07dbe36c4c2947ac SHA1 97d845b8745f4cb77e2d545f8b20c2224e8c8eff SHA256 ccde98f9a2248899dac64e64ed827f02e7ca3a21de4643864bec059207ede4c2
|
MISC ChangeLog 2574 RMD160 900f2f51b7248947163e84b0d6644eeb443fe91a SHA1 92aa878ef8556483c741e7c9e21cd690c62168f0 SHA256 4491d57813a86d4b43e465312a9858c80ceb07e9c02c72a56b4690467bd03cb0
|
||||||
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
|
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
|
||||||
|
@ -1,103 +0,0 @@
|
|||||||
# Copyright 1999-2009 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: $
|
|
||||||
|
|
||||||
NOVELL_BUILDID="CuRXfXSzq7M~"
|
|
||||||
NOVELL_FILE32="Novell_Client_SLE11-i586-20081218-CD1.iso"
|
|
||||||
NOVELL_FILE64="Novell_Client_SLE11-x86_64-20081218-CD1.iso"
|
|
||||||
RESTRICT="mirror strip"
|
|
||||||
|
|
||||||
inherit novell eutils rpm5 pam
|
|
||||||
|
|
||||||
MY_PV="${PV/_p/-}"
|
|
||||||
|
|
||||||
DESCRIPTION="Novell Modules for Login Script Procssing"
|
|
||||||
HOMEPAGE="http://www.novell.com"
|
|
||||||
SRC_URI="x86? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE32} )
|
|
||||||
amd64? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE64} )"
|
|
||||||
|
|
||||||
LICENSE="Novell-NCL"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~x86 ~amd64"
|
|
||||||
IUSE="linguas_cs_CZ linguas_da_DA linguas_de linguas_en linguas_es linguas_fi_FI linguas_fr linguas_hu linguas_it linguas_ja_JP linguas_nb_NB linguas_pl linguas_pt linguas_ru linguas_sk_SK linguas_zh_CN linguas_zh_TW"
|
|
||||||
|
|
||||||
DEPEND=">=app-arch/p7zip-4.15"
|
|
||||||
|
|
||||||
RDEPEND="virtual/libc
|
|
||||||
net-misc/novell-client-env
|
|
||||||
!dev-perl/Unicode-MAP
|
|
||||||
>=sys-libs/novell-xplatlib-1.0.3_p31
|
|
||||||
>=sys-libs/pam-0.99.3"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
cd "${WORKDIR}"
|
|
||||||
if use x86
|
|
||||||
then
|
|
||||||
narch=i586
|
|
||||||
nlib=lib
|
|
||||||
7z x "${DISTDIR}"/${NOVELL_FILE32}
|
|
||||||
elif use amd64
|
|
||||||
then
|
|
||||||
narch=x86_64
|
|
||||||
nlib=lib64
|
|
||||||
7z x "${DISTDIR}"/${NOVELL_FILE64}
|
|
||||||
fi
|
|
||||||
mkdir -p "${WORKDIR}"/${PN}-${MY_PV}
|
|
||||||
cd ${PN}-${MY_PV}
|
|
||||||
rpm5_unpack "${WORKDIR}"/suse/${narch}/${PN}-${MY_PV}.${narch}.rpm
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() { :; }
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
for x in cs_CZ da_DA de en es fi_FI fr hu it ja_JP nb_NB pl pt ru sk_SK zh_CN zh_TW
|
|
||||||
do
|
|
||||||
if use linguas_${x}
|
|
||||||
then
|
|
||||||
cp "${WORKDIR}"/${PN}-${MY_PV}/usr/share/locale/${x}/LC_MESSAGES/${PN}.mo "${WORKDIR}"/${x}.mo
|
|
||||||
domo "${WORKDIR}"/${x}.mo
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
dosbin "${WORKDIR}"/${PN}-${MY_PV}/sbin/*
|
|
||||||
dosed 's:MAP:map:' /usr/sbin/mount.map
|
|
||||||
dopamd "${WORKDIR}"/${PN}-${MY_PV}/etc/pam.d/*
|
|
||||||
# dopamsecurity / "${WORKDIR}"/${PN}-${MY_PV}/etc/security/*.conf
|
|
||||||
dopammod "${WORKDIR}"/${PN}-${MY_PV}/${nlib}/security/*
|
|
||||||
into /opt/novell
|
|
||||||
dolib.so "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/${nlib}/*
|
|
||||||
doman "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/man/*/*
|
|
||||||
into /opt/novell/ncl
|
|
||||||
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/*
|
|
||||||
dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
|
|
||||||
insinto /opt/novell/include/ncl_script
|
|
||||||
doins "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/include/ncl_script/*.h
|
|
||||||
dosym map /opt/novell/ncl/bin/nwmap
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_prerm() {
|
|
||||||
/opt/novell/ncl/bin/login_ucfg_pam
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
/opt/novell/ncl/bin/login_cfg_pam
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_nofetch() {
|
|
||||||
einfo "This files require you to register at ${HOMEPAGE} (free account)"
|
|
||||||
einfo "Please download following file:"
|
|
||||||
if use x86
|
|
||||||
then
|
|
||||||
einfo " - ${NOVELL_FILE32}"
|
|
||||||
elif use amd64
|
|
||||||
then
|
|
||||||
einfo " - ${NOVELL_FILE64}"
|
|
||||||
fi
|
|
||||||
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"
|
|
||||||
}
|
|
@ -1,103 +0,0 @@
|
|||||||
# Copyright 1999-2009 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: $
|
|
||||||
|
|
||||||
NOVELL_BUILDID="_xf1ppPR2xA~"
|
|
||||||
NOVELL_FILE32="novell-client-2.0-sp2-sle11-i586.iso"
|
|
||||||
NOVELL_FILE64="novell-client-2.0-sp2-sle11-x86_64.iso"
|
|
||||||
RESTRICT="mirror strip"
|
|
||||||
|
|
||||||
inherit novell eutils rpm5 pam
|
|
||||||
|
|
||||||
MY_PV="${PV/_p/-}"
|
|
||||||
|
|
||||||
DESCRIPTION="Novell Modules for Login Script Procssing"
|
|
||||||
HOMEPAGE="http://www.novell.com"
|
|
||||||
SRC_URI="x86? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE32} )
|
|
||||||
amd64? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE64} )"
|
|
||||||
|
|
||||||
LICENSE="Novell-NCL"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~x86 ~amd64"
|
|
||||||
IUSE="linguas_cs linguas_da linguas_de linguas_en linguas_es linguas_fi linguas_fr linguas_hu linguas_it linguas_ja linguas_nb linguas_pl linguas_pt linguas_ru linguas_sk linguas_zh"
|
|
||||||
|
|
||||||
DEPEND=">=app-arch/p7zip-4.15"
|
|
||||||
|
|
||||||
RDEPEND="virtual/libc
|
|
||||||
net-misc/novell-client-env
|
|
||||||
!dev-perl/Unicode-MAP
|
|
||||||
>=sys-libs/novell-xplatlib-1.0.3_p31
|
|
||||||
>=sys-libs/pam-0.99.3"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
cd "${WORKDIR}"
|
|
||||||
if use x86
|
|
||||||
then
|
|
||||||
narch=i586
|
|
||||||
nlib=lib
|
|
||||||
7z x "${DISTDIR}"/${NOVELL_FILE32}
|
|
||||||
elif use amd64
|
|
||||||
then
|
|
||||||
narch=x86_64
|
|
||||||
nlib=lib64
|
|
||||||
7z x "${DISTDIR}"/${NOVELL_FILE64}
|
|
||||||
fi
|
|
||||||
mkdir -p "${WORKDIR}"/${PN}-${MY_PV}
|
|
||||||
cd ${PN}-${MY_PV}
|
|
||||||
rpm5_unpack "${WORKDIR}"/suse/${narch}/${PN}-${MY_PV}.${narch}.rpm
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() { :; }
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
for x in cs da de en es fi fr hu it ja nb pl pt ru sk zh
|
|
||||||
do
|
|
||||||
if use linguas_${x}
|
|
||||||
then
|
|
||||||
cp "${WORKDIR}"/${PN}-${MY_PV}/usr/share/locale/${x}*/LC_MESSAGES/${PN}.mo "${WORKDIR}"/${x}.mo
|
|
||||||
domo "${WORKDIR}"/${x}.mo
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
dosbin "${WORKDIR}"/${PN}-${MY_PV}/sbin/*
|
|
||||||
dosed 's:MAP:map:' /usr/sbin/mount.map
|
|
||||||
dopamd "${WORKDIR}"/${PN}-${MY_PV}/etc/pam.d/*
|
|
||||||
# dopamsecurity / "${WORKDIR}"/${PN}-${MY_PV}/etc/security/*.conf
|
|
||||||
dopammod "${WORKDIR}"/${PN}-${MY_PV}/${nlib}/security/*
|
|
||||||
into /opt/novell
|
|
||||||
dolib.so "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/${nlib}/*
|
|
||||||
doman "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/man/*/*
|
|
||||||
into /opt/novell/ncl
|
|
||||||
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/*
|
|
||||||
dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
|
|
||||||
insinto /opt/novell/include/ncl_script
|
|
||||||
doins "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/include/ncl_script/*.h
|
|
||||||
dosym map /opt/novell/ncl/bin/nwmap
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_prerm() {
|
|
||||||
/opt/novell/ncl/bin/login_ucfg_pam
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
/opt/novell/ncl/bin/login_cfg_pam
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_nofetch() {
|
|
||||||
einfo "This files require you to register at ${HOMEPAGE} (free account)"
|
|
||||||
einfo "Please download following file:"
|
|
||||||
if use x86
|
|
||||||
then
|
|
||||||
einfo " - ${NOVELL_FILE32}"
|
|
||||||
elif use amd64
|
|
||||||
then
|
|
||||||
einfo " - ${NOVELL_FILE64}"
|
|
||||||
fi
|
|
||||||
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"
|
|
||||||
}
|
|
@ -1,104 +0,0 @@
|
|||||||
# Copyright 1999-2009 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: $
|
|
||||||
|
|
||||||
NOVELL_BUILDID="I0HifNSKi_0~"
|
|
||||||
NOVELL_FILE32="novell-client-2.0-sp3-sled10sp3-i386-CD1.iso"
|
|
||||||
NOVELL_FILE64="novell-client-2.0-sp3-sled10sp3-x86_64-CD1.iso"
|
|
||||||
RESTRICT="mirror strip"
|
|
||||||
|
|
||||||
inherit novell eutils rpm5 pam versionator
|
|
||||||
|
|
||||||
MY_PV=$(replace_version_separator 3 '-')
|
|
||||||
|
|
||||||
DESCRIPTION="Novell Modules for Login Script Procssing"
|
|
||||||
HOMEPAGE="http://www.novell.com"
|
|
||||||
SRC_URI="x86? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE32} )
|
|
||||||
amd64? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE64} )"
|
|
||||||
|
|
||||||
LICENSE="Novell-NCL"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~x86 ~amd64"
|
|
||||||
#IUSE="linguas_cs linguas_da linguas_de linguas_en linguas_es linguas_fi linguas_fr linguas_hu linguas_it linguas_ja linguas_nb linguas_pl linguas_pt linguas_ru linguas_sk linguas_zh"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=">=app-arch/p7zip-4.15"
|
|
||||||
|
|
||||||
RDEPEND="virtual/libc
|
|
||||||
net-misc/novell-client-env
|
|
||||||
!dev-perl/Unicode-MAP
|
|
||||||
>=sys-libs/novell-xplatlib-1.0.3_p31
|
|
||||||
>=sys-libs/pam-0.99.3"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
cd "${WORKDIR}"
|
|
||||||
if use x86
|
|
||||||
then
|
|
||||||
narch=i586
|
|
||||||
nlib=lib
|
|
||||||
7z x "${DISTDIR}"/${NOVELL_FILE32}
|
|
||||||
elif use amd64
|
|
||||||
then
|
|
||||||
narch=x86_64
|
|
||||||
nlib=lib64
|
|
||||||
7z x "${DISTDIR}"/${NOVELL_FILE64}
|
|
||||||
fi
|
|
||||||
mkdir -p "${WORKDIR}"/${PN}-${MY_PV}
|
|
||||||
cd ${PN}-${MY_PV}
|
|
||||||
rpm5_unpack "${WORKDIR}"/suse/${narch}/${PN}-${MY_PV}.${narch}.rpm
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() { :; }
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# for x in cs da de en es fi fr hu it ja nb pl pt ru sk zh
|
|
||||||
# do
|
|
||||||
# if use linguas_${x}
|
|
||||||
# then
|
|
||||||
# cp "${WORKDIR}"/${PN}-${MY_PV}/usr/share/locale/${x}*/LC_MESSAGES/${PN}.mo "${WORKDIR}"/${x}.mo
|
|
||||||
# domo "${WORKDIR}"/${x}.mo
|
|
||||||
# fi
|
|
||||||
# done
|
|
||||||
dosbin "${WORKDIR}"/${PN}-${MY_PV}/sbin/*
|
|
||||||
dosed 's:MAP:map:' /usr/sbin/mount.map
|
|
||||||
dopamd "${WORKDIR}"/${PN}-${MY_PV}/etc/pam.d/*
|
|
||||||
# dopamsecurity / "${WORKDIR}"/${PN}-${MY_PV}/etc/security/*.conf
|
|
||||||
dopammod "${WORKDIR}"/${PN}-${MY_PV}/${nlib}/security/*
|
|
||||||
into /opt/novell
|
|
||||||
dolib.so "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/${nlib}/*
|
|
||||||
doman "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/man/*/*
|
|
||||||
into /opt/novell/ncl
|
|
||||||
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/*
|
|
||||||
dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
|
|
||||||
insinto /opt/novell/include/ncl_script
|
|
||||||
doins "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/include/ncl_script/*.h
|
|
||||||
dosym map /opt/novell/ncl/bin/nwmap
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_prerm() {
|
|
||||||
/opt/novell/ncl/bin/login_ucfg_pam
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
/opt/novell/ncl/bin/login_cfg_pam
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_nofetch() {
|
|
||||||
einfo "This files require you to register at ${HOMEPAGE} (free account)"
|
|
||||||
einfo "Please download following file:"
|
|
||||||
if use x86
|
|
||||||
then
|
|
||||||
einfo " - ${NOVELL_FILE32}"
|
|
||||||
elif use amd64
|
|
||||||
then
|
|
||||||
einfo " - ${NOVELL_FILE64}"
|
|
||||||
fi
|
|
||||||
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