freebsd-ports/www/tinyproxy/Makefile
Ion-Mihai Tetcu 8b0082350e - Now users an rcNG script.
- Removes the (now) un-necessary pkg-message.
- Moves the configuration file to ${PREFIX}/etc/tinyproxy.conf
- bump PORTREVISION for above
- Pass maintainership to submiter.

Tinyproxy now installs a rcNG script.  To enable tinyproxy at boot
time, set the following in rc.conf(5):
  tinyproxy_enable="YES"
The confiration file for tinyproxy has been moved to
${PREFIX}/etc/tinyproxy.conf.  Any old configuration files will need
to be migrated over to the new location.

PR:		ports/96720
Submitted by:	Wesley Shields <wxs@csh.rit.edu> (new maintainer)
Approved by:	lawrance (mentor)
2006-05-16 12:29:42 +00:00

43 lines
1 KiB
Makefile

# New ports collection makefile for: tinyproxy
# Date created: 01 Jul 1999
# Whom: Mitsuru Yoshida <mitsuru@riken.go.jp>
#
# $FreeBSD$
#
PORTNAME= tinyproxy
PORTVERSION= 1.7.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= wxs@csh.rit.edu
COMMENT= A small, efficient HTTP proxy server
USE_RC_SUBR= tinyproxy.sh
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \
--with-config=${PREFIX}/etc/tinyproxy.conf \
--program-transform-name=""
MAN8= tinyproxy.8
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/etc/tinyproxy/tinyproxy.conf|${PREFIX}/etc/tinyproxy.conf|' \
${WRKSRC}/doc/tinyproxy.8
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|stdint.h|stdlib.h|' ${WRKSRC}/src/scanner.c
.endif
post-install:
@if [ ! -f ${PREFIX}/etc/tinyproxy.conf ]; then \
${CP} -p ${PREFIX}/etc/tinyproxy.conf-dist \
${PREFIX}/etc/tinyproxy.conf ; \
fi
.include <bsd.port.post.mk>