1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/www/tinyproxy/Makefile

39 lines
1.0 KiB
Makefile
Raw Normal View History

# 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$
#
PORTNAME= tinyproxy
PORTVERSION= 1.6.2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= so14k@so14k.com
2003-02-21 14:08:24 +00:00
COMMENT= A small, efficient HTTP proxy server
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_REINPLACE= yes
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --with-config=${PREFIX}/etc/tinyproxy/tinyproxy.conf --program-transform-name=""
MAN8= tinyproxy.8
.include <bsd.port.pre.mk>
post-patch:
${REINPLACE_CMD} -e s:/etc/tinyproxy/tinyproxy.conf:${PREFIX}/etc/tinyproxy/tinyproxy.conf: \
${WRKSRC}/doc/tinyproxy.8
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|stdint.h|stdlib.h|' ${WRKSRC}/src/scanner.c
.endif
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}
.include <bsd.port.post.mk>