summaryrefslogtreecommitdiff
path: root/ftp/frox
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-02-02 13:31:07 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-02-02 13:31:07 +0000
commite77306c1cd9e87e9f36c1141dae42b8a02012421 (patch)
treebf51f18c5f09e44d7f4168ced8ca2a26a2d8aff8 /ftp/frox
parentFix build on IA64, while I am here. (diff)
- Convert to OPTIONS
PR: ports/62104 Submitted by: Sergey Matveychuk <sem@ciam.ru> (maintainer)
Notes
Notes: svn path=/head/; revision=99807
Diffstat (limited to 'ftp/frox')
-rw-r--r--ftp/frox/Makefile31
1 files changed, 13 insertions, 18 deletions
diff --git a/ftp/frox/Makefile b/ftp/frox/Makefile
index 6cdeba6a5be3..79bdf138e596 100644
--- a/ftp/frox/Makefile
+++ b/ftp/frox/Makefile
@@ -47,32 +47,27 @@ CONFIGURE_ARGS+= --enable-ipfilter
.if defined(WITH_VIRUS_SCAN)
CONFIGURE_ARGS+= --enable-virus-scan
.endif
-.if !defined(WITHOUT_HTTP_CACHE)
+.if defined(WITH_HTTP_CACHE)
CONFIGURE_ARGS+= --enable-http-cache
.endif
-.if !defined(WITHOUT_LOCAL_CACHE)
+.if defined(WITH_LOCAL_CACHE)
CONFIGURE_ARGS+= --enable-local-cache
.endif
-.if !defined(WITHOUT_CCP)
+.if defined(WITH_CCP)
CONFIGURE_ARGS+= --enable-ccp
.endif
-.if defined(RUN_AS_ROOT)
+.if defined(WITH_ROOT_RUN)
CONFIGURE_ARGS+= --enable-run-as-root
.endif
-pre-fetch:
- @${ECHO_MSG} ""
- @${ECHO_MSG} "You can use the following build options:"
- @${ECHO_MSG}
- @${ECHO_MSG} " WITH_IPFILTER=yes use ipfilter instead of ipfw;"
- @${ECHO_MSG} " WITH_VIRUS_SCAN=yes enable to run external virus scaner on each"
- @${ECHO_MSG} " download (experimental);"
- @${ECHO_MSG} " WITHOUT_HTTP_CACHE=yes disable use of external cache;"
- @${ECHO_MSG} " WITHOUT_LOCAL_CACHE=yes disable use of local cache;"
- @${ECHO_MSG} " WITHOUT_CCP=yes disable ftp-proxy style command control programs;"
- @${ECHO_MSG} " RUN_AS_ROOT=yes allow frox running as root for using"
- @${ECHO_MSG} " port number <1024 (not recomended)."
- @${ECHO_MSG} ""
+.include <bsd.port.pre.mk>
+
+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
pre-patch:
@${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-message >${PKGMESSAGE}
@@ -96,4 +91,4 @@ post-install:
${INSTALL_SCRIPT} -m 751 ${WRKDIR}/frox.sh ${RC_DIR}/frox${RC_SUFX}; \
${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>