summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortron <tron>1998-04-26 15:25:59 +0000
committertron <tron>1998-04-26 15:25:59 +0000
commit4f012f21cfb0265d21f382314d9b85648819c8e1 (patch)
treeba5040148fc17ae7ad49604681a9814362dc93f8 /net
parente67f84397d4ac8706f595e990607c3b3bef27c47 (diff)
downloadpkgsrc-4f012f21cfb0265d21f382314d9b85648819c8e1.tar.gz
Adapt to NetBSD and update to 0.6.
Diffstat (limited to 'net')
-rw-r--r--net/rumba/Makefile21
-rw-r--r--net/rumba/files/md52
-rw-r--r--net/rumba/files/unrumba.c2
-rw-r--r--net/rumba/patches/patch-aa57
-rw-r--r--net/rumba/patches/patch-ab158
-rw-r--r--net/rumba/patches/patch-ac177
-rw-r--r--net/rumba/patches/patch-ad46
-rw-r--r--net/rumba/patches/patch-ae66
-rw-r--r--net/rumba/patches/patch-af71
-rw-r--r--net/rumba/patches/patch-ag99
-rw-r--r--net/rumba/patches/patch-ah34
-rw-r--r--net/rumba/patches/patch-ai12
-rw-r--r--net/rumba/patches/patch-aj29
-rw-r--r--net/rumba/pkg/PLIST1
14 files changed, 56 insertions, 719 deletions
diff --git a/net/rumba/Makefile b/net/rumba/Makefile
index a1fffab4ce2..d0f70b266a9 100644
--- a/net/rumba/Makefile
+++ b/net/rumba/Makefile
@@ -1,28 +1,23 @@
-# New ports collection makefile for: rumba
-# Version required: 0.4
-# Date created: 14 June 1997
-# Whom: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
-#
+# $NetBSD: Makefile,v 1.2 1998/04/26 15:25:59 tron Exp $
# $FreeBSD Id: Makefile,v 1.2 1997/07/21 19:28:46 max Exp
#
-DISTNAME= rumba.0.4.s
-PKGNAME= rumba-0.4
+DISTNAME= rumba.0.6.s
+PKGNAME= rumba-0.6
CATEGORIES= net
MASTER_SITES= ftp://hal.kph.tuwien.ac.at/pub/NeXT/tools/rumba/ \
ftp://next-ftp.peak.org/pub/next/apps/utils/networks/
EXTRACT_SUFX= .gnutar.gz
-MAINTAINER= dima@tejblum.dnttm.rssi.ru
+MAINTAINER= tron@netbsd.org
-USE_GMAKE= yes
MAKE_ENV= PWD=${WRKSRC}
MAN8= smbmount.8
post-extract:
- @${MKDIR} work/unrumba
- @${CP} ${FILESDIR}/unrumba.c ${WRKDIR}/unrumba
- @${CP} files/Makefile.unrumba ${WRKDIR}/unrumba/Makefile
+ @${MKDIR} ${WRKDIR}/unrumba
+ @${LN} -s ${FILESDIR}/unrumba.c ${WRKDIR}/unrumba
+ @${LN} -s ${FILESDIR}/Makefile.unrumba ${WRKDIR}/unrumba/Makefile
post-build:
cd ${WRKDIR}/unrumba && make
@@ -35,4 +30,4 @@ do-install:
.endif
${INSTALL_MAN} ${WRKSRC}/smbmount.8 ${PREFIX}/man/man8
-.include <bsd.port.mk>
+.include <../../mk/bsd.pkg.mk>
diff --git a/net/rumba/files/md5 b/net/rumba/files/md5
index f64f6faa789..c6ecd6040b5 100644
--- a/net/rumba/files/md5
+++ b/net/rumba/files/md5
@@ -1 +1 @@
-MD5 (rumba.0.4.s.gnutar.gz) = 7a3fc82f8e108b8d05decb11d45c09c4
+MD5 (rumba.0.6.s.gnutar.gz) = 743ed7d48161ce962f353389447b55a5
diff --git a/net/rumba/files/unrumba.c b/net/rumba/files/unrumba.c
index 8dd157c1179..add2beb33ac 100644
--- a/net/rumba/files/unrumba.c
+++ b/net/rumba/files/unrumba.c
@@ -50,7 +50,7 @@ main(int argc, char** argv)
char* s;
int error;
if (argc > 0 && strcmp(abspath, mntbuf[i].f_mntonname) != 0) continue;
- if (mntbuf[i].f_type != MOUNT_NFS) continue;
+ if (strcmp(mntbuf[i].f_fstypename,MOUNT_NFS) !=0 ) continue;
if (strncmp(mntbuf[i].f_mntfromname, "rumba-", 6) != 0) continue;
pid=strtoul(mntbuf[i].f_mntfromname+6, &s, 10);
if (*s) continue;
diff --git a/net/rumba/patches/patch-aa b/net/rumba/patches/patch-aa
index f298c6ee686..dfb575d29c8 100644
--- a/net/rumba/patches/patch-aa
+++ b/net/rumba/patches/patch-aa
@@ -1,22 +1,35 @@
-*** ../rumba.0.4.s/./my_include/asm/types.h Thu Jan 2 17:25:14 1997
---- ./my_include/asm/types.h Sun Jun 15 02:46:57 1997
-***************
-*** 8,15 ****
-
- extern int printk(const char *format, ...);
-
-!
-! typedef unsigned short mode_t;
-
- typedef signed char s8;
- typedef signed char __s8;
---- 8,16 ----
-
- extern int printk(const char *format, ...);
-
-! #if BYTE_ORDER==LITTLE_ENDIAN
-! #define __LITTLE_ENDIAN__
-! #endif
-
- typedef signed char s8;
- typedef signed char __s8;
+--- Makefile.orig Mon Mar 23 00:09:38 1998
++++ Makefile Sun Apr 26 15:27:48 1998
+@@ -13,12 +13,12 @@
+ ##############################################################################
+
+ # For NEXTSTEP/OPENSTEP:
+-CFLAGS = -Wall -O2 -traditional-cpp -g
+-INCLUDES = $(MYINCL) $(INCL)
++#CFLAGS = -Wall -O2 -traditional-cpp -g
++#INCLUDES = $(MYINCL) $(INCL)
+ # put your architecture here:
+-ARCH = -arch i386
+-THE_CC = cc
+-RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
++#ARCH = -arch i386
++#THE_CC = cc
++#RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
+
+ # For Linux:
+ #CFLAGS = -Wall -O2 -g
+@@ -32,10 +32,10 @@
+ #RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
+
+ # For NetBsd
+-#CFLAGS = -Wall -O2 -DNETBSD
+-#INCLUDES = $(MYINCL) $(INCL)
+-#THE_CC = cc
+-#RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
++CFLAGS = -Wall -O2 -DNETBSD
++INCLUDES = $(MYINCL) $(INCL)
++THE_CC = cc
++RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
+
+ # For HP-UX:
+ # this "CFLAGS" line is for HP's cc, obviously. For gcc try "-Wall -O2"
diff --git a/net/rumba/patches/patch-ab b/net/rumba/patches/patch-ab
index d86d94dddc0..2db561c8c23 100644
--- a/net/rumba/patches/patch-ab
+++ b/net/rumba/patches/patch-ab
@@ -1,148 +1,10 @@
-*** nfs/syscalls.c.orig Thu Jan 16 20:55:59 1997
---- nfs/syscalls.c Tue Jul 1 13:18:52 1997
-***************
-*** 21,27 ****
- #ifdef NeXT
- # include <nfs/nfs_mount.h>
- int syscall_mount(char *dir, void *root_fh, int sock_fd,
-! struct sockaddr_in *socket)
- {
- struct nfs_args nfs_args;
-
---- 21,27 ----
- #ifdef NeXT
- # include <nfs/nfs_mount.h>
- int syscall_mount(char *dir, void *root_fh, int sock_fd,
-! struct sockaddr_in *socket, char* mntfrom)
- {
- struct nfs_args nfs_args;
-
-***************
-*** 39,50 ****
- nfs_args.netname = "net";
- return mount(MOUNT_NFS, dir, 0, (caddr_t)&nfs_args);
- }
- #endif
- /* ------------------------------------------------------------------------- */
- #ifdef linux
- # include <linux/nfs_mount.h>
- int syscall_mount(char *dir, void *root_fh, int sock_fd,
-! struct sockaddr_in *sockaddr)
- {
- struct nfs_mount_data nfs_args;
- int ksock, kport;
---- 39,139 ----
- nfs_args.netname = "net";
- return mount(MOUNT_NFS, dir, 0, (caddr_t)&nfs_args);
- }
-+
-+ int syscall_unmount(char* dir)
-+ {
-+ unmount(dir);
-+ }
-+ #endif
-+ /* ------------------------------------------------------------------------- */
-+ #ifdef BSD4_4
-+ #define NFSX_V2FH 32
-+ #ifdef BSD4_4_LITE2
-+ #include <nfs/rpcv2.h>
-+ #include <nfs/nfs.h>
-+ #endif
-+ int syscall_mount(char *dir, void *root_fh, int sock_fd,
-+ struct sockaddr_in *socket, char* mntfrom)
-+ {
-+ struct nfs_args nfs_args;
-+ #ifdef __FreeBSD__
-+ #ifdef _NEW_VFSCONF
-+ struct vfsconf vfc;
-+ int error;
-+ #else
-+ struct vfsconf* vfc;
-+ #endif
-+ #endif
-+
-+ bzero(&nfs_args, sizeof(nfs_args));
-+ #ifdef BSD4_4_LITE2
-+ nfs_args.version = NFS_ARGSVERSION;
-+ #endif
-+ nfs_args.wsize = 8192;
-+ nfs_args.rsize = 8192;
-+ nfs_args.retrans = 0;
-+ nfs_args.timeo = 100; /* 10s timeout */
-+ nfs_args.addr = (struct sockaddr*)socket;
-+ nfs_args.addrlen = sizeof(*socket);
-+ nfs_args.sotype = SOCK_DGRAM;
-+ nfs_args.flags = NFSMNT_SOFT |
-+ NFSMNT_RETRANS | NFSMNT_TIMEO |
-+ NFSMNT_WSIZE | NFSMNT_RSIZE;
-+ nfs_args.fh = (char *)root_fh;
-+ nfs_args.fhsize = NFSX_V2FH;
-+ nfs_args.hostname = mntfrom;
-+ #ifdef BSD4_4_LITE2
-+ #define NFSNAME "nfs"
-+ #else
-+ #define NFSNAME MOUNT_NFS
-+ #endif
-+ #ifdef __FreeBSD__
-+ #ifdef _NEW_VFSCONF
-+ #define GETVFSBYNAME error = getvfsbyname("nfs", &vfc)
-+ #define VFCERROR error
-+ #define VFCNFSNAME vfc.vfc_name
-+ #else
-+ #define GETVFSBYNAME vfc = getvfsbyname("nfs")
-+ #define VFCERROR !vfc
-+ #define VFCNFSNAME vfc->vfc_index
-+ #endif
-+ GETVFSBYNAME;
-+ if (VFCERROR && vfsisloadable("nfs")) {
-+ if(vfsload("nfs"))
-+ return -1;
-+ endvfsent(); /* clear cache */
-+ GETVFSBYNAME;
-+ }
-+ if (VFCERROR)
-+ return -1;
-+ return mount(VFCNFSNAME, dir, 0, &nfs_args);
-+ #else
-+ return mount(NFSNAME, dir, 0, &nfs_args);
-+ #endif
-+ }
-+
-+ int syscall_unmount(char* dir)
-+ {
-+ struct statfs* mntbuf;
-+ int count, i;
-+
-+ if ((count = getmntinfo(&mntbuf, MNT_NOWAIT)) < 0)
-+ return -1;
-+ for (i=0; i<count; i++) {
-+ if (strcmp(mntbuf[i].f_mntonname, dir) == 0) {
-+ return unmount(dir,0);
-+ }
-+ }
-+ errno = ENOENT;
-+ return -1;
-+ }
-+
- #endif
- /* ------------------------------------------------------------------------- */
- #ifdef linux
- # include <linux/nfs_mount.h>
- int syscall_mount(char *dir, void *root_fh, int sock_fd,
-! struct sockaddr_in *sockaddr, char* mntfrom)
- {
- struct nfs_mount_data nfs_args;
- int ksock, kport;
-***************
-*** 92,97 ****
---- 181,190 ----
- exit(1);
- }
- return mount("rumba:/", dir, "nfs", 0xc0ed0000, &nfs_args);
-+ }
-+ int syscall_unount(char* dir)
-+ {
-+ umount(dir);
- }
- #endif
- /* ------------------------------------------------------------------------- */
+--- nfs/syscalls.c.orig Mon Mar 23 00:00:17 1998
++++ nfs/syscalls.c Sun Apr 26 15:29:37 1998
+@@ -17,6 +17,7 @@
+ #endif
+ #include <netdb.h>
+ #include <arpa/inet.h>
++#include <nfs/nfsmount.h>
+ #include "my_defines.h"
+
+ /* --------------------------- general constants --------------------------- */
diff --git a/net/rumba/patches/patch-ac b/net/rumba/patches/patch-ac
deleted file mode 100644
index 8f5fe534eee..00000000000
--- a/net/rumba/patches/patch-ac
+++ /dev/null
@@ -1,177 +0,0 @@
-*** ../rumba.0.4.s/./nfs/mount.c Thu Jan 16 20:31:24 1997
---- ./nfs/mount.c Tue Jun 17 00:14:51 1997
-***************
-*** 14,20 ****
---- 14,22 ----
- #include "nfs_prot.h"
- #include <netdb.h>
- #include <arpa/inet.h>
-+ #ifdef DEAL_WITH_MTAB
- #include <mntent.h>
-+ #endif
- #include "my_defines.h"
-
- #define DPRINTF(arg) if(debug_mode & DEBUG_NFS) dprintf arg
-***************
-*** 24,30 ****
---- 26,34 ----
- static int do_exit = 0;
- static int do_nfsumount = 0;
-
-+ #ifdef DEAL_WITH_MTAB
- #define MTAB_TMP (MOUNTED ".tmp")
-+ #endif
-
- /* ------------------------------------------------------------------------- */
-
-***************
-*** 37,47 ****
-
- static void nfs_unmount(void)
- {
- FILE *fpout, *fpin;
- struct mntent *ent;
-
- dprintf("Going to unmount NFS...\n");
-! while(unmount(mntdir)){
- if(errno != ENOENT)
- my_perror(mntdir);
- if(errno != EBUSY){
---- 41,53 ----
-
- static void nfs_unmount(void)
- {
-+ #ifdef DEAL_WITH_MTAB
- FILE *fpout, *fpin;
- struct mntent *ent;
-+ #endif
-
- dprintf("Going to unmount NFS...\n");
-! while(syscall_unmount(mntdir)){
- if(errno != ENOENT)
- my_perror(mntdir);
- if(errno != EBUSY){
-***************
-*** 49,54 ****
---- 55,61 ----
- }
- sleep(1);
- }
-+ #ifdef DEAL_WITH_MTAB
- /* update mtab */
- if((fpout = setmntent(MTAB_TMP, "w")) == NULL){
- my_perror(MTAB_TMP);
-***************
-*** 68,73 ****
---- 75,81 ----
- unlink(MTAB_TMP);
- }
- }
-+ #endif
- dprintf("NFS unmounted.\n");
- }
-
-***************
-*** 130,136 ****
-
- void mount_and_dispatch(char *dir, void (*proc)(), void *root_fh, int bg)
- {
-! int sock, port, child_pid, parent_pid, other_pid;
- struct sockaddr_in sain;
- SVCXPRT *nfsxprt;
- int bufsiz = 0xc000; /* room for a few biods */
---- 138,144 ----
-
- void mount_and_dispatch(char *dir, void (*proc)(), void *root_fh, int bg)
- {
-! int sock, child_pid, parent_pid, other_pid;
- struct sockaddr_in sain;
- SVCXPRT *nfsxprt;
- int bufsiz = 0xc000; /* room for a few biods */
-***************
-*** 162,180 ****
- if(setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char *)&bufsiz,sizeof(bufsiz)))
- my_perror("setsockopt");
-
-- /* Bind it to a reserved port */
- sain.sin_family = AF_INET;
-! sain.sin_addr.s_addr = inet_addr("127.0.0.1");
-! for(port = IPPORT_RESERVED-1; port > IPPORT_RESERVED/2; port--){
-! DPRINTF(("trying to use port %d\n", port));
-! sain.sin_port = htons(port);
-! if(bind(sock, (struct sockaddr *) &sain, sizeof(sain)) >= 0)
-! break;
- }
-! dprintf("Using port %d for NFS.\n", port);
-! if(port <= IPPORT_RESERVED/2){
-! my_perror("bind to reserved port"); exit(1);
-! }
- if((nfsxprt = svcudp_create(sock)) == 0){
- my_perror("svcudp_create"); exit(1);
- }
---- 170,186 ----
- if(setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char *)&bufsiz,sizeof(bufsiz)))
- my_perror("setsockopt");
-
- sain.sin_family = AF_INET;
-! sain.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
-! if (bind(sock, (struct sockaddr*) &sain, sizeof(sain)) >= 0) {
-! int namelen=sizeof(sain);
-! if (getsockname(sock, (struct sockaddr*) &sain, &namelen) <0) {
-! my_perror("getsockname"); exit(1);
-! }
-! } else {
-! my_perror("bind"); exit(1);
- }
-! dprintf("Using port %d for NFS.\n", ntohs(sain.sin_port));
- if((nfsxprt = svcudp_create(sock)) == 0){
- my_perror("svcudp_create"); exit(1);
- }
-***************
-*** 198,214 ****
- if((child_pid == 0 && bg) || (child_pid != 0 && !bg)){
- dispatch_loop();
- }else{
- DPRINTF(("Going to mount...\n"));
- other_pid = child_pid == 0 ? parent_pid : child_pid;
-! if(syscall_mount(dir, root_fh, sock, &sain) < 0){
- eprintf("nfs mount %s: [%d] %s\n", dir, errno, strerror(errno));
- kill(other_pid, SIGKILL);
- }else{
- FILE *fp;
- struct mntent mnt;
-- char fsname[256];
-
-- sprintf(fsname, "rumba-%d", other_pid);
- mnt.mnt_fsname = fsname;
- mnt.mnt_dir = mntdir;
- mnt.mnt_type = "nfs";
---- 204,221 ----
- if((child_pid == 0 && bg) || (child_pid != 0 && !bg)){
- dispatch_loop();
- }else{
-+ char fsname[256];
- DPRINTF(("Going to mount...\n"));
- other_pid = child_pid == 0 ? parent_pid : child_pid;
-! sprintf(fsname, "rumba-%d", other_pid);
-! if(syscall_mount(dir, root_fh, sock, &sain, fsname) < 0){
- eprintf("nfs mount %s: [%d] %s\n", dir, errno, strerror(errno));
- kill(other_pid, SIGKILL);
- }else{
-+ #ifdef DEAL_WITH_MTAB
- FILE *fp;
- struct mntent mnt;
-
- mnt.mnt_fsname = fsname;
- mnt.mnt_dir = mntdir;
- mnt.mnt_type = "nfs";
-***************
-*** 219,224 ****
---- 226,232 ----
- else
- my_perror(MOUNTED);
- endmntent(fp);
-+ #endif
- }
- exit(0);
- }
diff --git a/net/rumba/patches/patch-ad b/net/rumba/patches/patch-ad
deleted file mode 100644
index b93d35c1c24..00000000000
--- a/net/rumba/patches/patch-ad
+++ /dev/null
@@ -1,46 +0,0 @@
---- Makefile.orig Mon Feb 10 13:30:00 1997
-+++ Makefile Tue Jul 15 15:54:21 1997
-@@ -17,16 +17,21 @@
- ##############################################################################
-
- # For NEXTSTEP/OPENSTEP:
--CFLAGS = -Wall -O2 -traditional-cpp -g
--INCLUDES = -I$(MYINCL) -I$(INCL)
-+#CFLAGS = -Wall -O2 -traditional-cpp -g
-+#INCLUDES = -I$(MYINCL) -I$(INCL)
- # put your architecture here:
--ARCH = -arch i386
--THE_CC = cc
-+#ARCH = -arch i386
-+#THE_CC = cc
-
- # For Linux:
- #CFLAGS = -Wall -O2 -g
- #INCLUDES = -I$(INCL)
-
-+# For FreeBSD
-+CFLAGS = -Wall -O2
-+INCLUDES = -I$(MYINCL) -I$(INCL)
-+THE_CC = cc
-+
- ##############################################################################
- ######################## End of system specific part #########################
- ##############################################################################
-@@ -38,7 +43,7 @@
- OFILES = proc.o sock.o rumba.o psinode.o kernel.o smb_abstraction.o fo_nfs.o
-
- .c.o:
-- $(CC) $(CFLAGS) $(ARCH) -c -o $*.o $<
-+ $(CC) $(CFLAGS) -c -o $*.o $<
-
- all: $(NAME)
-
-@@ -46,7 +51,7 @@
- $(MAKE) -C nfs
-
- $(NAME): $(OFILES) nfs_dir
-- $(CC) $(ARCH) -o $(NAME) $(OFILES) nfs/nfs.o
-+ $(CC) -o $(NAME) $(OFILES) nfs/nfs.o
-
- clean:
- rm -f $(OFILES)
diff --git a/net/rumba/patches/patch-ae b/net/rumba/patches/patch-ae
deleted file mode 100644
index 38e7e931a79..00000000000
--- a/net/rumba/patches/patch-ae
+++ /dev/null
@@ -1,66 +0,0 @@
-*** ../rumba.0.4.s/./syshdr.h Fri Jan 3 19:24:59 1997
---- ./syshdr.h Sun Jun 15 14:19:57 1997
-***************
-*** 19,26 ****
---- 19,43 ----
- #include <sys/errno.h>
- #include <errno.h>
- #include <sys/param.h>
-+
-+ #ifdef __FreeBSD__
-+ #include <osreldate.h>
-+ #if __FreeBSD_version >= 300000
-+ #define BSD4_4_LITE2
-+ #endif
-+ #endif
-+ #if defined(BSD4_4) && !defined(BSD4_4_LITE2)
-+ #define BSD4_4_LITE
-+ #endif
-+
- #include <sys/stat.h>
- #include <signal.h>
-+ #ifdef BSD4_4
-+ #define NFS
-+ #endif
-+ #ifdef BSD4_4_LITE2
-+ #define _NEW_VFSCONF
-+ #endif
- #include <sys/mount.h>
- #include <stdarg.h>
- /*
-***************
-*** 30,39 ****
- /* ------------------------------------------------------------------------- */
- #ifdef NeXT
- # include <libc.h>
- #endif
- /* ------------------------------------------------------------------------- */
- #ifdef linux
-! # define unmount umount
- #endif
- /* ------------------------------------------------------------------------- */
- /*
---- 47,57 ----
- /* ------------------------------------------------------------------------- */
- #ifdef NeXT
- # include <libc.h>
-+ # define DEAL_WITH_MTAB
- #endif
- /* ------------------------------------------------------------------------- */
- #ifdef linux
-! # define DEAL_WITH_MTAB
- #endif
- /* ------------------------------------------------------------------------- */
- /*
-***************
-*** 41,44 ****
- */
- struct sockaddr_in; /* possibly not defined in any header... */
- extern int syscall_mount(char *dir, void *root_fh, int sock_fd,
-! struct sockaddr_in *socket);
---- 59,63 ----
- */
- struct sockaddr_in; /* possibly not defined in any header... */
- extern int syscall_mount(char *dir, void *root_fh, int sock_fd,
-! struct sockaddr_in *socket, char* fsname);
-! extern int syscall_unmount(char* dir);
diff --git a/net/rumba/patches/patch-af b/net/rumba/patches/patch-af
deleted file mode 100644
index cd0bf82e49d..00000000000
--- a/net/rumba/patches/patch-af
+++ /dev/null
@@ -1,71 +0,0 @@
-*** ../rumba.0.4.s/./rumba.c Mon Feb 10 15:08:50 1997
---- ./rumba.c Sun Jun 15 14:17:02 1997
-***************
-*** 216,222 ****
- struct passwd *pwd;
- struct group *grp;
- char mountpoint_abs[MAXPATHLEN + 1];
-- char hostname[MAXHOSTNAMELEN + 1];
- struct hostent *h;
- int got_password, upcase_password;
- int port = -1, max_xmit = -1;
---- 216,221 ----
-***************
-*** 231,237 ****
- got_password = 0;
- upcase_password = 1;
- run_as_daemon = 1;
-- memset(hostname, 0, sizeof(hostname));
- if(argc < 2 || (argc == 2 && strcmp(argv[1], "-h") == 0)){
- help();
- exit(0);
---- 230,235 ----
-***************
-*** 239,248 ****
- if(argc == 2 && strcmp(argv[1], "-v") == 0){
- print_version();
- }
-! gethostname(hostname, MAXHOSTNAMELEN);
- if (geteuid() != 0) {
- eprintf("%s must be installed suid root\n", progname);
- }
- mount_point = argv[2];
- if(extract_service(argv[1], &server, &share, &root, &user_dummy) != 0) {
- usage();
---- 237,247 ----
- if(argc == 2 && strcmp(argv[1], "-v") == 0){
- print_version();
- }
-! #ifndef BSD4_4_LITE2
- if (geteuid() != 0) {
- eprintf("%s must be installed suid root\n", progname);
- }
-+ #endif
- mount_point = argv[2];
- if(extract_service(argv[1], &server, &share, &root, &user_dummy) != 0) {
- usage();
-***************
-*** 393,398 ****
---- 392,403 ----
- password, max_xmit, port) != 0){
- exit(1);
- }
-+ #ifdef BSD4_4
-+ if (realpath(mount_point, mountpoint_abs) == NULL) {
-+ perror(mount_point);
-+ exit (1);
-+ }
-+ #else
- if(*mount_point == '/'){ /* absolute path given? */
- strcpy(mountpoint_abs, mount_point);
- }else{
-***************
-*** 403,408 ****
---- 408,414 ----
- }
- strcat(mountpoint_abs, mount_point);
- }
-+ #endif
- mount_and_dispatch(mountpoint_abs, nfs_dispatch, root_fh, run_as_daemon);
- return 0;
- }
diff --git a/net/rumba/patches/patch-ag b/net/rumba/patches/patch-ag
deleted file mode 100644
index 18d76e47bd0..00000000000
--- a/net/rumba/patches/patch-ag
+++ /dev/null
@@ -1,99 +0,0 @@
-*** smb_abstraction.c.orig Wed Feb 5 16:50:50 1997
---- smb_abstraction.c Sat Jul 5 20:50:15 1997
-***************
-*** 118,123 ****
---- 118,128 ----
- memset(&data, 0, sizeof(struct smb_mount_data));
- memset(hostname, 0, sizeof(hostname));
- gethostname(hostname, MAXHOSTNAMELEN);
-+ {
-+ char* s=strchr(hostname, '.');
-+ if (s)
-+ *s=0;
-+ }
-
- if((h = gethostbyname(p->server_ipname)) == NULL){
- eprintf("%s: unknown host\n", p->server_ipname);
-***************
-*** 133,147 ****
---- 138,159 ----
- }
- data.version = SMB_MOUNT_VERSION;
- strncpy(data.service, p->service, sizeof(data.service));
-+ data.service[sizeof(data.service)-1] = 0;
-+ str_upper(data.service);
- strncpy(data.root_path, p->root_path, sizeof(data.root_path));
-+ data.root_path[sizeof(data.root_path)-1] = 0;
- strncpy(data.username, p->username, sizeof(data.username));
-+ data.username[sizeof(data.username)-1] = 0;
- strncpy(data.password, p->password, sizeof(data.password));
-+ data.password[sizeof(data.password)-1] = 0;
- if(p->max_xmit > 0)
- data.max_xmit = p->max_xmit;
- else
- data.max_xmit = 4070;
- strncpy(data.server_name, p->server_name, sizeof(data.server_name));
-+ data.server_name[sizeof(data.server_name)-1]=0;
- strncpy(data.client_name, p->client_name, sizeof(data.client_name));
-+ data.client_name[sizeof(data.client_name)-1]=0;
-
- if(data.server_name[0] == 0){
- if(strlen(p->server_ipname) > 16){
-***************
-*** 150,157 ****
- goto error_occured;
- }
- strcpy(data.server_name, p->server_ipname);
-- str_upper(data.server_name);
- }
- if(data.client_name[0] == 0) {
- if(strlen(hostname) > 16) {
- eprintf("my hostname name too long for netbios: %s\n", hostname);
---- 162,169 ----
- goto error_occured;
- }
- strcpy(data.server_name, p->server_ipname);
- }
-+ str_upper(data.server_name);
- if(data.client_name[0] == 0) {
- if(strlen(hostname) > 16) {
- eprintf("my hostname name too long for netbios: %s\n", hostname);
-***************
-*** 446,451 ****
---- 458,464 ----
-
- int smba_setattr(smba_file_t *f, smba_stat_t *data)
- {
-+ int error = 0;
- if(data->atime != -1)
- f->dirent.atime = data->atime;
- if(data->ctime != -1)
-***************
-*** 456,462 ****
- if(data->is_wp)
- f->dirent.attr |= aRONLY;
- f->attr_dirty = 1;
-! return write_attr(f);
- }
-
- /* ------------------------------------------------------------------------- */
---- 469,487 ----
- if(data->is_wp)
- f->dirent.attr |= aRONLY;
- f->attr_dirty = 1;
-! error = write_attr(f);
-! if (error)
-! return error;
-! if (data->size == -1)
-! return error;
-! if (data->size == f->dirent.size)
-! return error;
-! if ( (error = make_open(f, 1)) < 0)
-! return error;
-! if ( (error = smb_proc_trunc(&f->server->server, f->dirent.fileid, data->size)) < 0)
-! return error;
-! f->dirent.size = data->size;
-! return error;
- }
-
- /* ------------------------------------------------------------------------- */
diff --git a/net/rumba/patches/patch-ah b/net/rumba/patches/patch-ah
deleted file mode 100644
index 7e18f16ff18..00000000000
--- a/net/rumba/patches/patch-ah
+++ /dev/null
@@ -1,34 +0,0 @@
-*** proc.c.orig Sat Jul 5 20:26:58 1997
---- proc.c Sat Jul 5 20:48:56 1997
-***************
-*** 920,926 ****
-
- smb_lock_server(server);
-
-- retry:
- p = smb_setup_header(server, SMBwrite, 5, 3);
- WSET(buf, smb_vwv0, fid);
- WSET(buf, smb_vwv1, 0);
---- 920,925 ----
-***************
-*** 928,938 ****
- WSET(buf, smb_vwv4, 0);
- smb_encode_ascii(p, "", 0);
-
-! if ((result = smb_request_ok(server, SMBwrite, 1, 0)) < 0) {
-! if (smb_retry(server)) {
-! goto retry;
-! }
-! }
- smb_unlock_server(server);
- return result;
- }
---- 927,934 ----
- WSET(buf, smb_vwv4, 0);
- smb_encode_ascii(p, "", 0);
-
-! result = smb_request_ok(server, SMBwrite, 1, 0);
-!
- smb_unlock_server(server);
- return result;
- }
diff --git a/net/rumba/patches/patch-ai b/net/rumba/patches/patch-ai
deleted file mode 100644
index 3db0da5ee69..00000000000
--- a/net/rumba/patches/patch-ai
+++ /dev/null
@@ -1,12 +0,0 @@
-*** fo_nfs.c.orig Wed Feb 5 16:50:46 1997
---- fo_nfs.c Mon Jul 7 17:42:22 1997
-***************
-*** 142,147 ****
---- 142,148 ----
- smbattr->atime = attr->atime;
- smbattr->mtime = attr->mtime;
- smbattr->ctime = attr->ctime;
-+ smbattr->size = attr->size;
- }
-
- /* ------------------------------------------------------------------------- */
diff --git a/net/rumba/patches/patch-aj b/net/rumba/patches/patch-aj
deleted file mode 100644
index f23a37ee07b..00000000000
--- a/net/rumba/patches/patch-aj
+++ /dev/null
@@ -1,29 +0,0 @@
---- nfs/Makefile.orig Sat Dec 14 21:58:42 1996
-+++ nfs/Makefile Tue Jul 15 15:47:33 1997
-@@ -15,8 +15,8 @@
-
- RPCGEN = rpcgen
-
--CFLAGS = -g -I. -I..
--LDFLAGS = -g
-+CFLAGS += -I. -I..
-+LDFLAGS +=
- WARNFLAGS = -Wall
- RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
- TRANSPORTFLAGS = -s udp -s tcp
-@@ -26,13 +26,13 @@
-
- all: nfs.o
-
--COMPILE = $(CC) $(ARCH) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $(WARNFLAGS)
-+COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $(WARNFLAGS)
-
- .c.o:
- $(COMPILE) $<
-
- nfs.o: $(OFILES)
-- $(LD) $(ARCH) -r -o $@ $(OFILES)
-+ $(LD) -r -o $@ $(OFILES)
-
- nfs_prot.h: nfs_prot.x
- rm -f $@
diff --git a/net/rumba/pkg/PLIST b/net/rumba/pkg/PLIST
index 7ef1c82eaaf..678c9a34b88 100644
--- a/net/rumba/pkg/PLIST
+++ b/net/rumba/pkg/PLIST
@@ -1,3 +1,4 @@
+@comment $NetBSD: PLIST,v 1.2 1998/04/26 15:26:01 tron Exp $
sbin/rumba
sbin/unrumba
man/man8/smbmount.8.gz