imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / rp-pppoe / Makefile
blob0fb4b8f8c1df56a7a90fa89de5f80085591f9a21
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:= rp-pppoe
7 PKG_VERSION:= 3.10
8 PKG_RELEASE:= 1
9 PKG_HASH:= 709ca7402594acc1d80b99c20219112b5c00e6ac48ae6049fc626fbaf4ce49f6
10 PKG_DESCR:= ppp over ethernet tools
11 PKG_SECTION:= net/ppp
12 PKG_DEPENDS:= ppp
13 PKG_URL:= http://www.roaringpenguin.com/
14 PKG_SITES:= http://www.roaringpenguin.com/files/download/
16 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
18 PKG_LIBC_DEPENDS:= uclibc-ng glibc
20 PKG_SUBPKGS:= RP_PPPOE RP_PPPOE_CLIENT RP_PPPOE_RELAY RP_PPPOE_SERVER RP_PPPOE_SNIFF
21 PKGSD_RP_PPPOE_CLIENT:= PPPoE client
22 PKGSN_RP_PPPOE_CLIENT:= rp-pppoe
23 PKGSD_RP_PPPOE_RELAY:= PPPoE relay service
24 PKGSN_RP_PPPOE_RELAY:= rp-pppoe
25 PKGSD_RP_PPPOE_SERVER:= PPPoE server
26 PKGSN_RP_PPPOE_SERVER:= rp-pppoe
27 PKGSD_RP_PPPOE_SNIFF:= PPPoE sniffer
28 PKGSN_RP_PPPOE_SNIFF:= rp-pppoe
30 WRKSRC= ${WRKDIST}/src
32 include ${ADK_TOPDIR}/mk/package.mk
34 $(eval $(call PKG_template,RP_PPPOE_CLIENT,rp-pppoe-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_RP_PPPOE_CLIENT},${PKG_SECTION}))
35 $(eval $(call PKG_template,RP_PPPOE_RELAY,rp-pppoe-relay,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_RP_PPPOE_RELAY},${PKG_SECTION}))
36 $(eval $(call PKG_template,RP_PPPOE_SERVER,rp-pppoe-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_RP_PPPOE_SERVER},${PKG_SECTION}))
37 $(eval $(call PKG_template,RP_PPPOE_SNIFF,rp-pppoe-sniff,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_RP_PPPOE_SNIFF},${PKG_SECTION}))
39 CONFIGURE_ENV+= ac_cv_func_setvbuf_reversed=no \
40 ac_cv_sizeof_unsigned_short=2 \
41 ac_cv_sizeof_unsigned_int=4 \
42 ac_cv_sizeof_unsigned_long=4 \
43 ac_cv_linux_kernel_pppoe=yes \
44 ac_cv_pack_bitfields_reversed=yes
46 rp-pppoe-client-install:
47 ${INSTALL_DIR} ${IDIR_RP_PPPOE_CLIENT}/etc/ppp \
48 ${IDIR_RP_PPPOE_CLIENT}/usr/sbin
49 ${INSTALL_DATA} ${WRKINST}/etc/ppp/pppoe.conf \
50 ${IDIR_RP_PPPOE_CLIENT}/etc/ppp
51 ${CP} ${WRKINST}/usr/sbin/pppoe ${IDIR_RP_PPPOE_CLIENT}/usr/sbin/
52 ${CP} ${WRKINST}/usr/sbin/pppoe-connect ${IDIR_RP_PPPOE_CLIENT}/usr/sbin/
53 ${CP} ${WRKINST}/usr/sbin/pppoe-start ${IDIR_RP_PPPOE_CLIENT}/usr/sbin/
54 ${CP} ${WRKINST}/usr/sbin/pppoe-stop ${IDIR_RP_PPPOE_CLIENT}/usr/sbin/
55 ${CP} ${WRKINST}/usr/sbin/pppoe-status ${IDIR_RP_PPPOE_CLIENT}/usr/sbin/
56 ${CP} ${WRKINST}/usr/sbin/pppoe-setup ${IDIR_RP_PPPOE_CLIENT}/usr/sbin/
58 rp-pppoe-relay-install:
59 ${INSTALL_DIR} ${IDIR_RP_PPPOE_RELAY}/usr/sbin
60 ${INSTALL_BIN} ${WRKINST}/usr/sbin/pppoe-relay \
61 ${IDIR_RP_PPPOE_RELAY}/usr/sbin/
63 rp-pppoe-server-install:
64 ${INSTALL_DIR} ${IDIR_RP_PPPOE_SERVER}/etc/ppp \
65 ${IDIR_RP_PPPOE_SERVER}/usr/sbin
66 ${INSTALL_DATA} ${WRKINST}/etc/ppp/pppoe-server-options \
67 ${IDIR_RP_PPPOE_SERVER}/etc/ppp/
68 ${INSTALL_BIN} ${WRKINST}/usr/sbin/pppoe-server \
69 ${IDIR_RP_PPPOE_SERVER}/usr/sbin/
71 rp-pppoe-sniff-install:
72 ${INSTALL_DIR} ${IDIR_RP_PPPOE_SNIFF}/usr/sbin
73 ${INSTALL_BIN} ${WRKINST}/usr/sbin/pppoe-sniff \
74 ${IDIR_RP_PPPOE_SNIFF}/usr/sbin/
76 include ${ADK_TOPDIR}/mk/pkg-bottom.mk