From 784fbac560a066911377ea0c2942f264764e194b Mon Sep 17 00:00:00 2001 From: geos_one Date: Thu, 1 Nov 2007 11:54:13 +0000 Subject: [PATCH] net-fs/novell-novfsd: initial import novell client 2.0 --- .../net-fs/novell-novfsd/ChangeLog | 4 + .../net-fs/novell-novfsd/Manifest | 25 +++- .../novell-novfsd/files/80novell-client64 | 5 + .../files/digest-novell-novfsd-2.0.0_p29 | 6 + .../net-fs/novell-novfsd/files/novfsd20.initd | 69 +++++++++ .../novell-novfsd-2.0.0_p29.ebuild | 133 ++++++++++++++++++ 6 files changed, 238 insertions(+), 4 deletions(-) create mode 100644 trunk/novell4gentoo/net-fs/novell-novfsd/files/80novell-client64 create mode 100644 trunk/novell4gentoo/net-fs/novell-novfsd/files/digest-novell-novfsd-2.0.0_p29 create mode 100755 trunk/novell4gentoo/net-fs/novell-novfsd/files/novfsd20.initd create mode 100644 trunk/novell4gentoo/net-fs/novell-novfsd/novell-novfsd-2.0.0_p29.ebuild diff --git a/trunk/novell4gentoo/net-fs/novell-novfsd/ChangeLog b/trunk/novell4gentoo/net-fs/novell-novfsd/ChangeLog index b8e89753..f55a7e62 100644 --- a/trunk/novell4gentoo/net-fs/novell-novfsd/ChangeLog +++ b/trunk/novell4gentoo/net-fs/novell-novfsd/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 01 Nov 2007; Mario Fetka +files/80novell-client64, + +files/novfsd20.initd, +novell-novfsd-2.0.0_p29.ebuild: + initial import novell client 2.0 + 04 Apr 2007; Mario Fetka files/1.2.0_p8/novfsd, -novell-novfsd-1.2.0_p8-r2.ebuild, -novell-novfsd-1.2.0_p8-r3.ebuild: Drop old buggy ebuild & remove unmount on shutdown diff --git a/trunk/novell4gentoo/net-fs/novell-novfsd/Manifest b/trunk/novell4gentoo/net-fs/novell-novfsd/Manifest index 4be66b6e..448fbc83 100644 --- a/trunk/novell4gentoo/net-fs/novell-novfsd/Manifest +++ b/trunk/novell4gentoo/net-fs/novell-novfsd/Manifest @@ -6,19 +6,33 @@ AUX 80novell-client 164 RMD160 1873d6c60904a7c729f0e7ed9f5a21ac7dd6bbe8 SHA1 240 MD5 6768ec207bdfb38f47d151aba0105d05 files/80novell-client 164 RMD160 1873d6c60904a7c729f0e7ed9f5a21ac7dd6bbe8 files/80novell-client 164 SHA256 dafe1812e1005f625deba9bcc6e60f3623c7ddd633e584c6a4533f7836af691f files/80novell-client 164 +AUX 80novell-client64 220 RMD160 8fe1dc96515fe4e0f3759c6428fecde898987840 SHA1 f3c3b7a73744944aba323d39e8f23129f328a1d7 SHA256 03376ab166cb03f7acf355ab9d4ad15b0b9b2783bf23c723d9476958f0630c46 +MD5 758eb60dd98dd4e5caa1f0f519843720 files/80novell-client64 220 +RMD160 8fe1dc96515fe4e0f3759c6428fecde898987840 files/80novell-client64 220 +SHA256 03376ab166cb03f7acf355ab9d4ad15b0b9b2783bf23c723d9476958f0630c46 files/80novell-client64 220 AUX novfsd12.initd 1637 RMD160 006d31b10ddadab31a622e829ef33a2790e4944e SHA1 199e371f23314df769fdd7d189fa5327a6a1a9a1 SHA256 d75be3c7c6ed8980e4a68f38ff1192fe7f8fc1436f96c8437578a6694a0530f2 MD5 8085e12ccc118e3bc49a0b86e38d8a66 files/novfsd12.initd 1637 RMD160 006d31b10ddadab31a622e829ef33a2790e4944e files/novfsd12.initd 1637 SHA256 d75be3c7c6ed8980e4a68f38ff1192fe7f8fc1436f96c8437578a6694a0530f2 files/novfsd12.initd 1637 +AUX novfsd20.initd 1621 RMD160 ac7aee732f7ad8c928cf96b60a6c4d0f99a3a0f6 SHA1 f2f7e72036e6a0f7f3cce5739fb5f971167cd05c SHA256 c7df540ee72b34ab8305d11357594df47eb9a64b8ae47fd72e5add565738e34f +MD5 37cb777167e30a422196fa1439e81d95 files/novfsd20.initd 1621 +RMD160 ac7aee732f7ad8c928cf96b60a6c4d0f99a3a0f6 files/novfsd20.initd 1621 +SHA256 c7df540ee72b34ab8305d11357594df47eb9a64b8ae47fd72e5add565738e34f files/novfsd20.initd 1621 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-novfsd-1.2.0_p8-r4.ebuild 2289 RMD160 f47bc69bebd197c1c4425b6326c05a4a4c1c33f9 SHA1 1fe8ea8ba09efdbce5a9b66c4a909840cde75be6 SHA256 e40a43bf2d654897b288414d38e43778589a88eb4d64b38982a2c96f13bf9927 MD5 74ff5e88a0137262dcffc354810a403b novell-novfsd-1.2.0_p8-r4.ebuild 2289 RMD160 f47bc69bebd197c1c4425b6326c05a4a4c1c33f9 novell-novfsd-1.2.0_p8-r4.ebuild 2289 SHA256 e40a43bf2d654897b288414d38e43778589a88eb4d64b38982a2c96f13bf9927 novell-novfsd-1.2.0_p8-r4.ebuild 2289 -MISC ChangeLog 1055 RMD160 aee855e40d41eb2bf922201ef35a48ce5b78f39f SHA1 8e1ebb33119c5fc3f12b6b4967f4952928d3efc3 SHA256 4757a31de7f39403b9c55eb51dd5302f4f571d4484188f28215b927f41c14406 -MD5 5cdebf972f303ed85432dd38f79004e3 ChangeLog 1055 -RMD160 aee855e40d41eb2bf922201ef35a48ce5b78f39f ChangeLog 1055 -SHA256 4757a31de7f39403b9c55eb51dd5302f4f571d4484188f28215b927f41c14406 ChangeLog 1055 +EBUILD novell-novfsd-2.0.0_p29.ebuild 3807 RMD160 563cedbd9f5ca8b5bd8e59322761e9e14d265784 SHA1 3c0e355b22f704f3103c3fde5c9c5fc0bec99ec0 SHA256 faca3d7e0202fc0428013cd01f1fcb99ba18fda0acf81769f4d876e96ff5f15d +MD5 9dd8af5226bc215def2cc984d14eee91 novell-novfsd-2.0.0_p29.ebuild 3807 +RMD160 563cedbd9f5ca8b5bd8e59322761e9e14d265784 novell-novfsd-2.0.0_p29.ebuild 3807 +SHA256 faca3d7e0202fc0428013cd01f1fcb99ba18fda0acf81769f4d876e96ff5f15d novell-novfsd-2.0.0_p29.ebuild 3807 +MISC ChangeLog 1223 RMD160 90c9e6938a884fe68a884e62c4078faeb4debc3b SHA1 be3b3ffc987fa8a964064720af6c529e86bd8099 SHA256 d04f224459a846427bba54486c6b3db2e0b5906d1e7e91c1ad9be03f6922f70e +MD5 bd955a06d252e7bcde0af133af425547 ChangeLog 1223 +RMD160 90c9e6938a884fe68a884e62c4078faeb4debc3b ChangeLog 1223 +SHA256 d04f224459a846427bba54486c6b3db2e0b5906d1e7e91c1ad9be03f6922f70e ChangeLog 1223 MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170 @@ -26,3 +40,6 @@ SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 metadata MD5 dcdc80c8269e53d3a5ecd72aa4034a06 files/digest-novell-novfsd-1.2.0_p8-r4 277 RMD160 4767389e6f47ba8fb5b8907a954b9f80ce106b78 files/digest-novell-novfsd-1.2.0_p8-r4 277 SHA256 aa21d5b182ad571f4bedf0694cc608f211146d09e0af2bdd1addd6415a2bf0b8 files/digest-novell-novfsd-1.2.0_p8-r4 277 +MD5 3332466877e3a8abab8294e669c4b312 files/digest-novell-novfsd-2.0.0_p29 590 +RMD160 4674f6c84c589734b5ce983d3441b35dff1fd412 files/digest-novell-novfsd-2.0.0_p29 590 +SHA256 024a6db7c5a121d6c96d32d8371e61d6a79825ede5aca48c1ea77e9e49e939cb files/digest-novell-novfsd-2.0.0_p29 590 diff --git a/trunk/novell4gentoo/net-fs/novell-novfsd/files/80novell-client64 b/trunk/novell4gentoo/net-fs/novell-novfsd/files/80novell-client64 new file mode 100644 index 00000000..63c59c70 --- /dev/null +++ b/trunk/novell4gentoo/net-fs/novell-novfsd/files/80novell-client64 @@ -0,0 +1,5 @@ +NOVELL_CLIENT_DIR=/opt/novell/ncl +PATH=/opt/novell/ncl/bin +ROOTPATH=/opt/novell/ncl/bin +LDPATH=/opt/novell/ncl/lib32:/opt/novell/ncl/lib64 +PRELINK_PATH_MASK=/opt/novell/ncl/lib32:/opt/novell/ncl/lib64:/opt/novell/ncl/bin \ No newline at end of file diff --git a/trunk/novell4gentoo/net-fs/novell-novfsd/files/digest-novell-novfsd-2.0.0_p29 b/trunk/novell4gentoo/net-fs/novell-novfsd/files/digest-novell-novfsd-2.0.0_p29 new file mode 100644 index 00000000..5e51de82 --- /dev/null +++ b/trunk/novell4gentoo/net-fs/novell-novfsd/files/digest-novell-novfsd-2.0.0_p29 @@ -0,0 +1,6 @@ +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 diff --git a/trunk/novell4gentoo/net-fs/novell-novfsd/files/novfsd20.initd b/trunk/novell4gentoo/net-fs/novell-novfsd/files/novfsd20.initd new file mode 100755 index 00000000..506aca2f --- /dev/null +++ b/trunk/novell4gentoo/net-fs/novell-novfsd/files/novfsd20.initd @@ -0,0 +1,69 @@ +#!/sbin/runscript + +NOVFS_MOUNT_PATH=/var/opt/novell/nclmnt +export XTIER_CODE_PAGE=`locale charmap` +export NCPL_DO_NOT_OVERWRITE_OPENLOG=1 + +depend() { + need net + before xdm + after novell-xregd +} + +#checkconfig() { +# if [ ! -e ${NDSD_CONFIGFILE} ] ; then +# eerror "Novell eDirectory server has not been configured." +# return 1 +# fi +#} + +start() { + export XTIER_CODE_PAGE=`locale charmap` + export NCPL_DO_NOT_OVERWRITE_OPENLOG=1 + + ebegin "Loading novell novfs kernel module" + #Try and start novfs + modprobe novfs + lsmod |grep novfs 2>&1 >/dev/null + eend $? + ebegin "Mounting novell novfs" + #Mount our filesystem + mount -t novfs novfs $NOVFS_MOUNT_PATH + eend $? + + EnableNMAS=1 + if [ -f /etc/opt/novell/ncl/login.conf ]; then + cat /etc/opt/novell/ncl/login.conf |grep "NMAS_Authentication=false" 2>&1 >/dev/null + if [ $? -eq 0 ]; then + EnableNMAS=0 + fi + fi + + if [ $EnableNMAS -eq 0 ]; then + ebegin "Starting novell novfs daemon with NMAS-Authentication" + start-stop-daemon --start --quiet --exec /opt/novell/ncl/bin/novfsd -- -m + else + ebegin "Starting Novell novfs daemon" + start-stop-daemon --start --quiet --exec /opt/novell/ncl/bin/novfsd + fi + + eend $? +} + +stop() { + ebegin "Stopping Novell novfs daemon" + start-stop-daemon --stop --quiet --name novfsd + eend $? + ebegin "unMounting novell novfs" + umount $NOVFS_MOUNT_PATH 2>/dev/null + #Check to see if mount point is still mounted + mount | grep novfs 2>&1 > /dev/null + eend $? + ebegin "unLoading novell novfs kernel module" + rmmod novfs + eend $? +} + +#restart() { +# (Commands necessary to restart the service) +#} \ No newline at end of file diff --git a/trunk/novell4gentoo/net-fs/novell-novfsd/novell-novfsd-2.0.0_p29.ebuild b/trunk/novell4gentoo/net-fs/novell-novfsd/novell-novfsd-2.0.0_p29.ebuild new file mode 100644 index 00000000..7bbcd2c2 --- /dev/null +++ b/trunk/novell4gentoo/net-fs/novell-novfsd/novell-novfsd-2.0.0_p29.ebuild @@ -0,0 +1,133 @@ +# 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 Client for Linux file system deamon" +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-ncl-EULA" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="gtk" + +DEPEND=">=app-arch/p7zip-4.15" + +RDEPEND="virtual/libc + >=sys-devel/gcc-4.1 + >=net-nds/novell-xtier-base-3.1.5_p46 + >=net-fs/novell-novfs-2.0.0_p23 + >=app-crypt/novell-nici-2.7.3_p11" + +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 + 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/ncl + dobin ${WORKDIR}/${PN}-${MY_PV}/opt/novell/ncl/bin/* + newbin ${WORKDIR}/${PN}-${MY_PV}/opt/novell/ncl/bin/Debug/novfsd novfsd-Debug + dodoc ${WORKDIR}/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/* + + if use x86 + then + doenvd "${FILESDIR}"/80novell-client + elif use amd64 + then + doenvd "${FILESDIR}"/80novell-client64 + fi + + newinitd "${FILESDIR}"/novfsd20.initd novfsd +} + +pkg_preinst() { + rc-config stop novfsd + rc-config start novell-xregd +} + +pkg_postinst() { +if [ ! -d /var/opt/novell/nclmnt ]; then + einfo "Creating mount point /var/opt/novell/nclmnt" + mkdir -p -m 777 /var/opt/novell/nclmnt +fi + +EnableSLP=1 +EnableNMAS=1 + +if [ -f /etc/opt/novell/ncl/protocol.conf ]; then + cat /etc/opt/novell/ncl/protocol.conf |grep Name_Resolution_Providers 2>&1 >/dev/null + if [ $? -eq 0 ]; then + cat /etc/opt/novell/ncl/protocol.conf |grep SLP 2>&1 >/dev/null + if [ $? -ne 0 ]; then + EnableSLP=0 + fi + fi +fi + +if [ -f /etc/opt/novell/ncl/login.conf ]; then + cat /etc/opt/novell/ncl/login.conf |grep "NMAS_Authentication=false" 2>&1 >/dev/null + if [ $? -eq 0 ]; then + EnableNMAS=0 + fi +fi + +if [ $EnableSLP -eq 1 ]; then +# enable xtier slp name resolution +/opt/novell/xtier/bin/regutil -v "\client\policies\network\ip\address resolution providers\configured" "9" REG_SZ "{A18C57F8-17DA-11d1-8FFF-00A0C925D248}" +fi + +if [ $EnableNMAS -eq 1 ]; then +# enable xtier NMAS support +/opt/novell/xtier/bin/regutil -v "\Client\Policies" "Default Authentication Provider" REG_SZ "{FCB72681-D373-11d3-BC08-00A0C9EA53EF}" +fi +} + +pkg_prerm() { + rc-config stop novfsd +} + +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" +}