Date: Tue, 27 Jan 2004 23:02:42 +0000 (UTC) From: Robin Breathe <robin@isometry.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: oliver@FreeBSD.org Subject: ports/62010: Update: security/oidentd configuration Message-ID: <20040127230242.4D46942@mx.dsl.isometry.net> Resent-Message-ID: <200401272310.i0RNA31G045608@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 62010 >Category: ports >Synopsis: Update: security/oidentd configuration >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 27 15:10:03 PST 2004 >Closed-Date: >Last-Modified: >Originator: Robin Breathe >Release: FreeBSD 4.9-RELEASE i386 >Organization: >Environment: >Description: Updates: * Provide style rc.d script. * Provide sample configuration files (standard + masquerading). * Use PLIST_FILES macro. * CONFIGURE_TARGET to remove configure warning. Tested under 4.9-RELEASE and 5.2-RELEASE. >How-To-Repeat: >Fix: 1) Delete pkg-plist. 2) Apply the following patch: --- oidentd-2.0.7_1.diff begins here --- diff -ruN oidentd-2.0.7/Makefile oidentd/Makefile --- oidentd-2.0.7/Makefile Tue Jan 27 20:40:37 2004 +++ oidentd/Makefile Tue Jan 27 22:51:45 2004 @@ -7,6 +8,7 @@ PORTNAME= oidentd PORTVERSION= 2.0.7 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ojnk @@ -16,7 +18,34 @@ USE_GMAKE= yes GNU_CONFIGURE= yes +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} + +PLIST_FILES= sbin/oidentd \ + etc/oidentd.conf.sample \ + etc/oidentd_masq.conf.sample \ + etc/rc.d/oidentd.sh + MAN5= oidentd.conf.5 oidentd_masq.conf.5 MAN8= oidentd.8 -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 500038 +RC_SUBR= /etc/rc.subr +.else +USE_RC_SUBR= yes +.endif + +post-build: + @${SED} -e 's,%%PREFIX%%,${PREFIX},g' \ + -e 's,%%RC_SUBR%%,${RC_SUBR},g' \ + <${FILESDIR}/oidentd.sh >${WRKDIR}/oidentd.sh + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/oidentd ${PREFIX}/sbin + ${INSTALL_DATA} ${MAN5:S,^,${FILESDIR}/,:S,5$,sample,} ${PREFIX}/etc + ${INSTALL_SCRIPT} ${WRKDIR}/oidentd.sh ${PREFIX}/etc/rc.d + ${INSTALL_MAN} ${MAN5:S,^,${WRKSRC}/doc/,} ${PREFIX}/man/man5 + ${INSTALL_MAN} ${MAN8:S,^,${WRKSRC}/doc/,} ${PREFIX}/man/man8 + +.include <bsd.port.post.mk> diff -ruN oidentd-2.0.7/files/oidentd.conf.sample oidentd/files/oidentd.conf.sample --- oidentd-2.0.7/files/oidentd.conf.sample Thu Jan 1 00:00:00 1970 +++ oidentd/files/oidentd.conf.sample Tue Jan 27 20:23:30 2004 @@ -0,0 +1,24 @@ +default { + default { + allow spoof + deny spoof_all + deny spoof_privport + allow random_numeric + allow numeric + allow hide + } +} + +user root { + default { + force reply "UNKNOWN" + } +} + +#user eggdrop { +# default { +# allow spoof +# allow spoof_all +# allow spoof_privport +# } +#} diff -ruN oidentd-2.0.7/files/oidentd.sh oidentd/files/oidentd.sh --- oidentd-2.0.7/files/oidentd.sh Thu Jan 1 00:00:00 1970 +++ oidentd/files/oidentd.sh Tue Jan 27 20:01:04 2004 @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: oidentd +# REQUIRE: DAEMON +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable dovecot: +# +#oidentd_enable="YES" +# +# See oidentd(8) for flags. +# + +. %%RC_SUBR%% + +name=oidentd +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/${name} +required_files=%%PREFIX%%/etc/${name}.conf + +# set defaults + +oidentd_enable=${oidentd_enable:-"NO"} +oidentd_flags=${oidentd_flags:-""} + +load_rc_config ${name} +run_rc_command "$1" diff -ruN oidentd-2.0.7/files/oidentd_masq.conf.sample oidentd/files/oidentd_masq.conf.sample --- oidentd-2.0.7/files/oidentd_masq.conf.sample Thu Jan 1 00:00:00 1970 +++ oidentd/files/oidentd_masq.conf.sample Tue Jan 27 20:42:53 2004 @@ -0,0 +1,2 @@ +192.168.1.1/32 client1 UNIX +192.168.2.1/32 client2 UNIX --- oidentd-2.0.7_1.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040127230242.4D46942>