[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ports/62104: [MAINTAINER] ftp/frox: Utilize OPTIONS
- Subject: ports/62104: [MAINTAINER] ftp/frox: Utilize OPTIONS
- From: sem at ciam.ru (Sergey Matveychuk)
- Date: Thu Feb 5 12:55:57 2004
Pav Lucistnik wrote:
> I'm not sure but this still seems like reversed semantics -
> WITHOUT_LOCAL_CACHE=yes --> *disable* use of local cache
> OPTIONS LOCAL_CACHE on -> *enable* use of local cache
Yes! You're absolutely right.
I didn't understand you told about semantics.
I was so hurry to implement new OPTIONS... Sorry.
Here is a new patch again. Thanks for your attention.
--
Sem.
-------------- next part --------------
--- Makefile.orig Mon Feb 2 12:10:04 2004
+++ Makefile Mon Feb 2 12:15:20 2004
@@ -2,7 +2,7 @@
# Date created: 11 June 2002
# Whom: Sergey Matveychuk <sem_(_at_)_ciam_(_dot_)_ru>
#
-# $FreeBSD: ports/ftp/frox/Makefile,v 1.10 2004/01/26 21:52:52 sergei Exp $
+# $FreeBSD: ports/ftp/frox/Makefile,v 1.9 2004/01/19 08:16:22 krion Exp $
#
PORTNAME= frox
@@ -47,32 +47,27 @@
.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 @@
${INSTALL_SCRIPT} -m 751 ${WRKDIR}/frox.sh ${RC_DIR}/frox${RC_SUFX}; \
${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.post.mk>
Visit your host, monkey.org