net-nds/novell-xtier-base: Updated to new release drop old

This commit is contained in:
geos_one 2009-04-10 09:40:29 +00:00
parent bc13df965d
commit 6fb259207d
8 changed files with 14 additions and 1213 deletions

View File

@ -2,6 +2,13 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
10 Apr 2009; Mario Fetka <mario.fetka@gmail.com>
-novell-xtier-base-3.1.5_p46.ebuild, -novell-xtier-base-3.1.6.0.8.ebuild,
-novell-xtier-base-3.1.6.8.ebuild, -novell-xtier-base-3.1.6.8-r1.ebuild,
-novell-xtier-base-3.1.6.8-r2.ebuild, -novell-xtier-base-3.1.6.10.ebuild,
+novell-xtier-base-3.1.6.12.ebuild:
Updated to new release drop old
09 Apr 2009; Mario Fetka <mario.fetka@gmail.com>
novell-xtier-base-3.1.6.8-r2.ebuild, novell-xtier-base-3.1.6.10-r1.ebuild:
correct rpm_unpack

View File

@ -1,25 +1,12 @@
AUX 10_base.sh 131 RMD160 26f3bd184d6db31542b96622cdf6712d9b3be782 SHA1 998371426235583474cc6dcdbf288b60af5f5e25 SHA256 8b2bd1f78c1d51ab5ecefcda7e598d333d93a727e752dbb0196cefc1cfe02cf4
AUX novell-xregd20.initd 1141 RMD160 b190671d5c8961c1d6528de852feb25b55e9e47c SHA1 0cee72fc211fc25c86899400fc6b5c76251980b1 SHA256 a1a52c3002e734ea1da4eaa9d981884797547c4dc753f8289110aab19a699698
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-x86_64-20081218-CD1.iso 8388608 RMD160 749d45b32a1317a8e48f5c4346ea235078bab721 SHA1 7bb062942005e1316539e8b97e961c8cbb0a0c2e SHA256 cc0be51b5f3c61bd071751c26c65fd3fc0a5cea495622bbce2e811973fa70d59
DIST binutils-2.16.91.0.5-18.i586.rpm 4265211 RMD160 aa5d41e1cd94e2cdcffa655db49647794066d42d SHA1 b9a2ae1479543d887cb7caa9035759afa2796a8a SHA256 616f3acba1d84e59d243a8d1b1e3fb4814e5cd0f72d121e5beaf1221f4f54e2f
DIST binutils-2.16.91.0.5-18.x86_64.rpm 4370737 RMD160 f56f6d9ec337f1a125e2e92bab1351b3666931e9 SHA1 f92b793d2ea11ff5a0e2b6994fa22132497eb5b7 SHA256 c8d33d41b99378e0cb17b1d484395499fb2f6ca5f3062a5d5e80c73d69962d2e
DIST binutils-2.18.50.20080409-11.1.i586.rpm 2881787 RMD160 ce45948d6cb20eb12318442b18fbf0304e6448b0 SHA1 4b177ed76f6f64b9574c36e665cc4264b4a1cc07 SHA256 94062af06e7f3f07921a4ea430fd953cacc2c7ba556dd4481ed1583a1604d82f
DIST binutils-2.18.50.20080409-11.1.x86_64.rpm 2920759 RMD160 36a7b490466206b1ac6d0e37806473dae191b747 SHA1 2baccf5e17849f1c2a5951c21df81064370ad441 SHA256 fd192731ef7a85dd5209e19d9da8944f0c116b43bc7cfd2c015b5f6cc2238953
DIST binutils-2.19-7.14.x86_64.rpm 3026300 RMD160 3b70545ee4975034d4eda126cd72574e3d0010c5 SHA1 76691435a7c1e3555774261a80d2d81fdf1b69a9 SHA256 3e82e20ee069ed6409386f0621c152e8a857ed737c4df9ef3e7593e83307d2f7
DIST binutils-2.19-7.9.i586.rpm 3047967 RMD160 1ce70d7f11bd78480eaa4fd35545afa50860219a SHA1 170a3754bef6b347911622d5f1b3e07f33e906f6 SHA256 436841a36c16c0fe1ff53d0b6c1f1eb05bb40413c97f4378dd4599312447cd09
DIST novell-client-2.0-SP1-sle10sp2-i386.iso 10100736 RMD160 dc9313c69a22359c9cdbb2f9105543d11a912381 SHA1 da0cfa59099a4de7d4bdc2a6390d8993c48ee00c SHA256 9c7edfcb67c6ea3a7c67c48568139b8c6dc369b106781320cf117cbda468ae70
DIST novell-client-2.0-SP1-sle10sp2-x86_64.iso 10971136 RMD160 2cf2b3c0b73b827ab4be0d74f87a9764c807c76b SHA1 91318ad4e643d2f43d47fd9fb234050d9ad62194 SHA256 789dc3bb04d8e7a7714001bce6af6ba8aba769ed32251e9cad53274322261028
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-xtier-base-3.1.5_p46.ebuild 7574 RMD160 1bcb33ddee3a12fc84e74947bbfbeb80265713f4 SHA1 05b63e4bb82acebeb185426c0ab1c3d8bb296288 SHA256 289f05b14c587d110675ba34a228f6a3839db6c65b3391e400b1a969051a5365
EBUILD novell-xtier-base-3.1.6.0.8.ebuild 7640 RMD160 822529a90d48cbe36055b01ab3470497cd4078bb SHA1 0a6ad7b0be0d85559bc3ac71cb15a62132920acc SHA256 46bc360afa53e3d1696c47bb71229e0947d355cff90eb5592dcf98a167071191
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
EBUILD novell-xtier-base-3.1.6.10-r1.ebuild 3365 RMD160 d0016fa72cc9cfe5aa26f7716ca432f6dce41581 SHA1 4a6cea54a46a5f8c8735b697b119145b150dc5dc SHA256 ecbbdc27913c5477eeaece5b7e32c5b639ca234c4e681932a798cf9745ba3cd1
EBUILD novell-xtier-base-3.1.6.10.ebuild 3365 RMD160 d0016fa72cc9cfe5aa26f7716ca432f6dce41581 SHA1 4a6cea54a46a5f8c8735b697b119145b150dc5dc SHA256 ecbbdc27913c5477eeaece5b7e32c5b639ca234c4e681932a798cf9745ba3cd1
EBUILD novell-xtier-base-3.1.6.8-r1.ebuild 12131 RMD160 909d3e3b181cfea4a9c5d25fbac1b622a614b6e6 SHA1 7d18db6cf904b43058a0f75332996b08c6e5df77 SHA256 eae19b84f31748706fe836d1726a4c301f3da058fe0c01e98dfec864bca9412f
EBUILD novell-xtier-base-3.1.6.8-r2.ebuild 12200 RMD160 f1b848f43ab832fac48d11e1fb83f304b869e730 SHA1 40462cca5be1e5c01e2adb642fc801fff8d8bd6f SHA256 245a597a73e57ef0a75d81020aee15bf48fdc7140fd6177186d054ac1645f1bb
EBUILD novell-xtier-base-3.1.6.8.ebuild 7666 RMD160 cc1b7516c3dc1acf69062b6c044c18742383f8a9 SHA1 e07459c18ca4b1714b5687aa51a7d6843ba85097 SHA256 a9eb238c359b089fae50a88be2918c9e706f441821c813d6b869db87e155e5e7
MISC ChangeLog 3128 RMD160 a15c14839f599b1b9b1a97dfeb2e4b23330bf472 SHA1 b27bfc66a999d9bf7d96dba8315bc5e74fc4c4b9 SHA256 bd8c8c475e6e9e14036e2c45f3dfdbd990c5d11cd8193f2ec0fd7999890b55c3
EBUILD novell-xtier-base-3.1.6.12.ebuild 3355 RMD160 7af1e8c850530681701319f3293241eb9d87845d SHA1 2569ffc3ad8f2f5c5d7e47cd34c8b79652f05bae SHA256 59d6462a23a66c5646ae40dcaaa59697cadbdcca0375aeecc4fdbf594583fa8d
MISC ChangeLog 3479 RMD160 dae1735f5e4af00ad8e2b2566c2ffb06698baf8f SHA1 0e652ab6168b5e670decca35c7f9f6afde3517a5 SHA256 a47860868a3fb8ea24be35238f1d39c4b75a4bd12cd805ef27e4b199ae0b8183
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42

