Makefile 5.6 KB

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