Gentooize Ebuilds

This commit is contained in:
geos_one 2007-02-18 16:38:49 +00:00
parent 86b73228f1
commit b23f04874b
6 changed files with 238 additions and 13 deletions

View File

@ -1,7 +1,11 @@
# ChangeLog for net-nds/novell-xtier-base
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
18 Feb 2007; Mario Fetka <mario-fetka@gmx.at> +files/3.1.4_p4,
+novell-xtier-base-3.1.4_p4-r4.ebuild, +files/3.1.4_p4/novell-xregd:
Gentooize ebuild
18 Oct 2006; Mario Fetka <mario-fetka@gmx.at> files/80novell-xtier,
+novell-xtier-base-3.1.4_p4-r3.ebuild:
Add Novell Packages to PRELINK_MASK_PATH.

View File

@ -1,3 +1,7 @@
AUX 3.1.4_p4/novell-xregd 650 RMD160 a68a152abd479ac2e4292dcb633b085b0683585d SHA1 ced9d00bb48bdc770b0e2c4ed6da0ac018794bbe SHA256 c708d5e30c1340dedea93a56294efbc66bb419d324c4b3a7ec8586c0d0e75d52
MD5 a88889973c9ca37bc4e72f2eb5642faa files/3.1.4_p4/novell-xregd 650
RMD160 a68a152abd479ac2e4292dcb633b085b0683585d files/3.1.4_p4/novell-xregd 650
SHA256 c708d5e30c1340dedea93a56294efbc66bb419d324c4b3a7ec8586c0d0e75d52 files/3.1.4_p4/novell-xregd 650
AUX 80novell-xtier 207 RMD160 a11b462938ad56593019052bf94e809e5a9d080b SHA1 cd8e4628f40805e267fd38aef174fd4e2e57580d SHA256 074ca4d168d15ebc722ae184331579f6bee90d5f436f13a972ce565a600b1460
MD5 a2b5bc4ef90154ab5bf5894da5693284 files/80novell-xtier 207
RMD160 a11b462938ad56593019052bf94e809e5a9d080b files/80novell-xtier 207
@ -16,10 +20,14 @@ EBUILD novell-xtier-base-3.1.4_p4-r3.ebuild 7025 RMD160 40b255a40da5e07d9ad9cdb2
MD5 6ddfba5836fc6386e914b62be4f8b478 novell-xtier-base-3.1.4_p4-r3.ebuild 7025
RMD160 40b255a40da5e07d9ad9cdb234d0b39b0f9da903 novell-xtier-base-3.1.4_p4-r3.ebuild 7025
SHA256 597789602434635d9db62c5f200458a9ecf568cc040bbc25a91d3b56442db7d4 novell-xtier-base-3.1.4_p4-r3.ebuild 7025
MISC ChangeLog 621 RMD160 d08a210d869602fcd1d3dd6aca79b8ca12fd2ffd SHA1 e04466c3d91e50e7bbb49311106adbf9e3464aba SHA256 c5da36665394031ff57b54d932d23e89a2c3ce95855092eb8f3cf58db3e95a47
MD5 13c1f3f23aa4c459b2f8567b206011c0 ChangeLog 621
RMD160 d08a210d869602fcd1d3dd6aca79b8ca12fd2ffd ChangeLog 621
SHA256 c5da36665394031ff57b54d932d23e89a2c3ce95855092eb8f3cf58db3e95a47 ChangeLog 621
EBUILD novell-xtier-base-3.1.4_p4-r4.ebuild 6726 RMD160 d87935ea78f675398967ece776812043fc4be91a SHA1 c5563072cd2b00aa07c285c73c8ee08b6247cb8e SHA256 b7d575597eb37924624296c1103641b9910a4a282783ab7b877c6d32087a8b01
MD5 b8eb38d24d1905436fca1f82b07a31ae novell-xtier-base-3.1.4_p4-r4.ebuild 6726
RMD160 d87935ea78f675398967ece776812043fc4be91a novell-xtier-base-3.1.4_p4-r4.ebuild 6726
SHA256 b7d575597eb37924624296c1103641b9910a4a282783ab7b877c6d32087a8b01 novell-xtier-base-3.1.4_p4-r4.ebuild 6726
MISC ChangeLog 777 RMD160 aac8b94b114e5d6d6cd4fbdad65178275d9891f5 SHA1 0aa79e039c1bb12988be61aa24ce83c82d0fcdb1 SHA256 4fdf31dfec87eecb3a0ffcaf99a717eaf553e435807f2448bbeb24e3d2e431f9
MD5 3df3700624c3f869b7f0ac69734bc456 ChangeLog 777
RMD160 aac8b94b114e5d6d6cd4fbdad65178275d9891f5 ChangeLog 777
SHA256 4fdf31dfec87eecb3a0ffcaf99a717eaf553e435807f2448bbeb24e3d2e431f9 ChangeLog 777
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
@ -30,3 +38,6 @@ SHA256 ef7a957c188f73f4252c8f914c68b5e418bc31118114e0c6d9acbf56178116cf files/di
MD5 a5cd406a9ef68f48c0d518a17223e53e files/digest-novell-xtier-base-3.1.4_p4-r3 557
RMD160 579f4fb237e7ba5ff91c6adc7761635d14b40420 files/digest-novell-xtier-base-3.1.4_p4-r3 557
SHA256 ef7a957c188f73f4252c8f914c68b5e418bc31118114e0c6d9acbf56178116cf files/digest-novell-xtier-base-3.1.4_p4-r3 557
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

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,6 @@
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 2aab6c7358a733d1d8d9a4e893500a36 novell-client-1.2-SLE10.tar.gz 13963983
RMD160 98a0aa1ecd9c4f36c158fa2cce77f51927d2f693 novell-client-1.2-SLE10.tar.gz 13963983
SHA256 ddf55b7a757a4f4e104c4aefb04639f4022d43c31171d0a914d1b765d6e78241 novell-client-1.2-SLE10.tar.gz 13963983

