diff options
Diffstat (limited to 'meta/recipes-connectivity/ppp/ppp_2.4.5.bb')
-rw-r--r-- | meta/recipes-connectivity/ppp/ppp_2.4.5.bb | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/ppp/ppp_2.4.5.bb b/meta/recipes-connectivity/ppp/ppp_2.4.5.bb new file mode 100644 index 0000000000..39354efb17 --- /dev/null +++ b/meta/recipes-connectivity/ppp/ppp_2.4.5.bb | |||
@@ -0,0 +1,88 @@ | |||
1 | SUMMARY = "Point-to-Point Protocol (PPP) support" | ||
2 | DESCRIPTION = "ppp (Paul's PPP Package) is an open source package which implements \ | ||
3 | the Point-to-Point Protocol (PPP) on Linux and Solaris systems." | ||
4 | SECTION = "console/network" | ||
5 | HOMEPAGE = "http://samba.org/ppp/" | ||
6 | BUGTRACKER = "http://ppp.samba.org/cgi-bin/ppp-bugs" | ||
7 | DEPENDS = "libpcap" | ||
8 | LICENSE = "BSD & GPLv2+ & LGPLv2+ & PD" | ||
9 | LIC_FILES_CHKSUM = "file://pppd/ccp.c;beginline=1;endline=29;md5=e2c43fe6e81ff77d87dc9c290a424dea \ | ||
10 | file://pppd/plugins/passprompt.c;beginline=1;endline=10;md5=3bcbcdbf0e369c9a3e0b8c8275b065d8 \ | ||
11 | file://pppd/tdb.c;beginline=1;endline=27;md5=4ca3a9991b011038d085d6675ae7c4e6 \ | ||
12 | file://chat/chat.c;beginline=1;endline=15;md5=0d374b8545ee5c62d7aff1acbd38add2" | ||
13 | PR = "r6" | ||
14 | |||
15 | SRC_URI = "http://ppp.samba.org/ftp/ppp/ppp-${PV}.tar.gz \ | ||
16 | file://makefile.patch \ | ||
17 | file://cifdefroute.patch \ | ||
18 | file://pppd-resolv-varrun.patch \ | ||
19 | file://enable-ipv6.patch \ | ||
20 | file://makefile-remove-hard-usr-reference.patch \ | ||
21 | file://update_if_pppol2tp.patch \ | ||
22 | file://pon \ | ||
23 | file://poff \ | ||
24 | file://init \ | ||
25 | file://ip-up \ | ||
26 | file://ip-down \ | ||
27 | file://08setupdns \ | ||
28 | file://92removedns \ | ||
29 | file://copts.patch \ | ||
30 | file://pap \ | ||
31 | file://ppp_on_boot \ | ||
32 | file://provider " | ||
33 | |||
34 | SRC_URI[md5sum] = "4621bc56167b6953ec4071043fe0ec57" | ||
35 | SRC_URI[sha256sum] = "43317afec9299f9920b96f840414c977f0385410202d48e56d2fdb8230003505" | ||
36 | |||
37 | inherit autotools | ||
38 | |||
39 | TARGET_CC_ARCH += " ${LDFLAGS}" | ||
40 | EXTRA_OEMAKE = "STRIPPROG=${STRIP} MANDIR=${D}${datadir}/man/man8 INCDIR=${D}${includedir} LIBDIR=${D}${libdir}/pppd/${PV} BINDIR=${D}${sbindir}" | ||
41 | EXTRA_OECONF = "--disable-strip" | ||
42 | |||
43 | # Package Makefile computes CFLAGS, referencing COPTS. | ||
44 | # Typically hard-coded to '-O2 -g' in the Makefile's. | ||
45 | # | ||
46 | EXTRA_OEMAKE += ' COPTS="${CFLAGS}"' | ||
47 | |||
48 | do_install_append () { | ||
49 | make install-etcppp ETCDIR=${D}/${sysconfdir}/ppp | ||
50 | mkdir -p ${D}${bindir}/ ${D}${sysconfdir}/init.d | ||
51 | mkdir -p ${D}${sysconfdir}/ppp/ip-up.d/ | ||
52 | mkdir -p ${D}${sysconfdir}/ppp/ip-down.d/ | ||
53 | install -m 0755 ${WORKDIR}/pon ${D}${bindir}/pon | ||
54 | install -m 0755 ${WORKDIR}/poff ${D}${bindir}/poff | ||
55 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/ppp | ||
56 | install -m 0755 ${WORKDIR}/ip-up ${D}${sysconfdir}/ppp/ | ||
57 | install -m 0755 ${WORKDIR}/ip-down ${D}${sysconfdir}/ppp/ | ||
58 | install -m 0755 ${WORKDIR}/08setupdns ${D}${sysconfdir}/ppp/ip-up.d/ | ||
59 | install -m 0755 ${WORKDIR}/92removedns ${D}${sysconfdir}/ppp/ip-down.d/ | ||
60 | mkdir -p ${D}${sysconfdir}/chatscripts | ||
61 | mkdir -p ${D}${sysconfdir}/ppp/peers | ||
62 | install -m 0755 ${WORKDIR}/pap ${D}${sysconfdir}/chatscripts | ||
63 | install -m 0755 ${WORKDIR}/ppp_on_boot ${D}${sysconfdir}/ppp/ppp_on_boot | ||
64 | install -m 0755 ${WORKDIR}/provider ${D}${sysconfdir}/ppp/peers/provider | ||
65 | rm -rf ${D}/${mandir}/man8/man8 | ||
66 | chmod u+s ${D}${sbindir}/pppd | ||
67 | } | ||
68 | |||
69 | CONFFILES_${PN} = "${sysconfdir}/ppp/pap-secrets ${sysconfdir}/ppp/chap-secrets ${sysconfdir}/ppp/options" | ||
70 | PACKAGES =+ "${PN}-oa ${PN}-oe ${PN}-radius ${PN}-winbind ${PN}-minconn ${PN}-password ${PN}-l2tp ${PN}-tools" | ||
71 | FILES_${PN} = "${sysconfdir} ${bindir} ${sbindir}/chat ${sbindir}/pppd" | ||
72 | FILES_${PN}-dbg += "${libdir}/pppd/${PV}/.debug" | ||
73 | FILES_${PN}-oa = "${libdir}/pppd/${PV}/pppoatm.so" | ||
74 | FILES_${PN}-oe = "${sbindir}/pppoe-discovery ${libdir}/pppd/${PV}/rp-pppoe.so" | ||
75 | FILES_${PN}-radius = "${libdir}/pppd/${PV}/radius.so ${libdir}/pppd/${PV}/radattr.so ${libdir}/pppd/${PV}/radrealms.so" | ||
76 | FILES_${PN}-winbind = "${libdir}/pppd/${PV}/winbind.so" | ||
77 | FILES_${PN}-minconn = "${libdir}/pppd/${PV}/minconn.so" | ||
78 | FILES_${PN}-password = "${libdir}/pppd/${PV}/pass*.so" | ||
79 | FILES_${PN}-l2tp = "${libdir}/pppd/${PV}/*l2tp.so" | ||
80 | FILES_${PN}-tools = "${sbindir}/pppstats ${sbindir}/pppdump" | ||
81 | DESCRIPTION_${PN}-oa = "Plugin for PPP needed for PPP-over-ATM" | ||
82 | DESCRIPTION_${PN}-oe = "Plugin for PPP needed for PPP-over-Ethernet" | ||
83 | DESCRIPTION_${PN}-radius = "Plugin for PPP that are related to RADIUS" | ||
84 | DESCRIPTION_${PN}-winbind = "Plugin for PPP to authenticate against Samba or Windows" | ||
85 | DESCRIPTION_${PN}-minconn = "Plugin for PPP to specify a minimum connect time before the idle timeout applies" | ||
86 | DESCRIPTION_${PN}-password = "Plugin for PPP to get passwords via a pipe" | ||
87 | DESCRIPTION_${PN}-l2tp = "Plugin for PPP for l2tp support" | ||
88 | DESCRIPTION_${PN}-tools = "The pppdump and pppstats utitilities" | ||