aboutsummaryrefslogtreecommitdiffstats
path: root/package/htpdate/Makefile
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-05-14 21:19:23 +0000
committerNicolas Thill <nico@openwrt.org>2005-05-14 21:19:23 +0000
commitb5d44c4ceeb04004516e256148c8e6676d8b7eb1 (patch)
tree6dcb66e187bff00e90db8c3c98e97f17c00a579a /package/htpdate/Makefile
parent6f1963e1952f77004b790e403fafc35c52d1e34d (diff)
downloadupstream-b5d44c4ceeb04004516e256148c8e6676d8b7eb1.tar.gz
upstream-b5d44c4ceeb04004516e256148c8e6676d8b7eb1.tar.bz2
upstream-b5d44c4ceeb04004516e256148c8e6676d8b7eb1.zip
Add htpdate package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@899 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/htpdate/Makefile')
-rw-r--r--package/htpdate/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/package/htpdate/Makefile b/package/htpdate/Makefile
new file mode 100644
index 0000000000..0324eb5702
--- /dev/null
+++ b/package/htpdate/Makefile
@@ -0,0 +1,39 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=htpdate
+PKG_VERSION:=0.7.2
+PKG_RELEASE:=1
+PKG_MD5SUM:=5b5ab483bdb3ebe155c72197e1b885f6
+
+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)/.configured
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)"
+ touch $(PKG_BUILD_DIR)/.built
+
+$(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
+ install -d -m0755 $(IDIR_HTPDATE)/usr/sbin
+ cp -fpR $(PKG_BUILD_DIR)/htpdate $(IDIR_HTPDATE)/usr/sbin/
+ $(RSTRIP) $(IDIR_HTPDATE)
+ $(IPKG_BUILD) $(IDIR_HTPDATE) $(PACKAGE_DIR)
+