#!/bin/sh
# $FreeBSD: net/activemq/files/pkg-install.in 300897 2012-07-14 14:29:18Z beat $

ETCDIR=/usr/local/etc/activemq
ETC_FILES="activemq-command.xml  activemq-demo.xml  activemq-dynamic-network-broker1.xml  activemq-dynamic-network-broker2.xml  activemq-jdbc.xml  activemq-scalability.xml  activemq-security.xml  activemq-specjms.xml  activemq-static-network-broker1.xml  activemq-static-network-broker2.xml  activemq-stomp.xml  activemq-throughput.xml  activemq.xml  camel.xml  credentials-enc.properties  credentials.properties  jetty-realm.properties  jetty.xml  jmx.access  jmx.password  log4j.properties  logging.properties"

case $2 in
POST-INSTALL)
	for f in ${ETC_FILES}
	do
		if [ ! -f ${ETCDIR}/${f} ]; then
			/bin/cp ${ETCDIR}/${f}.sample ${ETCDIR}/${f}
		fi
	done
esac
