nuke $Id$ in /packages as well
[openwrt/svn-archive/archive.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xinetd
11 PKG_VERSION:=2.3.14
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:=567382d7972613090215c6c54f9b82d9
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/xinetd
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=A powerful and secure super-server
24 URL:=http://www.xinetd.org/
25 endef
26
27 define Package/xinetd/description
28 xinetd has access control mechanisms, extensive logging capabilities,
29 the ability to make services available based on time, can place limits
30 on the number of servers that can be started, and has deployable
31 defence mechanisms to protect against port scanners, among other
32 things.
33 endef
34
35 define Package/xinetd/conffiles
36 /etc/xinetd.conf
37 endef
38
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 --without-libwrap \
42 --with-loadavg \
43 )
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 build install
50 endef
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))