Makefile 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= ulogd
  5. PKG_VERSION:= 1.24
  6. PKG_RELEASE:= 7
  7. PKG_MD5SUM:= 05b4ed2926b9a22aaeaf642917bbf8ff
  8. PKG_DESCR:= Netfilter userspace logging daemon
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= iptables
  11. PKG_URL:= http://www.netfilter.org/projects/ulogd
  12. PKG_SITES:= ftp://ftp.netfilter.org/pub/ulogd/ \
  13. ftp://ftp.be.netfilter.org/pub/netfilter/ulogd/ \
  14. ftp://ftp.de.netfilter.org/pub/netfilter/ulogd/ \
  15. ftp://ftp.no.netfilter.org/pub/netfilter/ulogd/
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,ULOGD,ulogd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,ULOGD_MOD_MYSQL,ulogd-mod-mysql,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,ULOGD_MOD_PCAP,ulogd-mod-pcap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. $(eval $(call PKG_template,ULOGD_MOD_PGSQL,ulogd-mod-pgsql,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,ULOGD_MOD_SQLITE,ulogd-mod-sqlite,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. $(eval $(call PKG_template,ULOGD_MOD_EXTRA,ulogd-mod-extra,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. SUB_INSTALLS-y:=
  25. SUB_INSTALLS-m:=
  26. SUB_INSTALLS-${ADK_PACKAGE_ULOGD_MOD_PCAP}+= ulogd-mod-pcap-install
  27. SUB_INSTALLS-${ADK_PACKAGE_ULOGD_MOD_MYSQL}+= ulogd-mod-mysql-install
  28. SUB_INSTALLS-${ADK_PACKAGE_ULOGD_MOD_PGSQL}+= ulogd-mod-pgsql-install
  29. SUB_INSTALLS-${ADK_PACKAGE_ULOGD_MOD_SQLITE}+= ulogd-mod-sqlite-install
  30. SUB_INSTALLS-${ADK_PACKAGE_ULOGD_MOD_EXTRA}+= ulogd-mod-extra-install
  31. CONFIGURE_STYLE:= gnu
  32. BUILD_STYLE:= auto
  33. INSTALL_STYLE:= auto
  34. ifneq (${ADK_PACKAGE_ULOGD_MOD_PCAP},)
  35. CONFIGURE_ENV+= ac_cv_header_pcap_h=yes
  36. else
  37. CONFIGURE_ENV+= ac_cv_header_pcap_h=no
  38. endif
  39. ifneq (${ADK_PACKAGE_ULOGD_MOD_MYSQL},)
  40. CONFIGURE_ARGS+= --with-mysql=${STAGING_DIR}/usr
  41. endif
  42. ifneq (${ADK_PACKAGE_ULOGD_MOD_PGSQL},)
  43. CONFIGURE_ARGS+= --with-pgsql=${STAGING_DIR}/usr
  44. endif
  45. ifneq (${ADK_PACKAGE_ULOGD_MOD_SQLITE},)
  46. CONFIGURE_ARGS+= --with-sqlite3=${STAGING_DIR}/usr
  47. endif
  48. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  49. ${INSTALL_DIR} ${IDIR_ULOGD}/usr/sbin ${IDIR_ULOGD}/usr/lib/ulogd/
  50. ${INSTALL_DIR} ${IDIR_ULOGD}/etc
  51. ${INSTALL_DATA} ${WRKINST}/etc/ulogd.conf ${IDIR_ULOGD}/etc/
  52. ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_BASE.so ${IDIR_ULOGD}/usr/lib/ulogd/
  53. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ulogd ${IDIR_ULOGD}/usr/sbin/
  54. ulogd-mod-extra-install:
  55. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_EXTRA}/usr/lib/ulogd
  56. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_{LOCAL,LOGEMU,OPRINT,PWSNIFF,SYSLOG}.so \
  57. ${IDIR_ULOGD_MOD_EXTRA}/usr/lib/ulogd
  58. ulogd-mod-pcap-install:
  59. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_PCAP}/usr/lib/ulogd
  60. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_PCAP.so \
  61. ${IDIR_ULOGD_MOD_PCAP}/usr/lib/ulogd
  62. ulogd-mod-sqlite-install:
  63. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_SQLITE}/usr/lib/ulogd
  64. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_SQLITE3.so \
  65. ${IDIR_ULOGD_MOD_SQLITE}/usr/lib/ulogd
  66. ulogd-mod-pgsql-install:
  67. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_PGSQL}/usr/lib/ulogd
  68. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_PGSQL.so \
  69. ${IDIR_ULOGD_MOD_PGSQL}/usr/lib/ulogd
  70. ulogd-mod-mysql-install:
  71. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_MYSQL}/usr/lib/ulogd
  72. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_MYSQL.so \
  73. ${IDIR_ULOGD_MOD_MYSQL}/usr/lib/ulogd
  74. include ${TOPDIR}/mk/pkg-bottom.mk