Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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:= rarpd
  7. PKG_VERSION:= 1.1
  8. PKG_RELEASE:= 10
  9. PKG_MD5SUM:= 04e2ca849e758d0b88c8281775ec3b58
  10. MASTER_SITES:= ftp://ftp.dementia.org/pub/net-tools/
  11. # Hack Alert!
  12. # The configure script for rarpd, when used with the --with-libnet option
  13. # doesn't correctly detect and set -DNEW_LIBNET_INTERFACE.
  14. EXTRA_CFLAGS= -DNEW_LIBNET_INTERFACE
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,RARPD,rarpd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
  17. CONFIGURE_STYLE:= gnu
  18. CONFIGURE_ARGS+= --with-libnet="${STAGING_DIR}/usr" \
  19. --with-pcap="${STAGING_DIR}/usr"
  20. TCFLAGS+= ${EXTRA_CFLAGS}
  21. BUILD_STYLE:= auto
  22. INSTALL_STYLE:= auto
  23. post-install:
  24. ${INSTALL_DIR} ${IDIR_RARPD}/usr/sbin
  25. ${INSTALL_DIR} ${IDIR_RARPD}/etc/init.d
  26. ${INSTALL_BIN} ${WRKINST}/sbin/rarpd ${IDIR_RARPD}/usr/sbin/
  27. ${INSTALL_BIN} ./files/rarpd.init ${IDIR_RARPD}/etc/init.d/rarpd
  28. include ${TOPDIR}/mk/pkg-bottom.mk