Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Sep 2014 10:55:58 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r367412 - in head/www/trafficserver: . files
Message-ID:  <201409061055.s86Atwm8027960@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Sat Sep  6 10:55:57 2014
New Revision: 367412
URL: http://svnweb.freebsd.org/changeset/ports/367412
QAT: https://qat.redports.org/buildarchive/r367412/

Log:
  - Update to 5.0.1 to fix CVE-2014-3525
  - Patch Makefile.in instead of Makefile.am to avoid USE_AUTOTOOLS
  - Add USES=cpe, USES=libtool and INSTALL_TARGET=install-strip
  - Use /var instead of PREFIX/var
  - Use @sample

Deleted:
  head/www/trafficserver/files/patch-cmd__traffic_cop__Makefile.am
  head/www/trafficserver/files/patch-example__Makefile.am
  head/www/trafficserver/files/patch-iocore__aio__Makefile.am
  head/www/trafficserver/files/patch-iocore__eventsystem__Makefile.am
  head/www/trafficserver/files/patch-lib__Makefile.am
  head/www/trafficserver/files/patch-mgmt__Makefile.am
  head/www/trafficserver/files/patch-plugins__experimental__esi__Makefile.am
  head/www/trafficserver/files/patch-plugins__experimental__spdy__Makefile.am
  head/www/trafficserver/files/patch-proxy__Makefile.am
  head/www/trafficserver/files/patch-tools__Makefile.am
Modified:
  head/www/trafficserver/Makefile
  head/www/trafficserver/distinfo
  head/www/trafficserver/files/trafficserver.in
  head/www/trafficserver/pkg-plist

Modified: head/www/trafficserver/Makefile
==============================================================================
--- head/www/trafficserver/Makefile	Sat Sep  6 10:37:55 2014	(r367411)
+++ head/www/trafficserver/Makefile	Sat Sep  6 10:55:57 2014	(r367412)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	trafficserver
-PORTVERSION=	5.0.0
+PORTVERSION=	5.0.1
 CATEGORIES=	www
 MASTER_SITES=	APACHE/${PORTNAME}
 
@@ -19,8 +19,11 @@ LIB_DEPENDS=	libboost_system.so:${PORTSD
 		libxml2.so:${PORTSDIR}/textproc/libxml2
 
 GNU_CONFIGURE=	yes
-USES=	gmake perl5 pkgconfig tar:bzip2 tcl
-USE_AUTOTOOLS=	aclocal autoconf automake libtool
+INSTALL_TARGET=	install-strip
+USES=		cpe gmake libtool perl5 pkgconfig tar:bzip2 tcl
+CPE_VENDOR=	apache
+CPE_PRODUCT=	traffic_server
+USE_PERL5=	build run fixpacklist
 USE_LDCONFIG=	yes
 USE_OPENSSL=	yes
 USE_RC_SUBR=	${PORTNAME}
@@ -29,27 +32,22 @@ USE_SQLITE=	yes
 ONLY_FOR_ARCHS=	i386 amd64
 
 USERS=		www
-GROUPS=		nogroup
+GROUPS=		www
 
-LOGDIR=		/var/log/${PORTNAME}
-
-PLIST_SUB=	LOGDIR="${LOGDIR}"
-
-LDFLAGS+=	-L${LOCALBASE}/lib
+LIBS+=		-L${LOCALBASE}/lib
 CONFIGURE_ARGS=	--with-libxml2=${LOCALBASE} \
 		--with-pcre=${LOCALBASE} \
 		--with-openssl=${OPENSSLBASE} \
 		--with-xml=libxml2 \
-		--with-lua=${LOCALBASE} --enable-luajit \
 		--with-tcl=${TCL_LIBDIR} \
-		--verbose \
+		--disable-silent-rules \
 		--enable-cppapi \
+		--enable-luajit \
+		--localstatedir=/var \
 		--with-user=${USERS} \
 		--with-group=${GROUPS}
 
-ACLOCAL_ARGS=	-I build
-
-OPTIONS_DEFINE=	WCCP INTERIM
+OPTIONS_DEFINE=	DOCS INTERIM WCCP
 OPTIONS_RADIO=	MEMMAN
 OPTIONS_RADIO_MEMMAN=	ALLOCATORS FREELISTS RECLAIM
 OPTIONS_DEFAULT=	FREELISTS
@@ -80,8 +78,23 @@ CC=		clang
 CXX=		clang++
 .endif
 
+.if ! exists(/var/cache)
+# FreeBSD 8.x
+PLIST_DIRSTRY+=	/var/cache
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} \
+		-e '/cachedir:/s,$${localstatedir}+,$${localstatedir}/cache+,' \
+		-e '/runtimedir:/s,$${localstatedir}+,$${localstatedir}/run+,' \
+		${WRKSRC}/config.layout
+	@${REINPLACE_CMD} '/^LUA_LDFLAGS =/s/$$/ @LDFLAGS@/' \
+		${WRKSRC}/lib/Makefile.in
+
 post-install:
