net-fs/novell-novfsd: Updated to new release drop old

This commit is contained in:
geos_one 2009-04-10 09:56:13 +00:00
parent b339fb3a2e
commit 3283c7b237
6 changed files with 18 additions and 451 deletions

View File

@ -2,6 +2,12 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $ # $Header: $
10 Apr 2009; Mario Fetka <mario.fetka@gmail.com>
-novell-novfsd-2.0.0_p29.ebuild, -novell-novfsd-3.0.0.1.5.ebuild,
-novell-novfsd-3.0.0.8.ebuild, -novell-novfsd-3.0.0.11.ebuild,
+novell-novfsd-3.0.0.14.ebuild:
Updated to new release drop old
09 Apr 2009; Mario Fetka <mario.fetka@gmail.com> 09 Apr 2009; Mario Fetka <mario.fetka@gmail.com>
novell-novfsd-3.0.0.11-r1.ebuild: novell-novfsd-3.0.0.11-r1.ebuild:
correct rpm_unpack correct rpm_unpack

View File

@ -1,17 +1,10 @@
AUX 50_novfsd.sh 1157 RMD160 6990703083869b442b7836bd11055068622c32a4 SHA1 adc4b602fa5193e99c98cac06d9d58d83321927c SHA256 c5835263a5d754df3c6f1a4264b8e0238078bee54fe81b1226601c98a7f391c9 AUX 50_novfsd.sh 1157 RMD160 6990703083869b442b7836bd11055068622c32a4 SHA1 adc4b602fa5193e99c98cac06d9d58d83321927c SHA256 c5835263a5d754df3c6f1a4264b8e0238078bee54fe81b1226601c98a7f391c9
AUX novfsd20.initd 1621 RMD160 ac7aee732f7ad8c928cf96b60a6c4d0f99a3a0f6 SHA1 f2f7e72036e6a0f7f3cce5739fb5f971167cd05c SHA256 c7df540ee72b34ab8305d11357594df47eb9a64b8ae47fd72e5add565738e34f AUX novfsd20.initd 1621 RMD160 ac7aee732f7ad8c928cf96b60a6c4d0f99a3a0f6 SHA1 f2f7e72036e6a0f7f3cce5739fb5f971167cd05c SHA256 c7df540ee72b34ab8305d11357594df47eb9a64b8ae47fd72e5add565738e34f
DIST Novell_Client_11.0-i386-20081003-CD1.iso 10033152 RMD160 fadcd5ad983fd7c7dc103c16dcfe9830cf0cd574 SHA1 358e219ad0bda13bbd4835342f24c1b01c5f1775 SHA256 cc84aab8c954037479ed2fa3616b76de17047341d25a2aa6210ac050023e3c00
DIST Novell_Client_11.0-x86_64-20081003-CD1.iso 10487808 RMD160 8965da596c4e339ff2b5b8d240f91a478f9ca2d5 SHA1 acb2ef899c9c593e6f16b1226ed68f54e12f7214 SHA256 81c3153f9fa435ab7251694873c9b4083b126ebae544bd30527fb8183e690789
DIST Novell_Client_SLE11-i586-20081218-CD1.iso 8058880 RMD160 4a2a4146e82f0bb6f3f64e47f992fafcd20ce2e4 SHA1 e688c2571d90d5726928ff325e8da274f863d89f SHA256 7c3a6487879ae7846f3859e906e52811321b049667cbb04cb48fac079e6aee2e 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_SLE11-x86_64-20081218-CD1.iso 8388608 RMD160 749d45b32a1317a8e48f5c4346ea235078bab721 SHA1 7bb062942005e1316539e8b97e961c8cbb0a0c2e SHA256 cc0be51b5f3c61bd071751c26c65fd3fc0a5cea495622bbce2e811973fa70d59
DIST novell-client-2.0-SP1-sle10sp2-i386.iso 10100736 RMD160 dc9313c69a22359c9cdbb2f9105543d11a912381 SHA1 da0cfa59099a4de7d4bdc2a6390d8993c48ee00c SHA256 9c7edfcb67c6ea3a7c67c48568139b8c6dc369b106781320cf117cbda468ae70 DIST novell-client-2.0-sp2-sle11-i586.iso 8083456 RMD160 2cbd4ff77d1c4894621efed58a92c728ee9adfe1 SHA1 4e61f5421b369a44966c848671c6db20aa478d1d SHA256 9aa9f5cc4cd415476bcfaae278c38947c5809802c36ae40855252d9167189a1f
DIST novell-client-2.0-SP1-sle10sp2-x86_64.iso 10971136 RMD160 2cf2b3c0b73b827ab4be0d74f87a9764c807c76b SHA1 91318ad4e643d2f43d47fd9fb234050d9ad62194 SHA256 789dc3bb04d8e7a7714001bce6af6ba8aba769ed32251e9cad53274322261028 DIST novell-client-2.0-sp2-sle11-x86_64.iso 8400896 RMD160 92fe3ecfdb89e28cc3b417d1305e2ea8d79970f5 SHA1 b8241956f966ce55a24572aee25aa4747826f760 SHA256 cfb27415884042ecde16be9f671dc8910d578fb850b57aeb57bc96d26329dee9
DIST novell-client-2.0-sle10sp1-i386.iso 10866688 RMD160 b478e97de576987b0a3b801965dbddb4fc8d8ce0 SHA1 49d70ed6e7007b7e18468ec0b42bed6ac6b8702f SHA256 a6609aee78e90a5375fd698b571a015b3696d10ff2f11d085e4abf5b404a35d6
DIST novell-client-2.0-sle10sp1-x86_64.iso 11649024 RMD160 4f3a08e9cfea2b78072ba9114ecf03b44d8da17a SHA1 f1f5c78851a66c963fef02c69d89e86a3ba12d00 SHA256 3b70e2c81ded3916771a22a5c284c0d5ac7b32b8a47207d01350f9f952fd216f
EBUILD novell-novfsd-2.0.0_p29.ebuild 3689 RMD160 3413f51b7087bb53de86dba89b1093e4ab1e3fa5 SHA1 d024c6c156b4308d26343cb831d5458e2ba3fee3 SHA256 226a2ab7b586bc06e3322582e5d82350f80c182041414d45237a7fc8b9bd297e
EBUILD novell-novfsd-3.0.0.1.5.ebuild 3755 RMD160 4ce882c490f14c9e5398a60dcda5ad8d8f72861b SHA1 5bcb85257fe301536d1ae51b243531149fc703b7 SHA256 e42ff8539e36230045c30bcc17b73611921bbcebe2980076ed46368517e076ab
EBUILD novell-novfsd-3.0.0.11-r1.ebuild 2696 RMD160 8939d898428022104f34237df406109181acc7ef SHA1 1101b9d98ae5c9ecbf35353bbac40a64fa5ec0ae SHA256 f5f2f187a8d8a2cab4256a8f3cf2b8b795fb3bbd20dd900f70c7da2dffc16fc1 EBUILD novell-novfsd-3.0.0.11-r1.ebuild 2696 RMD160 8939d898428022104f34237df406109181acc7ef SHA1 1101b9d98ae5c9ecbf35353bbac40a64fa5ec0ae SHA256 f5f2f187a8d8a2cab4256a8f3cf2b8b795fb3bbd20dd900f70c7da2dffc16fc1
EBUILD novell-novfsd-3.0.0.11.ebuild 3761 RMD160 df0ae0d61a6aa97935096cde82b88fa3afc3e69a SHA1 d1434b3f106e0872f69ec5235b653d74b854b41d SHA256 b3826dc605b92e66829cc318661327f5cf391eb7e6a156e8ee61ceea13460df6 EBUILD novell-novfsd-3.0.0.14.ebuild 2683 RMD160 1152ad81388714f6091b7199f28334fcb8ae16eb SHA1 be180da7bb8adfa6f9be181faa210d19c1e8d4d9 SHA256 57c425d8266d0d1bfb97556315cbe0a2b30a54c89752b442989a619add796e19
EBUILD novell-novfsd-3.0.0.8.ebuild 3757 RMD160 c0be399c8c9e5347e59d11e021a60e7beebde58f SHA1 e16271cd4e02b18532f322b6e60774956389c769 SHA256 b20366be5e523709900efdd213d3e20bec20f8327757993127634c447d41ad56 MISC ChangeLog 2304 RMD160 95097f7fcad9eb7d3f13b7c40036d75729cb948e SHA1 7d282c3370060770fe2f00508b2123f4add21efe SHA256 4e6df13b34523d5b5866e5fdef7ab55c205d1d442487b74fb6bc24723778cb31
MISC ChangeLog 2051 RMD160 595eab48e649e640d7f4e8ed5a2ce35e076fd50c SHA1 231371b2f954268918bc84b3c342b7b1e7efc603 SHA256 c4edcb7835686498e61a90c9a5d3c8ccc231ea56d91e2e2edaef88f45d4e3298
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42

