Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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:= scanlogd
  5. PKG_VERSION:= 2.2.6
  6. PKG_RELEASE:= 8
  7. PKG_MD5SUM:= 7b8187ea718ebe47f22805b921b909ab
  8. PKG_DESCR:= Portscan logger
  9. PKG_SECTION:= net/security
  10. PKG_DEPENDS:= libpcap libnet libnids
  11. PKG_BUILDDEP:= libpcap libnids libnet
  12. PKG_URL:= http://www.openwall.com/scanlogd/
  13. PKG_SITES:= http://www.openwall.com/scanlogd/
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,SCANLOGD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. INSTALL_STYLE:= manual
  18. MAKE_FLAGS+= PCAP_H="-I${STAGING_TARGET_DIR}/usr/include" \
  19. NIDS_H="-I${STAGING_TARGET_DIR}/usr/include" \
  20. NIDS_L="-L${STAGING_TARGET_DIR}/usr/lib -lnids -lnet -lpcap"
  21. ALL_TARGET:= libnids
  22. do-configure:
  23. ${SED} "s,/var/empty,/tmp/.scanlogd," ${WRKBUILD}/params.h
  24. ${SED} "s,#undef SCANLOGD_DEVICE,#define SCANLOGD_DEVICE \"all\"," ${WRKBUILD}/params.h
  25. do-install:
  26. ${INSTALL_DIR} ${IDIR_SCANLOGD}/usr/sbin
  27. ${INSTALL_BIN} ${WRKBUILD}/${PKG_NAME} ${IDIR_SCANLOGD}/usr/sbin/
  28. include ${TOPDIR}/mk/pkg-bottom.mk