summaryrefslogtreecommitdiff
path: root/net/pcnfsd
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1994-10-07 00:23:56 +0000
committerPaul Traina <pst@FreeBSD.org>1994-10-07 00:23:56 +0000
commitc6b6b307a969f1aa5496e729c99604ee0e7e6202 (patch)
treeaec1cfc86fdfa029734cd91d9ed6a3da1644f5db /net/pcnfsd
parentlibmytinfo removed (diff)
PC NFS authentication/spooling daemon
Notes
Notes: svn path=/head/; revision=198
Diffstat (limited to 'net/pcnfsd')
-rw-r--r--net/pcnfsd/Makefile11
-rw-r--r--net/pcnfsd/files/patch-aa100
-rw-r--r--net/pcnfsd/files/patch-ab25
-rw-r--r--net/pcnfsd/files/patch-ac103
-rw-r--r--net/pcnfsd/scripts/configure9
5 files changed, 248 insertions, 0 deletions
diff --git a/net/pcnfsd/Makefile b/net/pcnfsd/Makefile
new file mode 100644
index 000000000000..43436066972f
--- /dev/null
+++ b/net/pcnfsd/Makefile
@@ -0,0 +1,11 @@
+# New ports collection makefile for: pcnfsd
+# Version required: 93.02.16
+# Date created: Oct 6, 1994
+# Whom: pst
+#
+MASTER_SITES= ftp://bcm.tmc.edu/pcnfs/
+DISTNAME= pcnfsd.93.02.16
+EXTRACT_SUFX= .tar.Z
+NO_WRKSUBDIR=
+
+.include <bsd.port.mk>
diff --git a/net/pcnfsd/files/patch-aa b/net/pcnfsd/files/patch-aa
new file mode 100644
index 000000000000..c31e463e3480
--- /dev/null
+++ b/net/pcnfsd/files/patch-aa
@@ -0,0 +1,100 @@
+*** common.h Sat Feb 27 08:48:17 1993
+--- common.h Thu Oct 6 14:35:00 1994
+***************
+*** 60,65 ****
+--- 60,69 ----
+ **=====================================================================
+ */
+
++ #ifdef HAVE_PARAM_H
++ #include <sys/param.h>
++ #endif
++
+ /*
+ **---------------------------------------------------------------------
+ ** Define the following symbol to enable the use of a
+***************
+*** 268,281 ****
+ #define SUNOS_403C
+ #endif
+
+! #ifdef OSVER_BSD386
+ #define BSD_STYLE_PRINT
+ #define BSD_STYLE_PR_LIST
+ #define BSD_STYLE_QUEUE
+ #define BSD_STYLE_CANCEL
+ #define BSD_STYLE_STATUS
+ #define BSD_STYLE_MONITOR
+! #define BSD386
+ #endif
+
+ #ifdef OSVER_ULTRIX
+--- 272,285 ----
+ #define SUNOS_403C
+ #endif
+
+! #if (defined(BSD) && (BSD >= 199103))
+ #define BSD_STYLE_PRINT
+ #define BSD_STYLE_PR_LIST
+ #define BSD_STYLE_QUEUE
+ #define BSD_STYLE_CANCEL
+ #define BSD_STYLE_STATUS
+ #define BSD_STYLE_MONITOR
+! #define GETUSERSHELL
+ #endif
+
+ #ifdef OSVER_ULTRIX
+*** pcnfsd_misc.c Sat Feb 27 08:48:14 1993
+--- pcnfsd_misc.c Thu Oct 6 14:32:17 1994
+***************
+*** 480,486 ****
+ #else SVR4
+
+ #include <utmp.h>
+! #define WTMP_PATH "/usr/adm/wtmp"
+
+ void
+ wlogin(name)
+--- 480,488 ----
+ #else SVR4
+
+ #include <utmp.h>
+! #ifndef _PATH_WTMP
+! #define _PATH_WTMP "/usr/adm/wtmp"
+! #endif
+
+ void
+ wlogin(name)
+***************
+*** 499,505 ****
+ (void) strncpy(ut.ut_name,name,sizeof ut.ut_name);
+ ut.ut_time = time( (time_t *) 0);
+ (void) strncpy(ut.ut_host, getcallername(), sizeof ut.ut_host);
+! if ((fd = open(WTMP_PATH, O_WRONLY|O_APPEND, 0)) >= 0) {
+ (void)write(fd, (char *)&ut, sizeof(ut));
+ (void)close(fd);
+ }
+--- 501,507 ----
+ (void) strncpy(ut.ut_name,name,sizeof ut.ut_name);
+ ut.ut_time = time( (time_t *) 0);
+ (void) strncpy(ut.ut_host, getcallername(), sizeof ut.ut_host);
+! if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
+ (void)write(fd, (char *)&ut, sizeof(ut));
+ (void)close(fd);
+ }
+*** pcnfsd_print.c Sat Feb 27 08:48:13 1993
+--- pcnfsd_print.c Thu Oct 6 14:37:50 1994
+***************
+*** 975,981 ****
+--- 975,985 ----
+ if(pn == NULL || suspicious(pn) || !valid_pr(pn))
+ return(PI_RES_NO_SUCH_PRINTER);
+
++ #if (defined(BSD) && (BSD >= 199103))
++ sprintf(buff, "/usr/bin/lpq -P%s", pn);
++ #else
+ sprintf(buff, "/usr/ucb/lpq -P%s", pn);
++ #endif
+
+ p = su_popen(user, buff, MAXTIME_FOR_QUEUE);
+ if(p == NULL) {
diff --git a/net/pcnfsd/files/patch-ab b/net/pcnfsd/files/patch-ab
new file mode 100644
index 000000000000..b39f339056d6
--- /dev/null
+++ b/net/pcnfsd/files/patch-ab
@@ -0,0 +1,25 @@
+*** /dev/null Thu Oct 6 16:22:04 1994
+--- Makefile.44bsd Thu Oct 6 17:18:19 1994
+***************
+*** 0 ****
+--- 1,20 ----
++ #
++ # @(#)Makefile
++ # Makefile for rpc.pcnfsd for BSD/386 or similar
++ # $Id$
++ #
++
++ PROG= rpc.pcnfsd
++ SRCS= pcnfsd_svc.c pcnfsd_xdr.c pcnfsd_v1.c pcnfsd_v2.c pcnfsd_misc.c \
++ pcnfsd_cache.c pcnfsd_print.c
++ MAN8= pcnfsd.8
++
++ CFLAGS+=-DHAVE_PARAM_H
++
++ DPADD+= ${LIBCRYPT}
++ LDADD+= -lcrypt
++
++ beforeinstall:
++ -mkdir ${PRDIR}
++
++ .include <bsd.prog.mk>
diff --git a/net/pcnfsd/files/patch-ac b/net/pcnfsd/files/patch-ac
new file mode 100644
index 000000000000..061fbda21c5d
--- /dev/null
+++ b/net/pcnfsd/files/patch-ac
@@ -0,0 +1,103 @@
+*** pcnfsd.8c Sat Feb 27 08:48:29 1993
+--- pcnfsd.8c Thu Oct 6 16:04:23 1994
+***************
+*** 1,5 ****
+! .\" @(#) @(#)pcnfsd.8c 1.3 11/3/92;
+! .TH PCNFSD 8C "25 April 1991"
+ .SH NAME
+ pcnfsd \- (PC)NFS authentication and print request server
+ .SH SYNOPSIS
+--- 1,5 ----
+! .\" @(#) @(#)pcnfsd.8 1.3 11/3/92;
+! .TH PCNFSD 8 "25 April 1991"
+ .SH NAME
+ pcnfsd \- (PC)NFS authentication and print request server
+ .SH SYNOPSIS
+***************
+*** 48,58 ****
+ .B PCNFSD2_AUTH
+ request\**, it will "log in" the user by validating the username and
+ password and returning the corresponding uid, gids, home directory,
+! and umask. If
+! .B pcnfsd
+! was built with the
+! .B WTMP
+! compile-time option, it will also append a record to the
+ .BR wtmp (5)
+ data base. If you do not wish to record PC "logins" in this way,
+ you should add a line of the form
+--- 48,54 ----
+ .B PCNFSD2_AUTH
+ request\**, it will "log in" the user by validating the username and
+ password and returning the corresponding uid, gids, home directory,
+! and umask, it will also append a record to the
+ .BR wtmp (5)
+ data base. If you do not wish to record PC "logins" in this way,
+ you should add a line of the form
+***************
+*** 105,111 ****
+ .B pcnfsd
+ creates a subdirectory for each of its clients: the parent
+ directory is normally
+! .B /usr/spool/pcnfs
+ and the subdirectory is the hostname of the client system.
+ If you wish to use a different parent directory, you should add a
+ line of the form
+--- 101,107 ----
+ .B pcnfsd
+ creates a subdirectory for each of its clients: the parent
+ directory is normally
+! .B /var/spool/pcnfs
+ and the subdirectory is the hostname of the client system.
+ If you wish to use a different parent directory, you should add a
+ line of the form
+***************
+*** 134,140 ****
+ must be run as root.
+ .LP
+ Every print request from the client includes the name of the printer
+! which is to be used. In SunOS, this name corresponds to a printer
+ definition in the
+ .BR /etc/printcap (5)
+ database. If you wish to define a non-standard way of processing
+--- 130,136 ----
+ must be run as root.
+ .LP
+ Every print request from the client includes the name of the printer
+! which is to be used. This name corresponds to a printer
+ definition in the
+ .BR /etc/printcap (5)
+ database. If you wish to define a non-standard way of processing
+***************
+*** 230,238 ****
+ its list of valid printers. To do this, it checks the modification
+ time of
+ .B /etc/printcap
+! for BSD-style systems or
+! .B /etc/lp/printers
+! for SVR4-based systems. However, it does not monitor the file
+ .B /etc/pcnfsd.conf
+ for updates; if you change this file, it is still necessary to
+ kill and restart
+--- 226,232 ----
+ its list of valid printers. To do this, it checks the modification
+ time of
+ .B /etc/printcap
+! However, it does not monitor the file
+ .B /etc/pcnfsd.conf
+ for updates; if you change this file, it is still necessary to
+ kill and restart
+***************
+*** 244,249 ****
+ .B /etc/pcnfsd.conf
+ .PD
+ .SH "SEE ALSO"
+! .BR lp (1)
+! .BR lpstat (1)
+ .BR lpq (1)
+--- 238,242 ----
+ .B /etc/pcnfsd.conf
+ .PD
+ .SH "SEE ALSO"
+! .BR lpr (1)
+ .BR lpq (1)
diff --git a/net/pcnfsd/scripts/configure b/net/pcnfsd/scripts/configure
new file mode 100644
index 000000000000..4bcb5f329561
--- /dev/null
+++ b/net/pcnfsd/scripts/configure
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# Configure pcnfsd for FreeBSD use
+#
+cd $WRKSRC
+rm -f rpc.pcnfsd
+mv -f Makefile Makefile.DIST
+mv -f Makefile.44bsd Makefile
+mv -f pcnfsd.8c pcnfsd.8