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_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.clevervest.com/htp/archive/c/
17 PKG_MD5SUM:=12cf883c5619cf4c13a62f77f1a55b54
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/htpdate
26 SUBMENU:=Time Synchronization
29 TITLE:=an HTP (Hypertext Time Protocol) implementation
30 URL:=http://www.clevervest.com/htp/
33 define Package/htpdate/conffiles
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 $(TARGET_CONFIGURE_OPTS) \
40 CFLAGS="$(TARGET_CFLAGS)"
44 define Package/htpdate/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/htpdate $(1)/usr/sbin/
47 $(INSTALL_DIR) $(1)/etc/default/
48 $(INSTALL_DATA) ./files/htpdate.default $(1)/etc/default/htpdate
49 $(INSTALL_DIR) $(1)/etc/init.d/
50 $(INSTALL_BIN) ./files/htpdate.init $(1)/etc/init.d/htpdate
53 $(eval $(call BuildPackage,htpdate))