+	@${RM} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod
+	@${RMDIR} ${STAGEDIR}${DATADIR}
 	@${MKDIR} ${STAGEDIR}${ETCDIR}/snapshots
-	@cd ${STAGEDIR}${ETCDIR} && for f in *.config *.config.xml; do ${MV} $$f $$f.default; done
+	(cd ${STAGEDIR}${ETCDIR} && for f in *.config *.config.xml; do ${MV} $$f $$f.sample; done)
 
 .include <bsd.port.mk>

Modified: head/www/trafficserver/distinfo
==============================================================================
--- head/www/trafficserver/distinfo	Sat Sep  6 10:37:55 2014	(r367411)
+++ head/www/trafficserver/distinfo	Sat Sep  6 10:55:57 2014	(r367412)
@@ -1,2 +1,2 @@
-SHA256 (trafficserver-5.0.0.tar.bz2) = 2fce878bdb8072c9434a7acb6510752a969877541af082360f28e2caf64ba547
-SIZE (trafficserver-5.0.0.tar.bz2) = 7440958
+SHA256 (trafficserver-5.0.1.tar.bz2) = dfbdfef7240d9462f4b5eb0a68f71ae49e21ef0b0fa4b20f8e9f2dc2cd321621
+SIZE (trafficserver-5.0.1.tar.bz2) = 7440366

Modified: head/www/trafficserver/files/trafficserver.in
==============================================================================
--- head/www/trafficserver/files/trafficserver.in	Sat Sep  6 10:37:55 2014	(r367411)
+++ head/www/trafficserver/files/trafficserver.in	Sat Sep  6 10:55:57 2014	(r367412)
@@ -12,9 +12,9 @@
 rcvar=trafficserver_enable
 name="trafficserver"
 trafficserver_enable=${trafficserver_enable:-"NO"}
-trafficserver_tm_pidfile=${trafficserver_tm_pidfile:-"/usr/local/var/trafficserver/manager.lock"}
-trafficserver_ts_pidfile=${trafficserver_ts_pidfile:-"/usr/local/var/trafficserver/server.lock"}
-pidfile="/var/run/traffic_cop.lock"
+trafficserver_tm_pidfile=${trafficserver_tm_pidfile:-"/var/run/trafficserver/manager.lock"}
+trafficserver_ts_pidfile=${trafficserver_ts_pidfile:-"/var/run/trafficserver/server.lock"}
+pidfile="/var/run/trafficserver/cop.lock"
 stop_cmd="trafficserver_stop"
 command=/usr/sbin/daemon
 command_args="-p ${pidfile} %%PREFIX%%/bin/traffic_cop"

