app-crypt/novell-nici: Bump and use my rpm5 eclass
This commit is contained in:
parent
c1a68bf078
commit
f214cb9685
@ -1,7 +1,11 @@
|
|||||||
# ChangeLog for app-crypt/novell-nici
|
# ChangeLog for app-crypt/novell-nici
|
||||||
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
|
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
|
||||||
# $Header: $
|
# $Header: $
|
||||||
|
|
||||||
|
16 Jan 2009; Mario Fetka <mario.fetka@gmail.com>
|
||||||
|
+novell-nici-2.7.4.6.ebuild:
|
||||||
|
Bump and use my rpm5 eclass
|
||||||
|
|
||||||
10 Dec 2008; Mario Fetka <mario.fetka@gmail.com>
|
10 Dec 2008; Mario Fetka <mario.fetka@gmail.com>
|
||||||
novell-nici-2.7.4.3.ebuild:
|
novell-nici-2.7.4.3.ebuild:
|
||||||
uncompress really yes
|
uncompress really yes
|
||||||
|
@ -11,6 +11,6 @@ EBUILD novell-nici-2.7.2_p001.ebuild 1688 RMD160 9cb6e827fd8f65800e703286cb858db
|
|||||||
EBUILD novell-nici-2.7.3_p12.ebuild 3579 RMD160 ff8c0d7da8da1398b3836df7ddc14f13e2ad4a69 SHA1 1bcdd21d9f21b515bc90fd54d060cca9b89628b3 SHA256 351253f8e39fe023eb67889b4e7245ad03f26cf1a07588054e38c0b37fb2da96
|
EBUILD novell-nici-2.7.3_p12.ebuild 3579 RMD160 ff8c0d7da8da1398b3836df7ddc14f13e2ad4a69 SHA1 1bcdd21d9f21b515bc90fd54d060cca9b89628b3 SHA256 351253f8e39fe023eb67889b4e7245ad03f26cf1a07588054e38c0b37fb2da96
|
||||||
EBUILD novell-nici-2.7.4.0.7.ebuild 3645 RMD160 c6cf146cd1e2ab11768157124785a31ee20a78c2 SHA1 b41c6409a49454c9cde204870e78c174635da11a SHA256 969b190b31e8fc84d2411d9a246522ad698b8ee39d20186444919e092ff6e40d
|
EBUILD novell-nici-2.7.4.0.7.ebuild 3645 RMD160 c6cf146cd1e2ab11768157124785a31ee20a78c2 SHA1 b41c6409a49454c9cde204870e78c174635da11a SHA256 969b190b31e8fc84d2411d9a246522ad698b8ee39d20186444919e092ff6e40d
|
||||||
EBUILD novell-nici-2.7.4.3.ebuild 3681 RMD160 459e2e657b9ca1d64284893c14390ca11c26e7d3 SHA1 0b9ac696d4f554c03a821f65c516a75161295764 SHA256 6d728f9d409954e1d772da5cd8437c7fba2594b5e1d4713150f3b0f2f1a98014
|
EBUILD novell-nici-2.7.4.3.ebuild 3681 RMD160 459e2e657b9ca1d64284893c14390ca11c26e7d3 SHA1 0b9ac696d4f554c03a821f65c516a75161295764 SHA256 6d728f9d409954e1d772da5cd8437c7fba2594b5e1d4713150f3b0f2f1a98014
|
||||||
EBUILD novell-nici-2.7.4.6.ebuild 3707 RMD160 5368cd5555a25e63e90091e60f25d195dafb210c SHA1 89932882c0eb41eb0da4cac129af32f63bae9082 SHA256 250da1ca8fcdbb6edd8a68ed347c8670b62afb60ae888bbee698417034990e83
|
EBUILD novell-nici-2.7.4.6.ebuild 3707 RMD160 eee45a0c6bdd1946eb63888fa75c4bf5a2362f31 SHA1 1d41e2408ea454ad5ab96c60fb36ea6fae21b79e SHA256 bf51f8f998d2cea2ebec4c5d92e1720b3c6ae158af797b516ef6e85f95bda773
|
||||||
MISC ChangeLog 2945 RMD160 e5f2571b4b75d2cff6dda7a92754a602abdf8eda SHA1 a942c638386501cc4628494b41c6af6f8e702d38 SHA256 b3706dba4bf2c10bd18b0350d223a6a24f7a1781a2fd7d12f3988b8099382e9c
|
MISC ChangeLog 3058 RMD160 d29852172f39a0a0bbe9fec8444a5c3e138c470d SHA1 71b2470a558abce3cbfeb6d5c2ecf3cd0409fa38 SHA256 f8d408b336f80cee47d5e9d2be290a93eb205d48ae576f3a61dbaa9c10ed6092
|
||||||
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
|
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
|
||||||
|
@ -0,0 +1,133 @@
|
|||||||
|
# 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"
|
||||||
|
USE_RPMOFFSET_ONLY="1"
|
||||||
|
|
||||||
|
inherit novell eutils rpm5 multilib versionator
|
||||||
|
|
||||||
|
MY_PVV=$(replace_version_separator 3 '-')
|
||||||
|
MY_PV="${MY_PVV/_p/-}"
|
||||||
|
|
||||||
|
DESCRIPTION="Novell NICI U.S./Worldwide (128bit) Crypto"
|
||||||
|
HOMEPAGE="http://www.novell.com"
|
||||||
|
SRC_URI="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=""
|
||||||
|
|
||||||
|
DEPEND=">=app-arch/p7zip-4.15"
|
||||||
|
|
||||||
|
RDEPEND="virtual/libc
|
||||||
|
net-nds/novell-env"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
cd "${WORKDIR}"
|
||||||
|
if use x86
|
||||||
|
then
|
||||||
|
narch=i586
|
||||||
|
nlib=lib
|
||||||
|
|
||||||
|
7z x "${DISTDIR}"/${NOVELL_FILE32}
|
||||||
|
mkdir -p "${WORKDIR}"/${PN}-${MY_P}
|
||||||
|
cd ${PN}-${MY_P}
|
||||||
|
rpm_unpack "${WORKDIR}"/suse/${narch}/nici-${MY_PV}.${narch}.rpm
|
||||||
|
elif use amd64
|
||||||
|
then
|
||||||
|
narch=x86_64
|
||||||
|
nlib=lib64
|
||||||
|
|
||||||
|
7z x "${DISTDIR}"/${NOVELL_FILE64}
|
||||||
|
7z x -y "${DISTDIR}"/${NOVELL_FILE32}
|
||||||
|
mkdir -p "${WORKDIR}"/${PN}-${MY_P}
|
||||||
|
cd ${PN}-${MY_P}
|
||||||
|
rpm_unpack "${WORKDIR}"/suse/${narch}/nici64-${MY_PV}.${narch}.rpm
|
||||||
|
|
||||||
|
if has_multilib_profile
|
||||||
|
then
|
||||||
|
rpm_unpack "${WORKDIR}"/suse/i586/nici-${MY_PV}.i586.rpm
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() { :; }
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
into /opt/novell
|
||||||
|
|
||||||
|
if use x86
|
||||||
|
then
|
||||||
|
dolib.so "${WORKDIR}"/${PN}-${MY_P}/opt/novell/${nlib}/*
|
||||||
|
elif has_multilib_profile
|
||||||
|
then
|
||||||
|
dolib.so "${WORKDIR}"/${PN}-${MY_P}/opt/novell/${nlib}/*
|
||||||
|
ABI="x86" dolib.so "${WORKDIR}"/${PN}-${MY_P}/opt/novell/lib/*
|
||||||
|
ABI="x86" dosym ../../opt/novell/$(get_libdir)/libccs2.so /usr/$(get_libdir)/libccs2.so
|
||||||
|
else
|
||||||
|
dolib.so "${WORKDIR}"/${PN}-${MY_P}/opt/novell/${nlib}/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
doman "${WORKDIR}"/${PN}-${MY_P}/opt/novell/man/*/*
|
||||||
|
|
||||||
|
into /usr
|
||||||
|
dosym ../../opt/novell/$(get_libdir)/libccs2.so /usr/$(get_libdir)/libccs2.so
|
||||||
|
|
||||||
|
insinto /etc/opt/novell/
|
||||||
|
doins "${WORKDIR}"/${PN}-${MY_P}/etc/opt/novell/nici*.cfg
|
||||||
|
|
||||||
|
if use x86 || has_multilib_profile
|
||||||
|
then
|
||||||
|
dosym opt/novell/nici.cfg /etc/nici.cfg
|
||||||
|
fi
|
||||||
|
|
||||||
|
diropts -m777
|
||||||
|
dodir /var/opt/novell/nici
|
||||||
|
exeinto /var/opt/novell/nici
|
||||||
|
doexe "${WORKDIR}"/${PN}-${MY_P}/var/opt/novell/nici/primenici*
|
||||||
|
doexe "${WORKDIR}"/${PN}-${MY_P}/var/opt/novell/nici/nicimud*
|
||||||
|
doexe "${WORKDIR}"/${PN}-${MY_P}/var/opt/novell/nici/set_server_mode*
|
||||||
|
|
||||||
|
insinto /var/opt/novell/nici
|
||||||
|
doins "${WORKDIR}"/${PN}-${MY_P}/var/opt/novell/nici/nicifk.new
|
||||||
|
doins "${WORKDIR}"/${PN}-${MY_P}/var/opt/novell/nici/xmgrcfg.wks
|
||||||
|
dodir /var/novell
|
||||||
|
dosym ../opt/novell/nici /var/novell/nici
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if use x86
|
||||||
|
then
|
||||||
|
/var/opt/novell/nici/primenici
|
||||||
|
elif use amd64
|
||||||
|
then
|
||||||
|
/var/opt/novell/nici/primenici64
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
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