View File

@ -0,0 +1,171 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils rpm
MY_PV="${PV/_p/-}"
DESCRIPTION="Novell Xtier Base"
HOMEPAGE="http://www.novell.com"
SRC_URI="http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cache.novell.com/prot/2JyMn7sWP_Q~/novell-client-1.2-SLE10.tar.gz
http://download.opensuse.org/distribution/SL-10.1/inst-source/suse/i586/binutils-2.16.91.0.5-18.i586.rpm"
LICENSE="Novell-NCL"
SLOT="0"
KEYWORDS="~x86"
IUSE="gtk"
DEPEND=""
RDEPEND="virtual/libc
>=dev-libs/expat-2.0.0
>=net-nds/novell-xtier-core-3.1.4
>=sys-libs/ncurses-5.5
>=sys-devel/gcc-4.1
!net-misc/novell-xtier-base"
RESTRICT="nomirror nostrip"
src_unpack() {
unpack novell-client-1.2-SLE10.tar.gz
rpm_unpack ${DISTDIR}/binutils-2.16.91.0.5-18.i586.rpm
mkdir -p ${WORKDIR}/${PN}-${MY_PV}
cd ${PN}-${MY_PV}
rpm_unpack ${WORKDIR}/ncl_build_711/NCL_disk/novell/i586/${PN}-${MY_PV}.sles10.i586.rpm
}
src_compile() { :; }
src_install() {
into /opt/novell/xtier
# still a hack
dolib.so "${WORKDIR}"/usr/lib/libbfd-*.so
dobin ${WORKDIR}/${PN}-${MY_PV}/opt/novell/xtier/bin/*
dolib.so ${WORKDIR}/${PN}-${MY_PV}/opt/novell/xtier/lib/*
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/*
doenvd "${FILESDIR}"/80novell-xtier
doinitd "${FILESDIR}/${PV}"/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 **********
# ***************************************
}

View File

@ -11,14 +11,14 @@ EBUILD novell-xtier-core-3.1.4_p4-r3.ebuild 1188 RMD160 a4153d5a10bbc0a9664ccf8a
MD5 a8d7f7ad65573754c5a16fdad7763d7c novell-xtier-core-3.1.4_p4-r3.ebuild 1188
RMD160 a4153d5a10bbc0a9664ccf8ac197adb777c58f97 novell-xtier-core-3.1.4_p4-r3.ebuild 1188
SHA256 00cdb4df5f5cfe01ab7a12d43e4bd24427cd8db6cf1dc8b4aa703fd967c4aa40 novell-xtier-core-3.1.4_p4-r3.ebuild 1188
EBUILD novell-xtier-core-3.1.4_p4-r4.ebuild 970 RMD160 7278e82a4a0210c07f046cc08cad4049cf6443c3 SHA1 092b653ea02e09a36d368fdc943f8ca70a912474 SHA256 36e0fc53d13ce45e45c9cf51a168f4a25ed4db370df45c6e3c11586773a6e109
MD5 7974b5f23fa85239cb932dc78a7e1918 novell-xtier-core-3.1.4_p4-r4.ebuild 970
RMD160 7278e82a4a0210c07f046cc08cad4049cf6443c3 novell-xtier-core-3.1.4_p4-r4.ebuild 970
SHA256 36e0fc53d13ce45e45c9cf51a168f4a25ed4db370df45c6e3c11586773a6e109 novell-xtier-core-3.1.4_p4-r4.ebuild 970
MISC ChangeLog 621 RMD160 c93cb74e3ce5c3970b8232a3dfb61b2439b2b252 SHA1 8a3facc3d44f23cbb5bd7345128f41f08a139351 SHA256 b4418af9ace3a566cff9c089c19bd180c901bf50f99183d634011bc3d4822c6e
MD5 f8d8164f27412266c0f9bc1837e4e24f ChangeLog 621
RMD160 c93cb74e3ce5c3970b8232a3dfb61b2439b2b252 ChangeLog 621
SHA256 b4418af9ace3a566cff9c089c19bd180c901bf50f99183d634011bc3d4822c6e ChangeLog 621
EBUILD novell-xtier-core-3.1.4_p4-r4.ebuild 970 RMD160 d9db66040dfabf741bcc95ac781c892cee8650cf SHA1 4094e1236cee5fd3076e075733532ee214d7270d SHA256 c6deb242487ec98dd0e3243e1374e6837ea5de487ff7fe09a987a4ba03ed6e9a
MD5 652e3422476ab010f512a8d9dd895451 novell-xtier-core-3.1.4_p4-r4.ebuild 970
RMD160 d9db66040dfabf741bcc95ac781c892cee8650cf novell-xtier-core-3.1.4_p4-r4.ebuild 970
SHA256 c6deb242487ec98dd0e3243e1374e6837ea5de487ff7fe09a987a4ba03ed6e9a novell-xtier-core-3.1.4_p4-r4.ebuild 970
MISC ChangeLog 730 RMD160 1830db46c9b6932bd1bd591bb5098ada6efc08b1 SHA1 d6c0fe1f35c645f393613a342eb59ed69c9cbd0b SHA256 58c7679ee966045df6b5a8f05bec959c353c18b30f33575489cf977d8630a916
MD5 bd518551b397e5e50e9dc8651a10abdc ChangeLog 730
RMD160 1830db46c9b6932bd1bd591bb5098ada6efc08b1 ChangeLog 730
SHA256 58c7679ee966045df6b5a8f05bec959c353c18b30f33575489cf977d8630a916 ChangeLog 730
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170