Modified: head/www/trafficserver/pkg-plist
==============================================================================
--- head/www/trafficserver/pkg-plist	Sat Sep  6 10:37:55 2014	(r367411)
+++ head/www/trafficserver/pkg-plist	Sat Sep  6 10:55:57 2014	(r367412)
@@ -1,24 +1,3 @@
-@unexec if cmp -s %D/%%ETCDIR%%/cache.config %D/%%ETCDIR%%/cache.config.default; then rm %D/%%ETCDIR%%/cache.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/cluster.config %D/%%ETCDIR%%/cluster.config.default; then rm %D/%%ETCDIR%%/cluster.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/congestion.config %D/%%ETCDIR%%/congestion.config.default; then rm %D/%%ETCDIR%%/congestion.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/hosting.config %D/%%ETCDIR%%/hosting.config.default; then rm %D/%%ETCDIR%%/hosting.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/icp.config %D/%%ETCDIR%%/icp.config.default; then rm %D/%%ETCDIR%%/icp.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/ip_allow.config %D/%%ETCDIR%%/ip_allow.config.default; then rm %D/%%ETCDIR%%/ip_allow.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/log_hosts.config %D/%%ETCDIR%%/log_hosts.config.default; then rm %D/%%ETCDIR%%/log_hosts.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/logs_xml.config %D/%%ETCDIR%%/logs_xml.config.default; then rm %D/%%ETCDIR%%/logs_xml.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/parent.config %D/%%ETCDIR%%/parent.config.default; then rm %D/%%ETCDIR%%/parent.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/plugin.config %D/%%ETCDIR%%/plugin.config.default; then rm %D/%%ETCDIR%%/plugin.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/prefetch.config %D/%%ETCDIR%%/prefetch.config.default; then rm %D/%%ETCDIR%%/prefetch.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/records.config %D/%%ETCDIR%%/records.config.default; then rm %D/%%ETCDIR%%/records.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/remap.config %D/%%ETCDIR%%/remap.config.default; then rm %D/%%ETCDIR%%/remap.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/socks.config %D/%%ETCDIR%%/socks.config.default; then rm %D/%%ETCDIR%%/socks.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/splitdns.config %D/%%ETCDIR%%/splitdns.config.default; then rm %D/%%ETCDIR%%/splitdns.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/ssl_multicert.config %D/%%ETCDIR%%/ssl_multicert.config.default; then rm %D/%%ETCDIR%%/ssl_multicert.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/stats.config.xml %D/%%ETCDIR%%/stats.config.xml.default; then rm %D/%%ETCDIR%%/stats.config.xml; fi
-@unexec if cmp -s %D/%%ETCDIR%%/storage.config %D/%%ETCDIR%%/storage.config.default; then rm %D/%%ETCDIR%%/storage.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/update.config %D/%%ETCDIR%%/update.config.default; then rm %D/%%ETCDIR%%/update.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/vaddrs.config %D/%%ETCDIR%%/vaddrs.config.default; then rm %D/%%ETCDIR%%/vaddrs.config; fi
-@unexec if cmp -s %D/%%ETCDIR%%/volume.config %D/%%ETCDIR%%/volume.config.default; then rm %D/%%ETCDIR%%/volume.config; fi
 @unexec if [ ! -s %D/%%ETCDIR%%/proxy.pac ]; then rm -f %D/%%ETCDIR%%/proxy.pac; fi
 bin/traffic_cop
 bin/traffic_line
@@ -27,14 +6,64 @@ bin/traffic_logstats
 bin/traffic_manager
 bin/traffic_sac
 bin/traffic_server
+bin/traffic_top
 bin/trafficserver
 bin/tspush
 bin/tstop
 bin/tsxs
-include/ts/experimental.h
-include/ts/mgmtapi.h
-include/ts/remap.h
-include/ts/ts.h
+%%ETCDIR%%/trafficserver-release
+@owner www
+@group www
+%%ETCDIR%%/body_factory/default/.body_factory_info
+%%ETCDIR%%/body_factory/default/README
+%%ETCDIR%%/body_factory/default/access#denied
+%%ETCDIR%%/body_factory/default/access#proxy_auth_required
+%%ETCDIR%%/body_factory/default/access#redirect_url
+%%ETCDIR%%/body_factory/default/access#ssl_forbidden
+%%ETCDIR%%/body_factory/default/cache#not_in_cache
+%%ETCDIR%%/body_factory/default/cache#read_error
+%%ETCDIR%%/body_factory/default/congestion#retryAfter
+%%ETCDIR%%/body_factory/default/connect#dns_failed
+%%ETCDIR%%/body_factory/default/connect#failed_connect
+%%ETCDIR%%/body_factory/default/connect#hangup
+%%ETCDIR%%/body_factory/default/default
+%%ETCDIR%%/body_factory/default/interception#no_host
+%%ETCDIR%%/body_factory/default/redirect#moved_temporarily
+%%ETCDIR%%/body_factory/default/request#cycle_detected
+%%ETCDIR%%/body_factory/default/request#invalid_content_length
+%%ETCDIR%%/body_factory/default/request#no_content_length
+%%ETCDIR%%/body_factory/default/request#no_host
+%%ETCDIR%%/body_factory/default/request#scheme_unsupported
+%%ETCDIR%%/body_factory/default/request#syntax_error
+%%ETCDIR%%/body_factory/default/response#bad_response
+%%ETCDIR%%/body_factory/default/response#bad_version
+%%ETCDIR%%/body_factory/default/timeout#activity
+%%ETCDIR%%/body_factory/default/timeout#inactivity
+%%ETCDIR%%/body_factory/default/transcoding#unsupported
+%%ETCDIR%%/body_factory/default/urlrouting#no_mapping
+@sample %%ETCDIR%%/cache.config.sample
+@sample %%ETCDIR%%/cluster.config.sample
+@sample %%ETCDIR%%/congestion.config.sample
+@sample %%ETCDIR%%/hosting.config.sample
+@sample %%ETCDIR%%/icp.config.sample
+@sample %%ETCDIR%%/ip_allow.config.sample
+@sample %%ETCDIR%%/log_hosts.config.sample
+@sample %%ETCDIR%%/logs_xml.config.sample
+@sample %%ETCDIR%%/parent.config.sample
+@sample %%ETCDIR%%/plugin.config.sample
+@sample %%ETCDIR%%/prefetch.config.sample
+@sample %%ETCDIR%%/records.config.sample
+@sample %%ETCDIR%%/remap.config.sample
+@sample %%ETCDIR%%/socks.config.sample
+@sample %%ETCDIR%%/splitdns.config.sample
+@sample %%ETCDIR%%/ssl_multicert.config.sample
+@sample %%ETCDIR%%/stats.config.xml.sample
+@sample %%ETCDIR%%/storage.config.sample
+@sample %%ETCDIR%%/update.config.sample
+@sample %%ETCDIR%%/vaddrs.config.sample
+@sample %%ETCDIR%%/volume.config.sample
+@owner root
+@group wheel
 include/atscppapi/Async.h
 include/atscppapi/AsyncHttpFetch.h
 include/atscppapi/AsyncTimer.h
