This commit is contained in:
Mario Fetka
2014-08-16 09:01:13 +02:00
parent ab666604a2
commit 4492b6ea57
182 changed files with 7524 additions and 0 deletions

View File

@@ -0,0 +1,108 @@
# ChangeLog for net-nds/novell-ndsserv
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
26 Oct 2011; Mario Fetka <mario.fetka@gmail.com>
-novell-ndsserv-8.8.5.4.12.ebuild, -novell-ndsserv-8.8.6.2.12.ebuild:
Cleanup
*novell-ndsserv-8.8.6.3.15 (26 Oct 2011)
26 Oct 2011; Mario Fetka <mario.fetka@gmail.com>
+novell-ndsserv-8.8.6.3.15.ebuild:
Bump
*novell-ndsserv-8.8.6.8 (28 Dec 2010)
28 Dec 2010; Mario Fetka <mario.fetka@gmail.com>
+novell-ndsserv-8.8.6.8.ebuild, metadata.xml:
bump
09 Jul 2010; Mario Fetka <mario.fetka@gmail.com>
-novell-ndsserv-8.8.5.2.12.ebuild, -novell-ndsserv-8.8.5.3.16.ebuild:
cleanup
06 Jul 2010; Mario Fetka <mario.fetka@gmail.com>
+novell-ndsserv-8.8.5.4.12.ebuild:
Bump
08 May 2010; Mario Fetka <mario.fetka@gmail.com>
+novell-ndsserv-8.8.5.3.16.ebuild:
Bump
13 Dec 2009; Mario Fetka <mario.fetka@gmail.com>
novell-ndsserv-8.8.5.2.12.ebuild:
first round of edir 8.8 ebuild mods
13 Dec 2009; Mario Fetka <mario.fetka@gmail.com>
novell-ndsserv-8.8.5.2.12.ebuild:
first round of edir 8.8 ebuild mods
13 Dec 2009; Mario Fetka <mario.fetka@gmail.com>
+novell-ndsserv-8.8.5.2.12.ebuild:
first round of edir 8.8 ebuild mods
12 Dec 2009; Mario Fetka <mario.fetka@gmail.com> -files/80novell-edir,
-novell-ndsserv-8.7.3.10_p78.ebuild, -novell-ndsserv-8.7.3.10_p88.ebuild,
-novell-ndsserv-8.7.3.10_p88-r1.ebuild:
cleanup tree
12 Dec 2009; Mario Fetka <mario.fetka@gmail.com>
+novell-ndsserv-8.7.3.10.114.ebuild:
Bump
17 Jan 2009; Mario Fetka <mario.fetka@gmail.com>
+novell-ndsserv-8.7.3.10_p88-r1.ebuild:
multilib support
03 Nov 2008; Mario Fetka <mario.fetka@gmail.com>
novell-ndsserv-8.7.3.10_p88.ebuild:
correct blocking slot's
03 Nov 2008; Mario Fetka <mario.fetka@gmail.com>
+novell-ndsserv-8.7.3.10_p88.ebuild:
Bump
26 Aug 2008; Mario Fetka <mario.fetka@gmail.com>
-novell-ndsserv-8.7.3.9_p26.ebuild, -novell-ndsserv-8.7.3.9_p51.ebuild,
+novell-ndsserv-8.7.3.10_p78.ebuild:
Repoman cleanup
03 Nov 2007; Mario Fetka <mario-fetka@gmx.at> +files/nldap.initd,
+novell-ndsserv-8.7.3.9_p51.ebuild:
initial import edir8739ftf3
04 Apr 2007; Mario Fetka <mario-fetka@gmx.at>
-novell-ndsserv-8.7.3_p37.ebuild, -novell-ndsserv-8.7.3.8_p47.ebuild,
-novell-ndsserv-8.7.3.8_p54-r1.ebuild, -novell-ndsserv-8.7.3.9_p22.ebuild,
-novell-ndsserv-8.8.1_p7.ebuild, -novell-ndsserv-8.8.1.1_p1.ebuild:
Drop old buggy ebuild
01 Apr 2007; Mario Fetka <mario-fetka@gmx.at>
+novell-ndsserv-8.7.3.9_p26.ebuild:
Gentooize ebuild
14 Nov 2006; Mario Fetka <mario-fetka@gmx.at>
+novell-ndsserv-8.8.1.1_p1.ebuild:
eDir 8.8.1 ftf ptches
10 Nov 2006; Mario Fetka <mario-fetka@gmx.at>
+novell-ndsserv-8.7.3.9_p22.ebuild:
Bump to Version 8.7.3.9
04 Nov 2006; Mario Fetka <mario-fetka@gmx.at>
+novell-ndsserv-8.7.3.8_p54-r1.ebuild:
Update ndsserv with the http hotfix
14 Aug 2006; Mario Fetka <mario-fetka@gmx.at>
+novell-ndsserv-8.7.3.8_p54.ebuild:
Bump Version (Security Update)
13 Aug 2006; Mario Fetka <mario-fetka@gmx.at>
novell-ndsserv-8.7.3_p37.ebuild, novell-ndsserv-8.7.3.8_p47.ebuild,
novell-ndsserv-8.8.1_p7.ebuild, +metadata.xml:
Correct Typo
13 Aug 2006; Mario Fetka <mario-fetka@gmx.at> ChangeLog:
Initial ndsserv ChangeLog

