1
0

Makefile 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. TARGET_CFLAGS+= -fPIC
  30. ifneq (${ADK_PACKAGE_ULOGD_MOD_MYSQL},)
  31. CONFIGURE_ARGS+= --with-mysql=${STAGING_TARGET_DIR}/usr
  32. endif
  33. ifneq (${ADK_PACKAGE_ULOGD_MOD_PGSQL},)
  34. CONFIGURE_ARGS+= --with-pgsql=${STAGING_TARGET_DIR}/usr
  35. endif
  36. ifneq (${ADK_PACKAGE_ULOGD_MOD_SQLITE},)
  37. CONFIGURE_ARGS+= --with-sqlite3=${STAGING_TARGET_DIR}/usr
  38. endif
  39. post-install:
  40. ${INSTALL_DIR} ${IDIR_ULOGD}/usr/sbin ${IDIR_ULOGD}/usr/lib/ulogd/
  41. ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_raw2packet_BASE.so \
  42. ${IDIR_ULOGD}/usr/lib/ulogd/
  43. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ulogd ${IDIR_ULOGD}/usr/sbin/
  44. ulogd-mod-extra-install:
  45. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_EXTRA}/usr/lib/ulogd
  46. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_output_{LOGEMU,OPRINT,SYSLOG}.so \
  47. ${IDIR_ULOGD_MOD_EXTRA}/usr/lib/ulogd
  48. ulogd-mod-sqlite-install:
  49. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_SQLITE}/usr/lib/ulogd
  50. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_output_SQLITE3.so \
  51. ${IDIR_ULOGD_MOD_SQLITE}/usr/lib/ulogd
  52. ulogd-mod-pgsql-install:
  53. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_PGSQL}/usr/lib/ulogd
  54. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_output_PGSQL.so \
  55. ${IDIR_ULOGD_MOD_PGSQL}/usr/lib/ulogd
  56. ulogd-mod-mysql-install:
  57. ${INSTALL_DIR} ${IDIR_ULOGD_MOD_MYSQL}/usr/lib/ulogd
  58. ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_output_MYSQL.so \
  59. ${IDIR_ULOGD_MOD_MYSQL}/usr/lib/ulogd
  60. include ${TOPDIR}/mk/pkg-bottom.mk