1
0

Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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:= rp-pppoe
  5. PKG_VERSION:= 3.10
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= d58a13cc4185bca6121a606ff456dec0
  8. PKG_DESCR:= ppp over ethernet tools
  9. PKG_SECTION:= net/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:= RP_PPPOE RP_PPPOE_CLIENT RP_PPPOE_RELAY RP_PPPOE_SERVER RP_PPPOE_SNIFF
  16. PKGSD_RP_PPPOE_CLIENT:= PPPoE client
  17. PKGSN_RP_PPPOE_CLIENT:= rp-pppoe
  18. PKGSD_RP_PPPOE_RELAY:= PPPoE relay service
  19. PKGSN_RP_PPPOE_RELAY:= rp-pppoe
  20. PKGSD_RP_PPPOE_SERVER:= PPPoE server
  21. PKGSN_RP_PPPOE_SERVER:= rp-pppoe
  22. PKGSD_RP_PPPOE_SNIFF:= PPPoE sniffer
  23. PKGSN_RP_PPPOE_SNIFF:= rp-pppoe
  24. WRKSRC= ${WRKDIST}/src
  25. include ${ADK_TOPDIR}/mk/package.mk
  26. $(eval $(call PKG_template,RP_PPPOE_CLIENT,rp-pppoe-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_RP_PPPOE_CLIENT},${PKG_SECTION}))
  27. $(eval $(call PKG_template,RP_PPPOE_RELAY,rp-pppoe-relay,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_RP_PPPOE_RELAY},${PKG_SECTION}))
  28. $(eval $(call PKG_template,RP_PPPOE_SERVER,rp-pppoe-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_RP_PPPOE_SERVER},${PKG_SECTION}))
  29. $(eval $(call PKG_template,RP_PPPOE_SNIFF,rp-pppoe-sniff,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_RP_PPPOE_SNIFF},${PKG_SECTION}))
  30. CONFIGURE_ENV+= ac_cv_func_setvbuf_reversed=no \
  31. ac_cv_sizeof_unsigned_short=2 \
  32. ac_cv_sizeof_unsigned_int=4 \
  33. ac_cv_sizeof_unsigned_long=4 \
  34. ac_cv_linux_kernel_pppoe=yes \
  35. ac_cv_pack_bitfields_reversed=yes
  36. rp-pppoe-client-install:
  37. ${INSTALL_DIR} ${IDIR_RP_PPPOE_CLIENT}/etc/ppp \
  38. ${IDIR_RP_PPPOE_CLIENT}/usr/sbin
  39. ${INSTALL_DATA} ${WRKINST}/etc/ppp/pppoe.conf \
  40. ${IDIR_RP_PPPOE_CLIENT}/etc/ppp
  41. ${CP} ${WRKINST}/usr/sbin/pppoe ${IDIR_RP_PPPOE_CLIENT}/usr/sbin/
  42. ${CP} ${WRKINST}/usr/sbin/pppoe-connect ${IDIR_RP_PPPOE_CLIENT}/usr/sbin/
  43. ${CP} ${WRKINST}/usr/sbin/pppoe-start ${IDIR_RP_PPPOE_CLIENT}/usr/sbin/
  44. ${CP} ${WRKINST}/usr/sbin/pppoe-stop ${IDIR_RP_PPPOE_CLIENT}/usr/sbin/
  45. ${CP} ${WRKINST}/usr/sbin/pppoe-status ${IDIR_RP_PPPOE_CLIENT}/usr/sbin/
  46. ${CP} ${WRKINST}/usr/sbin/pppoe-setup ${IDIR_RP_PPPOE_CLIENT}/usr/sbin/
  47. rp-pppoe-relay-install:
  48. ${INSTALL_DIR} ${IDIR_RP_PPPOE_RELAY}/usr/sbin
  49. ${INSTALL_BIN} ${WRKINST}/usr/sbin/pppoe-relay \
  50. ${IDIR_RP_PPPOE_RELAY}/usr/sbin/
  51. rp-pppoe-server-install:
  52. ${INSTALL_DIR} ${IDIR_RP_PPPOE_SERVER}/etc/ppp \
  53. ${IDIR_RP_PPPOE_SERVER}/usr/sbin
  54. ${INSTALL_DATA} ${WRKINST}/etc/ppp/pppoe-server-options \
  55. ${IDIR_RP_PPPOE_SERVER}/etc/ppp/
  56. ${INSTALL_BIN} ${WRKINST}/usr/sbin/pppoe-server \
  57. ${IDIR_RP_PPPOE_SERVER}/usr/sbin/
  58. rp-pppoe-sniff-install:
  59. ${INSTALL_DIR} ${IDIR_RP_PPPOE_SNIFF}/usr/sbin
  60. ${INSTALL_BIN} ${WRKINST}/usr/sbin/pppoe-sniff \
  61. ${IDIR_RP_PPPOE_SNIFF}/usr/sbin/
  62. include ${ADK_TOPDIR}/mk/pkg-bottom.mk