1d52a1b5e00544eae222da331c220e12a47645bf
[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:=14
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://github.com/xinetd-org/xinetd/archive
16 PKG_HASH:=bf4e060411c75605e4dcbdf2ac57c6bd9e1904470a2f91e01ba31b50a80a5be3
17
18 PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>
19 PKG_LICENSE:=xinetd
20 PKG_LICENSE_FILES:=COPYRIGHT
21 PKG_CPE_ID:=cpe:/a:xinetd:xinetd
22
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/xinetd
28 SECTION:=net
29 CATEGORY:=Network
30 TITLE:=A powerful and secure super-server
31 URL:=https://github.com/xinetd-org
32 endef
33
34 define Package/xinetd/description
35 xinetd has access control mechanisms, extensive logging capabilities,
36 the ability to make services available based on time, can place limits
37 on the number of servers that can be started, and has deployable
38 defence mechanisms to protect against port scanners, among other
39 things.
40 endef
41
42 define Package/xinetd/conffiles
43 /etc/config/xinetd
44 /etc/xinetd.d
45 endef
46
47 TARGET_CFLAGS += -DNO_RPC
48 TARGET_CPPFLAGS += -DHAVE_RLIM_T
49
50 CONFIGURE_ARGS += \
51 --without-libwrap \
52 --with-loadavg
53
54 CONFIGURE_VARS += \
55 ac_cv_header_rpc_pmap_clnt_h=no \
56 ac_cv_header_rpc_rpc_h=no \
57 ac_cv_header_rpc_rpcent_h=no
58
59 define Package/xinetd/install
60 $(INSTALL_DIR) $(1)/usr/sbin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(1)/usr/sbin/
62 $(INSTALL_DIR) $(1)/etc/config/
63 $(INSTALL_DATA) ./files/xinetd.uci.conf.sample $(1)/etc/config/xinetd
64 $(INSTALL_DIR) $(1)/etc/init.d
65 $(INSTALL_BIN) ./files/xinetd.init $(1)/etc/init.d/xinetd
66 $(INSTALL_DIR) $(1)/etc/xinetd.d
67 endef
68
69 $(eval $(call BuildPackage,xinetd))