# New ports collection makefile for:	webjob
# Date created:		20 August 2002
# Whom:			Klayton Monroe <klm@uidzero.org>
#
# $FreeBSD: ports/sysutils/webjob/Makefile,v 1.7 2004/05/09 20:43:40 pav Exp $
#

PORTNAME=		webjob
PORTVERSION=		1.4.0
PORTREVISION=		1
CATEGORIES=		sysutils security
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	webjob
EXTRACT_SUFX=		.tgz

MAINTAINER=		klm@uidzero.org
COMMENT=		Download and execute a program over HTTP/HTTPS

GNU_CONFIGURE=		YES

.if defined(WITHOUT_SSL)
CONFIGURE_ARGS+=	--without-ssl
.else
USE_OPENSSL=		YES
CONFIGURE_ARGS+=	--with-ssl=${OPENSSLBASE}
.endif

.if defined(NO_STATIC)
CFLAGS+=
.else
CFLAGS+=		-static
.endif

MAN1=			webjob.1

post-install:
	@${STRIP_CMD} ${PREFIX}/bin/webjob

.include <bsd.port.mk>