View File

@ -1,130 +0,0 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
NOVELL_BUILDID="pvOi9l3qYn4~"
NOVELL_FILE32="novell-client-2.0-sle10sp1-i386.iso"
NOVELL_FILE64="novell-client-2.0-sle10sp1-x86_64.iso"
RESTRICT="mirror strip"
inherit novell eutils rpm
MY_PV="${PV/_p/-}"
DESCRIPTION="Novell Client for Linux file system deamon"
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=""
DEPEND=">=app-arch/p7zip-4.15"
RDEPEND="virtual/libc
net-misc/novell-client-env
>=sys-devel/gcc-4.1
>=net-nds/novell-xtier-base-3.1.5_p46
>=net-fs/novell-novfs-2.0.0_p23
>=app-crypt/novell-nici-2.7.3_p11"
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}
rpm_unpack "${WORKDIR}"/suse/${narch}/${PN}-${MY_PV}.${narch}.rpm
}
src_compile() { :; }
src_install() {
into /opt/novell/ncl
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/*
newbin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/Debug/novfsd novfsd-Debug
dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
newinitd "${FILESDIR}"/novfsd20.initd novfsd
}
pkg_preinst() {
rc-config stop novfsd
rc-config start novell-xregd
}
pkg_postinst() {
# check if mount dir exists otherwise create it
if [ ! -d /var/opt/novell/nclmnt ]; then
einfo "Creating mount point /var/opt/novell/nclmnt"
mkdir -p -m 777 /var/opt/novell/nclmnt
fi
# set sane defaults
EnableSLP=1
EnableNMAS=1
# check slp Support
if [ -f /etc/opt/novell/ncl/protocol.conf ]; then
cat /etc/opt/novell/ncl/protocol.conf |grep Name_Resolution_Providers 2>&1 >/dev/null
if [ $? -eq 0 ]; then
cat /etc/opt/novell/ncl/protocol.conf |grep SLP 2>&1 >/dev/null
if [ $? -ne 0 ]; then
EnableSLP=0
fi
fi
fi
# check nmas Support
if [ -f /etc/opt/novell/ncl/login.conf ]; then
cat /etc/opt/novell/ncl/login.conf |grep "NMAS_Authentication=false" 2>&1 >/dev/null
if [ $? -eq 0 ]; then
EnableNMAS=0
fi
fi
# enable xtier slp name resolution
if [ $EnableSLP -eq 1 ]; then
/opt/novell/xtier/bin/regutil -v "\client\policies\network\ip\address resolution providers\configured" "9" REG_SZ "{A18C57F8-17DA-11d1-8FFF-00A0C925D248}"
fi
# enable xtier NMAS support
if [ $EnableNMAS -eq 1 ]; then
/opt/novell/xtier/bin/regutil -v "\Client\Policies" "Default Authentication Provider" REG_SZ "{FCB72681-D373-11d3-BC08-00A0C9EA53EF}"
fi
}
pkg_prerm() {
rc-config stop novfsd
}
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"
}

View File

@ -1,131 +0,0 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
NOVELL_BUILDID="bldJIQnntfA~"
NOVELL_FILE32="novell-client-2.0-SP1-sle10sp2-i386.iso"
NOVELL_FILE64="novell-client-2.0-SP1-sle10sp2-x86_64.iso"
RESTRICT="mirror strip"
inherit novell eutils rpm versionator
MY_PVV=$(replace_version_separator 3 '-')
MY_PV="${MY_PVV/_p/-}"
DESCRIPTION="Novell Client for Linux file system deamon"
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=""
DEPEND=">=app-arch/p7zip-4.15"
RDEPEND="virtual/libc
net-misc/novell-client-env
>=sys-devel/gcc-4.1
>=net-nds/novell-xtier-base-3.1.5_p46
>=net-fs/novell-novfs-2.0.0_p23
>=app-crypt/novell-nici-2.7.3_p11"
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}
rpm_unpack "${WORKDIR}"/suse/${narch}/${PN}-${MY_PV}.${narch}.rpm
}
src_compile() { :; }
src_install() {
into /opt/novell/ncl
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/*
newbin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/Debug/novfsd novfsd-Debug
dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
newinitd "${FILESDIR}"/novfsd20.initd novfsd
}
pkg_preinst() {
rc-config stop novfsd
rc-config start novell-xregd
}
pkg_postinst() {
# check if mount dir exists otherwise create it
if [ ! -d /var/opt/novell/nclmnt ]; then
einfo "Creating mount point /var/opt/novell/nclmnt"
mkdir -p -m 777 /var/opt/novell/nclmnt
fi
# set sane defaults
EnableSLP=1
EnableNMAS=1
# check slp Support
if [ -f /etc/opt/novell/ncl/protocol.conf ]; then
cat /etc/opt/novell/ncl/protocol.conf |grep Name_Resolution_Providers 2>&1 >/dev/null
if [ $? -eq 0 ]; then
cat /etc/opt/novell/ncl/protocol.conf |grep SLP 2>&1 >/dev/null
if [ $? -ne 0 ]; then
EnableSLP=0
fi
fi
fi
# check nmas Support
if [ -f /etc/opt/novell/ncl/login.conf ]; then
cat /etc/opt/novell/ncl/login.conf |grep "NMAS_Authentication=false" 2>&1 >/dev/null
if [ $? -eq 0 ]; then
EnableNMAS=0
fi
fi
# enable xtier slp name resolution
if [ $EnableSLP -eq 1 ]; then
/opt/novell/xtier/bin/regutil -v "\client\policies\network\ip\address resolution providers\configured" "9" REG_SZ "{A18C57F8-17DA-11d1-8FFF-00A0C925D248}"
fi
# enable xtier NMAS support
if [ $EnableNMAS -eq 1 ]; then
/opt/novell/xtier/bin/regutil -v "\Client\Policies" "Default Authentication Provider" REG_SZ "{FCB72681-D373-11d3-BC08-00A0C9EA53EF}"
fi
}
pkg_prerm() {
rc-config stop novfsd
}
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"
}

View File

@ -2,9 +2,9 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Header: $ # $Header: $
NOVELL_BUILDID="CuRXfXSzq7M~" NOVELL_BUILDID="_xf1ppPR2xA~"
NOVELL_FILE32="Novell_Client_SLE11-i586-20081218-CD1.iso" NOVELL_FILE32="novell-client-2.0-sp2-sle11-i586.iso"
NOVELL_FILE64="Novell_Client_SLE11-x86_64-20081218-CD1.iso" NOVELL_FILE64="novell-client-2.0-sp2-sle11-x86_64.iso"
RESTRICT="mirror strip" RESTRICT="mirror strip"
inherit novell eutils rpm5 versionator inherit novell eutils rpm5 versionator
@ -27,9 +27,9 @@ DEPEND=">=app-arch/p7zip-4.15"
RDEPEND="virtual/libc RDEPEND="virtual/libc
net-misc/novell-client-env net-misc/novell-client-env
>=sys-devel/gcc-4.1 >=sys-devel/gcc-4.1
>=net-nds/novell-xtier-base-3.1.5_p46 >=net-nds/novell-xtier-base-3.1.6.12
>=net-fs/novell-novfs-2.0.0_p23 >=net-fs/novell-novfs-2.0.0.444
>=app-crypt/novell-nici-2.7.3_p11" >=app-crypt/novell-nici-2.7.4.6"
src_unpack() { src_unpack() {
cd "${WORKDIR}" cd "${WORKDIR}"
@ -56,58 +56,18 @@ src_install() {
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/* dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/*
newbin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/Debug/novfsd novfsd-Debug newbin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/Debug/novfsd novfsd-Debug
dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/* dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
exeinto /etc/opt/novell/xtier/xregd/init/
doexe "${FILESDIR}"/*.sh
newinitd "${FILESDIR}"/novfsd20.initd novfsd newinitd "${FILESDIR}"/novfsd20.initd novfsd
} }
pkg_preinst() {
rc-config stop novfsd
rc-config start novell-xregd
}
pkg_postinst() { pkg_postinst() {
# check if mount dir exists otherwise create it # check if mount dir exists otherwise create it
if [ ! -d /var/opt/novell/nclmnt ]; then if [ ! -d /var/opt/novell/nclmnt ]; then
einfo "Creating mount point /var/opt/novell/nclmnt" einfo "Creating mount point /var/opt/novell/nclmnt"
mkdir -p -m 777 /var/opt/novell/nclmnt mkdir -p -m 777 /var/opt/novell/nclmnt
fi fi
# set sane defaults
EnableSLP=1
EnableNMAS=1
# check slp Support
if [ -f /etc/opt/novell/ncl/protocol.conf ]; then
cat /etc/opt/novell/ncl/protocol.conf |grep Name_Resolution_Providers 2>&1 >/dev/null
if [ $? -eq 0 ]; then
cat /etc/opt/novell/ncl/protocol.conf |grep SLP 2>&1 >/dev/null
if [ $? -ne 0 ]; then
EnableSLP=0
fi
fi
fi
# check nmas Support
if [ -f /etc/opt/novell/ncl/login.conf ]; then
cat /etc/opt/novell/ncl/login.conf |grep "NMAS_Authentication=false" 2>&1 >/dev/null
if [ $? -eq 0 ]; then
EnableNMAS=0
fi
fi
# enable xtier slp name resolution
if [ $EnableSLP -eq 1 ]; then
/opt/novell/xtier/bin/regutil -v "\client\policies\network\ip\address resolution providers\configured" "9" REG_SZ "{A18C57F8-17DA-11d1-8FFF-00A0C925D248}"
fi
# enable xtier NMAS support
if [ $EnableNMAS -eq 1 ]; then
/opt/novell/xtier/bin/regutil -v "\Client\Policies" "Default Authentication Provider" REG_SZ "{FCB72681-D373-11d3-BC08-00A0C9EA53EF}"
fi
}
pkg_prerm() {
rc-config stop novfsd
} }
pkg_nofetch() { pkg_nofetch() {

View File

@ -1,131 +0,0 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
NOVELL_BUILDID="N848u3D7BjQ~"
NOVELL_FILE32="Novell_Client_11.0-i386-20081003-CD1.iso"
NOVELL_FILE64="Novell_Client_11.0-x86_64-20081003-CD1.iso"
RESTRICT="mirror strip"
inherit novell eutils rpm versionator
MY_PVV=$(replace_version_separator 3 '-')
MY_PV="${MY_PVV/_p/-}"
DESCRIPTION="Novell Client for Linux file system deamon"
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=""
DEPEND=">=app-arch/p7zip-4.15"
RDEPEND="virtual/libc
net-misc/novell-client-env
>=sys-devel/gcc-4.1
>=net-nds/novell-xtier-base-3.1.5_p46
>=net-fs/novell-novfs-2.0.0_p23
>=app-crypt/novell-nici-2.7.3_p11"
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}
rpm_unpack "${WORKDIR}"/suse/${narch}/${PN}-${MY_PV}.${narch}.rpm
}
src_compile() { :; }
src_install() {
into /opt/novell/ncl
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/*
newbin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/ncl/bin/Debug/novfsd novfsd-Debug
dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
newinitd "${FILESDIR}"/novfsd20.initd novfsd
}
pkg_preinst() {
rc-config stop novfsd
rc-config start novell-xregd
}
pkg_postinst() {
# check if mount dir exists otherwise create it
if [ ! -d /var/opt/novell/nclmnt ]; then
einfo "Creating mount point /var/opt/novell/nclmnt"
mkdir -p -m 777 /var/opt/novell/nclmnt
fi
# set sane defaults
EnableSLP=1
EnableNMAS=1
# check slp Support
if [ -f /etc/opt/novell/ncl/protocol.conf ]; then
cat /etc/opt/novell/ncl/protocol.conf |grep Name_Resolution_Providers 2>&1 >/dev/null
if [ $? -eq 0 ]; then
cat /etc/opt/novell/ncl/protocol.conf |grep SLP 2>&1 >/dev/null
if [ $? -ne 0 ]; then
EnableSLP=0
fi
fi
fi
# check nmas Support
if [ -f /etc/opt/novell/ncl/login.conf ]; then
cat /etc/opt/novell/ncl/login.conf |grep "NMAS_Authentication=false" 2>&1 >/dev/null
if [ $? -eq 0 ]; then
EnableNMAS=0
fi
fi
# enable xtier slp name resolution
if [ $EnableSLP -eq 1 ]; then
/opt/novell/xtier/bin/regutil -v "\client\policies\network\ip\address resolution providers\configured" "9" REG_SZ "{A18C57F8-17DA-11d1-8FFF-00A0C925D248}"
fi
# enable xtier NMAS support
if [ $EnableNMAS -eq 1 ]; then
/opt/novell/xtier/bin/regutil -v "\Client\Policies" "Default Authentication Provider" REG_SZ "{FCB72681-D373-11d3-BC08-00A0C9EA53EF}"
fi
}
pkg_prerm() {
rc-config stop novfsd
}
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"
}