+%config(noreplace) /etc/logrotate.d/metaproxy
+%config(noreplace) /etc/sysconfig/metaproxy
+
+%post
+if [ $1 = 1 ]; then
+ /sbin/chkconfig --add metaproxy
+ /sbin/service metaproxy start > /dev/null 2>&1
+else
+ /sbin/service metaproxy restart > /dev/null 2>&1
+fi
+%preun
+if [ $1 = 0 ]; then
+ /sbin/service metaproxy stop > /dev/null 2>&1
+ /sbin/chkconfig --del metaproxy
+fi
+