Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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:= ipcad
  5. PKG_VERSION:= 3.7.3
  6. PKG_RELEASE:= 2
  7. PKG_HASH:= 72372d46ae35e4d7cc74d96fbaf8bb0ae189aa9ecfd89026487aca790c2f0716
  8. PKG_DESCR:= ip cisco accounting daemon
  9. PKG_SECTION:= net/acct
  10. PKG_DEPENDS:= libpcap
  11. PKG_BUILDDEP:= libpcap
  12. PKG_URL:= http://lionet.info/ipcad
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=ipcad/}
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include ${ADK_TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,IPCAD,ipcad,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIGURE_ARGS+= --with-ifst=linux \
  18. --with-psrc=pcap \
  19. --with-pcap-include="${STAGING_TARGET_DIR}/usr/include" \
  20. --with-pcap-libraries="${STAGING_TARGET_DIR}/usr/lib"
  21. pre-build:
  22. touch $(WRKBUILD)/cfglex.c $(WRKBUILD)/cslex.c
  23. ipcad-install:
  24. ${INSTALL_DIR} ${IDIR_IPCAD}/usr/bin ${IDIR_IPCAD}/etc
  25. ${INSTALL_DATA} ${WRKINST}/etc/ipcad.conf ${IDIR_IPCAD}/etc/
  26. ${INSTALL_BIN} ${WRKINST}/usr/bin/ipcad ${IDIR_IPCAD}/usr/bin/
  27. include ${ADK_TOPDIR}/mk/pkg-bottom.mk