@@ -47,6 +76,7 @@ include/atscppapi/Headers.h
 include/atscppapi/HttpMethod.h
 include/atscppapi/HttpStatus.h
 include/atscppapi/HttpVersion.h
+include/atscppapi/InterceptPlugin.h
 include/atscppapi/Logger.h
 include/atscppapi/Mutex.h
 include/atscppapi/Plugin.h
@@ -57,132 +87,111 @@ include/atscppapi/Response.h
 include/atscppapi/Stat.h
 include/atscppapi/Transaction.h
 include/atscppapi/TransactionPlugin.h
+include/atscppapi/TransformationPlugin.h
 include/atscppapi/Url.h
 include/atscppapi/noncopyable.h
 include/atscppapi/shared_ptr.h
 include/atscppapi/utils.h
-lib/libatscppapi.la
+include/ts/apidefs.h     
+include/ts/experimental.h
+include/ts/mgmtapi.h
+include/ts/remap.h
+include/ts/ts.h
 lib/libatscppapi.so
 lib/libatscppapi.so.5
-lib/libtsmgmt.la
+lib/libatscppapi.so.5.0.1
 lib/libtsmgmt.so
 lib/libtsmgmt.so.5
-lib/libtsmgmtshare.la
+lib/libtsmgmt.so.5.0.1
 lib/libtsmgmtshare.so
 lib/libtsmgmtshare.so.5
-lib/libtsutil.la
+lib/libtsmgmtshare.so.5.0.1
 lib/libtsutil.so
 lib/libtsutil.so.5
-libexec/trafficserver/cacheurl.la
+lib/libtsutil.so.5.0.1
+libexec/trafficserver/AsyncHttpFetch.so
+libexec/trafficserver/AsyncTimer.so
+libexec/trafficserver/ClientRedirect.so
+libexec/trafficserver/ClientRequest.so
+libexec/trafficserver/CustomResponse.so
+libexec/trafficserver/GlobalHookPlugin.so
+libexec/trafficserver/GzipTransformationPlugin.so
+libexec/trafficserver/HelloWorldPlugin.so
+libexec/trafficserver/InternalTransactionHandling.so
+libexec/trafficserver/LoggerExample.so
+libexec/trafficserver/MultipleTransactionHookPlugins.so
+libexec/trafficserver/NullTransformationPlugin.so
+libexec/trafficserver/PostBuffer.so
+libexec/trafficserver/RemapPlugin.so
+libexec/trafficserver/ServerResponse.so
+libexec/trafficserver/StatExample.so
+libexec/trafficserver/TimeoutExamplePlugin.so
+libexec/trafficserver/TransactionHookPlugin.so
+libexec/trafficserver/boom.so
 libexec/trafficserver/cacheurl.so
-libexec/trafficserver/conf_remap.la
 libexec/trafficserver/conf_remap.so
-libexec/trafficserver/gzip.la
 libexec/trafficserver/gzip.so
-libexec/trafficserver/libloader.la
+libexec/trafficserver/header_rewrite.so
+libexec/trafficserver/intercept.so
 libexec/trafficserver/libloader.so
-libexec/trafficserver/regex_remap.la
 libexec/trafficserver/regex_remap.so
