anchor.diff:  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_append() {
  -	VERSION=`cat ${S}/VERSION`
  +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
  
positive.code: 	install -m 0644 ${S}/debian/syslog-ng-core.syslog-ng.logrotate \
  			${D}${sysconfdir}/logrotate.d/syslog-ng
  	install -m 0644 ${S}/debian/syslog-ng.conf \
  			${D}${sysconfdir}/syslog-ng/syslog-ng.conf
  	install -m 0644 ${S}/debian/tty10.linux.conf \
  			${D}${datadir}/syslog-ng/include/scl/system/tty10.conf
  
  	install -m 0755 ${B}/modules/afstomp/.libs/libafstomp.so \
  			${D}${libdir}/syslog-ng/$VERSION/
  	
  	mv ${D}${sysconfdir}/scl.conf ${D}${sysconfdir}/syslog-ng/scl.conf
  	rm ${D}${sysconfdir}/syslog-ng.conf
  
  	mv ${D}${libdir}/syslog-ng/*.so ${D}${libdir}/syslog-ng/$VERSION/
  	mv ${D}${libdir}/*.so ${D}${libdir}/syslog-ng/
  	rm ${D}${libdir}/syslog-ng/*.la
  	rm ${D}${libdir}/*.la
  	mv ${D}${sysconfdir}/patterndb.d ${D}${sysconfdir}/syslog-ng/
  	LINKLIB=$(basename $(readlink ${D}${libdir}/syslog-ng/libsyslog-ng.so))
  	chmod 0644 ${D}${libdir}/syslog-ng/${LINKLIB}
  	chmod 0644 ${D}${libdir}/syslog-ng/$VERSION/*.so
  }
  
  FILES_${PN}-mod-amqp = "${libdir}/syslog-ng/*/libafamqp.so"
  FILES_${PN}-mod-geoip = "${libdir}/syslog-ng/*/libtfgeoip.so"
  FILES_${PN}-mod-json = "${libdir}/syslog-ng/*/libjson-plugin.so"
  FILES_${PN}-mod-mongodb = "${libdir}/syslog-ng/*/libafmongodb.so"
  FILES_${PN}-mod-redis = "${libdir}/syslog-ng/*/libredis.so"
  FILES_${PN}-mod-smtp = "${libdir}/syslog-ng/*/libafsmtp.so"
  FILES_${PN}-mod-sql = "${libdir}/syslog-ng/*/libafsql.so"
  FILES_${PN}-mod-stomp = "${libdir}/syslog-ng/*/libafstomp.so"
  FILES_${PN}-dev += "\
  	${libdir}/pkgconfig/* \
  	${libdir}/syslog-ng/libsyslog-ng.so \
  	${datadir}/syslog-ng/tools/*"
  FILES_${PN}-core = "\
  	${sysconfdir}/* 				\
  	${base_libdir}/systemd/system/syslog-ng.service \
  	${bindir}/* 					\
  	${sbindir}/* 					\
  	${libdir}/syslog-ng/*/*.so 			\
  	${libdir}/syslog-ng/libsyslog-ng-*.so 		\
  	${datadir}/syslog-ng/include/* 			\
  	${datadir}/syslog-ng/xsd/*"
  FILES_${PN} += "${datadir}/*"
  FILES_${PN}-dbg += "${libdir}/syslog-ng/*/.debug/*"
  FILES_${PN}-staticdev += "${libdir}/syslog-ng/syslog-ng/libtest/*.a"
  INSANE_SKIP_${PN}-core = "dev-so"
  
  #runtime depend, follow debian/control
  
negative.code: 	file://GPL.txt;md5=133409beb2c017d3b0f406f22c5439e7 \
  	file://LGPL.txt;md5=4fbd65380cdd255951079008b364516c"
  
  PR = "r1"
  inherit debian-package
  
  #disable-build-doc_debian.patch:
  