anchor.diff:  	mkdir -p ${D}${sysconfdir}/logwatch/conf/logfiles/ \
   	         ${D}${sysconfdir}/logwatch/scripts/services/ \
   	         ${D}${sysconfdir}/logwatch/conf/services/
  -	cp ${S}/seaudit/seaudit-report-group.conf \
  +	# 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/
  -	cp ${S}/seaudit/seaudit-report-service \
  +	test -f ${S}/seaudit/seaudit-report-service && \
  +	    cp ${S}/seaudit/seaudit-report-service \
   	         ${D}${sysconfdir}/logwatch/scripts/services/
  -	cp ${S}/seaudit/seaudit-report-service.conf \
  +	test -f ${S}/seaudit/seaudit-report-service.conf && \
  +	    cp ${S}/seaudit/seaudit-report-service.conf \
   	         ${D}${sysconfdir}/logwatch/conf/services/
   
  -	mkdir -p ${D}${datadir}/menu
  -	cp ${S}/debian/setools-gui.menu ${D}${datadir}/menu/setools-gui
  +	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
  
positive.code:                  --with-selinux-devel=${STAGING_LIBDIR}/.."
  
  EXTRA_OECONF_append_class-native = " \
      --with-tk=${STAGING_LIBDIR_NATIVE}/tk8.6 \
      --with-tcl=${STAGING_LIBDIR_NATIVE}/tcl8.6 \
  "
  
  # need to export these variables for python-config to work
  export BUILD_SYS
  
negative.code: security policy on SELinux systems."
  HOMEPAGE = "http://oss.tresys.com/projects/setools"
  
  PR = "r3"
  
  inherit debian-package
  
  