2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
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
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=A powerful and secure super-server
29 DESCRIPTION
:=A powerful and secure super-server.
30 URL
:=http
://www.xinetd.org
/
33 define Package
/xinetd
/conffiles
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" \
44 --target
=$(GNU_TARGET_NAME
) \
45 --host
=$(GNU_TARGET_NAME
) \
46 --build
=$(GNU_HOST_NAME
) \
52 --datadir=/usr
/share \
53 --includedir=/usr
/include \
54 --infodir=/usr
/share
/info \
56 --libexecdir
=/usr
/lib \
57 --localstatedir
=/var \
58 --mandir=/usr
/share
/man \
61 $(DISABLE_LARGEFILE
) \
71 rm -rf
$(PKG_INSTALL_DIR
)
72 mkdir
-p
$(PKG_INSTALL_DIR
)
73 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
74 DESTDIR
="$(PKG_INSTALL_DIR)" \
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
/
88 $(eval
$(call BuildPackage
,xinetd
))