source: trunk/openwrt/package/htpdate/Makefile @ 1952

Last change on this file since 1952 was 1952, checked in by nico, 11 years ago

updated to new upstream release (v0.8.7)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1# $Id$
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=htpdate
6PKG_VERSION:=0.8.7
7PKG_RELEASE:=1
8PKG_MD5SUM:=c882a00a5b04f4aafc20bd612bcf8035
9
10PKG_SOURCE_URL:=http://www.clevervest.com/htp/archive/c/
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12PKG_CAT:=zcat
13
14PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17include $(TOPDIR)/package/rules.mk
18
19$(eval $(call PKG_template,HTPDATE,htpdate,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(PKG_BUILD_DIR)/.configured:
22        touch $@
23
24$(PKG_BUILD_DIR)/.built:
25        $(MAKE) -C $(PKG_BUILD_DIR) \
26                $(TARGET_CONFIGURE_OPTS) \
27                CFLAGS="$(TARGET_CFLAGS)"
28        touch $@
29
30$(IPKG_HTPDATE):
31        install -d -m0755 $(IDIR_HTPDATE)/etc/default/
32        install -m0644 ./files/htpdate.default $(IDIR_HTPDATE)/etc/default/htpdate
33        install -d -m0755 $(IDIR_HTPDATE)/etc/init.d/
34        install -m0755 ./files/htpdate.init $(IDIR_HTPDATE)/etc/init.d/htpdate
35        ln -sf htpdate $(IDIR_HTPDATE)/etc/init.d/S49htpdate
36        install -d -m0755 $(IDIR_HTPDATE)/usr/sbin
37        install -m0755 $(PKG_BUILD_DIR)/htpdate $(IDIR_HTPDATE)/usr/sbin/
38        $(RSTRIP) $(IDIR_HTPDATE)
39        $(IPKG_BUILD) $(IDIR_HTPDATE) $(PACKAGE_DIR)
40
Note: See TracBrowser for help on using the repository browser.