754f793c7dba3df48e1c24612f79634448757442
[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.13
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.xinetd.org/
17 PKG_MD5SUM:=4295b5fe12350f09b5892b363348ac8b
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/xinetd
25   SECTION:=net
26   CATEGORY:=Network
27   TITLE:=A powerful and secure super-server
28   URL:=http://www.xinetd.org/
29 endef
30
31 define Package/xinetd/conffiles
32 /etc/xinetd.conf
33 endef
34
35 define Build/Configure
36         $(call Build/Configure/Default, \
37                 --without-libwrap \
38                 --with-loadavg \
39         )
40 endef
41
42 define Build/Compile
43         $(MAKE) -C $(PKG_BUILD_DIR) \
44                 DESTDIR="$(PKG_INSTALL_DIR)" \
45                 build install
46 endef
47
48 define Package/xinetd/install
49         $(INSTALL_DIR) $(1)/usr/sbin
50         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(1)/usr/sbin/
51         $(INSTALL_DIR) $(1)/etc
52         $(INSTALL_DATA) ./files/xinetd.conf $(1)/etc/xinetd.conf
53         $(INSTALL_DIR) $(1)/etc/xinetd.d
54         $(INSTALL_DIR) $(1)/etc/init.d
55         $(INSTALL_BIN) ./files/xinetd.init $(1)/etc/init.d/xinetd
56 endef
57
58 $(eval $(call BuildPackage,xinetd))