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

34
net-fs/metadata.xml Normal file
View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<catmetadata>
<longdescription lang="en">
The net-fs category contains network filesystem packages.
</longdescription>
<longdescription lang="de">
Die Kategorie net-fs enthült Netzwerkdateisysteme.
</longdescription>
<longdescription lang="es">
La categoría net-fs contiene paquetes de sistemas de ficheros en red.
</longdescription>
<longdescription lang="ja">
net-fsカテゴリーにはネットワーク・ファイルシステムのパッケージが含まれています。
</longdescription>
<longdescription lang="nl">
De net-fs categorie bevat netwerk-bestandssystemen.
</longdescription>
<longdescription lang="vi">
Nhóm net-fs chứa các gói hệ tập tin mạng.
</longdescription>
<longdescription lang="it">
La categoria net-fs contiene pacchetti per i filesystem di rete.
</longdescription>
<longdescription lang="pt">
A categoria net-fs contém pacotes para sistemas de arquivos de
rede.
</longdescription>
<longdescription lang="pl">
Kategoria net-fs zawiera pakiety związane z NFS, sieciowym systemem
plików.
</longdescription>
</catmetadata>

View File

@@ -0,0 +1,187 @@
# ChangeLog for net-fs/novell-novfs
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*novell-novfs-2.0.0.440.7 (05 Dec 2010)
05 Dec 2010; Mario Fetka <mario.fetka@gmail.com>
+novell-novfs-2.0.0.440.7.ebuild, metadata.xml:
bump for 2.6.36
24 Aug 2010; Mario Fetka <mario.fetka@gmail.com>
-novell-novfs-2.0.0.440.3.ebuild, -novell-novfs-2.0.0.440.4.ebuild,
-novell-novfs-2.0.0.440.5.ebuild:
delete old
24 Aug 2010; Mario Fetka <mario.fetka@gmail.com>
+novell-novfs-2.0.0.440.6.ebuild:
Bump novfs
24 Aug 2010; Mario Fetka <mario.fetka@gmail.com>
+novell-novfs-2.0.0.440.5.ebuild:
Bump novfs
24 Aug 2010; Mario Fetka <mario.fetka@gmail.com>
+novell-novfs-2.0.0.440.3.ebuild, +novell-novfs-2.0.0.440.4.ebuild:
Bump novfs
08 May 2010; Mario Fetka <mario.fetka@gmail.com>
+novell-novfs-2.0.0.440.2.ebuild:
Bump
*novell-novfs-2.0.0.440.1 (03 Sep 2009)
03 Sep 2009; Mario Fetka <mario.fetka@gmail.com>
+novell-novfs-2.0.0.440.1.ebuild:
created new tbz2 for 2.6.30 and onward and rename all the ebuilds to
upstream version number
09 Apr 2009; Mario Fetka <mario.fetka@gmail.com>
+files/novfs-2.0.0.444-2.6.29-1.patch, novell-novfs-2.0.0.444.ebuild:
Make it compile with 2.6.29
27 Jan 2009; Mario Fetka <mario.fetka@gmail.com>
files/novfs-2.0.0.444-2.6.28-1.patch:
2.6.28.1 patch
27 Jan 2009; Mario Fetka <mario.fetka@gmail.com>
files/novfs-2.0.0.444-2.6.28-1.patch:
2.6.28 support fix
27 Jan 2009; Mario Fetka <mario.fetka@gmail.com>
+files/novfs-2.0.0.444-2.6.28-1.patch, novell-novfs-2.0.0.444.ebuild:
2.6.28 support
16 Nov 2008; Mario Fetka <mario.fetka@gmail.com>
+files/novfs-2.0.0.444-apparmor-1.patch, novell-novfs-2.0.0.444.ebuild:
add build with apparmor
03 Nov 2008; Mario Fetka <mario.fetka@gmail.com> ChangeLog:
redigest
03 Nov 2008; Mario Fetka <mario.fetka@gmail.com>
+novell-novfs-2.0.0.444.ebuild:
bump
26 Aug 2008; Mario Fetka <mario.fetka@gmail.com>
novell-novfs-2.0.0_p23-r2.ebuild, novell-novfs-2.0.0.440.ebuild:
Repoman cleanup
17 Jun 2008; Mario Fetka <mario-fetka@gmx.at>
+files/novfs-2.0.0-2.6.25.patch, +novell-novfs-2.0.0.440.ebuild:
Bump
26 Jan 2008; Mario Fetka <mario-fetka@gmx.at>
-files/novell-novfs-1.2.0-dentry.patch,
-files/novell-novfs-1.2.0-dont_use_tasklist_lock.patch,
-files/novell-novfs-1.2.0-getsb.patch,
-files/novell-novfs-1.2.0-getsb-fix.patch,
-files/novell-novfs-1.2.0-license.patch,
-files/novell-novfs-1.2.0_to_2.0.0.patch,
-files/novell-novfs-2.0.0-2_6_15-compat.patch,
-files/novell-novfs-2.0.0-config_h.patch,
-files/novell-novfs-2.0.0-dont_use_tasklist_lock.patch,
-files/novell-novfs-2.0.0-generic_file_read.patch,
-files/novell-novfs-2.0.0-i_blksize.patch,
-files/novell-novfs-2.0.0-u.generic_ip.patch,
-files/novell-novfs-2.0.0_p16-vfs.patch,
-files/novell-novfs-2.0.0_p20-vfs.patch,
-novell-novfs-1.2.0_p17-r2.ebuild, -novell-novfs-2.0.0_p2-r1.ebuild,
-novell-novfs-2.0.0_p16.ebuild, -novell-novfs-2.0.0_p20.ebuild,
-novell-novfs-2.0.0_p21.ebuild, -novell-novfs-2.0.0_p22.ebuild,
-novell-novfs-2.0.0_p22-r1.ebuild, -novell-novfs-2.0.0_p23.ebuild,
-novell-novfs-2.0.0_p23-r1.ebuild:
Delete old versions
26 Jan 2008; Mario Fetka <mario-fetka@gmx.at>
files/novell-novfs-2.0.0-vfs.patch, +novell-novfs-2.0.0_p23-r2.ebuild:
Correct patch
26 Jan 2008; Mario Fetka <mario-fetka@gmx.at>
files/novell-novfs-2.0.0-vfs.patch:
Correct patch
26 Jan 2008; Mario Fetka <mario-fetka@gmx.at>
files/novell-novfs-2.0.0-vfs.patch:
Correct patch
26 Jan 2008; Mario Fetka <mario-fetka@gmx.at>
files/novell-novfs-2.0.0-vfs.patch:
Correct vfs patch
26 Jan 2008; Mario Fetka <mario-fetka@gmx.at>
files/novell-novfs-2.0.0-vfs.patch, +novell-novfs-2.0.0_p23-r1.ebuild:
delete mistake
26 Jan 2008; Mario Fetka <mario-fetka@gmx.at>
files/novell-novfs-2.0.0-vfs.patch, +novell-novfs-2.0.0_p23-r1.ebuild:
Bump
26 Jan 2008; Mario Fetka <mario-fetka@gmx.at>
files/novell-novfs-2.0.0-vfs.patch, +novell-novfs-2.0.0_p23-1.ebuild:
Bump
23 Oct 2007; Mario Fetka <mario-fetka@gmx.at> ++:
Bump & i hope this hang on shutdown have been solved
30 Sep 2007; Mario Fetka <mario-fetka@gmx.at>
+files/novell-novfs-2.0.0-section_mismatch-1.patch,
+novell-novfs-2.0.0_p22-r1.ebuild:
Fix section warnings
28 Aug 2007; Mario Fetka <mario-fetka@gmx.at>
files/novell-novfs-2.0.0-vfs.patch, ++:
Bump PL & add a new http mirror
21 Aug 2007; Mario Fetka <mario-fetka@gmx.at> ++, ++:
Bump Version for novfs
11 Jul 2007; Mario Fetka <mario-fetka@gmx.at>
+novell-novfs-2.0.0_p20.ebuild, +files/novell-novfs-2.0.0_p20-vfs.patch:
Bump Version of the kernel module
17 May 2007; Mario Fetka <mario-fetka@gmx.at>
+novell-novfs-2.0.0_p16.ebuild, +files/novell-novfs-2.0.0_p16-vfs.patch:
Update to the new stable novfs.ko (no crash on shutdown)
04 Apr 2007; Mario Fetka <mario-fetka@gmx.at>
-novell-novfs-2.0.0_p2.ebuild:
Drop old buggy ebuild
18 Feb 2007; Mario Fetka <mario-fetka@gmx.at>
+novell-novfs-2.0.0_p2-r1.ebuild,
+files/novell-novfs-2.0.0-2_6_15-compat.patch:
novfs now compiles on 2.6.15 - 2.6.20
26 Jan 2007; Mario Fetka <mario-fetka@gmx.at>
+files/novell-novfs-1.2.0_to_2.0.0.patch,
+novell-novfs-2.0.0_p2.ebuild, +files/novell-novfs-2.0.0-config_h.patch,
+files/novell-novfs-2.0.0-dont_use_tasklist_lock.patch,
+files/novell-novfs-2.0.0-generic_file_read.patch,
+files/novell-novfs-2.0.0-i_blksize.patch,
+files/novell-novfs-2.0.0-u.generic_ip.patch:
Update to novfs 2.0.0
18 Oct 2006; Mario Fetka <mario-fetka@gmx.at>
-novell-novfs-1.2.0_p17-r1.ebuild, +novell-novfs-1.2.0_p17-r2.ebuild,
-files/novell-novfs-1.2.0-2.6.17.patch,
+files/novell-novfs-1.2.0-dentry.patch,
+files/novell-novfs-1.2.0-dont_use_tasklist_lock.patch,
+files/novell-novfs-1.2.0-getsb.patch,
+files/novell-novfs-1.2.0-getsb-fix.patch,
+files/novell-novfs-1.2.0-license.patch:
make novfs build on 2.6.18 without that conf script.
correct many build errors
also add some tweaks to get also compile against 2.6.17
15 Oct 2006; Mario Fetka <mario-fetka@gmx.at>
+novell-novfs-1.2.0_p17-r2.ebuild, +files/novell-novfs-1.2.0-getsb.patch:
Update for 2.6.18
13 Aug 2006; Mario Fetka <mario-fetka@gmx.at>
novell-novfs-1.2.0_p17-r1.ebuild, +metadata.xml:
Correct Typo
13 Aug 2006; Mario Fetka <mario-fetka@gmx.at> ChangeLog:
Initial novfs ChangeLog

