diff options
author | sem <sem@FreeBSD.org> | 2012-10-17 23:50:53 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2012-10-17 23:50:53 +0800 |
commit | e113ada4b93c745651e3bb56037802ef73f83ec2 (patch) | |
tree | 81f80f8d7b0bd07af0c7600bc80bfe2c03abe204 /ftp/frox | |
parent | 73d11539149ce4d01f640d610a5bebe06d1a215b (diff) | |
download | freebsd-ports-gnome-e113ada4b93c745651e3bb56037802ef73f83ec2.tar.gz freebsd-ports-gnome-e113ada4b93c745651e3bb56037802ef73f83ec2.tar.zst freebsd-ports-gnome-e113ada4b93c745651e3bb56037802ef73f83ec2.zip |
- Add LICENSE
- Convert to a new OPTIONS format
Feature safe: yes
Diffstat (limited to 'ftp/frox')
-rw-r--r-- | ftp/frox/Makefile | 52 |
1 files changed, 28 insertions, 24 deletions
diff --git a/ftp/frox/Makefile b/ftp/frox/Makefile index 95390c154f7a..bea66b08b079 100644 --- a/ftp/frox/Makefile +++ b/ftp/frox/Makefile @@ -16,6 +16,8 @@ MASTER_SITES= http://www.hollo.org/frox/download/ \ MAINTAINER= sem@FreeBSD.org COMMENT= Transparent FTP proxy with caching support +LICENSE= GPLv2 + USE_BZIP2= yes USE_GMAKE= yes GNU_CONFIGURE= yes @@ -36,42 +38,44 @@ PKGMESSAGE= ${WRKDIR}/pkg-message CONFIGURE_ARGS= --enable-configfile=${PREFIX}/etc/frox.conf -OPTIONS= IPFILTER "Use ipfilter instead of ipfw" off \ - PF "Build with pf(4) support" 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> - -# Set default options -.if !defined(WITHOUT_HTTP_CACHE) -WITH_HTTP_CACHE= yes -.endif -.if !defined(WITHOUT_CCP) -WITH_CCP= yes -.endif +OPTIONS_DEFINE= IPFILTER PF VIRUS_SCAN HTTP_CACHE LOCAL_CACHE CCP ROOT_RUN +OPTIONS_DEFAULT= HTTP_CACHE CCP -.if defined(WITH_IPFILTER) +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) + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MIPFILTER} CONFIGURE_ARGS+= --enable-ipfilter .endif -.if defined(WITH_PF) + +.if ${PORT_OPTIONS:MPF} CPPFLAGS+= -DPF .endif -.if defined(WITH_VIRUS_SCAN) + +.if ${PORT_OPTIONS:MVIRUS_SCAN} CONFIGURE_ARGS+= --enable-virus-scan .endif -.if defined(WITH_HTTP_CACHE) + +.if ${PORT_OPTIONS:MHTTP_CACHE} CONFIGURE_ARGS+= --enable-http-cache .endif -.if defined(WITH_LOCAL_CACHE) + +.if ${PORT_OPTIONS:MLOCAL_CACHE} CONFIGURE_ARGS+= --enable-local-cache .endif -.if defined(WITH_CCP) + +.if ${PORT_OPTIONS:MCCP} CONFIGURE_ARGS+= --enable-ccp .endif -.if defined(WITH_ROOT_RUN) + +.if ${PORT_OPTIONS:MROOT_RUN} CONFIGURE_ARGS+= --enable-run-as-root .endif @@ -92,4 +96,4 @@ post-install: @${STRIP_CMD} ${PREFIX}/sbin/frox; \ ${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |