Makefile 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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:= ppp
  5. PKG_VERSION:= 2.4.4
  6. PKG_RELEASE:= 18
  7. PKG_MD5SUM:= 183800762e266132218b204dfb428d29
  8. PKG_DESCR:= Point-to-Point Protocol software
  9. PKG_SECTION:= net
  10. PKG_MULTI:= 1
  11. PKG_DEPENDS:= kmod-ppp
  12. PKG_URL:= http://ppp.samba.org
  13. PKG_SITES:= ftp://ftp.samba.org/pub/ppp/
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,PPP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,PPP_MOD_PPPOA,ppp-mod-pppoa,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,PPP_MOD_PPPOE,ppp-mod-pppoe,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,PPP_MOD_RADIUS,ppp-mod-radius,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,PPP_MOD_CHAT,ppp-mod-chat,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,PPP_MOD_PPPDUMP,ppp-mod-pppdump,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. $(eval $(call PKG_template,PPP_MOD_PPPSTATS,ppp-mod-pppstats,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,PPP_MOD_PPPUMTS,ppp-mod-pppumts,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. CONFIGURE_ENV+= UNAME_S="Linux"
  24. XAKE_FLAGS+= CC="${TARGET_CC}" \
  25. COPTS="${TCFLAGS}" \
  26. HAVE_INET6="1" \
  27. STAGING_DIR=${STAGING_DIR} \
  28. DESTDIR="${WRKINST}/usr" \
  29. TARGET_AR='${TARGET_CROSS}ar'
  30. SUB_INSTALLS-y:=
  31. SUB_INSTALLS-m:=
  32. SUB_INSTALLS-${ADK_PACKAGE_PPP_MOD_PPPOE}+= mod-pppoe-install
  33. SUB_INSTALLS-${ADK_PACKAGE_PPP_MOD_PPPOA}+= mod-pppoa-install
  34. SUB_INSTALLS-${ADK_PACKAGE_PPP_MOD_RADIUS}+= mod-radius-install
  35. SUB_INSTALLS-${ADK_PACKAGE_PPP_MOD_CHAT}+= mod-chat-install
  36. SUB_INSTALLS-${ADK_PACKAGE_PPP_MOD_PPPDUMP}+= mod-pppdump-install
  37. SUB_INSTALLS-${ADK_PACKAGE_PPP_MOD_PPPSTATS}+= mod-pppstats-install
  38. SUB_INSTALLS-${ADK_PACKAGE_PPP_MOD_PPPUMTS}+= mod-pppumts-install
  39. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  40. echo -------------------------------
  41. echo ${SUB_INSTALLS-m}
  42. echo ${SUB_INSTALLS-y}
  43. ${INSTALL_DIR} ${IDIR_PPP}/etc/ppp
  44. ln -sf /tmp/resolv.conf ${IDIR_PPP}/etc/ppp/resolv.conf
  45. install -m0600 ./files/etc/ppp/chap-secrets ${IDIR_PPP}/etc/ppp/
  46. ${INSTALL_DATA} ./files/etc/ppp/options ${IDIR_PPP}/etc/ppp/
  47. ${INSTALL_FILTER}
  48. ${INSTALL_BIN} ./files/etc/ppp/ip-up ${IDIR_PPP}/etc/ppp/
  49. ${INSTALL_DIR} ${IDIR_PPP}/etc/ppp/ip-up.d
  50. ${INSTALL_BIN} ./files/etc/ppp/ip-down ${IDIR_PPP}/etc/ppp/
  51. ${INSTALL_DIR} ${IDIR_PPP}/etc/ppp/ip-down.d
  52. ${INSTALL_DIR} ${IDIR_PPP}/usr/sbin
  53. ${INSTALL_BIN} ${WRKINST}/usr/sbin/pppd ${IDIR_PPP}/usr/sbin/
  54. ${INSTALL_DIR} ${IDIR_PPP}/usr/lib/pppd
  55. ${INSTALL_BIN} ./files/pon ${IDIR_PPP}/usr/sbin/
  56. ${INSTALL_BIN} ./files/poff ${IDIR_PPP}/usr/sbin/
  57. ${INSTALL_DIR} ${IDIR_PPP}/etc/ppp/peers
  58. $(INSTALL_DIR) ${IDIR_PPP}/etc/network/if-pre-up.d
  59. $(INSTALL_BIN) ./files/ppp.pre-up \
  60. ${IDIR_PPP}/etc/network/if-pre-up.d/ppp
  61. mod-radius-install:
  62. ${INSTALL_DIR} ${IDIR_PPP_MOD_RADIUS}/etc/radiusclient
  63. ${CP} ${WRKBUILD}/pppd/plugins/radius/etc/* \
  64. ${IDIR_PPP_MOD_RADIUS}/etc/radiusclient
  65. rm ${IDIR_PPP_MOD_RADIUS}/etc/radiusclient/radiusclient.conf.in
  66. ${INSTALL_DIR} ${IDIR_PPP_MOD_RADIUS}/usr/lib/pppd/$(PKG_VERSION)
  67. ${INSTALL_BIN} $(WRKINST)/usr/lib/pppd/$(PKG_VERSION)/radius.so \
  68. ${IDIR_PPP_MOD_RADIUS}/usr/lib/pppd/$(PKG_VERSION)
  69. mod-pppoe-install:
  70. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPOE}/usr/lib/pppd/$(PKG_VERSION)
  71. ${INSTALL_BIN} $(WRKINST)/usr/lib/pppd/$(PKG_VERSION)/rp-pppoe.so \
  72. ${IDIR_PPP_MOD_PPPOE}/usr/lib/pppd/$(PKG_VERSION)
  73. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPOE}/etc/ppp/templates
  74. ${INSTALL_DATA} ./files/etc/ppp/templates/pppoe \
  75. ${IDIR_PPP_MOD_PPPOE}/etc/ppp/templates/
  76. mod-pppoa-install:
  77. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPOA}/usr/lib/pppd/$(PKG_VERSION)
  78. ${INSTALL_BIN} $(WRKINST)/usr/lib/pppd/$(PKG_VERSION)/pppoatm.so \
  79. ${IDIR_PPP_MOD_PPPOA}/usr/lib/pppd/$(PKG_VERSION)
  80. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPOA}/etc/ppp/templates
  81. ${INSTALL_DATA} ./files/etc/ppp/templates/pppoa \
  82. ${IDIR_PPP_MOD_PPPOA}/etc/ppp/templates/
  83. mod-chat-install:
  84. ${INSTALL_DIR} ${IDIR_PPP_MOD_CHAT}/usr/sbin
  85. ${CP} ${WRKINST}/usr/sbin/chat ${IDIR_PPP_MOD_CHAT}/usr/sbin/
  86. mod-pppdump-install:
  87. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPDUMP}/usr/sbin
  88. ${CP} ${WRKINST}/usr/sbin/pppdump ${IDIR_PPP_MOD_PPPDUMP}/usr/sbin/
  89. mod-pppstats-install:
  90. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPSTATS}/usr/sbin
  91. ${CP} ${WRKINST}/usr/sbin/pppstats ${IDIR_PPP_MOD_PPPSTATS}/usr/sbin/
  92. mod-pppumts-install:
  93. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPUMTS}/etc/ppp/templates
  94. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPUMTS}/etc/ppp/ip-{down,up}.d
  95. ${INSTALL_DATA} ./files/etc/ppp/templates/umts \
  96. ${IDIR_PPP_MOD_PPPUMTS}/etc/ppp/templates/
  97. ${INSTALL_BIN} ./files/etc/ppp/ip-up.d/umts \
  98. ${IDIR_PPP_MOD_PPPUMTS}/etc/ppp/ip-up.d/
  99. ${INSTALL_BIN} ./files/etc/ppp/ip-down.d/umts \
  100. ${IDIR_PPP_MOD_PPPUMTS}/etc/ppp/ip-down.d/
  101. include ${TOPDIR}/mk/pkg-bottom.mk