Makefile 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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:= ppp
  5. PKG_VERSION:= 2.4.6
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 1b33181a03962c8a092c055fb9980e9722728a8d98a4bb7ec7acda17c1b1b49d
  8. PKG_DESCR:= point-to-point protocol software
  9. PKG_SECTION:= net/ppp
  10. PKG_BUILDDEP:= libpcap
  11. PKG_URL:= http://ppp.samba.org/
  12. PKG_SITES:= ftp://ftp.samba.org/pub/ppp/
  13. PKG_CFLINE_PPP:= select ADK_KERNEL_PPP m
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  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. PKGSD_PPP_MOD_PPPOE:= ppp over ethernet support
  18. PKGSN_PPP_MOD_PPPOE:= ppp
  19. PKGSD_PPP_MOD_PPPUMTS:= ppp umts support
  20. PKGSS_PPP_MOD_PPPUMTS:= comgt
  21. PKGSN_PPP_MOD_PPPUMTS:= ppp
  22. PKGSD_PPP_MOD_PPPOA:= ppp over atm support
  23. PKGSN_PPP_MOD_PPPOA:= ppp
  24. PKGSD_PPP_MOD_RADIUS:= radius support
  25. PKGSN_PPP_MOD_RADIUS:= ppp
  26. PKGSD_PPP_MOD_CHAT:= ppp chat application
  27. PKGSN_PPP_MOD_CHAT:= ppp
  28. PKGSD_PPP_MOD_PPPDUMP:= ppp dump utility
  29. PKGSN_PPP_MOD_PPPDUMP:= ppp
  30. PKGSD_PPP_MOD_PPPSTATS:=ppp statistic utility
  31. PKGSN_PPP_MOD_PPPSTATS:=ppp
  32. include ${ADK_TOPDIR}/mk/package.mk
  33. $(eval $(call PKG_template,PPP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  34. $(eval $(call PKG_template,PPP_MOD_PPPOA,ppp-mod-pppoa,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_PPP_MOD_PPPOA},${PKG_SECTION}))
  35. $(eval $(call PKG_template,PPP_MOD_PPPOE,ppp-mod-pppoe,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_PPP_MOD_PPPOE},${PKGSD_PPP_MOD_PPPOE},${PKG_SECTION}))
  36. $(eval $(call PKG_template,PPP_MOD_RADIUS,ppp-mod-radius,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_PPP_MOD_RADIUS},${PKG_SECTION}))
  37. $(eval $(call PKG_template,PPP_MOD_CHAT,ppp-mod-chat,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_PPP_MOD_CHAT},${PKG_SECTION}))
  38. $(eval $(call PKG_template,PPP_MOD_PPPDUMP,ppp-mod-pppdump,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_PPP_MOD_PPPDUMP},${PKG_SECTION}))
  39. $(eval $(call PKG_template,PPP_MOD_PPPSTATS,ppp-mod-pppstats,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_PPP_MOD_PPPSTATS},${PKG_SECTION}))
  40. $(eval $(call PKG_template,PPP_MOD_PPPUMTS,ppp-mod-pppumts,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_PPP_MOD_PPPUMTS},${PKGSD_PPP_MOD_PPPUMTS},${PKG_SECTION}))
  41. CONFIG_STYLE:= minimal
  42. CONFIGURE_ARGS+= --system=Linux --prefix="/usr"
  43. CONFIGURE_ENV+= UNAME_S="Linux"
  44. TARGET_LDFLAGS+= -lcrypt
  45. XAKE_FLAGS+= STAGING_TARGET_DIR=${STAGING_TARGET_DIR} \
  46. DESTDIR="${WRKINST}/usr" STRIP='' \
  47. TARGET_AR='${TARGET_CROSS}ar'
  48. ppp-install:
  49. ${INSTALL_DIR} ${IDIR_PPP}/etc/ppp
  50. install -m0600 ./files/etc/ppp/chap-secrets ${IDIR_PPP}/etc/ppp/
  51. ${INSTALL_DATA} ./files/etc/ppp/options ${IDIR_PPP}/etc/ppp/
  52. ${INSTALL_BIN} ./files/etc/ppp/ip-up ${IDIR_PPP}/etc/ppp/
  53. ${INSTALL_DIR} ${IDIR_PPP}/etc/ppp/ip-up.d
  54. ${INSTALL_BIN} ./files/etc/ppp/ip-up.d/0* \
  55. ${IDIR_PPP}/etc/ppp/ip-up.d
  56. ${INSTALL_BIN} ./files/etc/ppp/ip-down ${IDIR_PPP}/etc/ppp/
  57. ${INSTALL_DIR} ${IDIR_PPP}/etc/ppp/ip-down.d
  58. ${INSTALL_BIN} ./files/etc/ppp/ip-down.d/0* \
  59. ${IDIR_PPP}/etc/ppp/ip-down.d
  60. ${INSTALL_DIR} ${IDIR_PPP}/usr/sbin
  61. ${INSTALL_BIN} ${WRKINST}/usr/sbin/pppd ${IDIR_PPP}/usr/sbin/
  62. ${INSTALL_DIR} ${IDIR_PPP}/usr/lib/pppd
  63. ${INSTALL_BIN} ./files/pon ${IDIR_PPP}/usr/sbin/
  64. ${INSTALL_BIN} ./files/poff ${IDIR_PPP}/usr/sbin/
  65. ${INSTALL_DIR} ${IDIR_PPP}/etc/ppp/peers
  66. $(INSTALL_DIR) ${IDIR_PPP}/etc/network/if-pre-up.d
  67. $(INSTALL_BIN) ./files/ppp.pre-up \
  68. ${IDIR_PPP}/etc/network/if-pre-up.d/05-ppp
  69. ppp-mod-radius-install:
  70. ${INSTALL_DIR} ${IDIR_PPP_MOD_RADIUS}/etc/radiusclient
  71. ${CP} ${WRKBUILD}/pppd/plugins/radius/etc/* \
  72. ${IDIR_PPP_MOD_RADIUS}/etc/radiusclient
  73. rm ${IDIR_PPP_MOD_RADIUS}/etc/radiusclient/radiusclient.conf.in
  74. ${INSTALL_DIR} ${IDIR_PPP_MOD_RADIUS}/usr/lib/pppd/$(PKG_VERSION)
  75. ${INSTALL_BIN} $(WRKINST)/usr/lib/pppd/$(PKG_VERSION)/radius.so \
  76. ${IDIR_PPP_MOD_RADIUS}/usr/lib/pppd/$(PKG_VERSION)
  77. ppp-mod-pppoe-install:
  78. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPOE}/usr/lib/pppd/$(PKG_VERSION)
  79. ${INSTALL_BIN} $(WRKINST)/usr/lib/pppd/$(PKG_VERSION)/rp-pppoe.so \
  80. ${IDIR_PPP_MOD_PPPOE}/usr/lib/pppd/$(PKG_VERSION)
  81. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPOE}/etc/ppp/templates
  82. ${INSTALL_DATA} ./files/etc/ppp/templates/pppoe \
  83. ${IDIR_PPP_MOD_PPPOE}/etc/ppp/templates/
  84. ppp-mod-pppoa-install:
  85. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPOA}/usr/lib/pppd/$(PKG_VERSION)
  86. ${INSTALL_BIN} $(WRKINST)/usr/lib/pppd/$(PKG_VERSION)/pppoatm.so \
  87. ${IDIR_PPP_MOD_PPPOA}/usr/lib/pppd/$(PKG_VERSION)
  88. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPOA}/etc/ppp/templates
  89. ${INSTALL_DATA} ./files/etc/ppp/templates/pppoa \
  90. ${IDIR_PPP_MOD_PPPOA}/etc/ppp/templates/
  91. ppp-mod-chat-install:
  92. ${INSTALL_DIR} ${IDIR_PPP_MOD_CHAT}/usr/sbin
  93. ${CP} ${WRKINST}/usr/sbin/chat ${IDIR_PPP_MOD_CHAT}/usr/sbin/
  94. ppp-mod-pppdump-install:
  95. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPDUMP}/usr/sbin
  96. ${CP} ${WRKINST}/usr/sbin/pppdump ${IDIR_PPP_MOD_PPPDUMP}/usr/sbin/
  97. ppp-mod-pppstats-install:
  98. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPSTATS}/usr/sbin
  99. ${CP} ${WRKINST}/usr/sbin/pppstats ${IDIR_PPP_MOD_PPPSTATS}/usr/sbin/
  100. ppp-mod-pppumts-install:
  101. ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPUMTS}/etc/ppp/templates
  102. ${INSTALL_DATA} ./files/etc/ppp/templates/umts \
  103. ${IDIR_PPP_MOD_PPPUMTS}/etc/ppp/templates/
  104. $(INSTALL_DIR) ${IDIR_PPP_MOD_PPPUMTS}/etc/network/if-pre-up.d
  105. $(INSTALL_DIR) ${IDIR_PPP_MOD_PPPUMTS}/etc/network/if-post-down.d
  106. $(INSTALL_BIN) ./files/hso.if-up \
  107. ${IDIR_PPP_MOD_PPPUMTS}/etc/network/if-pre-up.d/06-hso
  108. $(INSTALL_BIN) ./files/hso.if-down \
  109. ${IDIR_PPP_MOD_PPPUMTS}/etc/network/if-post-down.d/06-hso
  110. include ${ADK_TOPDIR}/mk/pkg-bottom.mk