1999-07-04 01:20:43 +02:00
|
|
|
# New ports collection makefile for: tinyproxy
|
|
|
|
# Date created: 01 Jul 1999
|
|
|
|
# Whom: Mitsuru Yoshida <mitsuru@riken.go.jp>
|
|
|
|
#
|
1999-08-31 04:43:35 +02:00
|
|
|
# $FreeBSD$
|
1999-07-04 01:20:43 +02:00
|
|
|
#
|
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= tinyproxy
|
2005-10-23 13:20:32 +02:00
|
|
|
PORTVERSION= 1.7.0
|
1999-07-04 01:20:43 +02:00
|
|
|
CATEGORIES= www
|
2000-06-14 15:21:38 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1999-07-04 01:20:43 +02:00
|
|
|
|
2006-01-23 21:27:33 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 15:08:24 +01:00
|
|
|
COMMENT= A small, efficient HTTP proxy server
|
1999-07-04 01:20:43 +02:00
|
|
|
|
2004-04-13 00:16:03 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2001-01-23 03:08:26 +01:00
|
|
|
USE_GMAKE= yes
|
2005-10-23 13:20:32 +02:00
|
|
|
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \
|
|
|
|
--with-config=${PREFIX}/etc/tinyproxy/tinyproxy.conf \
|
|
|
|
--program-transform-name=""
|
1999-07-04 01:20:43 +02:00
|
|
|
|
|
|
|
MAN8= tinyproxy.8
|
|
|
|
|
2004-04-13 00:16:03 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-03-22 08:32:13 +01:00
|
|
|
post-patch:
|
2005-10-23 13:20:32 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|/\(etc/tinyproxy/tinyproxy.conf\)|${PREFIX}/\1|' \
|
2004-05-06 11:03:51 +02:00
|
|
|
${WRKSRC}/doc/tinyproxy.8
|
2004-04-13 00:16:03 +02:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
@${REINPLACE_CMD} -e 's|stdint.h|stdlib.h|' ${WRKSRC}/src/scanner.c
|
|
|
|
.endif
|
2002-03-22 08:32:13 +01:00
|
|
|
|
2004-05-06 11:03:51 +02:00
|
|
|
post-install:
|
|
|
|
@${SED} -e "s#%PREFIX%#${PREFIX}#" ${FILESDIR}/tinyproxy.sh > ${WRKDIR}/tinyproxy.sh
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/tinyproxy.sh ${LOCALBASE}/etc/rc.d
|
|
|
|
@${SED} -e "s#/usr/local/#${LOCALBASE}/#" ${PKGMESSAGE}
|
|
|
|
|
2004-04-13 00:16:03 +02:00
|
|
|
.include <bsd.port.post.mk>
|