Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / net / xinetd / Makefile
1 #
2 # Copyright (C) 2006-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xinetd
11 PKG_VERSION:=2.3.15
12 PKG_RELEASE:=5
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.xinetd.org
16 PKG_HASH:=bf4e060411c75605e4dcbdf2ac57c6bd9e1904470a2f91e01ba31b50a80a5be3
17 PKG_LICENSE:=xinetd
18 PKG_LICENSE_FILES:=COPYRIGHT
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/xinetd
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=A powerful and secure super-server
28 URL:=http://www.xinetd.org/
29 PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
30 endef
31
32 define Package/xinetd/description
33 xinetd has access control mechanisms, extensive logging capabilities,
34 the ability to make services available based on time, can place limits
35 on the number of servers that can be started, and has deployable
36 defence mechanisms to protect against port scanners, among other
37 things.
38 endef
39
40 define Package/xinetd/conffiles
41 /etc/xinetd.conf
42 /etc/xinetd.d/
43 endef
44
45 TARGET_CFLAGS += -DNO_RPC
46 TARGET_CPPFLAGS += -DHAVE_RLIM_T
47
48 CONFIGURE_ARGS += \
49 --without-libwrap \
50 --with-loadavg
51
52 CONFIGURE_VARS += \
53 ac_cv_header_rpc_pmap_clnt_h=no \
54 ac_cv_header_rpc_rpc_h=no \
55 ac_cv_header_rpc_rpcent_h=no
56
57 define Package/xinetd/install
58 $(INSTALL_DIR) $(1)/usr/sbin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(1)/usr/sbin/
60 $(INSTALL_DIR) $(1)/etc
61 $(INSTALL_DATA) ./files/xinetd.conf $(1)/etc/xinetd.conf
62 $(INSTALL_DIR) $(1)/etc/xinetd.d
63 $(INSTALL_DIR) $(1)/etc/init.d
64 $(INSTALL_BIN) ./files/xinetd.init $(1)/etc/init.d/xinetd
65 endef
66
67 $(eval $(call BuildPackage,xinetd))