aboutsummaryrefslogtreecommitdiff
path: root/net/gnu-finger
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1996-07-10 22:33:14 +0000
committerSatoshi Asami <asami@FreeBSD.org>1996-07-10 22:33:14 +0000
commitc86362a6acaf05373c031a68e00e41450401ea22 (patch)
treefbf3876d07a1ceaab20b97c7f86fd3e42f773b02 /net/gnu-finger
parent26bcf55f4bcc599d833fc009315b4ffcdb7169a3 (diff)
downloadports-c86362a6acaf05373c031a68e00e41450401ea22.tar.gz
ports-c86362a6acaf05373c031a68e00e41450401ea22.zip
GNU finger.
Submitted by: MIHIRA Yoshiro <sanpei@yy.cs.keio.ac.jp>
Notes
Notes: svn path=/head/; revision=3367
Diffstat (limited to 'net/gnu-finger')
-rw-r--r--net/gnu-finger/Makefile28
-rw-r--r--net/gnu-finger/distinfo1
-rw-r--r--net/gnu-finger/files/clients.sample3
-rw-r--r--net/gnu-finger/files/patch-aa26
-rw-r--r--net/gnu-finger/files/patch-ab14
-rw-r--r--net/gnu-finger/files/patch-ac44
-rw-r--r--net/gnu-finger/files/patch-ad13
-rw-r--r--net/gnu-finger/files/patch-ae28
-rw-r--r--net/gnu-finger/files/patch-af11
-rw-r--r--net/gnu-finger/pkg-comment1
-rw-r--r--net/gnu-finger/pkg-descr31
-rw-r--r--net/gnu-finger/pkg-plist11
12 files changed, 211 insertions, 0 deletions
diff --git a/net/gnu-finger/Makefile b/net/gnu-finger/Makefile
new file mode 100644
index 000000000000..522b64a7d63c
--- /dev/null
+++ b/net/gnu-finger/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: GNU finger
+# Version required: 1.37
+# Date created: 20 June 1996
+# Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
+#
+# $Id$
+#
+
+DISTNAME= finger-1.37
+PKGNAME= gnu-finger-1.37
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.cc.keio.ac.jp/pub/mirror/GNU/
+
+MAINTAINE= sanpei@yy.cs.keio.ac.jp
+
+HAS_CONFIGURE= yes
+INSTALL_TARGET= server
+
+post-install:
+ mkdir -p ${PREFIX}/etc/fingerdir
+ mkdir -p ${PREFIX}/etc/rc.d
+ @cp ${WRKSRC}/support/ttylocs ${PREFIX}/etc/fingerdir/ttylocs.sample
+ @cp ${FILESDIR}/clients.sample ${PREFIX}/etc/fingerdir/clients.sample
+ @install -c -m 744 -o root ${FILESDIR}/start.fingerd.sh.sample ${PREFIX}/etc/rc.d/start.fingerd.sh.sample
+ @echo "GNU.finger.server.hotname" > ${PREFIX}/etc/fingerdir/serverhost.sample
+ @echo "mail.spool.server.hostname" > ${PREFIX}/etc/fingerdir/mailhost.sample
+
+.include <bsd.port.mk>
diff --git a/net/gnu-finger/distinfo b/net/gnu-finger/distinfo
new file mode 100644
index 000000000000..2ce2a6eae72a
--- /dev/null
+++ b/net/gnu-finger/distinfo
@@ -0,0 +1 @@
+MD5 (finger-1.37.tar.gz) = fd2804df1ee71bac580ce5539d3469d9
diff --git a/net/gnu-finger/files/clients.sample b/net/gnu-finger/files/clients.sample
new file mode 100644
index 000000000000..0d7b3a1122b6
--- /dev/null
+++ b/net/gnu-finger/files/clients.sample
@@ -0,0 +1,3 @@
+#client.list
+client1.somewhere.ac.jp
+client2.somewhere.ac.jp
diff --git a/net/gnu-finger/files/patch-aa b/net/gnu-finger/files/patch-aa
new file mode 100644
index 000000000000..33f1d887263c
--- /dev/null
+++ b/net/gnu-finger/files/patch-aa
@@ -0,0 +1,26 @@
+--- configure.orig Fri Oct 16 06:49:05 1992
++++ configure Mon Jul 8 19:39:32 1996
+@@ -1041,8 +1041,10 @@
+
+
+ echo checking for /proc file system
+- if test -r /proc ; then DEFS="$DEFS -DHAVE_PROC_FS=1"
+- fi
++# if test -r /proc ; then DEFS="$DEFS -DHAVE_PROC_FS=1"
++# fi
++
++ DEFS="$DEFS -D_ANSI_SOURCE"
+
+
+
+@@ -1071,8 +1073,9 @@
+
+
+
+- echo checking for /usr/mail or /usr/spool/mail
++ echo checking for /usr/mail, /var/mail or /usr/spool/mail
+ if test -d /usr/mail ; then MAILDIR=/usr/mail
++ elif test -d /var/mail ; then MAILDIR=/var/mail
+ else MAILDIR=/usr/spool/mail
+ fi
+
diff --git a/net/gnu-finger/files/patch-ab b/net/gnu-finger/files/patch-ab
new file mode 100644
index 000000000000..6d2ea29ca424
--- /dev/null
+++ b/net/gnu-finger/files/patch-ab
@@ -0,0 +1,14 @@
+--- lib/os.c.org Sat Jul 6 14:18:18 1996
++++ lib/os.c Sat Aug 26 23:38:18 1995
+@@ -70,7 +70,11 @@
+
+ /* Where the utmp file is located. */
+ #ifndef HAVE_GETUTENT
++#ifdef __FreeBSD__
++#define UTMP_FILE "/var/run/utmp"
++#else
+ #define UTMP_FILE "/etc/utmp"
++#endif
+ #endif
+
+ /* A non-null value is the address of the utmp entry which contains the
diff --git a/net/gnu-finger/files/patch-ac b/net/gnu-finger/files/patch-ac
new file mode 100644
index 000000000000..c331127405a6
--- /dev/null
+++ b/net/gnu-finger/files/patch-ac
@@ -0,0 +1,44 @@
+--- src/finger.c.org Sat Jul 6 14:31:03 1996
++++ src/finger.c Sat Jul 6 16:23:39 1996
+@@ -107,7 +107,6 @@
+ char *arg, *port;
+ int optc;
+
+-
+ default_error_handling (argv[0]);
+
+ /* Parse the arguments passed on the command line. */
+@@ -192,6 +191,7 @@
+ long addr;
+ char *finger_server = NULL;
+ int suppress_hostname = 0;
++ int malloc_flag = 0;
+
+
+ username = savestring (arg);
+@@ -204,7 +204,7 @@
+ hostname = NULL;
+
+ if ((!username || !*username)
+- && (finger_server = getservhost ()))
++ && (finger_server = getservhost (stderr)))
+ {
+ hostname = finger_server;
+ suppress_hostname = 1;
+@@ -237,6 +237,7 @@
+ {
+ host = (struct hostent *) xmalloc (sizeof (struct hostent));
+ host->h_name = hostname;
++ malloc_flag = 1;
+ }
+ }
+ else
+@@ -296,6 +297,7 @@
+ if (finger_server)
+ free (finger_server);
+
+- if (host)
++ if (malloc_flag) {
+ free (host);
++ }
+ }
diff --git a/net/gnu-finger/files/patch-ad b/net/gnu-finger/files/patch-ad
new file mode 100644
index 000000000000..ec6c54d444d9
--- /dev/null
+++ b/net/gnu-finger/files/patch-ad
@@ -0,0 +1,13 @@
+--- Makefile.in.orig Thu Oct 22 08:59:40 1992
++++ Makefile.in Mon Jul 8 19:44:26 1996
+@@ -51,8 +51,8 @@
+ false
+
+ server: $(AUXOBJS) $(EXECUTABLES)
+- (cd $(SRC); $(MAKE) $(MFLAGS) $(CC)="$(CC)" server)
+- (cd targets; $(MAKE) $(MFLAGS) $(CC)="$(CC)" server)
++ (cd $(SRC); $(MAKE) $(MFLAGS) CC="$(CC)" server)
++ (cd targets; $(MAKE) $(MFLAGS) CC="$(CC)" server)
+
+ client: $(AUXOBJS) $(EXECUTABLES)
+ (cd $(SRC); $(MAKE) $(MFLAGS) CC="$(CC)" client)
diff --git a/net/gnu-finger/files/patch-ae b/net/gnu-finger/files/patch-ae
new file mode 100644
index 000000000000..2bdd858e570e
--- /dev/null
+++ b/net/gnu-finger/files/patch-ae
@@ -0,0 +1,28 @@
+--- src/Makefile.in.org Sat Jul 6 17:57:18 1996
++++ src/Makefile.in Sat Jul 6 18:04:43 1996
+@@ -85,18 +85,18 @@
+ server: $(EXECUTABLES) .fingerdir .etcdir .bindir
+ -if [ ! -r `cat .etcdir` ]; then mkdir `cat .etcdir`; fi
+ -if [ ! -r `cat .fingerdir` ]; then mkdir `cat .fingerdir`; fi
+- cp finger `cat .bindir`; chmod a+rx `cat .bindir`/finger
+- cp fingerd `cat .etcdir`; chmod a+rx `cat .etcdir`/fingerd
+- cp in.fingerd `cat .etcdir`; chmod a+rx `cat .etcdir`/in.fingerd
+- cp in.cfingerd `cat .etcdir`; chmod a+rx `cat .etcdir`/in.cfingerd
++ install -c -m 755 -s finger `cat .bindir`/finger
++ install -c -m 744 -o root -s fingerd `cat .etcdir`/fingerd
++ install -c -m 744 -o nobody -s in.fingerd `cat .etcdir`/in.fingerd
++ install -c -m 744 -o nobody -s in.cfingerd `cat .etcdir`/in.cfingerd
+ (cd ../lib/site; make install)
+
+ client: $(EXECUTABLES) .etcdir .fingerdir .bindir
+ -if [ ! -r `cat .etcdir` ]; then mkdir `cat .etcdir`; fi
+ -if [ ! -r `cat .fingerdir` ]; then mkdir `cat .fingerdir`; fi
+- cp finger `cat .bindir`; chmod a+rx `cat .bindir`/finger
+- cp in.fingerd `cat .etcdir`; chmod a+rx `cat .etcdir`/in.fingerd
+- cp in.cfingerd `cat .etcdir`; chmod a+rx `cat .etcdir`/in.cfingerd
++ install -c -m 755 -s finger `cat .bindir`/finger
++ install -c -m 744 -o nobody -s in.fingerd `cat .etcdir`/in.fingerd
++ install -c -m 744 -o nobody -s in.cfingerd `cat .etcdir`/in.cfingerd
+ touch `cat .fingerdir`/ttylocs
+
+ clean:
diff --git a/net/gnu-finger/files/patch-af b/net/gnu-finger/files/patch-af
new file mode 100644
index 000000000000..37b86984c21d
--- /dev/null
+++ b/net/gnu-finger/files/patch-af
@@ -0,0 +1,11 @@
+--- config.h.org Mon Jul 8 19:10:59 1996
++++ config.h Mon Jul 8 19:11:16 1996
+@@ -133,7 +133,7 @@
+
+ #define FingerDir /usr/local/etc/fingerdir
+ #define BinDir /usr/local/bin
+-#define EtcDir /usr/local/etc
++#define EtcDir /usr/local/libexec
+ #define MugShotPath "/usr/local/lib/mugshots:/usr/local/mugshots"
+
+ /* Define USE_DATABASE if you want to keep information about users in
diff --git a/net/gnu-finger/pkg-comment b/net/gnu-finger/pkg-comment
new file mode 100644
index 000000000000..7b1ffac9cc21
--- /dev/null
+++ b/net/gnu-finger/pkg-comment
@@ -0,0 +1 @@
+GNU version of finger.
diff --git a/net/gnu-finger/pkg-descr b/net/gnu-finger/pkg-descr
new file mode 100644
index 000000000000..c453c6bde54d
--- /dev/null
+++ b/net/gnu-finger/pkg-descr
@@ -0,0 +1,31 @@
+ * GNU finger for FreeBSD *
+
+* CAUTION *
+ This ports collection is install some daemon programs,
+ to /usr/local/libexec, *NOT* to /usr/local/etc.
+
+* how to quick install: *
+
+1) Pleae rewrite collectory serverhost,clients,mailhost for your site.
+ Sample file is in /usr/local/etc/fingerdir.
+
+2) Add below lines to /etc/inetd.conf
+
+cfingerd stream tcp nowait nobody /usr/local/libexec/in.cfingerd in.cfingerd
+finger stream tcp nowait nobody /usr/local/libexec/in.fingerd in.fingerd
+
+3) Comment out old finger line in /etc/inetd.conf
+
+#finger stream tcp nowait nobody /usr/libexec/fingerd fingerd -s
+
+4) Restart inetd
+
+ % kill -HUP `cat /var/run/inetd.pid`
+
+5) If this host is GNU finger server host,
+ move start.fingerd.sh.sample to start.fingerd.sh in /usr/local/etc/rc.d
+ directory.
+ And exec start_fingerd.sh.
+
+- Yoshiro MIHIRA
+(sanpei@yy.cs.keio.ac.jp)
diff --git a/net/gnu-finger/pkg-plist b/net/gnu-finger/pkg-plist
new file mode 100644
index 000000000000..1eb33351e21c
--- /dev/null
+++ b/net/gnu-finger/pkg-plist
@@ -0,0 +1,11 @@
+bin/finger
+libexec/fingerd
+libexec/in.fingerd
+libexec/in.cfingerd
+etc/rc.d/start.fingerd.sh.sample
+etc/fingerdir/ttylocs.sample
+etc/fingerdir/clients.sample
+etc/fingerdir/mailhost.sample
+etc/fingerdir/serverhost.sample
+etc/fingerdir/targets/x-.help
+etc/fingerdir/targets/x-.site