anchor.diff:  # Empty DEBIAN_QUILT_PATCHES to avoid error "debian/patches not found"
   DEBIAN_QUILT_PATCHES = ""
   
  +# Configure base on debian/rules
   EXTRA_OECONF += " \
  +	--sysconfdir=${sysconfdir}/${DPN} \
  +	--localstatedir=${localstatedir}/lib/${DPN} \
  +	--datadir=${datadir}/${DPN} \
  +	--libdir=${libdir}/${DPN} \
   	--enable-dynamic-linking 	\
   	--with-libmongo-client=system 	\
   	--with-librabbitmq-client=no 	\
  
positive.code: 	install -d ${D}${sysconfdir}/logcheck/ignore.d.server
  	install -d ${D}${sysconfdir}/logcheck/violations.ignore.d
  	install -d ${D}${sysconfdir}/logrotate.d
  	install -d ${D}${sysconfdir}/syslog-ng/conf.d
  	install -d ${D}${libdir}/syslog-ng/$VERSION
  	install -d ${D}${libdir}/syslog-ng/syslog-ng
  	install -d ${D}${datadir}/syslog-ng
  
  	mv ${D}${libdir}/syslog-ng/libtest \
  		${D}${libdir}/syslog-ng/syslog-ng/
  	
  	mv ${D}${datadir}/include ${D}${datadir}/syslog-ng/
  	mv ${D}${datadir}/tools ${D}${datadir}/syslog-ng/
  
  	install -m 0644 ${S}/debian/syslog-ng-core.syslog-ng.default \
  			${D}${sysconfdir}/default/syslog-ng
  
negative.code: PACKAGECONFIG[hiredis] = "--enable-hiredis,--disable-hiredis,hiredis,"
  PACKAGECONFIG[eventlog] = "--enable-eventlog,--disable-eventlog,eventlog,"
  
  do_configure_append() {
  	# Arcoding Debian, the directory to install modules contains package version,
  	# so we need re-run configure with correct version from ${S}/VERSION
  	VERSION=`cat ${S}/VERSION`
  	oe_runconf --with-module-dir=${libdir}/${DPN}/$VERSION
  }
  
  #install follow debian jessie
  do_install() {
  	# Correct pkgconfigdir to /usr/lib/pkgconfig
  	oe_runmake DESTDIR=${D} \
  	           pkgconfigdir=${libdir}/pkgconfig \
  	           install
  	install -d ${D}${sysconfdir}/default
  	install -d ${D}${sysconfdir}/init
  	install -d ${D}${sysconfdir}/init.d
  