xinetd: Import from oldpackages, add myself as maintainer
[feed/packages.git] / net / xinetd / Makefile
1 #
2 # Copyright (C) 2006-2014 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:=2
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 MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
28 endef
29
30 define Package/xinetd/description
31 xinetd has access control mechanisms, extensive logging capabilities,
32 the ability to make services available based on time, can place limits
33 on the number of servers that can be started, and has deployable
34 defence mechanisms to protect against port scanners, among other
35 things.
36 endef
37
38 define Package/xinetd/conffiles
39 /etc/xinetd.conf
40 endef
41
42 TARGET_CFLAGS += -DNO_RPC
43
44 CONFIGURE_ARGS += \
45 --without-libwrap \
46 --with-loadavg
47
48 CONFIGURE_VARS += \
49 ac_cv_header_rpc_pmap_clnt_h=no \
50 ac_cv_header_rpc_rpc_h=no \
51 ac_cv_header_rpc_rpcent_h=no
52
53 define Package/xinetd/install
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(1)/usr/sbin/
56 $(INSTALL_DIR) $(1)/etc
57 $(INSTALL_DATA) ./files/xinetd.conf $(1)/etc/xinetd.conf
58 $(INSTALL_DIR) $(1)/etc/xinetd.d
59 $(INSTALL_DIR) $(1)/etc/init.d
60 $(INSTALL_BIN) ./files/xinetd.init $(1)/etc/init.d/xinetd
61 endef
62
63 $(eval $(call BuildPackage,xinetd))