View File

@@ -0,0 +1,20 @@
AUX novell-novfs-2.0.0-section_mismatch-1.patch 1943 RMD160 e6a025066d935ff69669b67eb77157a6cb96c525 SHA1 0caa5ee241ed56cd52741815192659612eefae2b SHA256 38b1be3c3b61c15212063af75cfbd84ac46b4aab8248a11c9ec121a5496a86d6
AUX novell-novfs-2.0.0-vfs.patch 524 RMD160 caab5f55b21e0a84c90529af01018f076069e046 SHA1 e4ff839c81ea455975104f096c81a3f7e2564867 SHA256 b2a21ed547f05bd141f02062dd219e445ab1f4170dbf9f336f72281f2bea00ee
AUX novfs-2.0.0-2.6.25.patch 1417 RMD160 60ba9006d215bc2bf2723bd466f1dcebb27ebe53 SHA1 fb067c32f29889a665df06c6763b93f497be5466 SHA256 1f532cd3aee291ca31c16d4e6b6dc17227c2052f70ededbf20740b23e6409666
AUX novfs-2.0.0.444-2.6.28-1.patch 1360 RMD160 f7e8442cc59f30a6fd324842eeaaeb09127252bb SHA1 8d1df6b40f66ec03b98a634ce532a0a8a6ce6c46 SHA256 a49b836bf6fa3e2cb240c75cd88c52b1c205b5220e85af8ee7d70b812b62e38e
AUX novfs-2.0.0.444-2.6.29-1.patch 4340 RMD160 6a92f6d3c797f8ad6b4f21f87eda16d86426d783 SHA1 90d006a7d5d96e139c817e22799651d1e37053a9 SHA256 5b8c4494e37d54887b86f5ff9ac7e1cac812acd50010a1a0d21cf2b0b4d1b09c
AUX novfs-2.0.0.444-apparmor-1.patch 734 RMD160 f615b8f1f3631a17e251ea39dd5f093562a2eb4d SHA1 cbb850fd04091fbebd042a6ea5b5096651a564b1 SHA256 f08cecbfc61f78018222c6a7065c63ac9ad29aba76270d824e637d62e6b108eb
DIST novfs-2.0.0-23.src.rpm 133355 RMD160 67a07d2eb8b12cefe40d44dab9c94670c64cc54d SHA1 0a3573587b06a4c82e2f34b40749df04ff2b414b SHA256 e5e4c234a39220b8f86c6bc45d446abe0ec20b46d6b72792541ad5e3bc3ebbeb
DIST novfs-2.0.0.440.0.tar.bz2 72400 RMD160 1209014d56f7a2056a0aa962746d026f36492aec SHA1 26d979cfca38152550af64950f2375b72ebbe6f1 SHA256 f0b6670bac5f412c04a2133a573f13a1466a0088fa418a8ebc1fd57b30984bd0
DIST novfs-2.0.0.440.1.tar.bz2 72069 RMD160 68417e7af0c8cd71792ecbda6cae112453603e3e SHA1 6f8b58dbd74e8feb64330581508b5f2283f0cf01 SHA256 8b60193a4cff06a56454014c0cd520481d3861f9ad35951f1c2f60894a725648
DIST novfs-2.0.0.440.2.tar.bz2 71870 RMD160 7a22beb57ab320b4c9e9e7c94334119d130bf1cb SHA1 f37622522b93fa6180f98b11ae9d2d6659df4095 SHA256 9d05915cb7b4a397081958382e7615454ee7d6f30c91abe9722ab25bcd03a18e
DIST novfs-2.0.0.440.6.tar.bz2 70442 RMD160 c9214d81bf425d8db17fddfb1f1ee5ef91060c1a SHA1 46c0647e402806752273258fb9f863971d57e432 SHA256 3671986402cd1cb2d82c610e048a73558420c40aa12a53eef28e4fa71fe930c5
DIST novfs-2.0.0.440.7.tar.bz2 70345 RMD160 e74d26d9a8e9ed2bf9b9873751e6c79e9c1adc35 SHA1 f74d988e4250a90fa9ca0e27aa3fdd353b10deee SHA256 37fb15e9820026cbcd29830b3544bfbe62dbd70f7ed96fe8b2b14db0121ed7aa
EBUILD novell-novfs-2.0.0.440.0.ebuild 1029 RMD160 eb3fdf91bf603921287cc8954c09e4e5642d8ae6 SHA1 c8d8ab5ffc568b368b51a85e8ef6f6345f45eaf1 SHA256 84b20f8740e11f0cc91f55cfbfede440e63b4ea48b7e575eefc378653592d940
EBUILD novell-novfs-2.0.0.440.1.ebuild 874 RMD160 3939870000da712833adfd0b6712dfe3666b02d6 SHA1 0f24122d70837749282cd246e4448ff1fd62b56c SHA256 e87f464d816b1e941b41461813524f382b2fefc0d0ae7999dcfae7bbb5efd29a
EBUILD novell-novfs-2.0.0.440.2.ebuild 896 RMD160 8dea1ec8c911f821d48abdc682a3f2ba2512bc74 SHA1 83e281c17f3eb493e2b438414bc6fed725bde09e SHA256 1d7a1b5ebaeac7a01d117698c207e72b2d4043a9222a07908d86353a6eedc0c7
EBUILD novell-novfs-2.0.0.440.6.ebuild 896 RMD160 8dea1ec8c911f821d48abdc682a3f2ba2512bc74 SHA1 83e281c17f3eb493e2b438414bc6fed725bde09e SHA256 1d7a1b5ebaeac7a01d117698c207e72b2d4043a9222a07908d86353a6eedc0c7
EBUILD novell-novfs-2.0.0.440.7.ebuild 896 RMD160 8dea1ec8c911f821d48abdc682a3f2ba2512bc74 SHA1 83e281c17f3eb493e2b438414bc6fed725bde09e SHA256 1d7a1b5ebaeac7a01d117698c207e72b2d4043a9222a07908d86353a6eedc0c7
EBUILD novell-novfs-2.0.0_p23-r2.ebuild 1656 RMD160 e32d855e9ec2e3da63fcff498daadd3cf9496ffb SHA1 efbb12cde7c034d3bb06e2a008d492ee8db1dd3a SHA256 ad6321bb3e4ca534fd0abe389bceb0901a3f7f9fcd6daaa3eeec4652b04bf7ea
MISC ChangeLog 6466 RMD160 3e50056ea2d6abe1e6d9b36dfab3b0b5654a2eec SHA1 0808ca9ceb7edb60c365e0f27575f005172cf3ab SHA256 9138fd15ab51c034354a87f06caf39d76fdc377b1c83a31945077bfddb165dfc
MISC metadata.xml 226 RMD160 bebcbe7a5e3d2be83c25e006192f71ebf45abb14 SHA1 ec2b713fc2363b8c51e9c164d0802eeb59d9d296 SHA256 a9d3f7df2362a9a7ddcbe05c5d97d726eeb4bab135b21643508149a08bf6a2b2

