diff options
author | sylvio <sylvio@FreeBSD.org> | 2010-06-03 05:01:10 +0800 |
---|---|---|
committer | sylvio <sylvio@FreeBSD.org> | 2010-06-03 05:01:10 +0800 |
commit | 17f624b6b8e3b3b6ca36b14bef36954e8833354b (patch) | |
tree | c6ab7f02adfe5b28b60ae112d2ab6d2ee862eee7 | |
parent | 748f17e6c30fe3230c44436bf8166c2de43503b1 (diff) | |
download | freebsd-ports-gnome-17f624b6b8e3b3b6ca36b14bef36954e8833354b.tar.gz freebsd-ports-gnome-17f624b6b8e3b3b6ca36b14bef36954e8833354b.tar.zst freebsd-ports-gnome-17f624b6b8e3b3b6ca36b14bef36954e8833354b.zip |
A command line tool for noting when something was changed on a machine.
The contents of the message are POST'ed to another server for logging.
WWW: http://github.com/pquerna/ckl
PR: ports/147261
Submitted by: Tomaz Muraus <kami@k5-storitve.net>
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/ckl/Makefile | 45 | ||||
-rw-r--r-- | sysutils/ckl/distinfo | 3 | ||||
-rw-r--r-- | sysutils/ckl/files/cloudkick.conf.example | 2 | ||||
-rw-r--r-- | sysutils/ckl/files/patch-src-conf.c | 27 | ||||
-rw-r--r-- | sysutils/ckl/pkg-descr | 4 | ||||
-rw-r--r-- | sysutils/ckl/pkg-plist | 4 |
7 files changed, 86 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 740216ef1b91..311eb2fd594e 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -103,6 +103,7 @@ SUBDIR += chgrep SUBDIR += ciso SUBDIR += ck4up + SUBDIR += ckl SUBDIR += clean SUBDIR += clockspeed SUBDIR += clockspeed-conf diff --git a/sysutils/ckl/Makefile b/sysutils/ckl/Makefile new file mode 100644 index 000000000000..876eda4a4b65 --- /dev/null +++ b/sysutils/ckl/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: ckl +# Date created: 1 June 2010 +# Whom: Tomaz Muraus <kami@k5-storitve.net> +# +# $FreeBSD$ +# + +PORTNAME= ckl +PORTVERSION= 0.9.1 +CATEGORIES= sysutils net +MASTER_SITES= http://packages.cloudkick.com/releases/ckl/ +DISTNAME= ckl-${PORTVERSION} + +MAINTAINER= kami@k5-storitve.net +COMMENT= A command line tool for noting when something was changed on a machine + +LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl + +USE_SCONS= yes +USE_BZIP2= yes + +PORTDOCS= CHANGES LICENSE NOTICE README + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/ckl ${PREFIX}/bin + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in ${PORTDOCS} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif + +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + @${MKDIR} ${EXAMPLESDIR}/webapp + (cd ${WRKSRC}/webapp/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/webapp) +.endif + ${INSTALL_DATA} ${PATCHDIR}/cloudkick.conf.example ${PREFIX}/etc/cloudkick.conf.sample + @if [ ! -f ${PREFIX}/etc/cloudkick.conf ]; then \ + ${INSTALL_DATA} -p ${PREFIX}/etc/cloudkick.conf.sample ${PREFIX}/etc/cloudkick.conf ; \ + fi + +.include <bsd.port.mk> diff --git a/sysutils/ckl/distinfo b/sysutils/ckl/distinfo new file mode 100644 index 000000000000..e0d68456d7d5 --- /dev/null +++ b/sysutils/ckl/distinfo @@ -0,0 +1,3 @@ +MD5 (ckl-0.9.1.tar.bz2) = 010b2e7455a41b5c2380cb0c56954802 +SHA256 (ckl-0.9.1.tar.bz2) = 270d8de8f08ff0eeb88191527f6991467d3fee10b99c5c9319b5e027e1d3f77f +SIZE (ckl-0.9.1.tar.bz2) = 297908 diff --git a/sysutils/ckl/files/cloudkick.conf.example b/sysutils/ckl/files/cloudkick.conf.example new file mode 100644 index 000000000000..c518beb6d862 --- /dev/null +++ b/sysutils/ckl/files/cloudkick.conf.example @@ -0,0 +1,2 @@ +ckl_endpoint http://ckl.example.com/ +secret mySuperSecret diff --git a/sysutils/ckl/files/patch-src-conf.c b/sysutils/ckl/files/patch-src-conf.c new file mode 100644 index 000000000000..601facd4f690 --- /dev/null +++ b/sysutils/ckl/files/patch-src-conf.c @@ -0,0 +1,27 @@ +*** src/conf.c.orig Sun Jan 24 02:46:27 2010 +--- src/conf.c Tue Jun 1 07:19:59 2010 +*************** +*** 86,96 **** + { + int rv; + FILE *fp; + + /* TODO: respect prefix */ +! fp = fopen("/etc/cloudkick.conf", "r"); + if (fp == NULL) { + char buf[2048]; + const char *home = getenv("HOME"); + + if (home == NULL) { +--- 86,96 ---- + { + int rv; + FILE *fp; + + /* TODO: respect prefix */ +! fp = fopen("/usr/local/etc/cloudkick.conf", "r"); + if (fp == NULL) { + char buf[2048]; + const char *home = getenv("HOME"); + + if (home == NULL) { diff --git a/sysutils/ckl/pkg-descr b/sysutils/ckl/pkg-descr new file mode 100644 index 000000000000..f6d893225717 --- /dev/null +++ b/sysutils/ckl/pkg-descr @@ -0,0 +1,4 @@ +A command line tool for noting when something was changed on a machine. +The contents of the message are POST'ed to another server for logging. + +WWW: http://github.com/pquerna/ckl diff --git a/sysutils/ckl/pkg-plist b/sysutils/ckl/pkg-plist new file mode 100644 index 000000000000..c5aea6d4603b --- /dev/null +++ b/sysutils/ckl/pkg-plist @@ -0,0 +1,4 @@ +bin/ckl +@unexec if cmp -s %D/etc/cloudkick.conf %D/etc/cloudkick.conf.sample; then rm -f %D/etc/cloudkick.conf; fi +etc/cloudkick.conf.sample +@exec if [ ! -f %D/etc/cloudkick.conf ]; then cp %B/%f %D/etc/cloudkick.conf; fi |