net-nds/novell-xtier-base: initial import novell client 2.0

This commit is contained in:
geos_one 2007-11-01 10:59:46 +00:00
parent f9910838d8
commit d0b565e00d
6 changed files with 288 additions and 4 deletions

View File

@ -2,6 +2,10 @@
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
01 Nov 2007; Mario Fetka <mario-fetka@gmx.at> +files/80novell-xtier64,
+files/novell-xregd20.initd, +novell-xtier-base-3.1.5_p46.ebuild:
initial import novell client 2.0
04 Apr 2007; Mario Fetka <mario-fetka@gmx.at>
-novell-xtier-base-3.1.4_p4-r2.ebuild,
-novell-xtier-base-3.1.4_p4-r3.ebuild:

View File

@ -6,20 +6,35 @@ AUX 80novell-xtier 183 RMD160 c342ca807d858c64adf5e2808ab13abcc1524764 SHA1 0198
MD5 f52d3a51b0482348825586842d5943b9 files/80novell-xtier 183
RMD160 c342ca807d858c64adf5e2808ab13abcc1524764 files/80novell-xtier 183
SHA256 201cf6aeb826faf7ddd8ba99ff4847a686b23ca9821c0fde9e15c1b20bfb72d3 files/80novell-xtier 183
AUX 80novell-xtier64 235 RMD160 071cc960a1640aa0eabfeada645bd71ca0ab7d3f SHA1 c64833bb3595325b434f8fd42b13a09ba50af3af SHA256 fbcd1066d8419e61386b90583ebe08bee8370e97daa22761f8376cda81827281
MD5 3359211ecf45c9dc5c18abb4be62c6b8 files/80novell-xtier64 235
RMD160 071cc960a1640aa0eabfeada645bd71ca0ab7d3f files/80novell-xtier64 235
SHA256 fbcd1066d8419e61386b90583ebe08bee8370e97daa22761f8376cda81827281 files/80novell-xtier64 235
AUX novell-xregd12.initd 650 RMD160 a68a152abd479ac2e4292dcb633b085b0683585d SHA1 ced9d00bb48bdc770b0e2c4ed6da0ac018794bbe SHA256 c708d5e30c1340dedea93a56294efbc66bb419d324c4b3a7ec8586c0d0e75d52
MD5 a88889973c9ca37bc4e72f2eb5642faa files/novell-xregd12.initd 650
RMD160 a68a152abd479ac2e4292dcb633b085b0683585d files/novell-xregd12.initd 650
SHA256 c708d5e30c1340dedea93a56294efbc66bb419d324c4b3a7ec8586c0d0e75d52 files/novell-xregd12.initd 650
AUX novell-xregd20.initd 650 RMD160 a68a152abd479ac2e4292dcb633b085b0683585d SHA1 ced9d00bb48bdc770b0e2c4ed6da0ac018794bbe SHA256 c708d5e30c1340dedea93a56294efbc66bb419d324c4b3a7ec8586c0d0e75d52
MD5 a88889973c9ca37bc4e72f2eb5642faa files/novell-xregd20.initd 650
RMD160 a68a152abd479ac2e4292dcb633b085b0683585d files/novell-xregd20.initd 650
SHA256 c708d5e30c1340dedea93a56294efbc66bb419d324c4b3a7ec8586c0d0e75d52 files/novell-xregd20.initd 650
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 novell-client-1.2-SLE10.tar.gz 13963983 RMD160 98a0aa1ecd9c4f36c158fa2cce77f51927d2f693 SHA1 14278f74c8226afabc0c602bdc31d4e20acff6b9 SHA256 ddf55b7a757a4f4e104c4aefb04639f4022d43c31171d0a914d1b765d6e78241
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.4_p4-r4.ebuild 6724 RMD160 5f6b76b6ceb2b2b1caf6e96f340a49ba6d074ff1 SHA1 f7350c50624fe14fcb8e39f44eb5f1c827e79ee9 SHA256 cfa58c1b020e4b8e5fca03ffa42bbdde51e364eafb19bad2a576edeab443e4bf
MD5 945004a2d42412ced36dd30e0cfede8f novell-xtier-base-3.1.4_p4-r4.ebuild 6724
RMD160 5f6b76b6ceb2b2b1caf6e96f340a49ba6d074ff1 novell-xtier-base-3.1.4_p4-r4.ebuild 6724
SHA256 cfa58c1b020e4b8e5fca03ffa42bbdde51e364eafb19bad2a576edeab443e4bf novell-xtier-base-3.1.4_p4-r4.ebuild 6724
MISC ChangeLog 932 RMD160 2fa5156894e5f1c41508f3369ccd6c8a47e17444 SHA1 9155816a505c07e5187a5d682f3cbd9f8bcef3aa SHA256 cccb966e4dcb7da6ba865f9590911968f69f2e61b308f34448b41a106b49f799
MD5 d6991cffa66e05577f789dce936831cb ChangeLog 932
RMD160 2fa5156894e5f1c41508f3369ccd6c8a47e17444 ChangeLog 932
SHA256 cccb966e4dcb7da6ba865f9590911968f69f2e61b308f34448b41a106b49f799 ChangeLog 932
EBUILD novell-xtier-base-3.1.5_p46.ebuild 8291 RMD160 f38b8c99c9692b532ccb684682fc307ca0f1efec SHA1 98cdc8430decfdf6518676f3ca8d44e1340a20ae SHA256 bf663b41d97e53162b44dbf421935df1ec5cb07129d4501745898d58fa21affd
MD5 3ce4c20a1c557ea96626c19fd747476e novell-xtier-base-3.1.5_p46.ebuild 8291
RMD160 f38b8c99c9692b532ccb684682fc307ca0f1efec novell-xtier-base-3.1.5_p46.ebuild 8291
SHA256 bf663b41d97e53162b44dbf421935df1ec5cb07129d4501745898d58fa21affd novell-xtier-base-3.1.5_p46.ebuild 8291
MISC ChangeLog 1109 RMD160 db1142b8a76457992b10a21b82cda99d055bfcd6 SHA1 51d57edaf3268e97769b5a18da3fd847d66540af SHA256 c44d05306afed80b4ae9a22d1a93462882b0a19ad1c3808ea350e92b65a13479
MD5 d2fb88697f4cb6a2aee96dc29be53117 ChangeLog 1109
RMD160 db1142b8a76457992b10a21b82cda99d055bfcd6 ChangeLog 1109
SHA256 c44d05306afed80b4ae9a22d1a93462882b0a19ad1c3808ea350e92b65a13479 ChangeLog 1109
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
@ -27,3 +42,6 @@ SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 metadata
MD5 a5cd406a9ef68f48c0d518a17223e53e files/digest-novell-xtier-base-3.1.4_p4-r4 557
RMD160 579f4fb237e7ba5ff91c6adc7761635d14b40420 files/digest-novell-xtier-base-3.1.4_p4-r4 557
SHA256 ef7a957c188f73f4252c8f914c68b5e418bc31118114e0c6d9acbf56178116cf files/digest-novell-xtier-base-3.1.4_p4-r4 557
MD5 c6824c625e5e546a9b10534368be472a files/digest-novell-xtier-base-3.1.5_p46 1156
RMD160 88681e70c4156c76126b5736900d9a89de3e4d47 files/digest-novell-xtier-base-3.1.5_p46 1156
SHA256 1198f257f771496371163aca1bc2c93fa601555256db8ea1156068bee0cb2d85 files/digest-novell-xtier-base-3.1.5_p46 1156

