1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MD5SUM
:=12cf883c5619cf4c13a62f77f1a55b54
15 PKG_SOURCE_URL
:=http
://www.clevervest.com
/htp
/archive
/c
/
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/htpdate
27 TITLE
:=an HTP
(Hypertext Time Protocol
) implementation
28 DESCRIPTION
:=an HTP
(Hypertext Time Protocol
) implementation
29 URL
:=http
://www.clevervest.com
/htp
/
32 define Package
/htpdate
/conffiles
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 $(TARGET_CONFIGURE_OPTS
) \
39 CFLAGS
="$(TARGET_CFLAGS)"
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
/
52 $(eval
$(call BuildPackage
,htpdate
))