anchor.diff:  security policy on SELinux systems."
   HOMEPAGE = "http://oss.tresys.com/projects/setools"
   
  -PR = "r2"
  +PR = "r3"
   
   inherit debian-package
   
  
positive.code: 	# Fix permission follow debian/rules
  	find ${D}${libdir}/setools/ -type f -name '*.tcl' -exec chmod -x {} \;
  	find ${D}${libdir}/setools/ -type f -name '*.tcl' -exec chmod -x {} \;
  	chmod +x ${D}${sysconfdir}/logwatch/scripts/services/seaudit-report-service
  	chmod +x ${D}${datadir}/setools/3.3/seaudit-report-service
  }
  
  PACKAGE_BEFORE_PN =+ "libapol libpoldiff libqpol libseaudit libsefs \
  
negative.code: 	mkdir -p ${D}${sysconfdir}/logwatch/conf/logfiles/ \
  	         ${D}${sysconfdir}/logwatch/scripts/services/ \
  	         ${D}${sysconfdir}/logwatch/conf/services/
  	# seaudit will be built if gui is enabled,
  	# we need check if files existed before install
  	test -f ${S}/seaudit/seaudit-report-group.conf && \
  	    cp ${S}/seaudit/seaudit-report-group.conf \
  	         ${D}${sysconfdir}/logwatch/conf/logfiles/
  	test -f ${S}/seaudit/seaudit-report-service && \
  	    cp ${S}/seaudit/seaudit-report-service \
  	         ${D}${sysconfdir}/logwatch/scripts/services/
  	test -f ${S}/seaudit/seaudit-report-service.conf && \
  	    cp ${S}/seaudit/seaudit-report-service.conf \
  	         ${D}${sysconfdir}/logwatch/conf/services/
  
  	test -f ${S}/debian/setools-gui.menu && \
  	    mkdir -p ${D}${datadir}/menu && \
  	    cp ${S}/debian/setools-gui.menu ${D}${datadir}/menu/setools-gui
  
  	# Remove unnecessary files
  	find ${D}${libdir} -name '*.pyc' -delete
  