View File

@@ -0,0 +1,44 @@
Submitted By: Mario Fetka (mario-fetka at gmx dot at)
Date: 2007-09-30
Initial Package Version: 2.0.0
Origin: me
Upstream Status: unknown
Description:
Fix section warning:
WARNING: /var/tmp/portage/net-fs/novell-novfs-2.0.0_p22/work/novfs-2.0.0/src/novfs.o(.text+0xa5a5): Section mismatch: reference to .init.text:init_novfs (between '__cyg_profile_func_enter' and 'profile_task_exit_callback')
WARNING: /var/tmp/portage/net-fs/novell-novfs-2.0.0_p22/work/novfs-2.0.0/src/novfs.o(.data+0x7fc): Section mismatch: reference to .init.text:init_novfs (between 'SymbolTable' and 'Malloc_Lock')
WARNING: /var/tmp/portage/net-fs/novell-novfs-2.0.0_p22/work/novfs-2.0.0/src/novfs.o(.text+0xa511): Section mismatch: reference to .exit.text:exit_novfs (between '__cyg_profile_func_exit' and '__cyg_profile_func_enter')
WARNING: /var/tmp/portage/net-fs/novell-novfs-2.0.0_p22/work/novfs-2.0.0/src/novfs.o(.data+0x6b4): Section mismatch: reference to .exit.text:exit_novfs (between 'SymbolTable' and 'Malloc_Lock')
diff -Naur novfs-2.0.0.orig/src/inode.c novfs-2.0.0/src/inode.c
--- novfs-2.0.0.orig/src/inode.c 2007-08-09 10:56:06.000000000 +0000
+++ novfs-2.0.0/src/inode.c 2007-09-30 10:55:45.000000000 +0000
@@ -271,8 +271,8 @@
int Novfs_Control_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg);
-int __init init_novfs(void);
-void __exit exit_novfs(void);
+int __devinit init_novfs(void);
+void __devexit exit_novfs(void);
int Novfs_lock_inode_cache( struct inode *i );
void Novfs_unlock_inode_cache( struct inode *i );
@@ -4898,7 +4898,7 @@
}
/*++======================================================================*/
-int __init init_novfs (void)
+int __devinit init_novfs (void)
/*
* Arguments:
*
@@ -4941,7 +4941,7 @@
}
/*++======================================================================*/
-void __exit exit_novfs(void)
+void __devexit exit_novfs(void)
/*
* Arguments:
*

View File

@@ -0,0 +1,11 @@
--- novfs-2.0.0/src/daemon.c.orig 2007-05-11 08:55:19.000000000 +0200
+++ novfs-2.0.0/src/daemon.c 2007-05-17 20:37:00.000000000 +0200
@@ -2780,7 +2780,7 @@
{
atomic_inc(&inode->i_count);
}
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
// Version of 2.6.20 changed the number of
// parameters passed to vfs_unlink.
error = vfs_unlink(nd.dentry->d_inode, dentry, nd.mnt);

View File

@@ -0,0 +1,46 @@
--- src/daemon.c
+++ src/daemon.c
@@ -2783,7 +2783,7 @@
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
// Version of 2.6.20 changed the number of
// parameters passed to vfs_unlink.
- error = vfs_unlink(nd.dentry->d_inode, dentry, nd.mnt);
+ error = vfs_unlink(nd.path.dentry->d_inode, dentry, nd.path.mnt);
#else
error = vfs_unlink(nd.dentry->d_inode, dentry);
#endif
@@ -2791,10 +2791,10 @@
}
dput(dentry);
}
- mutex_unlock(&nd.dentry->d_inode->i_mutex);
+ mutex_unlock(&nd.path.dentry->d_inode->i_mutex);
}
- path_release(&nd);
+ path_put(&nd.path);
}
if (inode)
--- src/inode.c
+++ src/inode.c
@@ -376,7 +376,6 @@
};
static struct super_operations Novfs_ops = {
- .read_inode = Novfs_read_inode,
.statfs = Novfs_statfs,
.clear_inode = Novfs_clear_inode,
.drop_inode = generic_delete_inode,
@@ -4596,7 +4595,10 @@
buf = (char *)Novfs_Malloc(PATH_LENGTH_BUFFER, GFP_KERNEL);
if (buf)
{
- path = d_path(m->mnt_root, m, buf, PATH_LENGTH_BUFFER);
+ struct path my_path;
+ my_path.mnt = m;
+ my_path.dentry= m->mnt_root;
+ path = d_path(&my_path, buf, PATH_LENGTH_BUFFER);
if (path)
{
if ( !Novfs_CurrentMount || (Novfs_CurrentMount && strcmp(Novfs_CurrentMount, path)))

View File

@@ -0,0 +1,48 @@
Submitted By: Mario Fetka (mario dot fetka at gmail dot com)
Date: 2009-01-27
Initial Package Version: 2.0.0.444
Origin: me
Upstream Status: unknown
Description: support >= 2.6.28
diff -Naur novfs-2.0.0.444.orig/inode.c novfs-2.0.0.444/inode.c
--- novfs-2.0.0.444.orig/inode.c 2009-01-27 20:19:47.375095216 +0000
+++ novfs-2.0.0.444/inode.c 2009-01-27 20:18:27.000000000 +0000
@@ -246,8 +246,13 @@
.readpages = novfs_a_readpages,
.writepage = novfs_a_writepage,
.writepages = novfs_a_writepages,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28))
+ .write_begin = novfs_a_prepare_write,
+ .write_end = novfs_a_commit_write,
+#else
.prepare_write = novfs_a_prepare_write,
.commit_write = novfs_a_commit_write,
+#endif
.set_page_dirty = __set_page_dirty_nobuffers,
.direct_IO = novfs_a_direct_IO,
};
@@ -1887,7 +1892,11 @@
SetPageUptodate(page);
unlock_page(page);
if (!pagevec_add(plru_pvec, page))
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)
+ __pagevec_lru_add_file(plru_pvec);
+ #else
__pagevec_lru_add(plru_pvec);
+ #endif
data += PAGE_CACHE_SIZE;
}
return;
@@ -2383,7 +2392,11 @@
page_cache_release(page);
}
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)
+ pagevec_lru_add_file(&lru_pvec);
+ #else
pagevec_lru_add(&lru_pvec);
+ #endif
kfree(rbuf);
} else {
retCode = -ENOMEM;

View File

@@ -0,0 +1,148 @@
Submitted By: Mario Fetka (mario dot fetka at gmail dot com)
Date: 2009-04-09
Initial Package Version: 2.0.0.444
Origin: me
Upstream Status: unknown
Description: make it compile with 2.6.29
diff -Naur novfs-2.0.0.444.orig/file.c novfs-2.0.0.444/file.c
--- novfs-2.0.0.444.orig/file.c 2009-04-09 14:15:42.656043713 +0000
+++ novfs-2.0.0.444/file.c 2009-04-09 14:22:00.067362069 +0000
@@ -185,8 +185,13 @@
DbgPrint("novfs_Get_File_Info: Path = %s\n", Path);
Info->mode = S_IFDIR | 0700;
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ Info->uid = current_uid();
+ Info->gid = current_gid();
+#else
Info->uid = current->uid;
Info->gid = current->gid;
+#endif
Info->size = 0;
Info->atime = Info->mtime = Info->ctime = CURRENT_TIME;
@@ -230,8 +235,13 @@
Info->mode &= ~(S_IWUSR);
}
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ Info->uid = current_euid();
+ Info->gid = current_egid();
+#else
Info->uid = current->euid;
Info->gid = current->egid;
+#endif
Info->size = reply->fileSize;
Info->atime.tv_sec =
reply->lastAccessTime;
@@ -717,8 +727,13 @@
info->mode |= S_IXUSR;
}
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ info->uid = current_euid();
+ info->gid = current_egid();
+#else
info->uid = current->euid;
info->gid = current->egid;
+#endif
info->size = data->size;
info->atime.tv_sec =
data->lastAccessTime;
diff -Naur novfs-2.0.0.444.orig/inode.c novfs-2.0.0.444/inode.c
--- novfs-2.0.0.444.orig/inode.c 2009-04-09 14:15:42.650832058 +0000
+++ novfs-2.0.0.444/inode.c 2009-04-09 14:35:51.150978797 +0000
@@ -1216,7 +1216,11 @@
uid = novfs_scope_get_uid(((struct inode_data *) inode->i_private)->Scope);
} else {
SC_INITIALIZE(sessionId);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ uid = current_euid();
+#else
uid = current->euid;
+#endif
}
if (IS_ROOT(file->f_dentry) || // Root
@@ -2707,7 +2711,11 @@
struct novfs_entry_info *info = NULL;
struct inode_data *id;
struct inode *inode = NULL;
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ uid_t uid = current_euid();
+#else
uid_t uid = current->euid;
+#endif
ino_t ino = 0;
struct qstr name;
char *buf;
diff -Naur novfs-2.0.0.444.orig/scope.c novfs-2.0.0.444/scope.c
--- novfs-2.0.0.444.orig/scope.c 2009-04-09 14:15:42.692656325 +0000
+++ novfs-2.0.0.444/scope.c 2009-04-09 14:45:04.925672739 +0000
@@ -92,11 +92,20 @@
task = current;
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ DbgPrint("Scope_Find_Scope: %d %d %d %d\n", current_uid(),
+ current_euid(), current_suid(), current_fsuid());
+
+ //scopeId = task->euid;
+ UID_TO_SCHANDLE(scopeId, current_euid());
+#else
DbgPrint("Scope_Find_Scope: %d %d %d %d\n", task->uid, task->euid,
task->suid, task->fsuid);
//scopeId = task->euid;
UID_TO_SCHANDLE(scopeId, task->euid);
+#endif
+
scope = Scope_Search4Scope(scopeId, 0, 0);
@@ -108,17 +117,30 @@
scope->ScopePid = task->pid;
scope->ScopeTask = task;
scope->ScopeHash = 0;
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ scope->ScopeUid = current_euid();
+#else
scope->ScopeUid = task->euid;
+#endif
scope->ScopeUserName[0] = '\0';
if (!novfs_daemon_create_sessionId(&scope->SessionId)) {
DbgPrint("Scope_Find_Scope2: %d %d %d %d\n",
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ current_uid(), current_euid(),
+ current_suid(), current_fsuid());
+#else
task->uid, task->euid, task->suid,
task->fsuid);
+#endif
memset(scope->ScopeUserName, 0,
sizeof(scope->ScopeUserName));
scope->ScopeUserNameLength = 0;
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ novfs_daemon_getpwuid(current_euid(),
+#else
novfs_daemon_getpwuid(task->euid,
+#endif
sizeof(scope->ScopeUserName),
scope->ScopeUserName);
scope->ScopeUserNameLength =
@@ -477,8 +499,13 @@
rscope = NULL;
rcu_read_lock();
for_each_process(task) {
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ if ((task->cred->uid == scope->ScopeUid)
+ || (task->cred->euid == scope->ScopeUid)) {
+#else
if ((task->uid == scope->ScopeUid)
|| (task->euid == scope->ScopeUid)) {
+#endif
rscope = scope;
break;
}

View File

@@ -0,0 +1,22 @@
Submitted By: Mario Fetka (mario dot fetka at gmail dot com)
Date: 2008-11-16
Initial Package Version: 2.0.0.444
Origin: opensuse kernel
Upstream Status: unknown
Description: add apparmor
diff -Naur novfs-2.0.0.444.orig/daemon.c novfs-2.0.0.444/daemon.c
--- novfs-2.0.0.444.orig/daemon.c 2008-11-03 20:34:44.000000000 +0000
+++ novfs-2.0.0.444/daemon.c 2008-11-16 10:36:44.190003896 +0000
@@ -2090,7 +2090,11 @@
if (inode) {
atomic_inc(&inode->i_count);
}
+#ifdef CONFIG_SECURITY_APPARMOR
+ error = vfs_unlink(nd.path.dentry->d_inode, dentry, nd.path.mnt);
+#else
error = vfs_unlink(nd.path.dentry->d_inode, dentry);
+#endif
DbgPrint
("local_unlink: vfs_unlink %d\n",
error);

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,52 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils linux-mod
DESCRIPTION="Novell Client for Linux Filesystem"
HOMEPAGE="http://www.novell.com"
SRC_URI="http://ftp.mars.arge.at/n4g/novfs-${PV}.tar.bz2
ftp://mars.arge.at/n4g/novfs-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND="virtual/linux-sources"
RESTRICT="mirror"
S=${WORKDIR}/novfs-${PV}
MODULE_NAMES="novfs(novfs:${WORKDIR}/novfs-${PV}:${WORKDIR}/novfs-${PV}:${WORKDIR}/novfs-${PV}/)"
BUILD_TARGETS="all"
BUILD_PARAMS="KDIR=${KERNEL_DIR}"
MODULESD_NOVFS_ENABLED=""
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/novfs-2.0.0.444-apparmor-1.patch
epatch ${FILESDIR}/novfs-2.0.0.444-2.6.28-1.patch
epatch ${FILESDIR}/novfs-2.0.0.444-2.6.29-1.patch
}
src_compile() {
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
generate_modulesd
}
pkg_postinst() {
linux-mod_pkg_postinst
}
pkg_postrm() {
linux-mod_pkg_postrm
}

View File

@@ -0,0 +1,49 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils linux-mod
DESCRIPTION="Novell Client for Linux Filesystem"
HOMEPAGE="http://www.novell.com"
SRC_URI="http://ftp.mars.arge.at/n4g/novfs-${PV}.tar.bz2
ftp://mars.arge.at/n4g/novfs-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND="virtual/linux-sources"
RESTRICT="mirror"
S=${WORKDIR}/novfs-${PV}
MODULE_NAMES="novfs(novfs:${WORKDIR}/novfs-${PV}:${WORKDIR}/novfs-${PV}:${WORKDIR}/novfs-${PV}/)"
BUILD_TARGETS="all"
BUILD_PARAMS="KDIR=${KERNEL_DIR}"
MODULESD_NOVFS_ENABLED=""
src_unpack() {
unpack ${A}
}
src_compile() {
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
generate_modulesd
}
pkg_postinst() {
linux-mod_pkg_postinst
}
pkg_postrm() {
linux-mod_pkg_postrm
}

View File

@@ -0,0 +1,49 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils linux-mod
DESCRIPTION="Novell Client for Linux Filesystem"
HOMEPAGE="http://www.novell.com"
SRC_URI="http://ftp.disconnected-by-peer.at/n4g/novfs-${PV}.tar.bz2
ftp://disconnected-by-peer.at/n4g/novfs-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND="virtual/linux-sources"
RESTRICT="mirror"
S=${WORKDIR}/novfs-${PV}
MODULE_NAMES="novfs(novfs:${WORKDIR}/novfs-${PV}:${WORKDIR}/novfs-${PV}:${WORKDIR}/novfs-${PV}/)"
BUILD_TARGETS="all"
BUILD_PARAMS="KDIR=${KERNEL_DIR}"
MODULESD_NOVFS_ENABLED=""
src_unpack() {
unpack ${A}
}
src_compile() {
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
generate_modulesd
}
pkg_postinst() {
linux-mod_pkg_postinst
}
pkg_postrm() {
linux-mod_pkg_postrm
}

View File

@@ -0,0 +1,49 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils linux-mod
DESCRIPTION="Novell Client for Linux Filesystem"
HOMEPAGE="http://www.novell.com"
SRC_URI="http://ftp.disconnected-by-peer.at/n4g/novfs-${PV}.tar.bz2
ftp://disconnected-by-peer.at/n4g/novfs-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND="virtual/linux-sources"
RESTRICT="mirror"
S=${WORKDIR}/novfs-${PV}
MODULE_NAMES="novfs(novfs:${WORKDIR}/novfs-${PV}:${WORKDIR}/novfs-${PV}:${WORKDIR}/novfs-${PV}/)"
BUILD_TARGETS="all"
BUILD_PARAMS="KDIR=${KERNEL_DIR}"
MODULESD_NOVFS_ENABLED=""
src_unpack() {
unpack ${A}
}
src_compile() {
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
generate_modulesd
}
pkg_postinst() {
linux-mod_pkg_postinst
}
pkg_postrm() {
linux-mod_pkg_postrm
}

View File

@@ -0,0 +1,49 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils linux-mod
DESCRIPTION="Novell Client for Linux Filesystem"
HOMEPAGE="http://www.novell.com"
SRC_URI="http://ftp.disconnected-by-peer.at/n4g/novfs-${PV}.tar.bz2
ftp://disconnected-by-peer.at/n4g/novfs-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND="virtual/linux-sources"
RESTRICT="mirror"
S=${WORKDIR}/novfs-${PV}
MODULE_NAMES="novfs(novfs:${WORKDIR}/novfs-${PV}:${WORKDIR}/novfs-${PV}:${WORKDIR}/novfs-${PV}/)"
BUILD_TARGETS="all"
BUILD_PARAMS="KDIR=${KERNEL_DIR}"
MODULESD_NOVFS_ENABLED=""
src_unpack() {
unpack ${A}
}
src_compile() {
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
generate_modulesd
}
pkg_postinst() {
linux-mod_pkg_postinst
}
pkg_postrm() {
linux-mod_pkg_postrm
}

View File

@@ -0,0 +1,72 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils rpm linux-mod
MY_PV="${PV/_p/-}"
DESCRIPTION="Novell Client for Linux Filesystem"
HOMEPAGE="http://www.novell.com"
SRC_URI="ftp://mars.arge.at/n4g/novfs-${MY_PV}.src.rpm
http://ftp.mars.arge.at/n4g/novfs-${MY_PV}.src.rpm
http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/src/novfs-${MY_PV}.src.rpm"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND="virtual/linux-sources"
RESTRICT="mirror"
#BUILD_PARAMS="-C $KERNEL_DIR SUBDIRS=-${WORKDIR}/novfs-2.0.0/src"
MODULE_NAMES="novfs(novfs:${WORKDIR}/novfs-2.0.0/src:${WORKDIR}/novfs-2.0.0/src"
BUILD_TARGETS="all"
MODULESD_NOVFS_ENABLED=""
src_unpack() {
rpm_src_unpack ${A}
epatch "${FILESDIR}"/novell-novfs-2.0.0-vfs.patch
epatch "${FILESDIR}"/novell-novfs-2.0.0-section_mismatch-1.patch
# if kernel_is eq 2 6 15
# then
# epatch ${FILESDIR}/novell-novfs-2.0.0-2_6_15-compat.patch
# fi
# if kernel_is ge 2 6 17
# then
# epatch ${FILESDIR}/novell-novfs-2.0.0-config_h.patch
# fi
# if kernel_is ge 2 6 18
# then
# epatch ${FILESDIR}/novell-novfs-2.0.0-generic_file_read.patch
# fi
# if kernel_is ge 2 6 19
# then
# epatch ${FILESDIR}/novell-novfs-2.0.0-i_blksize.patch
# epatch ${FILESDIR}/novell-novfs-2.0.0-u.generic_ip.patch
# fi
# epatch ${FILESDIR}/novell-novfs-2.0.0-dont_use_tasklist_lock.patch
}
src_compile() {
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
generate_modulesd
}
pkg_postinst() {
linux-mod_pkg_postinst
}
pkg_postrm() {
linux-mod_pkg_postrm
}

View File

@@ -0,0 +1,108 @@
# ChangeLog for net-fs/novell-novfsd
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
09 Jul 2010; Mario Fetka <mario.fetka@gmail.com>
-novell-novfsd-3.0.0.15.ebuild:
cleanup
07 Jul 2010; Mario Fetka <mario.fetka@gmail.com>
-novell-novfsd-3.0.0.11-r1.ebuild, -novell-novfsd-3.0.0.14.ebuild:
cleanup
07 Jul 2010; Mario Fetka <mario.fetka@gmail.com>
+novell-novfsd-3.0.0.16.ebuild, -novell-novfsd-3.0.1.0.11.ebuild:
Bump
11 Jun 2010; Mario Fetka <mario.fetka@gmail.com>
novell-novfsd-3.0.0.11-r1.ebuild, novell-novfsd-3.0.0.14.ebuild,
novell-novfsd-3.0.0.15.ebuild, novell-novfsd-3.0.1.0.11.ebuild:
remove depend on novfs
16 Dec 2009; Mario Fetka <mario.fetka@gmail.com>
+novell-novfsd-3.0.1.0.11.ebuild:
Bump
13 Dec 2009; Mario Fetka <mario.fetka@gmail.com> files/novfsd20.initd:
correct the init script for the shutdown problem
12 Dec 2009; Mario Fetka <mario.fetka@gmail.com> files/novfsd20.initd:
add lazy unmount in init script
09 Dec 2009; Mario Fetka <mario.fetka@gmail.com>
novell-novfsd-3.0.0.15.ebuild, files/novfsd20.initd:
novfsd now with pidfile
09 Dec 2009; Mario Fetka <mario.fetka@gmail.com>
novell-novfsd-3.0.0.15.ebuild:
correct typo
09 Dec 2009; Mario Fetka <mario.fetka@gmail.com>
+novell-novfsd-3.0.0.15.ebuild:
Bump
03 Sep 2009; Mario Fetka <mario.fetka@gmail.com>
novell-novfsd-3.0.0.14.ebuild:
correct dependency
10 Apr 2009; Mario Fetka <mario.fetka@gmail.com>
-novell-novfsd-2.0.0_p29.ebuild, -novell-novfsd-3.0.0.1.5.ebuild,
-novell-novfsd-3.0.0.8.ebuild, -novell-novfsd-3.0.0.11.ebuild,
+novell-novfsd-3.0.0.14.ebuild:
Updated to new release drop old
09 Apr 2009; Mario Fetka <mario.fetka@gmail.com>
novell-novfsd-3.0.0.11-r1.ebuild:
correct rpm_unpack
20 Jan 2009; Mario Fetka <mario.fetka@gmail.com> +files/50_novfsd.sh,
+novell-novfsd-3.0.0.11-r1.ebuild:
new config system
16 Jan 2009; Mario Fetka <mario.fetka@gmail.com>
+novell-novfsd-3.0.0.11.ebuild:
Bump and use my rpm5 eclass
03 Nov 2008; Mario Fetka <mario.fetka@gmail.com>
+novell-novfsd-3.0.0.1.5.ebuild, +novell-novfsd-3.0.0.8.ebuild:
Bump
28 Aug 2008; Mario Fetka <mario.fetka@gmail.com> -files/80novell-client,
-files/80novell-client64, novell-novfsd-2.0.0_p29.ebuild:
depend on env package
26 Aug 2008; Mario Fetka <mario.fetka@gmail.com> -files/1.2.0_p8/novfsd,
-files/novfsd12.initd, -novell-novfsd-1.2.0_p8-r4.ebuild,
novell-novfsd-2.0.0_p29.ebuild:
Repoman cleanup
01 Nov 2007; Mario Fetka <mario-fetka@gmx.at> +files/80novell-client64,
+files/novfsd20.initd, +novell-novfsd-2.0.0_p29.ebuild:
initial import novell client 2.0
04 Apr 2007; Mario Fetka <mario-fetka@gmx.at> 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
28 Feb 2007; Mario Fetka <mario-fetka@gmx.at> files/1.2.0_p8/novfsd:
Correct Init Script
18 Feb 2007; Mario Fetka <mario-fetka@gmx.at> +files/1.2.0_p8,
+novell-novfsd-1.2.0_p8-r4.ebuild, +files/1.2.0_p8/novfsd:
Gentooize ebuild
18 Oct 2006; Mario Fetka <mario-fetka@gmx.at> files/80novell-client,
+novell-novfsd-1.2.0_p8-r3.ebuild:
Add Novell Packages to PRELINK_MASK_PATH.
05 Oct 2006; Mario Fetka <mario-fetka@gmx.at> files/novfsd12.initd,
+novell-novfsd-1.2.0_p8-r2.ebuild:
Correct init script (need slpd)
13 Aug 2006; Mario Fetka <mario-fetka@gmx.at>
novell-novfsd-1.2.0_p8-r1.ebuild, +metadata.xml:
Correct Typo
13 Aug 2006; Mario Fetka <mario-fetka@gmx.at> ChangeLog:
Initial novfsd ChangeLog

View File

@@ -0,0 +1,7 @@
AUX 50_novfsd.sh 1157 RMD160 6990703083869b442b7836bd11055068622c32a4 SHA1 adc4b602fa5193e99c98cac06d9d58d83321927c SHA256 c5835263a5d754df3c6f1a4264b8e0238078bee54fe81b1226601c98a7f391c9
AUX novfsd20.initd 1744 RMD160 fefb48332e29886d7dac478302a5d2086fd446d4 SHA1 7c1307c77d3999a8ba4947e73d8c909343829ccd SHA256 4eabb54173901292823edd2d81d50fe00f8be5d090071711fbf6d77e6e011b03
DIST novell-client-2.0-sp2-patch2-sle11-i586.iso 7997440 RMD160 e65eb47b944800d92ca4e37f3397e325f97034ab SHA1 10388020720829678b39fa73ce113d1edb16fd5b SHA256 3df7fd33504543cbbd0cef9a1917c3b9979c70f0ad27643d80daba7e28523021
DIST novell-client-2.0-sp2-patch2-sle11-x86_64.iso 7976960 RMD160 f81ab1c343291b428a05230e33e306679825a027 SHA1 9d13af47bf0dd34576ecaa8ff16f7e34bc5bf485 SHA256 7e985f980a3cc197fb9dc0017d4c72e4be61709b894080825315cf0c84b705be
EBUILD novell-novfsd-3.0.0.16.ebuild 2717 RMD160 80e039832daa4848fa356b0558f604878130c955 SHA1 855798fa6aa23fb317143672fa87de9ddfce347a SHA256 7dde1f6ba9731056543753a489e485ab926b899ba387c9cd7991f8a125635f7b
MISC ChangeLog 3628 RMD160 533b64481555cbd6d449fabce428c7703f7fa896 SHA1 7da1b1eaa725ec18bab55b2934fd57e170174251 SHA256 356a05f0fdebe71e6eedddcfb2c33a47fa9a85464af26f9d2deb3e0420208705
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42

View File

@@ -0,0 +1,39 @@
# add novfs registry entries
einfo "add novfsd registry"
# set sane defaults
EnableSLP=1
EnableNMAS=1
# check slp Support
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
# check nmas Support
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
# enable xtier slp name resolution
if [ $EnableSLP -eq 1 ]; then
einfo "enable SLP"
/opt/novell/xtier/bin/regutil -v "\client\policies\network\ip\address resolution providers\configured" "9" REG_SZ "{A18C57F8-17DA-11d1-8FFF-00A0C925D248}"
eend $?
fi
# enable xtier NMAS support
if [ $EnableNMAS -eq 1 ]; then
einfo "enable NMAS"
/opt/novell/xtier/bin/regutil -v "\Client\Policies" "Default Authentication Provider" REG_SZ "{FCB72681-D373-11d3-BC08-00A0C9EA53EF}"
eend $?
fi

View File

@@ -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 --pidfile /var/opt/novell/run/novfsd.pid -- -m
else
ebegin "Starting Novell novfs daemon"
start-stop-daemon --start --quiet --exec /opt/novell/ncl/bin/novfsd --pidfile /var/opt/novell/run/novfsd.pid
fi
eend $?
}
stop() {
ebegin "Stopping Novell novfs daemon"
start-stop-daemon --stop --signal 9 --quiet --pidfile /var/opt/novell/run/novfsd.pid
eend $?
ebegin "unMounting novell novfs"
umount -l $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)
#}

View File

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

View File

@@ -0,0 +1,91 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
NOVELL_BUILDID="6Dvlz12hewI~"
NOVELL_FILE32="novell-client-2.0-sp2-patch2-sle11-i586.iso"
NOVELL_FILE64="novell-client-2.0-sp2-patch2-sle11-x86_64.iso"
RESTRICT="mirror strip"
inherit novell eutils rpm5 versionator
MY_PVV=$(replace_version_separator 3 '-')
MY_PV="${MY_PVV/_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}/patchfiles/${NOVELL_FILE32} )
amd64? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/${NOVELL_BUILDID}/patchfiles/${NOVELL_FILE64} )"
LICENSE="Novell-NCL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=">=app-arch/p7zip-4.15"
RDEPEND="virtual/libc
net-misc/novell-client-env
>=sys-devel/gcc-4.1
>=net-nds/novell-xtier-base-3.1.6.12
>=app-crypt/novell-nici-2.7.4.6"
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}
rpm5_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}/*
exeinto /etc/opt/novell/xtier/xregd/init/
doexe "${FILESDIR}"/*.sh
newinitd "${FILESDIR}"/novfsd20.initd novfsd
keepdir /var/opt/novell/run
}
pkg_postinst() {
# check if mount dir exists otherwise create it
if [ ! -d /var/opt/novell/nclmnt ]; then
einfo "Creating mount point /var/opt/novell/nclmnt"
mkdir -p -m 777 /var/opt/novell/nclmnt
fi
}
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"
}