2013-09-20 19:23:18 +02:00
|
|
|
# Created by: Sergey Matveychuk <sem@ciam.ru>
|
2002-06-23 09:36:16 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= frox
|
2005-03-01 08:35:03 +01:00
|
|
|
PORTVERSION= 0.7.18
|
2008-12-08 20:33:33 +01:00
|
|
|
PORTREVISION= 2
|
2002-06-23 09:36:16 +02:00
|
|
|
CATEGORIES= ftp
|
2003-08-23 23:40:19 +02:00
|
|
|
MASTER_SITES= http://www.hollo.org/frox/download/ \
|
2002-08-07 19:58:18 +02:00
|
|
|
http://frox.sourceforge.net/download/ \
|
2009-08-22 04:23:49 +02:00
|
|
|
SF
|
2002-06-23 09:36:16 +02:00
|
|
|
|
2004-07-07 21:20:02 +02:00
|
|
|
MAINTAINER= sem@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= Transparent FTP proxy with caching support
|
2002-06-23 09:36:16 +02:00
|
|
|
|
2012-10-17 17:50:53 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2002-06-23 09:36:16 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2004-01-19 09:16:22 +01:00
|
|
|
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= frox
|
2006-02-07 13:50:29 +01:00
|
|
|
SUB_FILES= pkg-message
|
2004-01-19 09:16:22 +01:00
|
|
|
|
2006-02-07 13:50:29 +01:00
|
|
|
MAN1= frox.1
|
|
|
|
MAN5= frox.conf.5
|
2002-06-23 09:36:16 +02:00
|
|
|
|
2004-08-13 09:05:34 +02:00
|
|
|
PORTDOCS= SECURITY CREDITS ChangeLog FAQ.html FAQ-1.html FAQ-2.html \
|
|
|
|
FAQ-3.html FAQ-4.html FAQ-5.html FAQ-6.html FAQ-7.html \
|
|
|
|
FAQ-8.html
|
2007-08-04 13:41:30 +02:00
|
|
|
PLIST_FILES= sbin/frox ${EXAMPLESDIR:S,${PREFIX}/,,}/frox.conf
|
|
|
|
PLIST_DIRS= ${EXAMPLESDIR:S,${PREFIX}/,,}
|
2002-06-23 09:36:16 +02:00
|
|
|
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
2003-08-23 23:40:19 +02:00
|
|
|
CONFIGURE_ARGS= --enable-configfile=${PREFIX}/etc/frox.conf
|
2002-06-23 09:36:16 +02:00
|
|
|
|
2012-10-17 17:50:53 +02:00
|
|
|
OPTIONS_DEFINE= IPFILTER PF VIRUS_SCAN HTTP_CACHE LOCAL_CACHE CCP ROOT_RUN
|
|
|
|
OPTIONS_DEFAULT= HTTP_CACHE CCP
|
2004-03-25 08:37:10 +01:00
|
|
|
|
2012-10-17 17:50:53 +02:00
|
|
|
IPFILTER_DESC= Use ipfilter instead of ipfw
|
|
|
|
PF_DESC= Build with pf(4) support
|
|
|
|
VIRUS_SCAN_DESC= Run external virus scaner on each download
|
|
|
|
HTTP_CACHE_DESC= Enable use of external cache
|
|
|
|
LOCAL_CACHE_DESC= Enable use of local cache
|
|
|
|
CCP_DESC= Ftp-proxy style command control programs
|
|
|
|
ROOT_RUN_DESC= Allow frox running as root (not recomended)
|
|
|
|
|
2013-09-20 19:23:18 +02:00
|
|
|
NO_STAGE= yes
|
2012-10-17 17:50:53 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MIPFILTER}
|
2003-08-23 23:40:19 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ipfilter
|
2002-06-23 09:36:16 +02:00
|
|
|
.endif
|
2012-10-17 17:50:53 +02:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPF}
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -DPF
|
2007-12-14 16:19:32 +01:00
|
|
|
.endif
|
2012-10-17 17:50:53 +02:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MVIRUS_SCAN}
|
2003-08-23 23:40:19 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-virus-scan
|
2003-04-07 20:26:01 +02:00
|
|
|
.endif
|
2012-10-17 17:50:53 +02:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MHTTP_CACHE}
|
2003-08-23 23:40:19 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-http-cache
|
2003-04-07 20:26:01 +02:00
|
|
|
.endif
|
2012-10-17 17:50:53 +02:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MLOCAL_CACHE}
|
2003-08-23 23:40:19 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-local-cache
|
2003-04-07 20:26:01 +02:00
|
|
|
.endif
|
2012-10-17 17:50:53 +02:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MCCP}
|
2003-08-23 23:40:19 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ccp
|
2002-06-23 09:36:16 +02:00
|
|
|
.endif
|
2012-10-17 17:50:53 +02:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MROOT_RUN}
|
2003-08-23 23:40:19 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-run-as-root
|
2002-06-23 09:36:16 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2007-08-04 13:41:30 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/frox ${PREFIX}/sbin
|
2006-02-07 13:50:29 +01:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/frox.conf ${EXAMPLESDIR}/frox.conf
|
2006-08-06 09:09:17 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/frox.man ${MANPREFIX}/man/man1/frox.1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/frox.conf.man ${MANPREFIX}/man/man5/frox.conf.5
|
2002-06-23 09:36:16 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2004-01-19 09:16:22 +01:00
|
|
|
.for f in ${PORTDOCS}
|
2003-08-23 23:40:19 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
|
2002-06-23 09:36:16 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
2007-08-04 13:41:30 +02:00
|
|
|
@${STRIP_CMD} ${PREFIX}/sbin/frox; \
|
2004-01-19 09:16:22 +01:00
|
|
|
${CAT} ${PKGMESSAGE}
|
2002-06-23 09:36:16 +02:00
|
|
|
|
2012-10-17 17:50:53 +02:00
|
|
|
.include <bsd.port.mk>
|