View File

@ -1,205 +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 Xtier Base"
HOMEPAGE="http://www.novell.com"
SRC_URI="x86? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE32}
http://download.opensuse.org/distribution/SL-10.1/inst-source/suse/i586/binutils-2.16.91.0.5-18.i586.rpm )
amd64? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE64}
http://download.opensuse.org/distribution/SL-10.1/inst-source/suse/x86_64/binutils-2.16.91.0.5-18.x86_64.rpm )"
LICENSE="Novell-NCL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=">=app-arch/p7zip-4.15"
RDEPEND="virtual/libc
net-nds/novell-xtier-env
>=dev-libs/expat-2.0.0
=net-nds/novell-xtier-core-${PV}
>=sys-libs/ncurses-5.5
>=sys-devel/gcc-4.1"
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
rpm_unpack "${DISTDIR}"/binutils-2.16.91.0.5-18.${narch}.rpm
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/xtier
# still a hack
dolib.so ""${WORKDIR}""/usr/${nlib}/libbfd-*.so
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/xtier/bin/*
dolib.so "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/xtier/${nlib}/*
dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
dodir /var/opt/novell/xtier/xregd/db
keepdir /var/opt/novell/xtier/xregd/db
dodir /etc/opt/novell/xtier/xregd
keepdir /etc/opt/novell/xtier/xregd
insinto /etc/opt/novell/xtier/
doins "${WORKDIR}"/${PN}-${MY_PV}/etc/opt/novell/xtier/*
newinitd "${FILESDIR}"/novell-xregd20.initd novell-xregd
}
pkg_preinst(){
# ***************************************
# ******* Begin of pre script ***********
# ***************************************
einfo "Running Novell XTier Base pre script..."
# We just want to stop the novell-xregd service and export the XTier registry to a
# temporary file if this is an upgrade.
if [ -e "/etc/init.d/novell-xregd" ]; then
#echo "Novell XTier Base pre script stoping novell-xregd for upgrade"
/etc/init.d/novell-xregd stop
fi
# Check if we need to export the XTier registry
# Note: We export the registry at this time to avoid losing its settings in case
# that we have to rebuild the database.
if [ -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Exporting Xtier Registry to temporary file..."
rm -f /var/opt/novell/xtier/xregd/xtier_registry.xml.export
/opt/novell/xtier/bin/regutil -e /etc/opt/novell/xtier/xtier_registry.xml.export
einfo " done exporting Xtier Xml Registry"
fi
einfo "done running Novell XTier Base pre script!"
# Do necessary user and group administration
enewgroup novlxtier
enewuser novlxregd -1 -1 /var/opt/novell/xtier/xregd novlxtier
einfo "done running Novell XTier Base pre script!"
# ***************************************
# ******* End of pre script *************
# ***************************************
}
pkg_postinst(){
# ***************************************
# ******* Begin of post script **********
# ***************************************
echo "Running Novell XTier Base post script..."
# Check if we need to import the XTier registry
if [ ! -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Importing Xtier Xml Registry..."
# Import the registry.
# Note: We could be dealing with an upgrade from a Pre-XFlaim registry in which
# case we would have saved the previous registry contents to let us upgrade to XFlaim based
# registry without loosing configuration settings.
einfo " Using newly installed registry file"
mkdir -p /var/opt/novell/xtier/xregd/db/
/opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml
# Make sure that novlxregd has rights to the registry db
chown -R novlxregd:novlxtier /var/opt/novell/xtier/xregd/db/
einfo " done importing Xtier Xml Registry"
else
# The XTier registry exists, check its integrity.
/opt/novell/xtier/bin/regutil -c
if [ "$?" != "0" ]; then
einfo " Existing XTier Registry Db Unsupported or Corrupted"
einfo " Re-installing XTier Registry Db"
# Import the registry. Use registry file that was exported earlier if present to
# avoid losing configuration settings that may have been made.
if [ -e "/etc/opt/novell/xtier/xtier_registry.xml.export" ]; then
/opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xregd/xtier_registry.xml.export
else
einfo " Exported registry file not found"
einfo " Configuration settings stored in the registry after initial install have been lost"
/opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml
fi
# Make sure that novlxregd has rights to the registry db
chown -R novlxregd:novlxtier /var/opt/novell/xtier/xregd/db/
einfo " done importing Xtier Xml Registry"
fi
fi
# Make sure that we are not leaving the temporary registry xml file around
rm -f /etc/opt/novell/xtier/xtier_registry.xml.export
einfo "done running Novell XTier Base post script!"
# ***************************************
# ******* End of post script ************
# ***************************************
}
pkg_prerm(){
# ***************************************
# ******* Begin of pre-remove script ****
# ***************************************
einfo "Running Novell XTier Base preun script ..."
# Stop novell-xregd
/etc/init.d/novell-xregd stop
# Check if we need to export the XTier registry
if [ -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Exporting Xtier Xml Registry..."
rm -f /etc/opt/novell/xtier/xtier_registry.xml.export
/opt/novell/xtier/bin/regutil -e /etc/opt/novell/xtier/xtier_registry.xml.export
einfo " done exporting Xtier Xml Registry"
fi
einfo "done running Novell XTier Base preun script!"
# ***************************************
# ******* End of pre-remove script ******
# ***************************************
}
pkg_postrm(){
# ***************************************
# ******* Begin of postun script ********
# ***************************************
einfo "Running Novell XTier Base postun script ..."
# Delete the var files
rm -rf /var/opt/novell/xtier
einfo "done running Novell XTier Base postun script!"
# ***************************************
# ******* End of postun script **********
# ***************************************
}
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,206 +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 Xtier Base"
HOMEPAGE="http://www.novell.com"
SRC_URI="x86? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE32}
http://download.opensuse.org/distribution/SL-10.1/inst-source/suse/i586/binutils-2.16.91.0.5-18.i586.rpm )
amd64? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE64}
http://download.opensuse.org/distribution/SL-10.1/inst-source/suse/x86_64/binutils-2.16.91.0.5-18.x86_64.rpm )"
LICENSE="Novell-NCL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=">=app-arch/p7zip-4.15"
RDEPEND="virtual/libc
net-nds/novell-xtier-env
>=dev-libs/expat-2.0.0
=net-nds/novell-xtier-core-${PV}
>=sys-libs/ncurses-5.5
>=sys-devel/gcc-4.1"
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
rpm_unpack "${DISTDIR}"/binutils-2.16.91.0.5-18.${narch}.rpm
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/xtier
# still a hack
dolib.so ""${WORKDIR}""/usr/${nlib}/libbfd-*.so
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/xtier/bin/*
dolib.so "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/xtier/${nlib}/*
dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
dodir /var/opt/novell/xtier/xregd/db
keepdir /var/opt/novell/xtier/xregd/db
dodir /etc/opt/novell/xtier/xregd
keepdir /etc/opt/novell/xtier/xregd
insinto /etc/opt/novell/xtier/
doins "${WORKDIR}"/${PN}-${MY_PV}/etc/opt/novell/xtier/*
newinitd "${FILESDIR}"/novell-xregd20.initd novell-xregd
}
pkg_preinst(){
# ***************************************
# ******* Begin of pre script ***********
# ***************************************
einfo "Running Novell XTier Base pre script..."
# We just want to stop the novell-xregd service and export the XTier registry to a
# temporary file if this is an upgrade.
if [ -e "/etc/init.d/novell-xregd" ]; then
#echo "Novell XTier Base pre script stoping novell-xregd for upgrade"
/etc/init.d/novell-xregd stop
fi
# Check if we need to export the XTier registry
# Note: We export the registry at this time to avoid losing its settings in case
# that we have to rebuild the database.
if [ -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Exporting Xtier Registry to temporary file..."
rm -f /var/opt/novell/xtier/xregd/xtier_registry.xml.export
/opt/novell/xtier/bin/regutil -e /etc/opt/novell/xtier/xtier_registry.xml.export
einfo " done exporting Xtier Xml Registry"
fi
einfo "done running Novell XTier Base pre script!"
# Do necessary user and group administration
enewgroup novlxtier
enewuser novlxregd -1 -1 /var/opt/novell/xtier/xregd novlxtier
einfo "done running Novell XTier Base pre script!"
# ***************************************
# ******* End of pre script *************
# ***************************************
}
pkg_postinst(){
# ***************************************
# ******* Begin of post script **********
# ***************************************
echo "Running Novell XTier Base post script..."
# Check if we need to import the XTier registry
if [ ! -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Importing Xtier Xml Registry..."
# Import the registry.
# Note: We could be dealing with an upgrade from a Pre-XFlaim registry in which
# case we would have saved the previous registry contents to let us upgrade to XFlaim based
# registry without loosing configuration settings.
einfo " Using newly installed registry file"
mkdir -p /var/opt/novell/xtier/xregd/db/
/opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml
# Make sure that novlxregd has rights to the registry db
chown -R novlxregd:novlxtier /var/opt/novell/xtier/xregd/db/
einfo " done importing Xtier Xml Registry"
else
# The XTier registry exists, check its integrity.
/opt/novell/xtier/bin/regutil -c
if [ "$?" != "0" ]; then
einfo " Existing XTier Registry Db Unsupported or Corrupted"
einfo " Re-installing XTier Registry Db"
# Import the registry. Use registry file that was exported earlier if present to
# avoid losing configuration settings that may have been made.
if [ -e "/etc/opt/novell/xtier/xtier_registry.xml.export" ]; then
/opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xregd/xtier_registry.xml.export
else
einfo " Exported registry file not found"
einfo " Configuration settings stored in the registry after initial install have been lost"
/opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml
fi
# Make sure that novlxregd has rights to the registry db
chown -R novlxregd:novlxtier /var/opt/novell/xtier/xregd/db/
einfo " done importing Xtier Xml Registry"
fi
fi
# Make sure that we are not leaving the temporary registry xml file around
rm -f /etc/opt/novell/xtier/xtier_registry.xml.export
einfo "done running Novell XTier Base post script!"
# ***************************************
# ******* End of post script ************
# ***************************************
}
pkg_prerm(){
# ***************************************
# ******* Begin of pre-remove script ****
# ***************************************
einfo "Running Novell XTier Base preun script ..."
# Stop novell-xregd
/etc/init.d/novell-xregd stop
# Check if we need to export the XTier registry
if [ -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Exporting Xtier Xml Registry..."
rm -f /etc/opt/novell/xtier/xtier_registry.xml.export
/opt/novell/xtier/bin/regutil -e /etc/opt/novell/xtier/xtier_registry.xml.export
einfo " done exporting Xtier Xml Registry"
fi
einfo "done running Novell XTier Base preun script!"
# ***************************************
# ******* End of pre-remove script ******
# ***************************************
}
pkg_postrm(){
# ***************************************
# ******* Begin of postun script ********
# ***************************************
einfo "Running Novell XTier Base postun script ..."
# Delete the var files
rm -rf /var/opt/novell/xtier
einfo "done running Novell XTier Base postun script!"
# ***************************************
# ******* End of postun script **********
# ***************************************
}
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
# $Header: $
NOVELL_BUILDID="CuRXfXSzq7M~"
NOVELL_FILE32="Novell_Client_SLE11-i586-20081218-CD1.iso"
NOVELL_FILE64="Novell_Client_SLE11-x86_64-20081218-CD1.iso"
NOVELL_BUILDID="_xf1ppPR2xA~"
NOVELL_FILE32="novell-client-2.0-sp2-sle11-i586.iso"
NOVELL_FILE64="novell-client-2.0-sp2-sle11-x86_64.iso"
SUSE_FILE32="http://download.opensuse.org/distribution/11.1/repo/oss/suse/i586/binutils-2.19-7.9.i586.rpm"
SUSE_FILE64="http://download.opensuse.org/distribution/11.1/repo/oss/suse/x86_64/binutils-2.19-7.14.x86_64.rpm"
RESTRICT="mirror strip"

View File

@ -1,284 +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"
USE_RPMOFFSET_ONLY="1"
inherit novell eutils rpm versionator
MY_PVV=$(replace_version_separator 3 '-')
MY_PV="${MY_PVV/_p/-}"
DESCRIPTION="Novell Xtier Base"
HOMEPAGE="http://www.novell.com"
SRC_URI="x86? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE32}
http://download.opensuse.org/distribution/11.0/repo/oss/suse/i586/binutils-2.18.50.20080409-11.1.i586.rpm )
amd64? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE64}
http://download.opensuse.org/distribution/11.0/repo/oss/suse/x86_64/binutils-2.18.50.20080409-11.1.x86_64.rpm )"
LICENSE="Novell-NCL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=">=app-arch/p7zip-4.15
>=app-arch/rpm-5.1"
RDEPEND="virtual/libc
net-nds/novell-xtier-env
>=dev-libs/expat-2.0.0
>=net-nds/novell-xtier-core-${PV}
>=sys-libs/ncurses-5.5
>=sys-devel/gcc-4.1"
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
7z x "${DISTDIR}"/binutils-2.18.50.20080409-11.1.${narch}.rpm
7z x "${WORKDIR}"/binutils-2.18.50.20080409-11.1.${narch}.cpio.lzma
7z x "${WORKDIR}"/binutils-2.18.50.20080409-11.1.${narch}.cpio
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/xtier
# still a hack
dolib.so "${WORKDIR}"/usr/${nlib}/libbfd-*.so
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/xtier/bin/*
dolib.so "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/xtier/${nlib}/*
dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
dodir /var/opt/novell/xtier/xregd/db
keepdir /var/opt/novell/xtier/xregd/db
dodir /etc/opt/novell/xtier/xregd
keepdir /etc/opt/novell/xtier/xregd
insinto /etc/opt/novell/xtier/
doins "${WORKDIR}"/${PN}-${MY_PV}/etc/opt/novell/xtier/*
newinitd "${FILESDIR}"/novell-xregd20.initd novell-xregd
}
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"
}
pkg_preinst(){
# ***************************************
# ******* Begin of pre script ***********
# ***************************************
einfo "Running Novell XTier Base pre script..."
# We just want to stop the novell-xregd service and export the XTier registry to a
# temporary file if this is an upgrade.
#if test "$1" != 1; then
# echo " doing rpm upgrade processing"
# if [ "$YAST_IS_RUNNING" != "instsys" ]; then
#echo "Novell XTier Base pre script stoping novell-xregd for upgrade"
/etc/init.d/novell-xregd stop
# fi
# Check if we need to export the XTier registry
# Note: We export the registry at this time to avoid losing its settings in case
# that we have to rebuild the database.
if [ -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Exporting XTier Registry to temporary file..."
rm -f /var/opt/novell/xtier/xregd/xtier_registry.xml.export
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -e /var/opt/novell/xtier/xregd/xtier_registry.xml.export
einfo " done exporting XTier Xml Registry"
else
einfo " Saving Pre-XFlaim registry file for upgrade..."
cp /etc/opt/novell/xtier/xtier_registry.xml /etc/opt/novell/xtier/xtier_registry.xml.upgrade
fi
einfo "done running Novell XTier Base pre script!"
# exit 0
#fi
#echo " doing rpm install processing"
# Do necessary user and group administration
#group_present=`getent group | grep ^novlxtier`
#if [ -z "$group_present" ] ; then
# /usr/sbin/groupadd -r -g 81 novlxtier
#fi
#user_present=`getent passwd | grep ^novlxregd`
#if [ -z "$user_present" ] ; then
# /usr/sbin/useradd -c "Novell XRegD System User" -s /bin/false -r -d /var/opt/novell/xtier/xregd -g novlxtier -u 81 novlxregd 2> /dev/null || :
#fi
enewgroup novlxtier
enewuser novlxregd -1 -1 /var/opt/novell/xtier/xregd novlxtier
einfo "done running Novell XTier Base pre script!"
# ***************************************
# ******* End of pre script *************
# ***************************************
}
pkg_postinst(){
# ***************************************
# ******* Begin of post script **********
# ***************************************
einfo "Running Novell XTier Base post script..."
# Check if we need to import the XTier registry
if [ ! -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Importing XTier Xml Registry..."
# Import the registry.
# Note: We could be dealing with an upgrade from a Pre-XFlaim registry in which
# case we would have saved the previous registry contents to let us upgrade to XFlaim based
# registry without loosing configuration settings.
if [ -e "/etc/opt/novell/xtier/xtier_registry.xml.upgrade" ]; then
einfo " Using Pre-XFlaim registry file"
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml.upgrade
rm -f /etc/opt/novell/xtier/xtier_registry.xml.upgrade
# Make registry changes necessary to bring the base registry up to date
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -v "XTier\Configuration\XSrv\Authentication Domains" "Default Authentication Provider" REG_SZ "{6AC0492F-3EEF-11d3-BBF3-00A0C9EA53EF}"
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -d "Client\Policies\Network\IP\Address Resolution Providers\Available" "5"
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -d "Client\Policies\Network\IP\Address Resolution Providers\Configured" "5"
else
einfo " Using newly installed registry file"
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml
fi
# Make sure that novlxregd has rights to the registry db
chown -R novlxregd:novlxtier /var/opt/novell/xtier/xregd/db/
einfo " done importing XTier Xml Registry"
else
# The XTier registry exists, check its integrity.
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -c
# if [ "$?" != "0" ]; then
# echo " Existing XTier Registry Db Unsupported or Corrupted"
# echo " Re-installing XTier Registry Db"
# Delete the XFlaim DB files
# rm -f /var/opt/novell/xtier/xregd/db/xtier_registry.rfl/*
# rmdir /var/opt/novell/xtier/xregd/db/xtier_registry.rfl
# rm -f /var/opt/novell/xtier/xregd/db/*
# Import the registry. Use registry file that was exported earlier if present to
# avoid losing configuration settings that may have been made.
if [ -e "/var/opt/novell/xtier/xregd/xtier_registry.xml.export" ]; then
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -i /var/opt/novell/xtier/xregd/xtier_registry.xml.export
else
einfo " Exported registry file not found"
einfo " Configuration settings stored in the registry after initial install have been lost"
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml
fi
# Make sure that novlxregd has rights to the registry db
chown -R novlxregd:novlxtier /var/opt/novell/xtier/xregd/db/
einfo " done importing XTier Xml Registry"
# fi
fi
# Make sure that we are not leaving the temporary registry xml file around
rm -f /var/opt/novell/xtier/xregd/xtier_registry.xml.export
# Do not run the rest of the script if this is an upgrade
#if test "$1" != 1; then
# echo " doing rpm upgrade processing"
# echo "done running Novell XTier Base post script!"
# exit 0
#fi
#echo " doing rpm install processing"
# Install XRegD init script
#
# if test -n "$YAST_IS_RUNNING" ; then
# INSSERV_FORCE="-f"
# else
# INSSERV_FORCE=""
# fi
# sbin/insserv $INSSERV_FORCE etc/init.d/novell-xregd
#/usr/lib/lsb/install_initd /etc/init.d/novell-xregd
# Create link to init.d script in /usr/sbin
#if [ -f /usr/sbin/rcnovell-xregd ] || [ -L /usr/sbin/rcnovell-xregd ]; then
# rm -f /usr/sbin/rcnovell-xregd
#fi
#ln -s /etc/init.d/novell-xregd /usr/sbin/rcnovell-xregd
einfo "done running Novell XTier Base post script!"
# ***************************************
# ******* End of post script ************
# ***************************************
}
pkg_prerm(){
# ***************************************
# ******* Begin of pre-remove script ****
# ***************************************
einfo "Running Novell XTier Base preun script ..."
# Do not run script if this is an install
#if test "$1" == 1; then
# echo "done running Novell XTier Base preun script!"
# exit 0
#fi
#echo " doing rpm removal processing"
# Stop novell-xregd
/etc/init.d/novell-xregd stop
# Remove XRegD init script
#/usr/lib/lsb/remove_initd /etc/init.d/novell-xregd
# Check if we need to export the XTier registry
if [ -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Exporting XTier Xml Registry..."
rm -f /etc/opt/novell/xtier/xtier_registry.xml.export
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -e /etc/opt/novell/xtier/xtier_registry.xml.export
einfo " done exporting XTier Xml Registry"
fi
einfo "done running Novell XTier Base preun script!"
# ***************************************
# ******* End of pre-remove script ******
# ***************************************
}
pkg_postrm(){
# ***************************************
# ******* Begin of postun script ********
# ***************************************
einfo "Running Novell XTier Base postun script ..."
# We just want to start the novell-xregd service if this is an upgrade
#if test "$1" == 1; then
# if [ "$YAST_IS_RUNNING" != "instsys" ]; then
# echo " doing rpm upgrade processing"
#echo "Novell XTier Base postun script starting novell-xregd for upgrade"
/etc/init.d/novell-xregd start
# fi
einfo "done running Novell XTier Base postun script!"
# exit 0
#fi
#echo " doing rpm removal processing"
# Remove symbolic link to init.d script
#if [ -f /usr/sbin/rcnovell-xregd ] || [ -L /usr/sbin/rcnovell-xregd ]; then
# rm -f /usr/sbin/rcnovell-xregd
#fi
# Delete the novlxregd user
#userdel novlxregd
# Delete the var files
#rm -rf /var/opt/novell/xtier
#einfo "done running Novell XTier Base postun script!"
# ***************************************
# ******* End of postun script **********
# ***************************************
}

View File

@ -1,291 +0,0 @@
# Copyright 1999-2009 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"
SUSE_FILE32="http://download.opensuse.org/distribution/11.0/repo/oss/suse/i586/binutils-2.18.50.20080409-11.1.i586.rpm"
SUSE_FILE64="http://download.opensuse.org/distribution/11.0/repo/oss/suse/x86_64/binutils-2.18.50.20080409-11.1.x86_64.rpm"
RESTRICT="mirror strip"
USE_RPMOFFSET_ONLY="1"
inherit novell eutils rpm5 versionator
MY_PVV=$(replace_version_separator 3 '-')
MY_PV="${MY_PVV/_p/-}"
DESCRIPTION="Novell Xtier Base"
HOMEPAGE="http://www.novell.com"
SRC_URI="x86? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE32}
${SUSE_FILE32} )
amd64? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE64}
${SUSE_FILE64} )"
LICENSE="Novell-NCL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=">=app-arch/p7zip-4.15"
RDEPEND="virtual/libc
net-nds/novell-xtier-env
>=dev-libs/expat-2.0.0
>=net-nds/novell-xtier-core-${PV}
>=sys-libs/ncurses-5.5
>=sys-devel/gcc-4.1"
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
rpm5_unpack "${DISTDIR}"/binutils-2.18.50.20080409-11.1.${narch}.rpm
mkdir -p "${WORKDIR}"/${PN}-${MY_PV}
cd ${PN}-${MY_PV}
rpm5_unpack "${WORKDIR}"/suse/${narch}/${PN}-${MY_PV}.${narch}.rpm
}
src_compile() { :; }
src_install() {
into /opt/novell/xtier
# still a hack
dolib.so "${WORKDIR}"/usr/${nlib}/libbfd-*.so
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/xtier/bin/*
dolib.so "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/xtier/${nlib}/*
dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
dodir /var/opt/novell/xtier/xregd/db
keepdir /var/opt/novell/xtier/xregd/db
dodir /etc/opt/novell/xtier/xregd
keepdir /etc/opt/novell/xtier/xregd
insinto /etc/opt/novell/xtier/
doins "${WORKDIR}"/${PN}-${MY_PV}/etc/opt/novell/xtier/*
newinitd "${FILESDIR}"/novell-xregd20.initd novell-xregd
}
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 get the following files from SuSE"
if use x86
then
einfo " - ${SUSE_FILE32}"
elif use amd64
then
einfo " - ${SUSE_FILE64}"
fi
einfo "and place them 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"
}
pkg_preinst(){
# ***************************************
# ******* Begin of pre script ***********
# ***************************************
einfo "Running Novell XTier Base pre script..."
# We just want to stop the novell-xregd service and export the XTier registry to a
# temporary file if this is an upgrade.
#if test "$1" != 1; then
# echo " doing rpm upgrade processing"
# if [ "$YAST_IS_RUNNING" != "instsys" ]; then
#echo "Novell XTier Base pre script stoping novell-xregd for upgrade"
/etc/init.d/novell-xregd stop
# fi
# Check if we need to export the XTier registry
# Note: We export the registry at this time to avoid losing its settings in case
# that we have to rebuild the database.
if [ -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Exporting XTier Registry to temporary file..."
rm -f /var/opt/novell/xtier/xregd/xtier_registry.xml.export
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -e /var/opt/novell/xtier/xregd/xtier_registry.xml.export
einfo " done exporting XTier Xml Registry"
else
einfo " Saving Pre-XFlaim registry file for upgrade..."
cp /etc/opt/novell/xtier/xtier_registry.xml /etc/opt/novell/xtier/xtier_registry.xml.upgrade
fi
einfo "done running Novell XTier Base pre script!"
# exit 0
#fi
#echo " doing rpm install processing"
# Do necessary user and group administration
#group_present=`getent group | grep ^novlxtier`
#if [ -z "$group_present" ] ; then
# /usr/sbin/groupadd -r -g 81 novlxtier
#fi
#user_present=`getent passwd | grep ^novlxregd`
#if [ -z "$user_present" ] ; then
# /usr/sbin/useradd -c "Novell XRegD System User" -s /bin/false -r -d /var/opt/novell/xtier/xregd -g novlxtier -u 81 novlxregd 2> /dev/null || :
#fi
enewgroup novlxtier
enewuser novlxregd -1 -1 /var/opt/novell/xtier/xregd novlxtier
einfo "done running Novell XTier Base pre script!"
# ***************************************
# ******* End of pre script *************
# ***************************************
}
pkg_postinst(){
# ***************************************
# ******* Begin of post script **********
# ***************************************
einfo "Running Novell XTier Base post script..."
# Check if we need to import the XTier registry
if [ ! -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Importing XTier Xml Registry..."
# Import the registry.
# Note: We could be dealing with an upgrade from a Pre-XFlaim registry in which
# case we would have saved the previous registry contents to let us upgrade to XFlaim based
# registry without loosing configuration settings.
if [ -e "/etc/opt/novell/xtier/xtier_registry.xml.upgrade" ]; then
einfo " Using Pre-XFlaim registry file"
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml.upgrade
rm -f /etc/opt/novell/xtier/xtier_registry.xml.upgrade
# Make registry changes necessary to bring the base registry up to date
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -v "XTier\Configuration\XSrv\Authentication Domains" "Default Authentication Provider" REG_SZ "{6AC0492F-3EEF-11d3-BBF3-00A0C9EA53EF}"
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -d "Client\Policies\Network\IP\Address Resolution Providers\Available" "5"
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -d "Client\Policies\Network\IP\Address Resolution Providers\Configured" "5"
else
einfo " Using newly installed registry file"
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml
fi
# Make sure that novlxregd has rights to the registry db
chown -R novlxregd:novlxtier /var/opt/novell/xtier/xregd/db/
einfo " done importing XTier Xml Registry"
else
# The XTier registry exists, check its integrity.
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -c
# if [ "$?" != "0" ]; then
# echo " Existing XTier Registry Db Unsupported or Corrupted"
# echo " Re-installing XTier Registry Db"
# Delete the XFlaim DB files
# rm -f /var/opt/novell/xtier/xregd/db/xtier_registry.rfl/*
# rmdir /var/opt/novell/xtier/xregd/db/xtier_registry.rfl
# rm -f /var/opt/novell/xtier/xregd/db/*
# Import the registry. Use registry file that was exported earlier if present to
# avoid losing configuration settings that may have been made.
if [ -e "/var/opt/novell/xtier/xregd/xtier_registry.xml.export" ]; then
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -i /var/opt/novell/xtier/xregd/xtier_registry.xml.export
else
einfo " Exported registry file not found"
einfo " Configuration settings stored in the registry after initial install have been lost"
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml
fi
# Make sure that novlxregd has rights to the registry db
chown -R novlxregd:novlxtier /var/opt/novell/xtier/xregd/db/
einfo " done importing XTier Xml Registry"
# fi
fi
# Make sure that we are not leaving the temporary registry xml file around
rm -f /var/opt/novell/xtier/xregd/xtier_registry.xml.export
# Do not run the rest of the script if this is an upgrade
#if test "$1" != 1; then
# echo " doing rpm upgrade processing"
# echo "done running Novell XTier Base post script!"
# exit 0
#fi
#echo " doing rpm install processing"
# Install XRegD init script
#
# if test -n "$YAST_IS_RUNNING" ; then
# INSSERV_FORCE="-f"
# else
# INSSERV_FORCE=""
# fi
# sbin/insserv $INSSERV_FORCE etc/init.d/novell-xregd
#/usr/lib/lsb/install_initd /etc/init.d/novell-xregd
# Create link to init.d script in /usr/sbin
#if [ -f /usr/sbin/rcnovell-xregd ] || [ -L /usr/sbin/rcnovell-xregd ]; then
# rm -f /usr/sbin/rcnovell-xregd
#fi
#ln -s /etc/init.d/novell-xregd /usr/sbin/rcnovell-xregd
einfo "done running Novell XTier Base post script!"
# ***************************************
# ******* End of post script ************
# ***************************************
}
pkg_prerm(){
# ***************************************
# ******* Begin of pre-remove script ****
# ***************************************
einfo "Running Novell XTier Base preun script ..."
# Do not run script if this is an install
#if test "$1" == 1; then
# echo "done running Novell XTier Base preun script!"
# exit 0
#fi
#echo " doing rpm removal processing"
# Stop novell-xregd
/etc/init.d/novell-xregd stop
# Remove XRegD init script
#/usr/lib/lsb/remove_initd /etc/init.d/novell-xregd
# Check if we need to export the XTier registry
if [ -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Exporting XTier Xml Registry..."
rm -f /etc/opt/novell/xtier/xtier_registry.xml.export
LD_LIBRARY_PATH=/opt/novell/xtier/lib /opt/novell/xtier/bin/regutil -e /etc/opt/novell/xtier/xtier_registry.xml.export
einfo " done exporting XTier Xml Registry"
fi
einfo "done running Novell XTier Base preun script!"
# ***************************************
# ******* End of pre-remove script ******
# ***************************************
}
pkg_postrm(){
# ***************************************
# ******* Begin of postun script ********
# ***************************************
einfo "Running Novell XTier Base postun script ..."
# We just want to start the novell-xregd service if this is an upgrade
#if test "$1" == 1; then
# if [ "$YAST_IS_RUNNING" != "instsys" ]; then
# echo " doing rpm upgrade processing"
#echo "Novell XTier Base postun script starting novell-xregd for upgrade"
/etc/init.d/novell-xregd start
# fi
einfo "done running Novell XTier Base postun script!"
# exit 0
#fi
#echo " doing rpm removal processing"
# Remove symbolic link to init.d script
#if [ -f /usr/sbin/rcnovell-xregd ] || [ -L /usr/sbin/rcnovell-xregd ]; then
# rm -f /usr/sbin/rcnovell-xregd
#fi
# Delete the novlxregd user
#userdel novlxregd
# Delete the var files
#rm -rf /var/opt/novell/xtier
#einfo "done running Novell XTier Base postun script!"
# ***************************************
# ******* End of postun script **********
# ***************************************
}

View File

@ -1,207 +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 Xtier Base"
HOMEPAGE="http://www.novell.com"
SRC_URI="x86? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE32}
http://download.opensuse.org/distribution/11.0/repo/oss/suse/i586/binutils-2.18.50.20080409-11.1.i586.rpm )
amd64? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE64}
http://download.opensuse.org/distribution/11.0/repo/oss/suse/x86_64/binutils-2.18.50.20080409-11.1.x86_64.rpm )"
LICENSE="Novell-NCL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=">=app-arch/p7zip-4.15
>=app-arch/rpm-5.1"
RDEPEND="virtual/libc
net-nds/novell-xtier-env
>=dev-libs/expat-2.0.0
=net-nds/novell-xtier-core-${PV}
>=sys-libs/ncurses-5.5
>=sys-devel/gcc-4.1"
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
rpm_unpack "${DISTDIR}"/binutils-2.18.50.20080409-11.1.${narch}.rpm
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/xtier
# still a hack
dolib.so "${FILESDIR}"/${nlib}/libbfd-*.so
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/xtier/bin/*
dolib.so "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/xtier/${nlib}/*
dodoc "${WORKDIR}"/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
dodir /var/opt/novell/xtier/xregd/db
keepdir /var/opt/novell/xtier/xregd/db
dodir /etc/opt/novell/xtier/xregd
keepdir /etc/opt/novell/xtier/xregd
insinto /etc/opt/novell/xtier/
doins "${WORKDIR}"/${PN}-${MY_PV}/etc/opt/novell/xtier/*
newinitd "${FILESDIR}"/novell-xregd20.initd novell-xregd
}
pkg_preinst(){
# ***************************************
# ******* Begin of pre script ***********
# ***************************************
einfo "Running Novell XTier Base pre script..."
# We just want to stop the novell-xregd service and export the XTier registry to a
# temporary file if this is an upgrade.
if [ -e "/etc/init.d/novell-xregd" ]; then
#echo "Novell XTier Base pre script stoping novell-xregd for upgrade"
/etc/init.d/novell-xregd stop
fi
# Check if we need to export the XTier registry
# Note: We export the registry at this time to avoid losing its settings in case
# that we have to rebuild the database.
if [ -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Exporting Xtier Registry to temporary file..."
rm -f /var/opt/novell/xtier/xregd/xtier_registry.xml.export
/opt/novell/xtier/bin/regutil -e /etc/opt/novell/xtier/xtier_registry.xml.export
einfo " done exporting Xtier Xml Registry"
fi
einfo "done running Novell XTier Base pre script!"
# Do necessary user and group administration
enewgroup novlxtier
enewuser novlxregd -1 -1 /var/opt/novell/xtier/xregd novlxtier
einfo "done running Novell XTier Base pre script!"
# ***************************************
# ******* End of pre script *************
# ***************************************
}
pkg_postinst(){
# ***************************************
# ******* Begin of post script **********
# ***************************************
echo "Running Novell XTier Base post script..."
# Check if we need to import the XTier registry
if [ ! -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Importing Xtier Xml Registry..."
# Import the registry.
# Note: We could be dealing with an upgrade from a Pre-XFlaim registry in which
# case we would have saved the previous registry contents to let us upgrade to XFlaim based
# registry without loosing configuration settings.
einfo " Using newly installed registry file"
mkdir -p /var/opt/novell/xtier/xregd/db/
/opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml
# Make sure that novlxregd has rights to the registry db
chown -R novlxregd:novlxtier /var/opt/novell/xtier/xregd/db/
einfo " done importing Xtier Xml Registry"
else
# The XTier registry exists, check its integrity.
/opt/novell/xtier/bin/regutil -c
if [ "$?" != "0" ]; then
einfo " Existing XTier Registry Db Unsupported or Corrupted"
einfo " Re-installing XTier Registry Db"
# Import the registry. Use registry file that was exported earlier if present to
# avoid losing configuration settings that may have been made.
if [ -e "/etc/opt/novell/xtier/xtier_registry.xml.export" ]; then
/opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xregd/xtier_registry.xml.export
else
einfo " Exported registry file not found"
einfo " Configuration settings stored in the registry after initial install have been lost"
/opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml
fi
# Make sure that novlxregd has rights to the registry db
chown -R novlxregd:novlxtier /var/opt/novell/xtier/xregd/db/
einfo " done importing Xtier Xml Registry"
fi
fi
# Make sure that we are not leaving the temporary registry xml file around
rm -f /etc/opt/novell/xtier/xtier_registry.xml.export
einfo "done running Novell XTier Base post script!"
# ***************************************
# ******* End of post script ************
# ***************************************
}
pkg_prerm(){
# ***************************************
# ******* Begin of pre-remove script ****
# ***************************************
einfo "Running Novell XTier Base preun script ..."
# Stop novell-xregd
/etc/init.d/novell-xregd stop
# Check if we need to export the XTier registry
if [ -e "/var/opt/novell/xtier/xregd/db/xtier_registry.db" ]; then
einfo " Exporting Xtier Xml Registry..."
rm -f /etc/opt/novell/xtier/xtier_registry.xml.export
/opt/novell/xtier/bin/regutil -e /etc/opt/novell/xtier/xtier_registry.xml.export
einfo " done exporting Xtier Xml Registry"
fi
einfo "done running Novell XTier Base preun script!"
# ***************************************
# ******* End of pre-remove script ******
# ***************************************
}
pkg_postrm(){
# ***************************************
# ******* Begin of postun script ********
# ***************************************
einfo "Running Novell XTier Base postun script ..."
# Delete the var files
rm -rf /var/opt/novell/xtier
einfo "done running Novell XTier Base postun script!"
# ***************************************
# ******* End of postun script **********
# ***************************************
}
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"
}