1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
* Provide style rc.d script.
 * Provide sample configuration files (standard + masquerading).
 * CONFIGURE_TARGET to remove configure warning.
 * Bump PORTREVISION

Submitted By:	Robin Breathe <robin@isometry.net>
PR:		ports/62010
This commit is contained in:
Oliver Lehmann 2004-01-31 13:32:34 +00:00
parent f78a9532e3
commit 8d52fc8727
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99603
5 changed files with 85 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= oidentd
PORTVERSION= 2.0.7
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ojnk
@ -16,7 +17,29 @@ COMMENT= Ident server that supports user-defined ident strings
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
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>

View File

@ -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
# }
#}

View File

@ -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"

View File

@ -0,0 +1,2 @@
192.168.1.1/32 client1 UNIX
192.168.2.1/32 client2 UNIX

View File

@ -1 +1,4 @@
sbin/oidentd
etc/oidentd.conf.sample
etc/oidentd_masq.conf.sample
etc/rc.d/oidentd.sh