fix typo
[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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://www.xinetd.org/
18 PKG_MD5SUM:=4295b5fe12350f09b5892b363348ac8b
19 PKG_CAT:=zcat
20
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 DESCRIPTION:=A powerful and secure super-server.
30 URL:=http://www.xinetd.org/
31 endef
32
33 define Package/xinetd/conffiles
34 /etc/xinetd.conf
35 endef
36
37 define Build/Configure
38 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
39 $(TARGET_CONFIGURE_OPTS) \
40 CFLAGS="$(TARGET_CFLAGS)" \
41 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
42 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
43 ./configure \
44 --target=$(GNU_TARGET_NAME) \
45 --host=$(GNU_TARGET_NAME) \
46 --build=$(GNU_HOST_NAME) \
47 --program-prefix="" \
48 --program-suffix="" \
49 --prefix=/usr \
50 --exec-prefix=/usr \
51 --bindir=/usr/bin \
52 --datadir=/usr/share \
53 --includedir=/usr/include \
54 --infodir=/usr/share/info \
55 --libdir=/usr/lib \
56 --libexecdir=/usr/lib \
57 --localstatedir=/var \
58 --mandir=/usr/share/man \
59 --sbindir=/usr/sbin \
60 --sysconfdir=/etc \
61 $(DISABLE_LARGEFILE) \
62 $(DISABLE_NLS) \
63 --enable-shared \
64 --disable-static \
65 --without-libwrap \
66 --with-loadavg \
67 );
68 endef
69
70 define Build/Compile
71 rm -rf $(PKG_INSTALL_DIR)
72 mkdir -p $(PKG_INSTALL_DIR)
73 $(MAKE) -C $(PKG_BUILD_DIR) \
74 DESTDIR="$(PKG_INSTALL_DIR)" \
75 build install
76 endef
77
78 define Package/xinetd/install
79 install -d -m0755 $(1)/etc
80 install -m0644 ./files/xinetd.conf $(1)/etc/xinetd.conf
81 install -d -m0755 $(1)/etc/xinetd.d
82 install -d -m0755 $(1)/etc/init.d
83 install -m0755 ./files/xinetd.init $(1)/etc/init.d/xinetd
84 install -d -m0755 $(1)/usr/sbin
85 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(1)/usr/sbin/
86 endef
87
88 $(eval $(call BuildPackage,xinetd))