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