View File

@ -0,0 +1,5 @@
NOVELL_XTIER_DIR=/opt/novell/xtier
PATH=/opt/novell/xtier/bin
ROOTPATH=/opt/novell/xtier/bin
LDPATH=/opt/novell/xtier/lib32:/opt/novell/xtier/lib64
PRELINK_PATH_MASK=/opt/novell/xtier/lib32:/opt/novell/xtier/lib64:/opt/novell/xtier/bin

View File

@ -0,0 +1,12 @@
MD5 00f1263b1f6e9effffbb691c3a265b71 binutils-2.16.91.0.5-18.i586.rpm 4265211
RMD160 aa5d41e1cd94e2cdcffa655db49647794066d42d binutils-2.16.91.0.5-18.i586.rpm 4265211
SHA256 616f3acba1d84e59d243a8d1b1e3fb4814e5cd0f72d121e5beaf1221f4f54e2f binutils-2.16.91.0.5-18.i586.rpm 4265211
MD5 02904f4f431263ffd79e599f7ec98c58 binutils-2.16.91.0.5-18.x86_64.rpm 4370737
RMD160 f56f6d9ec337f1a125e2e92bab1351b3666931e9 binutils-2.16.91.0.5-18.x86_64.rpm 4370737
SHA256 c8d33d41b99378e0cb17b1d484395499fb2f6ca5f3062a5d5e80c73d69962d2e binutils-2.16.91.0.5-18.x86_64.rpm 4370737
MD5 8053ad010f806c412bfcc3dae251050e novell-client-2.0-sle10sp1-i386.iso 10866688
RMD160 b478e97de576987b0a3b801965dbddb4fc8d8ce0 novell-client-2.0-sle10sp1-i386.iso 10866688
SHA256 a6609aee78e90a5375fd698b571a015b3696d10ff2f11d085e4abf5b404a35d6 novell-client-2.0-sle10sp1-i386.iso 10866688
MD5 3203d19a129165a4f504b394c330f897 novell-client-2.0-sle10sp1-x86_64.iso 11649024
RMD160 4f3a08e9cfea2b78072ba9114ecf03b44d8da17a novell-client-2.0-sle10sp1-x86_64.iso 11649024
SHA256 3b70e2c81ded3916771a22a5c284c0d5ac7b32b8a47207d01350f9f952fd216f novell-client-2.0-sle10sp1-x86_64.iso 11649024

View File

@ -0,0 +1,33 @@
#!/sbin/runscript
depend() {
need net
after namcd
}
checkconfig() {
if [ ! -e ${NDSD_CONFIGFILE} ] ; then
eerror "Novell eDirectory server has not been configured."
return 1
fi
}
start() {
# Update the limit parameters
ulimit -c unlimited
ulimit -f unlimited
ebegin "Starting novell-xregd"
start-stop-daemon --start --quiet --exec /opt/novell/xtier/bin/novell-xregd -u novlxregd -- -d
eend $?
}
stop() {
ebegin "Stopping novell-xregd"
start-stop-daemon --stop --quiet --signal INT --retry 30 --name /opt/novell/xtier/bin/novell-xregd
eend $?
}
#restart() {
# (Commands necessary to restart the service)
#}

View File

@ -0,0 +1,212 @@
# Copyright 1999-2007 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-EULA"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=">=app-arch/p7zip-4.15"
RDEPEND="virtual/libc
>=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/*
if use x86
then
doenvd "${FILESDIR}"/80novell-xtier
elif use amd64
then
doenvd "${FILESDIR}"/80novell-xtier64
fi
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"
}