Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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_BUILDDEP+= libpcap libnids libnet
  8. PKG_MD5SUM:= 7b8187ea718ebe47f22805b921b909ab
  9. PKG_DESCR:= Portscan logger
  10. PKG_SECTION:= net
  11. PKG_DEPENDS:= libpcap libnet libnids
  12. PKG_URL:= http://www.openwall.com/scanlogd
  13. PKG_SITES:= http://www.openwall.com/scanlogd/ \
  14. ftp://ftp.wiretapped.net/pub/openwall/ \
  15. http://distro.ibiblio.org/pub/linux/distributions/openwall/
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,SCANLOGD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. BUILD_STYLE:= auto
  19. MAKE_FLAGS+= CC="${TARGET_CC}" LD="${TARGET_CC}" CFLAGS="-c ${TARGET_CFLAGS}" \
  20. LDFLAGS= \
  21. PCAP_H="-I${STAGING_DIR}/usr/include" \
  22. NIDS_H="-I${STAGING_DIR}/usr/include" \
  23. NIDS_L="-L${STAGING_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 ${TOPDIR}/mk/pkg-bottom.mk