View File

@@ -0,0 +1,8 @@
AUX ndsd88.confd 68 SHA256 692e648a0656dd763b2bc97e081102e2947579eaabf9cdfa1fcf724d3d8a711e SHA512 47a4198527609f854502c1694394741cf2778f1ad56c006a19ec0dda23bf66beda9d10a7739a9d5482ca0e4459c4631e8bfbd3873d0503e48e589b8fff3057a7 WHIRLPOOL 95beb3b25cc105962e3d3fa56f7b88888c71bb0f2f10b36787b72919136877f85d3f36431c1b05d365e0753e8b34db004e4b7287b3e370c2706465ee10fd39f3
AUX ndsd88.initd 985 SHA256 63305fd9d81baa2f0c921e9d6d54e835434bda13bb827b9a4e2c693034d072b0 SHA512 e176b98236de862a3673bf95c765d9a8e2c524c9ef6e84cb8a3996beca2a1c6811a70fc97a3e49061f6f938ded82ef13601ccff80aa28e3a176fc89ce9b71aa8 WHIRLPOOL 9845d7eb58c3806fe58b72ad71f505394476a12fc3e5296f807f2b27e01945f0a9da7ea1f4db2485ebc3a0f351952a8f12dd79fd820f143d92342df3221d3e7b
AUX nldap.initd 321 SHA256 9f090443493452eae3880158b26e30124c73ac3bc58b8fe760c18f2ad82a73b3 SHA512 f8ae9a03d6c4d8532699716e72ac4c61ecdbcf7fd9243998197ad7126c100ab79c4a34f906a48b0f3e9e437be99a31e935f3268251803303f6f92770cef3e441 WHIRLPOOL c37c06daa2542ecf771f68c03bca0c9ebc17e508d6fe989ec3644cfd8866eef19523127255226c1ece27486b5637ff04477a379a5c3384cccd084f04ff475580
AUX nldap88.initd 3263 SHA256 76854724718301f3fbe0f5f0cbcc2c0c69467d0d1a8f3f703f1dccd7dbec2156 SHA512 e30e9e1d85a69bc3b2fade6d17afbdb04ab31c1ad827cdc98d553f0f6972992e85961a75660b0af3af5891f01784b0b7f1783209adf717f6626a4c55dbbee46f WHIRLPOOL 7a98aa9f2ad0fd1551a4199573d60cb1d37f7ed553c8663f77e5a64a153480a93efedf2dd472fa3fcab08ac91ae8fc083f9b0a9f89c2c2598f5c9d718bda33ac
DIST edir8863.tar.gz 469034121 SHA256 fba97cca185d283c71245a46d8bae087d41149b2ea72da14392aa692a19ff478
EBUILD netiq-ndsserv-8.8.6.3.15.ebuild 4246 SHA256 0bf8a05d0f3d4445d93e4d3d740066610cb5f4e2e5073b27235a4e077f19ed7d SHA512 31914799cdf42d91e8177a9d9d2b08d16792da86534d0f1618ab6519fc78dacc4392080a116367d1305da0bc0d7544894a4f244fcbffc2d354710ca07e271be2 WHIRLPOOL 3651bda8ca464c8db68c8676d2302b2adbe9f51c9dae697e9bdd89ba93d70ff4ef5c91474cd08037e6b07998c4e6176cdd4d646b2916a38cdd4110660250df45
MISC ChangeLog 3338 SHA256 ec83bb2148871a9ee6206278dbfd2e5f21406752aa4fdd3b3feeffb516e86c5a SHA512 5b15cc678bb5ececb11fb0c3072025d207e04c6c4fcd74a56fda0e206b1820b8d3e390b9fc77422d3a6fcd3a09e14aaaa5c0b5d53e40b90e43591fe5dfc44f10 WHIRLPOOL bf1c4b24a8547d6f0a066f55bea2776659e5d502631f0276eb1ce7f56177361d621e7c6c957090f89a0ff56dbaa81a7ee636f2335d1a12d8e63a2ec673a13a97
MISC metadata.xml 226 SHA256 a9d3f7df2362a9a7ddcbe05c5d97d726eeb4bab135b21643508149a08bf6a2b2 SHA512 5912920d8f6e9ee5126fb0aaa5717a562feb009cc59b759c6a6eaa909900b19e95e51e3aa7f32fdf2e77073b19878830b97947148e3adeff3b49e7555cfe29e9 WHIRLPOOL c07e2ddb648893f1e9c422e07b0b73a6d0f7e1c9501200b6fcc9d25fe68c3b05fe4f3523e6844067eeca6969973a44004e1ba8a6fa725591a1916648bd2d4834

