Move to root

This commit is contained in:
Mario Fetka
2012-01-14 09:45:05 +01:00
parent d884fb4a6d
commit 5253d3ea35
482 changed files with 0 additions and 578 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,13 @@
AUX ndsd87.confd 46 RMD160 70bb39c528c5dc9611bb18174119d3f5dc16bd0d SHA1 19de7728ccfa18e3580acb054b800682daa70e1c SHA256 08aff1f9839457cdce41ddd8d1f2a5426ab1fddbebf0a04053feae9fb50b8893
AUX ndsd87.initd 967 RMD160 ae7935dc929b8bbbf9f61ad98db3ce93a9512680 SHA1 369653c28e83c598d412071affa8db04296847f3 SHA256 9827e54bd88592eb2da8caedabf0a6db93d7ee1df6cdd0beb02c7e96dd613a3d
AUX ndsd88.confd 68 RMD160 2c0c632c28f99c06f0ccb93ced8bc1cfafe4bd8e SHA1 fd21b6dca0f2b19edc1e7b0cea65aeedd1aa466c SHA256 692e648a0656dd763b2bc97e081102e2947579eaabf9cdfa1fcf724d3d8a711e
AUX ndsd88.initd 985 RMD160 146fc74cdfde9c8fb34b92cbe598480a50a6a7e6 SHA1 c2f152de5bbe09e684a8151f34141b87e1a803ec SHA256 63305fd9d81baa2f0c921e9d6d54e835434bda13bb827b9a4e2c693034d072b0
AUX nldap.initd 321 RMD160 404e9e69ab9224841d675caecec02ed94d2d19c0 SHA1 34904845db96a6914242866f6868b7d186d890d0 SHA256 9f090443493452eae3880158b26e30124c73ac3bc58b8fe760c18f2ad82a73b3
AUX nldap87.initd 3137 RMD160 2e8532d8ea4889e99114236555aa82ba295c3b4e SHA1 51baa74d3ccb5598ac0e0bc6b669e07b08816505 SHA256 ae740abc714063b8870bc09aa6998bc4135e8aec1893bb377886c4ceaa8b32a2
AUX nldap88.initd 3263 RMD160 9d8fe9efb8d6b637a0392b586314c4df82df521e SHA1 3d646b1edb0639c4ff5adca803426396f64013a4 SHA256 76854724718301f3fbe0f5f0cbcc2c0c69467d0d1a8f3f703f1dccd7dbec2156
DIST edir87310_ftf2.tar.gz 254893129 RMD160 5db2ec018ecf7de9f3eb1e5a8ba8022e99f8cce2 SHA1 9fabfdfd807428c760942fdf49fc35b55a4b4e9a SHA256 36c657623419edb2e43b14943785d24f3d1872b4ecf5d6fc97a35792a8db3ba7
DIST edir8863.tar.gz 469034121 RMD160 5b2d24a9d0d6e1f45e02b16ec54eebff61d162d5 SHA1 405fefb7e4dc6b9a500fe97d6fb98f57e291f770 SHA256 fba97cca185d283c71245a46d8bae087d41149b2ea72da14392aa692a19ff478
EBUILD novell-ndsserv-8.7.3.10.114.ebuild 3210 RMD160 0604625d281bb5c19337f759ea233709a8335107 SHA1 fb21720db34fbe6034a7479bbbf616bc1e7f8cdf SHA256 913d3bb7ddb7569f2f817b389e354757bb87a0b5a67074808be003a239fe1d30
EBUILD novell-ndsserv-8.8.6.3.15.ebuild 4308 RMD160 7a1160594c03a3906bbf5e5058743847c42f9289 SHA1 5203945500d81f9ce5992e4e6272d7942ed67d24 SHA256 333061dc50e234d323f4df54f4e14f60360dfdd0dd9b06d6277c0ee8bfc87067
MISC ChangeLog 3338 RMD160 b9dabb97c72598f3f5a0d8728d309844ff04e069 SHA1 fca60748f1f8af995dbca8af7b766203831bbd14 SHA256 ec83bb2148871a9ee6206278dbfd2e5f21406752aa4fdd3b3feeffb516e86c5a
MISC metadata.xml 226 RMD160 bebcbe7a5e3d2be83c25e006192f71ebf45abb14 SHA1 ec2b713fc2363b8c51e9c164d0802eeb59d9d296 SHA256 a9d3f7df2362a9a7ddcbe05c5d97d726eeb4bab135b21643508149a08bf6a2b2

View File

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

View File

