Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= scanlogd
  5. PKG_VERSION:= 2.2.6
  6. PKG_RELEASE:= 8
  7. PKG_HASH:= 4a2621037270f88576c8770261c53761edc875984f126872c880c2a98a8f63fa
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_ARCH_DEPENDS:= !arm
  16. PKG_LIBC_DEPENDS:= uclibc glibc
  17. include ${ADK_TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,SCANLOGD,scanlogd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. CONFIG_STYLE:= manual
  20. INSTALL_STYLE:= manual
  21. MAKE_FLAGS+= PCAP_H="-I${STAGING_TARGET_DIR}/usr/include" \
  22. NIDS_H="-I${STAGING_TARGET_DIR}/usr/include" \
  23. NIDS_L="-L${STAGING_TARGET_DIR}/usr/lib -lnids -lnet -lpcap"
  24. ALL_TARGET:= libnids
  25. do-configure:
  26. ${SED} "s,/var/empty,/tmp/.scanlogd," ${WRKBUILD}/params.h
  27. ${SED} "s,#undef SCANLOGD_DEVICE,#define SCANLOGD_DEVICE \"all\"," ${WRKBUILD}/params.h
  28. do-install:
  29. ${INSTALL_DIR} ${IDIR_SCANLOGD}/usr/sbin
  30. ${INSTALL_BIN} ${WRKBUILD}/${PKG_NAME} ${IDIR_SCANLOGD}/usr/sbin/
  31. include ${ADK_TOPDIR}/mk/pkg-bottom.mk