View File

@@ -0,0 +1,3 @@
NDSD_OPTS=""
NDSD_CONFIGFILE="/etc/opt/novell/eDirectory/nds.conf"

View File

@@ -0,0 +1,37 @@
#!/sbin/runscript
depend() {
need net
after slpuasa slpd
}
checkconfig() {
if [ ! -e ${NDSD_CONFIGFILE} ] ; then
eerror "Novell eDirectory server has not been configured."
return 1
fi
}
start() {
ebegin "Starting Novell eDirectory server"
start-stop-daemon --start --quiet --exec /opt/novell/eDirectory/sbin/ndsd \
--pidfile /var/nds/ndsd.pid -- ${NDSD_OPTS} -f ${NDSD_CONFIGFILE}
eend $?
}
stop() {
ebegin "Stopping Novell eDirectory server"
start-stop-daemon --stop --quiet --signal INT --retry 30 --pidfile /var/nds/ndsd.pid
eend $?
if [ -f /var/nds/ndsd.pid ]; then
ebegin "WARNING: ndsd process is still running. Killing Novell eDirectory server"
echo "WARNING: ndsd process is still running. Killing ndsd." >> /var/nds/ndsd.log
start-stop-daemon --stop --quiet --signal KILL --pidfile /var/nds/ndsd.pid
rm /var/nds/ndsd.pid
eend $?
fi
}
#restart() {
# (Commands necessary to restart the service)
#}

View File

@@ -0,0 +1,13 @@
#!/bin/sh
#
# Copyright (c) 2007, Mario Fetka <mario-fetka@gmx.at>
#
# Licensed under the GNU General Public License, v2
# fake initd for stupid /usr/sbib/ndsconfig
# and the real nldap start script is named nldapd
echo "!!!! fake init.d script !!!!"
echo " use the nldapd init script"
eval exec rc-config start nldapd

View File

