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