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
|
2004-03-05 14:43:40 +01:00
|
|
|
PORTVERSION= 0.7.13
|
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
|
|
|
|
|
|
|
MAINTAINER= sem@ciam.ru
|
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
|
2004-01-19 09:16:22 +01:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
|
|
|
|
USE_RC_SUBR= yes
|
|
|
|
RC_DIR?= ${PREFIX}/etc/rc.d
|
|
|
|
RC_SUFX?= .sh
|
|
|
|
SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
|
|
-e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
|
|
|
|
-e 's|%%RC_DIR%%|${RC_DIR}|g' \
|
|
|
|
-e 's|%%RC_SUFX%%|${RC_SUFX}|g'
|
|
|
|
|
|
|
|
PLIST_SUB+= RC_DIR=${RC_DIR} RC_SUFX=${RC_SUFX}
|
2002-06-23 09:36:16 +02:00
|
|
|
|
|
|
|
MAN1= frox.1
|
|
|
|
MAN5= frox.conf.5
|
|
|
|
|
2004-01-19 09:16:22 +01:00
|
|
|
PORTDOCS= FAQ SECURITY CREDITS ChangeLog
|
2004-01-26 22:52:52 +01:00
|
|
|
PLIST_FILES= sbin/frox etc/frox.conf.sample etc/rc.d/frox.sh
|
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
|
2004-03-12 10:05:39 +01:00
|
|
|
WITH_HTTP_CACHE?= yes
|
|
|
|
WITH_CCP?= yes
|
2004-02-03 20:32:37 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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
|
|
|
|
|
|
|
|
pre-patch:
|
2004-01-19 09:16:22 +01:00
|
|
|
@${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-message >${PKGMESSAGE}
|
|
|
|
@${SED} ${SED_SCRIPT} ${FILESDIR}/frox.sh > ${WRKDIR}/frox.sh
|
2002-06-23 09:36:16 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/frox ${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/frox.conf ${PREFIX}/etc/frox.conf.sample
|
|
|
|
${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."; \
|
|
|
|
${INSTALL_SCRIPT} -m 751 ${WRKDIR}/frox.sh ${RC_DIR}/frox${RC_SUFX}; \
|
|
|
|
${CAT} ${PKGMESSAGE}
|
2002-06-23 09:36:16 +02:00
|
|
|
|
2004-02-02 14:31:07 +01:00
|
|
|
.include <bsd.port.post.mk>
|