3 include $(TOPDIR
)/rules.mk
10 PKG_SOURCE_URL
:=http
://roaringpenguin.com
/penguin
/pppoe
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,PPPOE_CLIENT
,pppoe-client
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,PPPOE_RELAY
,pppoe-relay
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(eval
$(call PKG_template
,PPPOE_SERVER
,pppoe-server
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(eval
$(call PKG_template
,PPPOE_SNIFF
,pppoe-sniff
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
24 $(PKG_BUILD_DIR
)/.configured
:
25 (cd
$(PKG_BUILD_DIR
)/src
; rm -rf config.
{cache
,status
}; \
26 $(TARGET_CONFIGURE_OPTS
) \
27 CFLAGS
="$(TARGET_CFLAGS)" \
28 ac_cv_func_setvbuf_reversed
=no \
29 ac_cv_sizeof_unsigned_short
=2 \
30 ac_cv_sizeof_unsigned_int
=4 \
31 ac_cv_sizeof_unsigned_long
=4 \
32 ac_cv_linux_kernel_pppoe
=yes \
33 ac_cv_pack_bitfields_reversed
=yes \
35 --target
=$(GNU_TARGET_NAME
) \
36 --host
=$(GNU_TARGET_NAME
) \
37 --build
=$(GNU_HOST_NAME
) \
43 --datadir=/usr
/share \
44 --includedir=/usr
/include \
45 --infodir=/usr
/share
/info \
47 --libexecdir
=/usr
/lib \
48 --localstatedir
=/var \
49 --mandir=/usr
/share
/man \
52 $(DISABLE_LARGEFILE
) \
57 $(PKG_BUILD_DIR
)/.built
:
58 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src \
59 DESTDIR
="$(PKG_INSTALL_DIR)" \
64 install -d
-m0755
$(IDIR_PPPOE_CLIENT
)/etc
/init.d
65 install -m0755 .
/files
/pppoe-client.init
$(IDIR_PPPOE_CLIENT
)/etc
/init.d
/pppoe-client
66 install -d
-m0755
$(IDIR_PPPOE_CLIENT
)/etc
/ppp
67 install -m0644
$(PKG_INSTALL_DIR
)/etc
/pppoe.conf
$(IDIR_PPPOE_CLIENT
)/etc
/
68 install -d
-m0755
$(IDIR_PPPOE_CLIENT
)/usr
/sbin
69 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe
$(IDIR_PPPOE_CLIENT
)/usr
/sbin
/
70 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/adsl-
* $(IDIR_PPPOE_CLIENT
)/usr
/sbin
/
71 $(RSTRIP
) $(IDIR_PPPOE_CLIENT
)
72 $(IPKG_BUILD
) $(IDIR_PPPOE_CLIENT
) $(PACKAGE_DIR
)
75 install -d
-m0755
$(IDIR_PPPOE_RELAY
)/etc
/default
76 install -m0755 .
/files
/pppoe-relay.default
$(IDIR_PPPOE_RELAY
)/etc
/default
/pppoe-relay
77 install -d
-m0755
$(IDIR_PPPOE_RELAY
)/etc
/init.d
78 install -m0755 .
/files
/pppoe-relay.init
$(IDIR_PPPOE_RELAY
)/etc
/init.d
/pppoe-relay
79 install -d
-m0755
$(IDIR_PPPOE_RELAY
)/usr
/sbin
80 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe-relay
$(IDIR_PPPOE_RELAY
)/usr
/sbin
/
81 $(RSTRIP
) $(IDIR_PPPOE_RELAY
)
82 $(IPKG_BUILD
) $(IDIR_PPPOE_RELAY
) $(PACKAGE_DIR
)
85 install -d
-m0755
$(IDIR_PPPOE_SERVER
)/etc
/default
86 install -m0755 .
/files
/pppoe-server.default
$(IDIR_PPPOE_SERVER
)/etc
/default
/pppoe-server
87 install -d
-m0755
$(IDIR_PPPOE_SERVER
)/etc
/init.d
88 install -m0755 .
/files
/pppoe-server.init
$(IDIR_PPPOE_SERVER
)/etc
/init.d
/pppoe-server
89 install -d
-m0755
$(IDIR_PPPOE_SERVER
)/etc
/ppp
90 install -m0644
$(PKG_INSTALL_DIR
)/etc
/ppp
/pppoe-server-options
$(IDIR_PPPOE_SERVER
)/etc
/ppp
/
91 install -d
-m0755
$(IDIR_PPPOE_SERVER
)/usr
/sbin
92 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe-server
$(IDIR_PPPOE_SERVER
)/usr
/sbin
/
93 $(RSTRIP
) $(IDIR_PPPOE_SERVER
)
94 $(IPKG_BUILD
) $(IDIR_PPPOE_SERVER
) $(PACKAGE_DIR
)
97 install -d
-m0755
$(IDIR_PPPOE_SNIFF
)/usr
/sbin
98 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe-sniff
$(IDIR_PPPOE_SNIFF
)/usr
/sbin
/
99 $(RSTRIP
) $(IDIR_PPPOE_SNIFF
)
100 $(IPKG_BUILD
) $(IDIR_PPPOE_SNIFF
) $(PACKAGE_DIR
)