@@ -0,0 +1,139 @@
#!/sbin/runscript
#
# Copyright (c) 2004 Novell, Inc.
# All rights reserved.
#
# Script to wait till nldap TLS port comes up or timeout after 60 secs approx.
#
# Simplyfied and Gentooized by Mario Fetka <fetka@arge.at>
depend() {
need ndsd
use ndsd
after ndsd
}
checkconfig() {
if [ ! -e /var/nds/ndsd.pid ] ; then
eerror "Novell eDirectory server has not been started."
return 1
fi
}
#
# Get nldap TCP Port status
# Cases:
# 1. nldap not loaded (nldap -c return 1 to the shell)
# 2. nldap TCP port is not listening (nldap -c returns 176 to the shell)
# 3. nldap 389 is disabled (nldap -c return 255 to the shell)
# 4. nldap TCP port is listning (nldap -c return 0 to the shell)
GetTCPPortStatus () {
count=1
while [ $count -ne 30 ]
do
if [ -f /opt/novell/eDirectory/sbin/nldap ]; then
/opt/novell/eDirectory/sbin/nldap -c > /dev/null 2>&1 # check the status
returnValue=$?
if [ $returnValue -eq 0 ]; then
ebegin "Novell eDirectory LDAP Server TCP port is listening"
eend 0
break
fi
else
ebegin "Novell eDirectory /opt/novell/eDirectory/sbin/nldap not found"
eend 1
fi
sleep 1 # wait for maximum 60 seconds
count=`expr $count + 1`
done
if [ $returnValue -eq 255 ]; then
ebegin "Novell eDirectory LDAP Server TCP port is disabled"
eend 1
elif [ $returnValue -ne 0 ]; then
ebegin "Novell eDirectory LDAP Server TCP port is not listening"
eend 1
fi
} # GetTCPPortStatus
#
# Get nldap TLS Port status
# Cases:
# 1. nldap not loaded (nldap -s return 1 to the shell)
# 2. nldap TLS port is not listening (nldap -s returns 176 to the shell)
# 3. nldap 636 is disabled (nldap -s return 255 to the shell)
# 4. nldap TLS port is listning (nldap -s return 0 to the shell)
GetTLSPortStatus () {
count=1
while [ $count -ne 30 ]
do
if [ -f /opt/novell/eDirectory/sbin/nldap ]; then
/opt/novell/eDirectory/sbin/nldap -s > /dev/null 2>&1 # check the status
returnValue=$?
if [ $returnValue -eq 0 ]; then
ebegin "Novell eDirectory LDAP Server TLS port is listening"
eend 0
fi
if [ $returnValue -eq 204 ]; then
if [ $count -ge 10 ]; then
ebegin "LDAP Server is not associated with Certificate"
eend 1
fi
fi
if [ $returnValue -eq 255 ]; then
ebegin "Novell eDirectory LDAP Server TLS port is disabled"
eend 1
fi
else
ebegin "Novell eDirectory $sbindir/nldap not found"
eend 1
fi
sleep 1 # wait for maximum 60 seconds
count=`expr $count + 1`
done
/opt/novell/eDirectory/sbin/nldap -c > /dev/null 2>&1 # check the status
if [ "$?" -eq 1 ]; then
ebegin "Novell eDirectory LDAP services are not running"
eend 1
else
ebegin "Novell eDirectory LDAP Server TLS port is not listening"
eend 1
fi
} # GetTLSPortStatus
#
# MAIN FUNCTION
#
start() {
if [ -f /var/nds/ndsd.pid ]; then
GetTCPPortStatus # TCP Port status
GetTLSPortStatus # TLS Port status
else
eend 1
fi
}
stop() {
/opt/novell/eDirectory/sbin/nldap -u > /dev/null 2>&1 # check the status
if [ "$?" -eq 1 ]; then
ebegin "Novell eDirectory LDAP services are not running"
eend 1
else
ebegin "Novell eDirectory LDAP Server TCP and TLS port is not listening"
eend 0
fi
}
#restart() {
# (Commands necessary to restart the service)
#}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
<email>mario.fetka@gmail.com</email>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,111 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="1"
NOVELL_BUILDID32="pnMbR9EB7wo~"
NOVELL_FILE32="patchfiles/edir8863.tar.gz"
NOVELL_BUILDID64="pnMbR9EB7wo~"
NOVELL_FILE64="patchfiles/edir8863.tar.gz"
RESTRICT="mirror strip"
inherit novell eutils rpm multilib versionator
MY_PV=$(replace_version_separator 3 '-')
DESCRIPTION="Novell NDS Server and DS Utilities"
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-eDir-88"
SLOT="8.8"
KEYWORDS="~x86 ~amd64"
IUSE="linguas_fr linguas_ja"
DEPEND=""
RDEPEND="virtual/libc
net-misc/netiq-ncpenc:8.8
net-nds/netiq-ndsbase:8.8
net-nds/netiq-ndscommon:8.8
net-nds/netiq-ndsmasv:8.8
net-nds/netiq-nldapsdk:8.8
app-crypt/netiq-npkiapi:8.8
app-crypt/netiq-npkit:8.8
sys-auth/netiq-nmas:8.8"
src_unpack() {
cd "${WORKDIR}"
unpack ${A}
if use x86
then
narch=i586
nlib=lib
ndir=Linux
elif use amd64
then
narch=x86_64
nlib=lib64
ndir=Linux64
fi
mkdir -p "${WORKDIR}"/${PN}-${MY_PV}
cd ${PN}-${MY_PV}
rpm_unpack ../work/edir8863/${ndir}/novell-NDSserv.${narch}.rpm
}
src_compile() { :; }
src_install() {
into /opt/novell/eDirectory/
dobin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/eDirectory/bin/*
dosbin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/eDirectory/sbin/ndsd
dosbin "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/eDirectory/sbin/nldap
dolib.so "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/eDirectory/${nlib}/*.*
dosym . /opt/novell/eDirectory/$(get_libdir)/nds-modules/$(get_libdir)
into /opt/novell/eDirectory/$(get_libdir)/nds-modules
dolib.so "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/eDirectory/${nlib}/nds-modules/*.*
rm "${D}"/opt/novell/eDirectory/$(get_libdir)/nds-modules/$(get_libdir)
insinto /opt/novell/eDirectory/$(get_libdir)/nds-schema
doins "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/eDirectory/${nlib}/nds-schema/*
insinto /opt/novell/eDirectory/res
doins "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/eDirectory/res/*
insinto /etc/opt/novell/eDirectory/conf
doins "${WORKDIR}"/${PN}-${MY_PV}/etc/opt/novell/eDirectory/conf/*.*
keepdir /opt/novell/eDirectory/$(get_libdir)/nds-install
insinto /opt/novell/eDirectory/$(get_libdir)/nds-modules/nds-http/iconsole
doins "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/eDirectory/${nlib}/nds-modules/nds-http/iconsole/*.css
insinto /opt/novell/eDirectory/$(get_libdir)/nds-modules/nds-http/iconsole/images
doins "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/eDirectory/${nlib}/nds-modules/nds-http/iconsole/images/*.gif
doman "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/man/*/*.gz
use linguas_fr && doman -i18n=fr "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/man/fr/*/*.gz
use linguas_ja && doman -i18n=ja "${WORKDIR}"/${PN}-${MY_PV}/opt/novell/man/ja/*/*.gz
newconfd "${FILESDIR}"/ndsd88.confd ndsd
newinitd "${FILESDIR}"/ndsd88.initd ndsd
newinitd "${FILESDIR}"/nldap88.initd nldapd
# add fake nldap bash script for compatibility
newinitd "${FILESDIR}"/nldap.initd nldap
}
#pkg_postinst(){
# /usr/bin/ether
#}
pkg_nofetch() {
einfo "This files require you to register at ${HOMEPAGE} (free account)"
einfo "Please download following file:"
einfo " - ${NOVELL_FILE32}"
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"
}