View | Details | Raw Unified | Return to bug 62010
Collapse All | Expand All

(-)oidentd/Makefile (-1 / +29 lines)
Lines 7-12 Link Here
7
8
8
PORTNAME=	oidentd
9
PORTNAME=	oidentd
9
PORTVERSION=	2.0.7
10
PORTVERSION=	2.0.7
11
PORTREVISION=	1
10
CATEGORIES=	security
12
CATEGORIES=	security
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	ojnk
14
MASTER_SITE_SUBDIR=	ojnk
Lines 16-22 Link Here
16
18
17
USE_GMAKE=	yes
19
USE_GMAKE=	yes
18
GNU_CONFIGURE=	yes
20
GNU_CONFIGURE=	yes
21
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
22
23
PLIST_FILES=	sbin/oidentd \
24
		etc/oidentd.conf.sample \
25
		etc/oidentd_masq.conf.sample \
26
		etc/rc.d/oidentd.sh
27
19
MAN5=		oidentd.conf.5 oidentd_masq.conf.5
28
MAN5=		oidentd.conf.5 oidentd_masq.conf.5
20
MAN8=		oidentd.8
29
MAN8=		oidentd.8
21
30
22
.include <bsd.port.mk>
31
.include <bsd.port.pre.mk>
32
33
.if ${OSVERSION} >= 500038
34
RC_SUBR=	/etc/rc.subr
35
.else
36
USE_RC_SUBR=	yes
37
.endif
38
39
post-build:
40
	@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
41
		-e 's,%%RC_SUBR%%,${RC_SUBR},g' \
42
		<${FILESDIR}/oidentd.sh >${WRKDIR}/oidentd.sh
43
44
do-install:
45
	${INSTALL_PROGRAM} ${WRKSRC}/src/oidentd ${PREFIX}/sbin
46
	${INSTALL_DATA} ${MAN5:S,^,${FILESDIR}/,:S,5$,sample,} ${PREFIX}/etc
47
	${INSTALL_SCRIPT} ${WRKDIR}/oidentd.sh ${PREFIX}/etc/rc.d
48
	${INSTALL_MAN} ${MAN5:S,^,${WRKSRC}/doc/,} ${PREFIX}/man/man5
49
	${INSTALL_MAN} ${MAN8:S,^,${WRKSRC}/doc/,} ${PREFIX}/man/man8
50
51
.include <bsd.port.post.mk>
(-)oidentd/files/oidentd.conf.sample (+24 lines)
Line 0 Link Here
1
default {
2
	default {
3
		allow spoof
4
		deny spoof_all
5
		deny spoof_privport
6
		allow random_numeric
7
		allow numeric
8
		allow hide
9
	}
10
}
11
12
user root {
13
	default {
14
		force reply "UNKNOWN"
15
	}
16
}
17
18
#user eggdrop {
19
#	default {
20
#		allow spoof
21
#		allow spoof_all
22
#		allow spoof_privport
23
#	}
24
#}
(-)oidentd/files/oidentd.sh (+32 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
# PROVIDE: oidentd
7
# REQUIRE: DAEMON
8
# KEYWORD: FreeBSD shutdown
9
10
#
11
# Add the following lines to /etc/rc.conf to enable dovecot:
12
#
13
#oidentd_enable="YES"
14
#
15
# See oidentd(8) for flags.
16
#
17
18
. %%RC_SUBR%%
19
20
name=oidentd
21
rcvar=`set_rcvar`
22
23
command=%%PREFIX%%/sbin/${name}
24
required_files=%%PREFIX%%/etc/${name}.conf
25
26
# set defaults
27
28
oidentd_enable=${oidentd_enable:-"NO"}
29
oidentd_flags=${oidentd_flags:-""}
30
31
load_rc_config ${name}
32
run_rc_command "$1"
(-)oidentd/files/oidentd_masq.conf.sample (+2 lines)
Line 0 Link Here
1
192.168.1.1/32 client1 UNIX
2
192.168.2.1/32 client2 UNIX

Return to bug 62010