1999-07-03 23:20:43 +00:00
|
|
|
# New ports collection makefile for: tinyproxy
|
|
|
|
# Date created: 01 Jul 1999
|
|
|
|
# Whom: Mitsuru Yoshida <mitsuru@riken.go.jp>
|
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1999-07-03 23:20:43 +00:00
|
|
|
#
|
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= tinyproxy
|
2004-04-12 22:16:03 +00:00
|
|
|
PORTVERSION= 1.6.2
|
1999-07-03 23:20:43 +00:00
|
|
|
CATEGORIES= www
|
2000-06-14 13:21:38 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1999-07-03 23:20:43 +00:00
|
|
|
|
2004-05-06 09:03:51 +00:00
|
|
|
MAINTAINER= so14k@so14k.com
|
2003-02-21 14:08:24 +00:00
|
|
|
COMMENT= A small, efficient HTTP proxy server
|
1999-07-03 23:20:43 +00:00
|
|
|
|
2004-04-12 22:16:03 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2001-01-23 02:08:26 +00:00
|
|
|
USE_GMAKE= yes
|
2004-04-12 22:16:03 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --with-config=${PREFIX}/etc/tinyproxy/tinyproxy.conf --program-transform-name=""
|
1999-07-03 23:20:43 +00:00
|
|
|
|
|
|
|
MAN8= tinyproxy.8
|
|
|
|
|
2004-04-12 22:16:03 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-03-22 07:32:13 +00:00
|
|
|
post-patch:
|
2004-05-06 09:03:51 +00:00
|
|
|
${REINPLACE_CMD} -e s:/etc/tinyproxy/tinyproxy.conf:${PREFIX}/etc/tinyproxy/tinyproxy.conf: \
|
|
|
|
${WRKSRC}/doc/tinyproxy.8
|
2004-04-12 22:16:03 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
@${REINPLACE_CMD} -e 's|stdint.h|stdlib.h|' ${WRKSRC}/src/scanner.c
|
|
|
|
.endif
|
2002-03-22 07:32:13 +00:00
|
|
|
|
2004-05-06 09:03:51 +00: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-12 22:16:03 +00:00
|
|
|
.include <bsd.port.post.mk>
|