python-pyasn: bump to version 1.6.0b1
[buildroot-gz.git] / package / rp-pppoe / rp-pppoe.mk
blob99d231e579e6024a5cc40ef18a4a2218b1b090e3
1 ################################################################################
3 # rp-pppoe
5 ################################################################################
7 RP_PPPOE_VERSION = 3.12
8 RP_PPPOE_SITE = http://www.roaringpenguin.com/files/download
9 RP_PPPOE_LICENSE = GPLv2
10 RP_PPPOE_LICENSE_FILES = doc/LICENSE
11 RP_PPPOE_DEPENDENCIES = pppd
12 RP_PPPOE_SUBDIR = src
13 RP_PPPOE_TARGET_FILES = pppoe pppoe-server pppoe-relay pppoe-sniff
14 RP_PPPOE_TARGET_SCRIPTS = pppoe-connect pppoe-init pppoe-setup pppoe-start \
15 pppoe-status pppoe-stop
16 RP_PPPOE_MAKE_OPTS = PLUGIN_DIR=/usr/lib/pppd/$(PPPD_VERSION)
17 RP_PPPOE_CONF_OPTS = --disable-debugging
19 # The pppd, echo, setsid and id paths must be the ones on the
20 # target. Indeed, the result of these checks is used to replace
21 # variables in scripts that are installed in the target.
22 RP_PPPOE_CONF_ENV = \
23 rpppoe_cv_pack_bitfields=normal \
24 ac_cv_path_PPPD=/usr/sbin/pppd \
25 ac_cv_path_ECHO=/bin/echo \
26 ac_cv_path_SETSID=/usr/bin/setsid \
27 ac_cv_path_ID=/usr/bin/id \
28 PPPD_H=$(PPPD_DIR)/pppd/pppd.h
30 define RP_PPPOE_INSTALL_TARGET_CMDS
31 $(INSTALL) -D -m 0644 $(@D)/configs/pppoe.conf \
32 $(TARGET_DIR)/etc/ppp/pppoe.conf
33 for ff in $(RP_PPPOE_TARGET_FILES); do \
34 $(INSTALL) -m 0755 $(@D)/src/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \
35 done
36 for ff in $(RP_PPPOE_TARGET_SCRIPTS); do \
37 $(INSTALL) -m 0755 $(@D)/scripts/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \
38 done
39 endef
41 $(eval $(autotools-package))