Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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:= ipcad
  5. PKG_VERSION:= 3.7.3
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= libpcap
  8. PKG_MD5SUM:= 125605249958894148ec26d3c88189f5
  9. PKG_DESCR:= IP Cisco Accounting Daemon
  10. PKG_SECTION:= net
  11. PKG_DEPENDS:= libpcap
  12. PKG_URL:= http://lionet.info/ipcad
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=ipcad/}
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,IPCAD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIGURE_STYLE:= gnu
  17. CONFIGURE_ENV+= ac_cv_lib_nsl_inet_pton=no
  18. CONFIGURE_ARGS+= --with-ifst=linux \
  19. --with-psrc=pcap \
  20. --with-pcap-include="${STAGING_DIR}/usr/include" \
  21. --with-pcap-libraries="${STAGING_DIR}/usr/lib"
  22. BUILD_STYLE:= auto
  23. INSTALL_STYLE:= auto
  24. pre-build:
  25. touch $(WRKBUILD)/cfglex.c $(WRKBUILD)/cslex.c
  26. post-install:
  27. ${INSTALL_DIR} ${IDIR_IPCAD}/usr/bin ${IDIR_IPCAD}/etc
  28. ${INSTALL_DATA} ${WRKINST}/etc/ipcad.conf ${IDIR_IPCAD}/etc/
  29. ${INSTALL_BIN} ${WRKINST}/usr/bin/ipcad ${IDIR_IPCAD}/usr/bin/
  30. include ${TOPDIR}/mk/pkg-bottom.mk