diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/htpdate |
Initial import
Diffstat (limited to 'package/htpdate')
-rw-r--r-- | package/htpdate/Config.in | 8 | ||||
-rw-r--r-- | package/htpdate/Makefile | 28 | ||||
-rw-r--r-- | package/htpdate/files/htpdate.init | 26 | ||||
-rw-r--r-- | package/htpdate/ipkg/htpdate.control | 4 | ||||
-rw-r--r-- | package/htpdate/ipkg/htpdate.postinst | 4 | ||||
-rw-r--r-- | package/htpdate/patches/patch-Makefile | 14 |
6 files changed, 84 insertions, 0 deletions
diff --git a/package/htpdate/Config.in b/package/htpdate/Config.in new file mode 100644 index 000000000..b3801ed03 --- /dev/null +++ b/package/htpdate/Config.in @@ -0,0 +1,8 @@ +config ADK_PACKAGE_HTPDATE + prompt "htpdate........................... HTP (Hypertext Time Protocol) implementation" + tristate + default n + help + An HTP (Hypertext Time Protocol) implementation + + http://www.clevervest.com/htp/ diff --git a/package/htpdate/Makefile b/package/htpdate/Makefile new file mode 100644 index 000000000..f0e9f77ce --- /dev/null +++ b/package/htpdate/Makefile @@ -0,0 +1,28 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= htpdate +PKG_VERSION:= 0.9.0 +PKG_RELEASE:= 9 +PKG_MD5SUM:= 12cf883c5619cf4c13a62f77f1a55b54 +MASTER_SITES:= http://www.clevervest.com/htp/archive/c/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,HTPDATE,htpdate,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +BUILD_STYLE= auto + +do-install: + ${INSTALL_DIR} ${IDIR_HTPDATE}/etc/init.d/ + ${INSTALL_BIN} ./files/htpdate.init \ + ${IDIR_HTPDATE}/etc/init.d/htpdate + ${INSTALL_DIR} ${IDIR_HTPDATE}/usr/sbin + ${INSTALL_BIN} ${WRKBUILD}/htpdate ${IDIR_HTPDATE}/usr/sbin/ + + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/htpdate/files/htpdate.init b/package/htpdate/files/htpdate.init new file mode 100644 index 000000000..3c291ef54 --- /dev/null +++ b/package/htpdate/files/htpdate.init @@ -0,0 +1,26 @@ +#!/bin/sh +#FWINIT 60 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${htpdate:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + htpdate -l -s -t $htpdate_flags && htpdate -D $htpdate_flags + ;; +stop) + killall htpdate + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "usage: $0 {start | stop | restart}" + exit 1 + +esac +exit $? diff --git a/package/htpdate/ipkg/htpdate.control b/package/htpdate/ipkg/htpdate.control new file mode 100644 index 000000000..cdb470c2d --- /dev/null +++ b/package/htpdate/ipkg/htpdate.control @@ -0,0 +1,4 @@ +Package: htpdate +Priority: optional +Section: net +Description: an HTP (Hypertext Time Protocol) implementation diff --git a/package/htpdate/ipkg/htpdate.postinst b/package/htpdate/ipkg/htpdate.postinst new file mode 100644 index 000000000..baf149665 --- /dev/null +++ b/package/htpdate/ipkg/htpdate.postinst @@ -0,0 +1,4 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf htpdate htpdate NO +add_rcconf htpdate_flags htpdate_flags "www.google.com www.yahoo.com www.linux.org www.freebsd.org" diff --git a/package/htpdate/patches/patch-Makefile b/package/htpdate/patches/patch-Makefile new file mode 100644 index 000000000..edd5b9c38 --- /dev/null +++ b/package/htpdate/patches/patch-Makefile @@ -0,0 +1,14 @@ +$Id$ +--- htpdate-0.9.0.orig/Makefile Sun Dec 11 22:34:35 2005 ++++ htpdate-0.9.0/Makefile Tue Jan 16 23:47:33 2007 +@@ -2,8 +2,8 @@ prefix = /usr + bindir = ${prefix}/bin + mandir = ${prefix}/share/man + +-CC = gcc +-CFLAGS += -Wall -ansi -Os -DDEBUG ++CC ?= gcc ++CFLAGS ?= -Wall -ansi -Os -DDEBUG + + INSTALL = /usr/bin/install -c + STRIP = /usr/bin/strip -s |