2005-05-14 21:19:23 +00:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=htpdate
|
2005-07-11 12:53:46 +00:00
|
|
|
PKG_VERSION:=0.8.3
|
2005-05-14 21:19:23 +00:00
|
|
|
PKG_RELEASE:=1
|
2005-07-11 12:53:46 +00:00
|
|
|
PKG_MD5SUM:=4771e33a3f15706ee49d7a4ddb924757
|
2005-05-14 21:19:23 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_URL:=http://www.clevervest.com/htp/archive/c/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
|
|
|
$(eval $(call PKG_template,HTPDATE,htpdate,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
|
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
2005-05-19 21:22:09 +00:00
|
|
|
touch $@
|
2005-05-14 21:19:23 +00:00
|
|
|
|
|
|
|
$(PKG_BUILD_DIR)/.built:
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)"
|
2005-05-19 21:22:09 +00:00
|
|
|
touch $@
|
2005-05-14 21:19:23 +00:00
|
|
|
|
|
|
|
$(IPKG_HTPDATE):
|
|
|
|
install -d -m0755 $(IDIR_HTPDATE)/etc/default/
|
|
|
|
install -m0644 ./files/htpdate.default $(IDIR_HTPDATE)/etc/default/htpdate
|
|
|
|
install -d -m0755 $(IDIR_HTPDATE)/etc/init.d/
|
|
|
|
install -m0755 ./files/htpdate.init $(IDIR_HTPDATE)/etc/init.d/htpdate
|
2005-06-02 02:04:01 +00:00
|
|
|
ln -sf htpdate $(IDIR_HTPDATE)/etc/init.d/S49htpdate
|
2005-05-14 21:19:23 +00:00
|
|
|
install -d -m0755 $(IDIR_HTPDATE)/usr/sbin
|
2005-06-02 02:04:01 +00:00
|
|
|
install -m0755 $(PKG_BUILD_DIR)/htpdate $(IDIR_HTPDATE)/usr/sbin/
|
2005-05-14 21:19:23 +00:00
|
|
|
$(RSTRIP) $(IDIR_HTPDATE)
|
|
|
|
$(IPKG_BUILD) $(IDIR_HTPDATE) $(PACKAGE_DIR)
|
|
|
|
|