Reorganize categories
[packages.git] / net / htpdate / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=htpdate
12 PKG_VERSION:=0.9.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.clevervest.com/htp/archive/c/
17 PKG_MD5SUM:=12cf883c5619cf4c13a62f77f1a55b54
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/htpdate
26   SUBMENU:=Time Synchronization
27   SECTION:=net
28   CATEGORY:=Network
29   TITLE:=an HTP (Hypertext Time Protocol) implementation
30   URL:=http://www.clevervest.com/htp/
31 endef
32
33 define Package/htpdate/conffiles
34 /etc/default/htpdate
35 endef
36
37 define Build/Compile    
38         $(MAKE) -C $(PKG_BUILD_DIR) \
39                 $(TARGET_CONFIGURE_OPTS) \
40                 CFLAGS="$(TARGET_CFLAGS)"
41 endef
42
43
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
51 endef
52
53 $(eval $(call BuildPackage,htpdate))
54