#!/bin/sh
# $FreeBSD: tags/RELEASE_9_1_0/net/activemq/files/pkg-deinstall.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  broker-localhost.cert  broker.ks  broker.ts  camel.xml  client.ks  client.ts  credentials-enc.properties  credentials.properties  jetty-realm.properties  jetty.xml  jmx.access  jmx.password  log4j.properties  logging.properties"

case $2 in
DEINSTALL)
	for f in ${ETC_FILES}
	do
		/usr/bin/cmp -s ${ETCDIR}/${f}.sample \
			${ETCDIR}/${f} \
			&& /bin/rm -f ${ETCDIR}/${f}
	done
esac
