Makefile 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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:= 2.0.0beta4
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 21143aecf8e39008d143a0fb0f742b0c
  8. PKG_DESCR:= Netfilter userspace logging daemon
  9. PKG_SECTION:= firewall
  10. PKG_DEPENDS:= iptables libnetfilter-conntrack libnetfilter-log
  11. PKG_BUILDDEP:= iptables libnetfilter_conntrack libnetfilter_log
  12. PKG_URL:= http://www.netfilter.org/projects/ulogd/
  13. PKG_SITES:= http://www.netfilter.org/projects/ulogd/files/
  14. PKG_MULTI:= 1
  15. PKG_NOPARALLEL:= 1
  16. PKG_SUBPKGS:= ULOGD ULOGD_MOD_MYSQL ULOGD_MOD_PCAP ULOGD_MOD_PGSQL ULOGD_MOD_SQLITE ULOGD_MOD_EXTRA
  17. PKGSB_ULOGD_MOD_MYSQL:= mysql
  18. PKGSB_ULOGD_MOD_PGSQL:= postgresql
  19. PKGSB_ULOGD_MOD_SQLITE:= sqlite
  20. PKG_HOST_DEPENDS:= !cygwin
  21. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,ULOGD,ulogd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,ULOGD_MOD_MYSQL,ulogd-mod-mysql,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,ULOGD_MOD_PCAP,ulogd-mod-pcap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,ULOGD_MOD_PGSQL,ulogd-mod-pgsql,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. $(eval $(call PKG_template,ULOGD_MOD_SQLITE,ulogd-mod-sqlite,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  28. $(eval $(call PKG_template,ULOGD_MOD_EXTRA,ulogd-mod-extra,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  29. SUB_INSTALLS-y:=
  30. SUB_INSTALLS-m:=
  31. SUB_INSTALLS-${ADK_PACKAGE_ULOGD_MOD_MYSQL}+= ulogd-mod-mysql-install
  32. SUB_INSTALLS-${ADK_PACKAGE_ULOGD_MOD_PGSQL}+= ulogd-mod-pgsql-install
  33. SUB_INSTALLS-${ADK_PACKAGE_ULOGD_MOD_SQLITE}+= ulogd-mod-sqlite-install
  34. SUB_INSTALLS-${ADK_PACKAGE_ULOGD_MOD_EXTRA}+= ulogd-mod-extra-install
  35. TCFLAGS+= -fPIC
  36. ifneq (${ADK_PACKAGE_ULOGD_MOD_MYSQL},)
  37. CONFIGURE_ARGS+= --with-mysql=${STAGING_DIR}/usr
  38. endif
  39. ifneq (${ADK_PACKAGE_ULOGD_MOD_PGSQL},)
  40. CONFIGURE_ARGS+= --with-pgsql=${STAGING_DIR}/usr
  41. endif
  42. ifneq (${ADK_PACKAGE_ULOGD_MOD_SQLITE},)
  43. CONFIGURE_ARGS+= --with-sqlite3=${STAGING_DIR}/usr
  44. endif
  45. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  46. ${INSTALL_DIR} ${IDIR_ULOGD}/usr/sbin ${IDIR_ULOGD}/usr/lib/ulogd/
  47. ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_raw2packet_BASE.so \
  48. ${IDIR_ULOGD}/usr/lib/ulogd/
  49. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ulogd ${IDIR_ULOGD}/usr/sbin/
  50. ulogd-mod-extra-install:
  51. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_EXTRA}/usr/lib/ulogd
  52. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_output_{LOGEMU,OPRINT,SYSLOG}.so \
  53. ${IDIR_ULOGD_MOD_EXTRA}/usr/lib/ulogd
  54. ulogd-mod-sqlite-install:
  55. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_SQLITE}/usr/lib/ulogd
  56. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_output_SQLITE3.so \
  57. ${IDIR_ULOGD_MOD_SQLITE}/usr/lib/ulogd
  58. ulogd-mod-pgsql-install:
  59. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_PGSQL}/usr/lib/ulogd
  60. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_output_PGSQL.so \
  61. ${IDIR_ULOGD_MOD_PGSQL}/usr/lib/ulogd
  62. ulogd-mod-mysql-install:
  63. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_MYSQL}/usr/lib/ulogd
  64. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_output_MYSQL.so \
  65. ${IDIR_ULOGD_MOD_MYSQL}/usr/lib/ulogd
  66. include ${TOPDIR}/mk/pkg-bottom.mk