2006-03-14 02:27:57 +01:00
|
|
|
# $NetBSD: Makefile,v 1.13 2006/03/14 01:28:18 jlamwww Exp $
|
2004-07-10 18:11:38 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= xinetd-2.3.13
|
2004-07-18 17:50:17 +02:00
|
|
|
CATEGORIES= sysutils
|
2004-07-10 18:11:38 +02:00
|
|
|
MASTER_SITES= http://www.xinetd.org/
|
|
|
|
|
|
|
|
MAINTAINER= pancake@phreaker.net
|
|
|
|
HOMEPAGE= http://www.xinetd.org/
|
|
|
|
COMMENT= Secure replacement for inetd
|
|
|
|
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2005-05-24 12:29:21 +02:00
|
|
|
USE_TOOLS+= gmake
|
2004-12-02 17:38:55 +01:00
|
|
|
BUILD_TARGET= build
|
2004-07-11 00:49:25 +02:00
|
|
|
CONFIGURE_ARGS+= --with-loadavg
|
|
|
|
|
2004-08-02 23:46:32 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-07-11 00:49:25 +02:00
|
|
|
# OPTIONS
|
2006-01-20 23:49:09 +01:00
|
|
|
BUILD_DEFS+= XINETD_USE_TCPWRAPPER
|
|
|
|
XINETD_USE_TCPWRAPPER?= NO
|
2004-07-11 00:49:25 +02:00
|
|
|
.if !empty(XINETD_USE_TCPWRAPPER:M[yY][eE][sS])
|
2006-01-20 23:49:09 +01:00
|
|
|
CONFIGURE_ARGS+= --with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers:Q}/lib
|
2004-07-11 00:49:25 +02:00
|
|
|
.endif
|
2004-07-10 18:11:38 +02:00
|
|
|
|
2004-07-10 19:27:05 +02:00
|
|
|
RCD_SCRIPTS= xinetd
|
2006-01-20 23:49:09 +01:00
|
|
|
# Some weird quoting in Makefile.in makes this necessary.
|
|
|
|
CPPFLAGS+= -DDEFAULT_CONFIG_FILE="\"${PKG_SYSCONFDIR:Q}/etc/xinetd.conf\""
|
2004-07-10 19:27:05 +02:00
|
|
|
|
2006-01-20 23:49:09 +01:00
|
|
|
USE_TOOLS+= perl:run
|
|
|
|
REPLACE_PERL+= xinetd/xconv.pl
|
2004-07-10 19:52:38 +02:00
|
|
|
|
2004-07-10 19:27:05 +02:00
|
|
|
post-install:
|
2006-01-20 23:49:09 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX:Q}/share/examples/xinetd/
|
|
|
|
${INSTALL_DATA} ${WRKSRC:Q}/contrib/xinetd.conf \
|
|
|
|
${PREFIX:Q}/share/examples/xinetd/
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX:Q}/share/examples/xinetd/xinetd.d/
|
|
|
|
${INSTALL_DATA} ${WRKSRC:Q}/contrib/xinetd.d/* \
|
|
|
|
${PREFIX:Q}/share/examples/xinetd/xinetd.d/
|
2004-07-10 19:27:05 +02:00
|
|
|
|
2004-07-11 00:49:25 +02:00
|
|
|
.if !empty(XINETD_USE_TCPWRAPPER:M[yY][eE][sS])
|
|
|
|
.include "../../security/tcp_wrappers/buildlink3.mk"
|
|
|
|
.endif
|
2004-07-10 18:11:38 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|