Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= scanlogd
  7. PKG_VERSION:= 2.2.6
  8. PKG_RELEASE:= 8
  9. PKG_MD5SUM:= 7b8187ea718ebe47f22805b921b909ab
  10. PKG_DESCR:= Portscan logger
  11. PKG_SECTION:= net
  12. PKG_DEPENDS:= libpcap libnet libnids
  13. PKG_URL:= http://www.openwall.com/scanlogd
  14. PKG_SITES:= http://www.openwall.com/scanlogd/ \
  15. ftp://ftp.wiretapped.net/pub/openwall/ \
  16. http://distro.ibiblio.org/pub/linux/distributions/openwall/
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,SCANLOGD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. BUILD_STYLE:= auto
  20. MAKE_FLAGS+= CC="${TARGET_CC}" LD="${TARGET_CC}" CFLAGS="-c ${TARGET_CFLAGS}" \
  21. LDFLAGS= \
  22. PCAP_H="-I${STAGING_DIR}/usr/include" \
  23. NIDS_H="-I${STAGING_DIR}/usr/include" \
  24. NIDS_L="-L${STAGING_DIR}/usr/lib -lnids -lnet -lpcap"
  25. ALL_TARGET:= libnids
  26. do-configure:
  27. ${SED} "s,/var/empty,/tmp/.scanlogd," ${WRKBUILD}/params.h
  28. ${SED} "s,#undef SCANLOGD_DEVICE,#define SCANLOGD_DEVICE \"all\"," ${WRKBUILD}/params.h
  29. do-install:
  30. ${INSTALL_DIR} ${IDIR_SCANLOGD}/usr/sbin
  31. ${INSTALL_BIN} ${WRKBUILD}/${PKG_NAME} ${IDIR_SCANLOGD}/usr/sbin/
  32. include ${TOPDIR}/mk/pkg-bottom.mk