@@ -0,0 +1,37 @@
#!/sbin/runscript
depend() {
need net
after slpd slpuasa
}
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 /usr/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,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 /usr/sbin/nldap ]; then
/usr/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 /usr/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 /usr/sbin/nldap ]; then
/usr/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
/usr/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() {
/usr/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,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,95 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="1"
NOVELL_BUILDID="hfY7O6iIdqw~"
NOVELL_FILE32="patchfiles/edir87310_ftf2.tar.gz"
RESTRICT="mirror strip"
inherit novell eutils rpm multilib versionator
MY_PV=$(replace_version_separator 4 '-')
DESCRIPTION="Novell NDS Server and DS Utilities"
HOMEPAGE="http://www.novell.com"
SRC_URI="http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/${NOVELL_FILE32}"
LICENSE="Novell-eDir-87"
SLOT="8.7"
KEYWORDS="~x86 ~amd64"
IUSE="linguas_fr linguas_ja"
DEPEND="!net-nds/novell-ndsserv:0
!net-nds/novell-ndsserv:8.8"
RDEPEND="virtual/libc
net-misc/novell-ncpenc:8.7
net-nds/novell-ndsbase:8.7
net-nds/novell-ndscommon:8.7
net-nds/novell-ndsmasv:8.7
net-nds/novell-nldapsdk:8.7
app-crypt/novell-npkiapi:8.7
app-crypt/novell-npkit:8.7
sys-auth/novell-nmas:8.7"
src_unpack() {
unpack ${A}
mkdir -p "${WORKDIR}"/${PN}-${MY_PV}
cd ${PN}-${MY_PV}
rpm_unpack ../work/edir87310_ftf2/Linux/NDSserv.i386.rpm
}
src_compile() { :; }
src_install() {
has_multilib_profile && ABI="x86"
into /usr
dobin "${WORKDIR}"/${PN}-${MY_PV}/usr/bin/*
dosbin "${WORKDIR}"/${PN}-${MY_PV}/usr/sbin/ndsd
dosbin "${WORKDIR}"/${PN}-${MY_PV}/usr/sbin/nldap
dolib.so "${WORKDIR}"/${PN}-${MY_PV}/usr/lib/*
dosym . /usr/$(get_libdir)/nds-modules/$(get_libdir)
into /usr/$(get_libdir)/nds-modules
dolib.so "${WORKDIR}"/${PN}-${MY_PV}/usr/lib/nds-modules/*
rm "${D}"/usr/$(get_libdir)/nds-modules/$(get_libdir)
insinto /usr/lib/nds-schema
doins "${WORKDIR}"/${PN}-${MY_PV}/usr/lib/nds-schema/*
keepdir /usr/lib/nds-install
insinto /usr/lib/nds/nds-http/iconsole
doins "${WORKDIR}"/${PN}-${MY_PV}/usr/lib/nds/nds-http/iconsole/*.css
insinto /usr/lib/nds/nds-http/iconsole/images
doins "${WORKDIR}"/${PN}-${MY_PV}/usr/lib/nds/nds-http/iconsole/images/*.gif
doman "${WORKDIR}"/${PN}-${MY_PV}/usr/man/*/*.gz
use linguas_fr && doman -i18n=fr "${WORKDIR}"/${PN}-${MY_PV}/usr/man/fr/*/*.gz
use linguas_ja && doman -i18n=ja "${WORKDIR}"/${PN}-${MY_PV}/usr/man/ja/*/*.gz
newconfd "${FILESDIR}"/ndsd87.confd ndsd
newinitd "${FILESDIR}"/ndsd87.initd ndsd
newinitd "${FILESDIR}"/nldap87.initd nldapd
# add fake nldap bash script for compatibility
newinitd "${FILESDIR}"/nldap.initd nldap
echo "n4u.server.libdir=/usr/$(get_libdir)/nds-modules" > "${D}"/etc/nds.conf
dodir /etc/env.d
echo "LDPATH=/usr/$(get_libdir)/nds-modules" > "${D}"/etc/env.d/80novell-edir-8.7
}
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"
}

View File

@@ -0,0 +1,112 @@
# 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="!net-nds/novell-ndsserv:0
!net-nds/novell-ndsserv:8.7"
RDEPEND="virtual/libc
net-misc/novell-ncpenc:8.8
net-nds/novell-ndsbase:8.8
net-nds/novell-ndscommon:8.8
net-nds/novell-ndsmasv:8.8
net-nds/novell-nldapsdk:8.8
app-crypt/novell-npkiapi:8.8
app-crypt/novell-npkit:8.8
sys-auth/novell-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"
}