-libexec/trafficserver/stats_over_http.la
 libexec/trafficserver/stats_over_http.so
+libexec/trafficserver/tcpinfo.so
 %%SITE_PERL%%/Apache/TS.pm
+%%SITE_PERL%%/Apache/TS.pm.in
 %%SITE_PERL%%/Apache/TS/AdminClient.pm
 %%SITE_PERL%%/Apache/TS/Config.pm
 %%SITE_PERL%%/Apache/TS/Config/Records.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache/TS/.packlist
 %%PERL5_MAN3%%/Apache::TS.3.gz
 %%PERL5_MAN3%%/Apache::TS::AdminClient.3.gz
 %%PERL5_MAN3%%/Apache::TS::Config::Records.3.gz
-@owner www
-%%ETCDIR%%/body_factory/default/.body_factory_info
-%%ETCDIR%%/body_factory/default/README
-%%ETCDIR%%/body_factory/default/access#denied
-%%ETCDIR%%/body_factory/default/access#proxy_auth_required
-%%ETCDIR%%/body_factory/default/access#redirect_url
-%%ETCDIR%%/body_factory/default/access#ssl_forbidden
-%%ETCDIR%%/body_factory/default/cache#not_in_cache
-%%ETCDIR%%/body_factory/default/cache#read_error
-%%ETCDIR%%/body_factory/default/congestion#retryAfter
-%%ETCDIR%%/body_factory/default/connect#dns_failed
-%%ETCDIR%%/body_factory/default/connect#failed_connect
-%%ETCDIR%%/body_factory/default/connect#hangup
-%%ETCDIR%%/body_factory/default/default
-%%ETCDIR%%/body_factory/default/interception#no_host
-%%ETCDIR%%/body_factory/default/redirect#moved_temporarily
-%%ETCDIR%%/body_factory/default/request#cycle_detected
-%%ETCDIR%%/body_factory/default/request#no_content_length
-%%ETCDIR%%/body_factory/default/request#no_host
-%%ETCDIR%%/body_factory/default/request#scheme_unsupported
-%%ETCDIR%%/body_factory/default/request#syntax_error
-%%ETCDIR%%/body_factory/default/response#bad_response
-%%ETCDIR%%/body_factory/default/response#bad_version
-%%ETCDIR%%/body_factory/default/timeout#activity
-%%ETCDIR%%/body_factory/default/timeout#inactivity
-%%ETCDIR%%/body_factory/default/transcoding#unsupported
-%%ETCDIR%%/body_factory/default/urlrouting#no_mapping
-%%ETCDIR%%/cache.config.default
-%%ETCDIR%%/cluster.config.default
-%%ETCDIR%%/congestion.config.default
-%%ETCDIR%%/hosting.config.default
-%%ETCDIR%%/icp.config.default
-%%ETCDIR%%/ip_allow.config.default
-%%ETCDIR%%/log_hosts.config.default
-%%ETCDIR%%/logs_xml.config.default
-%%ETCDIR%%/parent.config.default
-%%ETCDIR%%/plugin.config.default
-%%ETCDIR%%/prefetch.config.default
-%%ETCDIR%%/records.config.default
-%%ETCDIR%%/remap.config.default
-%%ETCDIR%%/socks.config.default
-%%ETCDIR%%/splitdns.config.default
-%%ETCDIR%%/ssl_multicert.config.default
-%%ETCDIR%%/stats.config.xml.default
-%%ETCDIR%%/storage.config.default
-%%ETCDIR%%/update.config.default
-%%ETCDIR%%/vaddrs.config.default
-%%ETCDIR%%/volume.config.default
-@exec mkdir -p %D/%%ETCDIR%%/snapshots
-@exec chown -f www %D/%%ETCDIR%%/snapshots
-@owner root
-%%ETCDIR%%/trafficserver-release
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_alarms.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_cache-stats.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_cache.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_cluster.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_dns-resolver.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_dns-stats.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_hostdb-stats.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_hostdb.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_http-stats.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_http-trans-stats.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_http.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_icp-stats.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_icp.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_logging-stats.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_logging.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_network.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_parent.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_port-tunnels.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_proxy-stats.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_proxy.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_remap.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_scheduled-update.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_security.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_socks.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_ssl.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_status.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_version.1
+%%PORTDOCS%%%%DOCSDIR%%/trafficshell/show_virtual-ip.1
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/trafficshell
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache/TS
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache
 @dirrm %%SITE_PERL%%/Apache/TS/Config
 @dirrm %%SITE_PERL%%/Apache/TS
 @dirrm %%SITE_PERL%%/Apache
 @dirrm libexec/trafficserver
 @dirrm include/ts
 @dirrm include/atscppapi
