[packages] xinetd: update to 2.3.15 (CVE-2012-0862), use CONFIGURE_{ARGS,VARS} &...
[openwrt/svn-archive/archive.git] / net / xinetd / Makefile
1 #
2 # Copyright (C) 2006-2012 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:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.xinetd.org
16 PKG_MD5SUM:=77358478fd58efa6366accae99b8b04c
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/xinetd
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=A powerful and secure super-server
26 URL:=http://www.xinetd.org/
27 endef
28
29 define Package/xinetd/description
30 xinetd has access control mechanisms, extensive logging capabilities,
31 the ability to make services available based on time, can place limits
32 on the number of servers that can be started, and has deployable
33 defence mechanisms to protect against port scanners, among other
34 things.
35 endef
36
37 define Package/xinetd/conffiles
38 /etc/xinetd.conf
39 endef
40
41 TARGET_CFLAGS += -DNO_RPC
42
43 CONFIGURE_ARGS += \
44 --without-libwrap \
45 --with-loadavg
46
47 CONFIGURE_VARS += \
48 ac_cv_header_rpc_pmap_clnt_h=no \
49 ac_cv_header_rpc_rpc_h=no \
50 ac_cv_header_rpc_rpcent_h=no
51
52 define Package/xinetd/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(1)/usr/sbin/
55 $(INSTALL_DIR) $(1)/etc
56 $(INSTALL_DATA) ./files/xinetd.conf $(1)/etc/xinetd.conf
57 $(INSTALL_DIR) $(1)/etc/xinetd.d
58 $(INSTALL_DIR) $(1)/etc/init.d
59 $(INSTALL_BIN) ./files/xinetd.init $(1)/etc/init.d/xinetd
60 endef
61
62 $(eval $(call BuildPackage,xinetd))