pkgsrc-wip/xinetd/Makefile

46 lines
1.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.13 2006/03/14 01:28:18 jlamwww Exp $
#
DISTNAME= xinetd-2.3.13
2004-07-18 17:50:17 +02:00
CATEGORIES= sysutils
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
USE_TOOLS+= gmake
BUILD_TARGET= build
CONFIGURE_ARGS+= --with-loadavg
2004-08-02 23:46:32 +02:00
.include "../../mk/bsd.prefs.mk"
# OPTIONS
2006-01-20 23:49:09 +01:00
BUILD_DEFS+= XINETD_USE_TCPWRAPPER
XINETD_USE_TCPWRAPPER?= NO
.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
.endif
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
.if !empty(XINETD_USE_TCPWRAPPER:M[yY][eE][sS])
.include "../../security/tcp_wrappers/buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"