Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 May 2000 07:56:02 -0400 (EDT)
From:      Trevor Johnson <trevor@jpj.net>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/18707: unbreak security/oidentd
Message-ID:  <Pine.BSI.4.21.0005210730310.17060-100000@blues.jpj.net>

next in thread | raw e-mail | index | archive | help

>Number:         18707
>Category:       ports
>Synopsis:       unbreak security/oidentd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 21 05:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Trevor Johnson
>Release:        3.4-RC i386
>Organization:
myself
>Environment:

compiled, installed and ran on 3.4-RC i386; compiled and installed on
4.0-STABLE i386

>Description:

I'm the maintainer of the oidentd port, which is marked broken for
OSVERSION < 400010.  I've made a tiny patch which lets it work with both
old and new versions of FreeBSD.  I've added a note to DESCR about the
built-in ident in inetd, and made trivial edits to the rest of the DESCR
file so it stays under 25 lines.  I've also edited the CATEGORIES line to
follow the guideline in section 4.4.20.2 of the Handbook that "you do not
need to list net when the port belongs to either of irc, mail, mbone,
news, security, or www" (I suppose it should say "any of").

I received no errors from "portlint -ac", no compilation errors on FreeBSD
3.4-RC or 4.0-STABLE.  On 3.4-RC, oidentd returned a correct response when
I ran it.

>How-To-Repeat:
N/A
>Fix:

diff -ruN oidentd.orig/Makefile oidentd/Makefile
--- oidentd.orig/Makefile	Sun Apr  9 19:30:05 2000
+++ oidentd/Makefile	Sun May 21 12:35:41 2000
@@ -7,7 +7,7 @@
 
 PORTNAME=	oidentd
 PORTVERSION=	1.6.4
-CATEGORIES=	security net
+CATEGORIES=	security
 MASTER_SITES=	ftp://ftp.sourceforge.net/pub/sourceforge/ojnk/ \
 		http://www.numb.org/~odin/stuff/
 
@@ -17,10 +17,4 @@
 GNU_CONFIGURE=	yes
 MAN8=		oidentd.8
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 400010
-BROKEN=		"outdated sys/file.h"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN oidentd.orig/patches/patch-aa oidentd/patches/patch-aa
--- oidentd.orig/patches/patch-aa	Sun Apr  2 05:20:41 2000
+++ oidentd/patches/patch-aa	Sun May 21 12:21:33 2000
@@ -1,14 +1,14 @@
 --- src/freebsd.c.orig	Tue Jan 18 02:37:19 2000
-+++ src/freebsd.c	Wed Mar 29 09:39:27 2000
-@@ -22,9 +22,9 @@
++++ src/freebsd.c	Sun May 21 03:50:57 2000
+@@ -22,8 +22,10 @@
  #include <sys/queue.h>
  #include <sys/uio.h>
  #include <sys/socketvar.h>
 -#define KERNEL
-+#define _KERNEL
++#define KERNEL /* FreeBSD 3.4 */
++#define _KERNEL /* FreeBSD 4.0 */
  #include <sys/file.h>
--#undef KERNEL
 +#undef _KERNEL
+ #undef KERNEL
  #include <sys/user.h>
  #include <sys/filedesc.h>
- #include <sys/proc.h>
diff -ruN oidentd.orig/pkg/DESCR oidentd/pkg/DESCR
--- oidentd.orig/pkg/DESCR	Sun Apr  2 05:20:45 2000
+++ oidentd/pkg/DESCR	Sun May 21 12:35:12 2000
@@ -1,6 +1,6 @@
 from the README:
 
-Oidentd is an ident (RFC 1413-compliant) daemon which runs on
+Oidentd is an RFC 1413-compliant ident daemon which runs on
 GNU/Linux, FreeBSD and OpenBSD.  Oidentd supports most features of
 pidentd as well as a number of features absent in pidentd.  Most
 notably, oidentd allows users, given the proper permission, to
@@ -9,13 +9,11 @@
 strings (either a prefix, such as "user," followed by a number
 between 0 and 99999, or 10 pseudo-random characters of the set
 0-9A-Za-z) to be returned upon the completion of a successful lookup
-instead of a username or a UID.  Oidentd supports IP masqueraded
-connections and supports fowarding ident requests for IP masqeraded
-connections to the machines from which the connections originate.
-For information on how to setup support for masqueraded connections,
-see the "INSTALL" file. NOTE: Currently, only Linux supports the
--P -f and -m options.  In other words, the IP masquerading support
-only exists on Linux right now.
+instead of a username or a UID.  The IP masquerading support only
+exists on Linux right now.
+
+FreeBSD's inetd has a built-in ident service which can also generate
+bogus responses.
 
 WWW: http://ojnk.sourceforge.net/
 


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.4.21.0005210730310.17060-100000>