7e6f84023a5f9108afd42ae75d766ced3ca72a2b
[packages.git] / net / xinetd / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=xinetd
12 PKG_VERSION:=2.3.14
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.xinetd.org/
17 PKG_MD5SUM:=567382d7972613090215c6c54f9b82d9
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/xinetd
22   SECTION:=net
23   CATEGORY:=Network
24   TITLE:=A powerful and secure super-server
25   URL:=http://www.xinetd.org/
26 endef
27
28 define Package/xinetd/description
29         xinetd has access control mechanisms, extensive logging capabilities,
30         the ability to make services available based on time, can place limits
31         on the number of servers that can be started, and has deployable
32         defence mechanisms to protect against port scanners, among other
33         things.
34 endef
35
36 define Package/xinetd/conffiles
37 /etc/xinetd.conf
38 endef
39
40 define Build/Configure
41         $(call Build/Configure/Default, \
42                 --without-libwrap \
43                 --with-loadavg \
44         )
45 endef
46
47 define Build/Compile
48         $(MAKE) -C $(PKG_BUILD_DIR) \
49                 DESTDIR="$(PKG_INSTALL_DIR)" \
50                 build install
51 endef
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))