Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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:= rp-pppoe
  5. PKG_VERSION:= 3.10
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= d58a13cc4185bca6121a606ff456dec0
  8. PKG_DESCR:= PPPoE (PPP over Ethernet) tools
  9. PKG_SECTION:= ppp
  10. PKG_DEPENDS:= ppp
  11. PKG_URL:= http://www.roaringpenguin.com/
  12. PKG_SITES:= http://www.roaringpenguin.com/files/download/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. PKG_LIBC_DEPENDS:= uclibc glibc
  15. PKG_SUBPKGS:= PPPOE_CLIENT PPPOE_RELAY PPPOE_SERVER PPPOE_SNIFF
  16. WRKSRC= ${WRKDIST}/src
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,PPPOE_CLIENT,pppoe-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,PPPOE_RELAY,pppoe-relay,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,PPPOE_SERVER,pppoe-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. $(eval $(call PKG_template,PPPOE_SNIFF,pppoe-sniff,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. CONFIGURE_ENV+= ac_cv_func_setvbuf_reversed=no \
  23. ac_cv_sizeof_unsigned_short=2 \
  24. ac_cv_sizeof_unsigned_int=4 \
  25. ac_cv_sizeof_unsigned_long=4 \
  26. ac_cv_linux_kernel_pppoe=yes \
  27. ac_cv_pack_bitfields_reversed=yes
  28. pppoe-client-install:
  29. ${INSTALL_DIR} ${IDIR_PPPOE_CLIENT}/etc/ppp \
  30. ${IDIR_PPPOE_CLIENT}/usr/sbin
  31. ${INSTALL_DATA} ${WRKINST}/etc/ppp/pppoe.conf \
  32. ${IDIR_PPPOE_CLIENT}/etc/ppp
  33. ${CP} ${WRKINST}/usr/sbin/pppoe ${IDIR_PPPOE_CLIENT}/usr/sbin/
  34. ${CP} ${WRKINST}/usr/sbin/pppoe-connect ${IDIR_PPPOE_CLIENT}/usr/sbin/
  35. ${CP} ${WRKINST}/usr/sbin/pppoe-start ${IDIR_PPPOE_CLIENT}/usr/sbin/
  36. ${CP} ${WRKINST}/usr/sbin/pppoe-stop ${IDIR_PPPOE_CLIENT}/usr/sbin/
  37. ${CP} ${WRKINST}/usr/sbin/pppoe-status ${IDIR_PPPOE_CLIENT}/usr/sbin/
  38. ${CP} ${WRKINST}/usr/sbin/pppoe-setup ${IDIR_PPPOE_CLIENT}/usr/sbin/
  39. pppoe-relay-install:
  40. ${INSTALL_DIR} ${IDIR_PPPOE_RELAY}/usr/sbin
  41. ${INSTALL_BIN} ${WRKINST}/usr/sbin/pppoe-relay \
  42. ${IDIR_PPPOE_RELAY}/usr/sbin/
  43. pppoe-server-install:
  44. ${INSTALL_DIR} ${IDIR_PPPOE_SERVER}/etc/ppp \
  45. ${IDIR_PPPOE_SERVER}/usr/sbin
  46. ${INSTALL_DATA} ${WRKINST}/etc/ppp/pppoe-server-options \
  47. ${IDIR_PPPOE_SERVER}/etc/ppp/
  48. ${INSTALL_BIN} ${WRKINST}/usr/sbin/pppoe-server \
  49. ${IDIR_PPPOE_SERVER}/usr/sbin/
  50. pppoe-sniff-install:
  51. ${INSTALL_DIR} ${IDIR_PPPOE_SNIFF}/usr/sbin
  52. ${INSTALL_BIN} ${WRKINST}/usr/sbin/pppoe-sniff \
  53. ${IDIR_PPPOE_SNIFF}/usr/sbin/
  54. include ${TOPDIR}/mk/pkg-bottom.mk