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