1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include ${TOPDIR}/rules.mk
PKG_NAME:= rp-pppoe
PKG_VERSION:= 3.10
PKG_RELEASE:= 1
PKG_MD5SUM:= d58a13cc4185bca6121a606ff456dec0
PKG_DESCR:= PPPoE (PPP over Ethernet) tools
PKG_SECTION:= net
PKG_DEPENDS:= ppp
PKG_URL:= http://www.roaringpenguin.com
PKG_SITES:= http://www.roaringpenguin.com/files/download/
WRKSRC= ${WRKDIST}/src
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,PPPOE_CLIENT,pppoe-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,PPPOE_RELAY,pppoe-relay,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,PPPOE_SERVER,pppoe-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,PPPOE_SNIFF,pppoe-sniff,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
CONFIGURE_ENV+= ac_cv_func_setvbuf_reversed=no \
ac_cv_sizeof_unsigned_short=2 \
ac_cv_sizeof_unsigned_int=4 \
ac_cv_sizeof_unsigned_long=4 \
ac_cv_linux_kernel_pppoe=yes \
ac_cv_pack_bitfields_reversed=yes
post-install:
${INSTALL_DIR} ${IDIR_PPPOE_CLIENT}/etc/ppp \
${IDIR_PPPOE_CLIENT}/usr/sbin
${INSTALL_DATA} ${WRKINST}/etc/ppp/pppoe.conf \
${IDIR_PPPOE_CLIENT}/etc/ppp
${CP} ${WRKINST}/usr/sbin/pppoe ${IDIR_PPPOE_CLIENT}/usr/sbin/
${CP} ${WRKINST}/usr/sbin/pppoe-connect ${IDIR_PPPOE_CLIENT}/usr/sbin/
${CP} ${WRKINST}/usr/sbin/pppoe-start ${IDIR_PPPOE_CLIENT}/usr/sbin/
${CP} ${WRKINST}/usr/sbin/pppoe-stop ${IDIR_PPPOE_CLIENT}/usr/sbin/
${CP} ${WRKINST}/usr/sbin/pppoe-status ${IDIR_PPPOE_CLIENT}/usr/sbin/
${CP} ${WRKINST}/usr/sbin/pppoe-setup ${IDIR_PPPOE_CLIENT}/usr/sbin/
${INSTALL_DIR} ${IDIR_PPPOE_RELAY}/usr/sbin
${INSTALL_BIN} ${WRKINST}/usr/sbin/pppoe-relay \
${IDIR_PPPOE_RELAY}/usr/sbin/
${INSTALL_DIR} ${IDIR_PPPOE_SERVER}/etc/ppp \
${IDIR_PPPOE_SERVER}/usr/sbin
${INSTALL_DATA} ${WRKINST}/etc/ppp/pppoe-server-options \
${IDIR_PPPOE_SERVER}/etc/ppp/
${INSTALL_BIN} ${WRKINST}/usr/sbin/pppoe-server \
${IDIR_PPPOE_SERVER}/usr/sbin/
${INSTALL_DIR} ${IDIR_PPPOE_SNIFF}/usr/sbin
${INSTALL_BIN} ${WRKINST}/usr/sbin/pppoe-sniff \
${IDIR_PPPOE_SNIFF}/usr/sbin/
include ${TOPDIR}/mk/pkg-bottom.mk
|