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