+@owner www
+@group www
 @dirrm %%ETCDIR%%/body_factory/default
 @dirrmtry %%ETCDIR%%/body_factory
 @dirrmtry %%ETCDIR%%/snapshots
 @dirrmtry %%ETCDIR%%
-@unexec rmdir "%%LOGDIR%%" 2>/dev/null || true
-@exec mkdir -p "%%LOGDIR%%"
-@exec chown -f www "%%LOGDIR%%"
-@exec chmod 700 "%%LOGDIR%%"
-@unexec rmdir "%%VARDIR%%" 2>/dev/null || true
-@exec mkdir -p "%%VARDIR%%"
-@exec chown -f www "%%VARDIR%%"
-@exec chmod 700 "%%VARDIR%%"
-@exec chown -f www %D/%%ETCDIR%%
-@exec chmod 700 %D/%%ETCDIR%%
-@exec if [ ! -f %D/%%ETCDIR%%/cache.config ]; then cp -p %D/%%ETCDIR%%/cache.config.default %D/%%ETCDIR%%/cache.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/cluster.config ]; then cp -p %D/%%ETCDIR%%/cluster.config.default %D/%%ETCDIR%%/cluster.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/congestion.config ]; then cp -p %D/%%ETCDIR%%/congestion.config.default %D/%%ETCDIR%%/congestion.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/hosting.config ]; then cp -p %D/%%ETCDIR%%/hosting.config.default %D/%%ETCDIR%%/hosting.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/icp.config ]; then cp -p %D/%%ETCDIR%%/icp.config.default %D/%%ETCDIR%%/icp.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/ip_allow.config ]; then cp -p %D/%%ETCDIR%%/ip_allow.config.default %D/%%ETCDIR%%/ip_allow.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/log_hosts.config ]; then cp -p %D/%%ETCDIR%%/log_hosts.config.default %D/%%ETCDIR%%/log_hosts.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/logs_xml.config ]; then cp -p %D/%%ETCDIR%%/logs_xml.config.default %D/%%ETCDIR%%/logs_xml.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/parent.config ]; then cp -p %D/%%ETCDIR%%/parent.config.default %D/%%ETCDIR%%/parent.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/plugin.config ]; then cp -p %D/%%ETCDIR%%/plugin.config.default %D/%%ETCDIR%%/plugin.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/prefetch.config ]; then cp -p %D/%%ETCDIR%%/prefetch.config.default %D/%%ETCDIR%%/prefetch.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/records.config ]; then cp -p %D/%%ETCDIR%%/records.config.default %D/%%ETCDIR%%/records.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/remap.config ]; then cp -p %D/%%ETCDIR%%/remap.config.default %D/%%ETCDIR%%/remap.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/socks.config ]; then cp -p %D/%%ETCDIR%%/socks.config.default %D/%%ETCDIR%%/socks.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/splitdns.config ]; then cp -p %D/%%ETCDIR%%/splitdns.config.default %D/%%ETCDIR%%/splitdns.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/ssl_multicert.config ]; then cp -p %D/%%ETCDIR%%/ssl_multicert.config.default %D/%%ETCDIR%%/ssl_multicert.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/stats.config.xml ]; then cp -p %D/%%ETCDIR%%/stats.config.xml.default %D/%%ETCDIR%%/stats.config.xml; fi
-@exec if [ ! -f %D/%%ETCDIR%%/storage.config ]; then cp -p %D/%%ETCDIR%%/storage.config.default %D/%%ETCDIR%%/storage.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/update.config ]; then cp -p %D/%%ETCDIR%%/update.config.default %D/%%ETCDIR%%/update.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/vaddrs.config ]; then cp -p %D/%%ETCDIR%%/vaddrs.config.default %D/%%ETCDIR%%/vaddrs.config; fi
-@exec if [ ! -f %D/%%ETCDIR%%/volume.config ]; then cp -p %D/%%ETCDIR%%/volume.config.default %D/%%ETCDIR%%/volume.config; fi
-@exec chmod -f 600 %D/%%ETCDIR%%/*.config
+@dirrmtry /var/cache/trafficserver
+@dirrmtry /var/log/trafficserver
+@dirrmtry /var/run/trafficserver
+@owner root
+@group wheel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409061055.s86Atwm8027960>