2002-06-23 09:36:16 +02:00
|
|
|
# New ports collection makefile for: frox
|
|
|
|
# Date created: 11 June 2002
|
|
|
|
# Whom: Sergey Matveychuk <sem@ciam.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= frox
|
2005-03-01 08:35:03 +01:00
|
|
|
PORTVERSION= 0.7.18
|
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/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
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
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-01-19 09:16:22 +01:00
|
|
|
|
2006-02-07 13:50:29 +01:00
|
|
|
USE_RC_SUBR= frox.sh
|
|
|
|
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
|
2006-02-07 13:50:29 +01: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
|
|
|
|
2004-02-03 20:32:37 +01:00
|
|
|
OPTIONS= IPFILTER "Use ipfilter instead of ipfw" off \
|
|
|
|
VIRUS_SCAN "Run external virus scaner on each download" off \
|
|
|
|
HTTP_CACHE "Enable use of external cache" on \
|
|
|
|
LOCAL_CACHE "Enable use of local cache" off \
|
|
|
|
CCP "Ftp-proxy style command control programs" on \
|
|
|
|
ROOT_RUN "Allow frox running as root (not recomended)" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-03-25 08:37:10 +01:00
|
|
|
# Set default options
|
|
|
|
.if !defined(WITHOUT_HTTP_CACHE)
|
|
|
|
WITH_HTTP_CACHE= yes
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_CCP)
|
|
|
|
WITH_CCP= yes
|
|
|
|
.endif
|
|
|
|
|
2002-06-23 09:36:16 +02:00
|
|
|
.if defined(WITH_IPFILTER)
|
2003-08-23 23:40:19 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ipfilter
|
2002-06-23 09:36:16 +02:00
|
|
|
.endif
|
2003-04-07 20:26:01 +02:00
|
|
|
.if defined(WITH_VIRUS_SCAN)
|
2003-08-23 23:40:19 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-virus-scan
|
2003-04-07 20:26:01 +02:00
|
|
|
.endif
|
2004-02-02 14:31:07 +01:00
|
|
|
.if defined(WITH_HTTP_CACHE)
|
2003-08-23 23:40:19 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-http-cache
|
2003-04-07 20:26:01 +02:00
|
|
|
.endif
|
2004-02-02 14:31:07 +01:00
|
|
|
.if defined(WITH_LOCAL_CACHE)
|
2003-08-23 23:40:19 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-local-cache
|
2003-04-07 20:26:01 +02:00
|
|
|
.endif
|
2004-02-02 14:31:07 +01:00
|
|
|
.if defined(WITH_CCP)
|
2003-08-23 23:40:19 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ccp
|
2002-06-23 09:36:16 +02:00
|
|
|
.endif
|
2004-02-02 14:31:07 +01:00
|
|
|
.if defined(WITH_ROOT_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:
|
|
|
|
${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
|
2002-06-23 09:36:16 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/frox.man ${PREFIX}/man/man1/frox.1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/frox.conf.man ${PREFIX}/man/man5/frox.conf.5
|
|
|
|
|
|
|
|
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
|
2004-01-19 09:16:22 +01:00
|
|
|
@${STRIP_CMD} ${PREFIX}/sbin/frox; \
|
|
|
|
${ECHO_MSG} "Install ${RC_DIR}/frox${RC_SUFX} startup file."; \
|
|
|
|
${CAT} ${PKGMESSAGE}
|
2002-06-23 09:36:16 +02:00
|
|
|
|
2004-02-02 14:31:07 +01:00
|
|
|
.include <bsd.port.post.mk>
|