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>
This commit is contained in:
parent
d2296c2269
commit
e3a5b1ddfa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=255588
7 changed files with 86 additions and 0 deletions
|
@ -103,6 +103,7 @@
|
||||||
SUBDIR += chgrep
|
SUBDIR += chgrep
|
||||||
SUBDIR += ciso
|
SUBDIR += ciso
|
||||||
SUBDIR += ck4up
|
SUBDIR += ck4up
|
||||||
|
SUBDIR += ckl
|
||||||
SUBDIR += clean
|
SUBDIR += clean
|
||||||
SUBDIR += clockspeed
|
SUBDIR += clockspeed
|
||||||
SUBDIR += clockspeed-conf
|
SUBDIR += clockspeed-conf
|
||||||
|
|
45
sysutils/ckl/Makefile
Normal file
45
sysutils/ckl/Makefile
Normal file
|
@ -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>
|
3
sysutils/ckl/distinfo
Normal file
3
sysutils/ckl/distinfo
Normal file
|
@ -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
|
2
sysutils/ckl/files/cloudkick.conf.example
Normal file
2
sysutils/ckl/files/cloudkick.conf.example
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ckl_endpoint http://ckl.example.com/
|
||||||
|
secret mySuperSecret
|
27
sysutils/ckl/files/patch-src-conf.c
Normal file
27
sysutils/ckl/files/patch-src-conf.c
Normal file
|
@ -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) {
|
4
sysutils/ckl/pkg-descr
Normal file
4
sysutils/ckl/pkg-descr
Normal file
|
@ -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
|
4
sysutils/ckl/pkg-plist
Normal file
4
sysutils/ckl/pkg-plist
Normal file
|
@ -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
|
Loading…
Reference in a new issue