diff options
Diffstat (limited to 'meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.8.bb')
| -rw-r--r-- | meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.8.bb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.8.bb b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.8.bb new file mode 100644 index 0000000000..d4cc664e1a --- /dev/null +++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.8.bb | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | SUMMARY = "A user-mode PPPoE client and server suite for Linux" | ||
| 2 | HOMEPAGE = "http://www.roaringpenguin.com/products/pppoe" | ||
| 3 | SECTION = "console/network" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=a194eaefae2be54ee3221339b10d0581" | ||
| 6 | |||
| 7 | PR = "r9" | ||
| 8 | |||
| 9 | SRC_URI = "http://www.roaringpenguin.com/files/download/${P}.tar.gz \ | ||
| 10 | file://top-autoconf.patch \ | ||
| 11 | file://configure_in_cross.patch \ | ||
| 12 | file://pppoe-src-restrictions.patch \ | ||
| 13 | file://update-config.patch \ | ||
| 14 | file://dont-swallow-errors.patch \ | ||
| 15 | file://discard-use-of-dnl-in-Makefile.am.patch \ | ||
| 16 | file://use-ldflags.patch \ | ||
| 17 | file://pppoe-server.default \ | ||
| 18 | file://pppoe-server.init" | ||
| 19 | |||
| 20 | SRC_URI[md5sum] = "0e32760f498f9cde44081ee6aafc823b" | ||
| 21 | SRC_URI[sha256sum] = "d916e9cfe1e62395f63a5361936fa855f6d0f0a37dc7227b394cdb725f553479" | ||
| 22 | |||
| 23 | inherit autotools update-rc.d | ||
| 24 | |||
| 25 | do_install() { | ||
| 26 | # Install init script and default settings | ||
| 27 | install -m 0755 -d ${D}${sysconfdir}/default ${D}${sysconfdir}/init.d | ||
| 28 | install -m 0644 ${WORKDIR}/pppoe-server.default ${D}${sysconfdir}/default/pppoe-server | ||
| 29 | install -m 0755 ${WORKDIR}/pppoe-server.init ${D}${sysconfdir}/init.d/pppoe-server | ||
| 30 | # Install | ||
| 31 | oe_runmake -C ${S} RPM_INSTALL_ROOT=${D} docdir=${docdir} install | ||
| 32 | } | ||
| 33 | |||
| 34 | # Insert server package before main package | ||
| 35 | PACKAGES = "${PN}-dbg ${PN}-server ${PN}-relay ${PN}-sniff ${PN} ${PN}-doc" | ||
| 36 | |||
| 37 | FILES_${PN}-server = "${sysconfdir}/default/pppoe-server \ | ||
| 38 | ${sysconfdir}/init.d/pppoe-server \ | ||
| 39 | ${sbindir}/pppoe-server \ | ||
| 40 | ${sysconfdir}/ppp/pppoe-server-options" | ||
| 41 | FILES_${PN}-relay = "${sbindir}/pppoe-relay" | ||
| 42 | FILES_${PN}-sniff = "${sbindir}/pppoe-sniff" | ||
| 43 | |||
| 44 | pkg_postinst_${PN} () { | ||
| 45 | if [ x"$D" != "x" ]; then | ||
| 46 | exit 1 | ||
| 47 | fi | ||
| 48 | chmod 4755 ${sbindir}/pppoe | ||
| 49 | } | ||
| 50 | |||
| 51 | CONFFILES_${PN} = "${sysconfdir}/ppp/pppoe.conf \ | ||
| 52 | ${sysconfdir}/ppp/firewall-standalone \ | ||
| 53 | ${sysconfdir}/ppp/firewall-masq" | ||
| 54 | CONFFILES_${PN}-server = "${sysconfdir}/ppp/pppoe-server-options \ | ||
| 55 | ${sysconfdir}/default/pppoe-server" | ||
| 56 | |||
| 57 | INITSCRIPT_PACKAGES = "${PN}-server" | ||
| 58 | INITSCRIPT_NAME_${PN}-server = "pppoe-server" | ||
| 59 | INITSCRIPT_PARAMS_${PN}-server = "defaults 92 8" | ||
| 60 | |||
| 61 | RDEPENDS_${PN} = "ppp" | ||
| 62 | RDEPENDS_${PN}-server = "${PN}" | ||
| 63 | RRECOMMENDS_${PN} = "ppp-oe" | ||
| 64 | |||
