source: packages/net/xinetd/Makefile @ 25591

Last change on this file since 25591 was 25591, checked in by nbd, 5 years ago

xinetd: fix compiling without RPC support

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=xinetd
11PKG_VERSION:=2.3.14
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.xinetd.org/
16PKG_MD5SUM:=567382d7972613090215c6c54f9b82d9
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/xinetd
21  SECTION:=net
22  CATEGORY:=Network
23  TITLE:=A powerful and secure super-server
24  URL:=http://www.xinetd.org/
25endef
26
27define 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.
33endef
34
35define Package/xinetd/conffiles
36/etc/xinetd.conf
37endef
38
39TARGET_CFLAGS += -DNO_RPC
40
41define Build/Configure
42        $(call Build/Configure/Default, \
43                --without-libwrap \
44                --with-loadavg \
45        )
46endef
47
48define Build/Compile
49        $(MAKE) -C $(PKG_BUILD_DIR) \
50                DESTDIR="$(PKG_INSTALL_DIR)" \
51                build install
52endef
53
54define Package/xinetd/install
55        $(INSTALL_DIR) $(1)/usr/sbin
56        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(1)/usr/sbin/
57        $(INSTALL_DIR) $(1)/etc
58        $(INSTALL_DATA) ./files/xinetd.conf $(1)/etc/xinetd.conf
59        $(INSTALL_DIR) $(1)/etc/xinetd.d
60        $(INSTALL_DIR) $(1)/etc/init.d
61        $(INSTALL_BIN) ./files/xinetd.init $(1)/etc/init.d/xinetd
62endef
63
64$(eval $(call BuildPackage,xinetd))
Note: See TracBrowser for help on using the repository browser.