# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		xinetd
PKG_VERSION:=		2.3.14
PKG_RELEASE:=		1
PKG_MD5SUM:=		567382d7972613090215c6c54f9b82d9
PKG_DESCR:=		a powerful and secure superserver
PKG_SECTION:=		net/misc
PKG_URL:=		http://www.xinetd.org/
PKG_SITES:=		http://www.xinetd.org/

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,XINETD,xinetd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ARGS+=	--without-libwrap \
			--with-loadavg
ALL_TARGET:=		build
TARGET_CPPFLAGS+=	-I$(STAGING_DIR)/usr/include/tirpc
TARGET_LDFLAGS+=	-ltirpc

xinetd-install:
	${INSTALL_DIR} ${IDIR_XINETD}/etc/xinetd.d ${IDIR_XINETD}/usr/sbin
	${INSTALL_DATA} ./files/xinetd.conf ${IDIR_XINETD}/etc/xinetd.conf
	${INSTALL_BIN} ${WRKINST}/usr/sbin/xinetd ${IDIR_XINETD}/usr/sbin/

include ${TOPDIR}/mk/pkg-bottom.mk
