aboutsummaryrefslogtreecommitdiff
path: root/sysutils/ckl/Makefile
blob: 90ad624849981377601f331ec0d5d2e4172778fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by: Tomaz Muraus <kami@k5-storitve.net>
# $FreeBSD$

PORTNAME=	ckl
PORTVERSION=	0.9.1
PORTREVISION=	2
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

BROKEN=		unfetchable, MASTER_SITES redirects to Rackspace
LIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl

USE_SCONS=	yes
USE_BZIP2=	yes

PORTDOCS=	CHANGES LICENSE NOTICE README

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -e '/<curl\/types.h>/d' ${WRKSRC}/src/ckl.h

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>