1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-15 10:53:09 +02:00
openwrt-xburst/package/htpdate/Makefile
nico ee2e72a86d update htpdate to new upstream release (v0.9.0)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2743 3c298f89-4303-0410-b956-a3cf2f4a3e73
2005-12-20 18:00:30 +00:00

41 lines
1.1 KiB
Makefile

# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=htpdate
PKG_VERSION:=0.9.0
PKG_RELEASE:=1
PKG_MD5SUM:=12cf883c5619cf4c13a62f77f1a55b54
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:
touch $@
$(PKG_BUILD_DIR)/.built:
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)"
touch $@
$(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
ln -sf htpdate $(IDIR_HTPDATE)/etc/init.d/S49htpdate
install -d -m0755 $(IDIR_HTPDATE)/usr/sbin
install -m0755 $(PKG_BUILD_DIR)/htpdate $(IDIR_HTPDATE)/usr/sbin/
$(RSTRIP) $(IDIR_HTPDATE)
$(IPKG_BUILD) $(IDIR_HTPDATE) $(PACKAGE_DIR)