aboutsummaryrefslogtreecommitdiff
path: root/www/twhttpd/Makefile
blob: d0f8542299966d6b18e947a09673e4b5140b76df (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
# New ports collection makefile for:	twhttpd-1.0
# Date created: 	25 Sep 2002
# Whom:			Pieter Danhieux <opr@bsdaemon.be>
#
# $FreeBSD$
#

PORTNAME=	twhttpd
PORTVERSION=	1.01
CATEGORIES=	www
MASTER_SITES=	http://www.sunzidigital.com/samngms/twhttpd/download/
DISTNAME=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Secure HTTP Proxy

BROKEN=		Unfetchable

USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	LIBS="-lmd"

SUB_FILES=	pkg-message
SUB_LIST=	PREFIX=${PREFIX}

post-patch:
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/config.h
	@${REINPLACE_CMD} -e 's| md5\.o | |g' ${WRKSRC}/Makefile.in

do-install:
	${INSTALL_PROGRAM} -o root -g wheel -m 0755 ${WRKSRC}/twhttpd ${PREFIX}/sbin/twhttpd
	${INSTALL} -o root -g wheel -m 0755 ${WRKSRC}/rm_cache ${PREFIX}/sbin/rm_cache
	${INSTALL} -o root -g wheel -m 0700 ${WRKSRC}/twhttpd.cfg ${PREFIX}/etc/twhttpd.cfg.sample

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>