mpd: update to 0.20.13
[openadk.git] / package / ppp / Makefile
blob2bb8b784da5f5d6347f44c0941680a94d29f4873
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= ppp
7 PKG_VERSION:= 2.4.7
8 PKG_RELEASE:= 1
9 PKG_HASH:= 02e0a3dd3e4799e33103f70ec7df75348c8540966ee7c948e4ed8a42bbccfb30
10 PKG_DESCR:= point-to-point protocol software
11 PKG_SECTION:= net/ppp
12 PKG_BUILDDEP:= libpcap
13 PKG_KDEPENDS:= ppp
14 PKG_URL:= http://ppp.samba.org/
15 PKG_SITES:= https://ppp.samba.org/ftp/ppp/
17 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
19 PKG_SUBPKGS:= PPP PPP_MOD_PPPOA PPP_MOD_PPPOE PPP_MOD_RADIUS
20 PKG_SUBPKGS+= PPP_MOD_CHAT PPP_MOD_PPPDUMP PPP_MOD_PPPSTATS PPP_MOD_PPPUMTS
21 PKGSD_PPP_MOD_PPPOE:= ppp over ethernet support
22 PKGSN_PPP_MOD_PPPOE:= ppp
23 PKGSD_PPP_MOD_PPPUMTS:= ppp umts support
24 PKGSS_PPP_MOD_PPPUMTS:= comgt
25 PKGSN_PPP_MOD_PPPUMTS:= ppp
26 PKGSD_PPP_MOD_PPPOA:= ppp over atm support
27 PKGSN_PPP_MOD_PPPOA:= ppp
28 PKGSD_PPP_MOD_RADIUS:= radius support
29 PKGSN_PPP_MOD_RADIUS:= ppp
30 PKGSD_PPP_MOD_CHAT:= ppp chat application
31 PKGSN_PPP_MOD_CHAT:= ppp
32 PKGSD_PPP_MOD_PPPDUMP:= ppp dump utility
33 PKGSN_PPP_MOD_PPPDUMP:= ppp
34 PKGSD_PPP_MOD_PPPSTATS:=ppp statistic utility
35 PKGSN_PPP_MOD_PPPSTATS:=ppp
38 include ${ADK_TOPDIR}/mk/package.mk
40 $(eval $(call PKG_template,PPP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
41 $(eval $(call PKG_template,PPP_MOD_PPPOA,ppp-mod-pppoa,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_PPP_MOD_PPPOA},${PKG_SECTION}))
42 $(eval $(call PKG_template,PPP_MOD_PPPOE,ppp-mod-pppoe,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_PPP_MOD_PPPOE},${PKGSD_PPP_MOD_PPPOE},${PKG_SECTION}))
43 $(eval $(call PKG_template,PPP_MOD_RADIUS,ppp-mod-radius,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_PPP_MOD_RADIUS},${PKG_SECTION}))
44 $(eval $(call PKG_template,PPP_MOD_CHAT,ppp-mod-chat,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_PPP_MOD_CHAT},${PKG_SECTION}))
45 $(eval $(call PKG_template,PPP_MOD_PPPDUMP,ppp-mod-pppdump,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_PPP_MOD_PPPDUMP},${PKG_SECTION}))
46 $(eval $(call PKG_template,PPP_MOD_PPPSTATS,ppp-mod-pppstats,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_PPP_MOD_PPPSTATS},${PKG_SECTION}))
47 $(eval $(call PKG_template,PPP_MOD_PPPUMTS,ppp-mod-pppumts,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_PPP_MOD_PPPUMTS},${PKGSD_PPP_MOD_PPPUMTS},${PKG_SECTION}))
49 CONFIG_STYLE:= minimal
50 CONFIGURE_ARGS+= --system=Linux --prefix="/usr"
51 CONFIGURE_ENV+= UNAME_S="Linux"
52 TARGET_LDFLAGS+= -lcrypt
53 XAKE_FLAGS+= STAGING_TARGET_DIR=${STAGING_TARGET_DIR} \
54 DESTDIR="${WRKINST}/usr" STRIP='' \
55 TARGET_AR='${TARGET_CROSS}ar'
57 ppp-install:
58 ${INSTALL_DIR} ${IDIR_PPP}/etc/ppp
59 install -m0600 ./files/etc/ppp/chap-secrets ${IDIR_PPP}/etc/ppp/
60 ${INSTALL_DATA} ./files/etc/ppp/options ${IDIR_PPP}/etc/ppp/
61 ${INSTALL_BIN} ./files/etc/ppp/ip-up ${IDIR_PPP}/etc/ppp/
62 ${INSTALL_DIR} ${IDIR_PPP}/etc/ppp/ip-up.d
63 ${INSTALL_BIN} ./files/etc/ppp/ip-up.d/0* \
64 ${IDIR_PPP}/etc/ppp/ip-up.d
65 ${INSTALL_BIN} ./files/etc/ppp/ip-down ${IDIR_PPP}/etc/ppp/
66 ${INSTALL_DIR} ${IDIR_PPP}/etc/ppp/ip-down.d
67 ${INSTALL_BIN} ./files/etc/ppp/ip-down.d/0* \
68 ${IDIR_PPP}/etc/ppp/ip-down.d
69 ${INSTALL_DIR} ${IDIR_PPP}/usr/sbin
70 ${INSTALL_BIN} ${WRKINST}/usr/sbin/pppd ${IDIR_PPP}/usr/sbin/
71 ${INSTALL_DIR} ${IDIR_PPP}/usr/lib/pppd
72 ${INSTALL_BIN} ./files/pon ${IDIR_PPP}/usr/sbin/
73 ${INSTALL_BIN} ./files/poff ${IDIR_PPP}/usr/sbin/
74 ${INSTALL_DIR} ${IDIR_PPP}/etc/ppp/peers
75 $(INSTALL_DIR) ${IDIR_PPP}/etc/network/if-pre-up.d
76 $(INSTALL_BIN) ./files/ppp.pre-up \
77 ${IDIR_PPP}/etc/network/if-pre-up.d/05-ppp
79 ppp-mod-radius-install:
80 ${INSTALL_DIR} ${IDIR_PPP_MOD_RADIUS}/etc/radiusclient
81 ${CP} ${WRKBUILD}/pppd/plugins/radius/etc/* \
82 ${IDIR_PPP_MOD_RADIUS}/etc/radiusclient
83 rm ${IDIR_PPP_MOD_RADIUS}/etc/radiusclient/radiusclient.conf.in
84 ${INSTALL_DIR} ${IDIR_PPP_MOD_RADIUS}/usr/lib/pppd/$(PKG_VERSION)
85 ${INSTALL_BIN} $(WRKINST)/usr/lib/pppd/$(PKG_VERSION)/radius.so \
86 ${IDIR_PPP_MOD_RADIUS}/usr/lib/pppd/$(PKG_VERSION)
88 ppp-mod-pppoe-install:
89 ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPOE}/usr/lib/pppd/$(PKG_VERSION)
90 ${INSTALL_BIN} $(WRKINST)/usr/lib/pppd/$(PKG_VERSION)/rp-pppoe.so \
91 ${IDIR_PPP_MOD_PPPOE}/usr/lib/pppd/$(PKG_VERSION)
92 ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPOE}/etc/ppp/templates
93 ${INSTALL_DATA} ./files/etc/ppp/templates/pppoe \
94 ${IDIR_PPP_MOD_PPPOE}/etc/ppp/templates/
96 ppp-mod-pppoa-install:
97 ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPOA}/usr/lib/pppd/$(PKG_VERSION)
98 ${INSTALL_BIN} $(WRKINST)/usr/lib/pppd/$(PKG_VERSION)/pppoatm.so \
99 ${IDIR_PPP_MOD_PPPOA}/usr/lib/pppd/$(PKG_VERSION)
100 ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPOA}/etc/ppp/templates
101 ${INSTALL_DATA} ./files/etc/ppp/templates/pppoa \
102 ${IDIR_PPP_MOD_PPPOA}/etc/ppp/templates/
104 ppp-mod-chat-install:
105 ${INSTALL_DIR} ${IDIR_PPP_MOD_CHAT}/usr/sbin
106 ${CP} ${WRKINST}/usr/sbin/chat ${IDIR_PPP_MOD_CHAT}/usr/sbin/
108 ppp-mod-pppdump-install:
109 ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPDUMP}/usr/sbin
110 ${CP} ${WRKINST}/usr/sbin/pppdump ${IDIR_PPP_MOD_PPPDUMP}/usr/sbin/
112 ppp-mod-pppstats-install:
113 ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPSTATS}/usr/sbin
114 ${CP} ${WRKINST}/usr/sbin/pppstats ${IDIR_PPP_MOD_PPPSTATS}/usr/sbin/
116 ppp-mod-pppumts-install:
117 ${INSTALL_DIR} ${IDIR_PPP_MOD_PPPUMTS}/etc/ppp/templates
118 ${INSTALL_DATA} ./files/etc/ppp/templates/umts \
119 ${IDIR_PPP_MOD_PPPUMTS}/etc/ppp/templates/
120 $(INSTALL_DIR) ${IDIR_PPP_MOD_PPPUMTS}/etc/network/if-pre-up.d
121 $(INSTALL_DIR) ${IDIR_PPP_MOD_PPPUMTS}/etc/network/if-post-down.d
122 $(INSTALL_BIN) ./files/hso.if-up \
123 ${IDIR_PPP_MOD_PPPUMTS}/etc/network/if-pre-up.d/06-hso
124 $(INSTALL_BIN) ./files/hso.if-down \
125 ${IDIR_PPP_MOD_PPPUMTS}/etc/network/if-post-down.d/06-hso
127 include ${ADK_TOPDIR}/mk/pkg-bottom.mk