net-fs/novell-novfsd: new config system
This commit is contained in:
parent
4c0e2c1139
commit
d355815b57
@ -2,6 +2,10 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
20 Jan 2009; Mario Fetka <mario.fetka@gmail.com> +files/50_novfsd.sh,
|
||||
+novell-novfsd-3.0.0.11-r1.ebuild:
|
||||
new config system
|
||||
|
||||
16 Jan 2009; Mario Fetka <mario.fetka@gmail.com>
|
||||
+novell-novfsd-3.0.0.11.ebuild:
|
||||
Bump and use my rpm5 eclass
|
||||
|
@ -1,3 +1,4 @@
|
||||
AUX 50_novfsd.sh 1157 RMD160 6990703083869b442b7836bd11055068622c32a4 SHA1 adc4b602fa5193e99c98cac06d9d58d83321927c SHA256 c5835263a5d754df3c6f1a4264b8e0238078bee54fe81b1226601c98a7f391c9
|
||||
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
|
||||
@ -9,7 +10,8 @@ DIST novell-client-2.0-sle10sp1-i386.iso 10866688 RMD160 b478e97de576987b0a3b801
|
||||
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 2695 RMD160 3c6c13f7a92db736dd0ce10dab84c4c41c8b05c3 SHA1 e8b50141db088c9b3a6084cdacd4f083008672ba SHA256 f440f9e7243807d3f92259fce1c5e531fb40a624eb5ddfb25b43ae870c4c2c82
|
||||
EBUILD novell-novfsd-3.0.0.11.ebuild 3760 RMD160 7b2c1ca6fadb8ec4e6b1d4355a545b02685e4cff SHA1 7e3bbab861fc09bcc3bddd47bc05d87d0b882e52 SHA256 75830ead76b1bd35a22eff2fbbedaba4a96dd6c3bcacfdb593b80c4d7967e25d
|
||||
EBUILD novell-novfsd-3.0.0.8.ebuild 3757 RMD160 c0be399c8c9e5347e59d11e021a60e7beebde58f SHA1 e16271cd4e02b18532f322b6e60774956389c769 SHA256 b20366be5e523709900efdd213d3e20bec20f8327757993127634c447d41ad56
|
||||
MISC ChangeLog 1812 RMD160 7feb944d4e718890555517812ae9d75151db90b3 SHA1 43beb20137cf4c670b8837aa10ba41233023c466 SHA256 7f061b08dfaf42b03cd6c3206ec2e4fd8536dca940407750d9c351b7fd5602bd
|
||||
MISC ChangeLog 1942 RMD160 02f174b64fa6dc91d3600b6854052eaef802754b SHA1 4e9817157bd145331b2e0f663d6e2464c96c2ebe SHA256 d65d36a767e65d9149f39cffad65aed3e474028639d7de24db6e737dc3467baa
|
||||
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
|
||||
|
39
trunk/novell4gentoo/net-fs/novell-novfsd/files/50_novfsd.sh
Executable file
39
trunk/novell4gentoo/net-fs/novell-novfsd/files/50_novfsd.sh
Executable file
@ -0,0 +1,39 @@
|
||||
|
||||
# add novfs registry entries
|
||||
einfo "add novfsd registry"
|
||||
# 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
|
||||
einfo "enable SLP"
|
||||
/opt/novell/xtier/bin/regutil -v "\client\policies\network\ip\address resolution providers\configured" "9" REG_SZ "{A18C57F8-17DA-11d1-8FFF-00A0C925D248}"
|
||||
eend $?
|
||||
fi
|
||||
|
||||
# enable xtier NMAS support
|
||||
if [ $EnableNMAS -eq 1 ]; then
|
||||
einfo "enable NMAS"
|
||||
/opt/novell/xtier/bin/regutil -v "\Client\Policies" "Default Authentication Provider" REG_SZ "{FCB72681-D373-11d3-BC08-00A0C9EA53EF}"
|
||||
eend $?
|
||||
fi
|
@ -0,0 +1,91 @@
|
||||
# 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 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}/*
|
||||
exeinto /etc/opt/novell/xtier/xregd/init/
|
||||
doexe "${FILESDIR}"/*.sh
|
||||
|
||||
newinitd "${FILESDIR}"/novfsd20.initd novfsd
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
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