Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | SUMMARY = "A user-mode PPPoE client and server suite for Linux" |
| 2 | HOMEPAGE = "http://www.roaringpenguin.com/products/pppoe" |
| 3 | SECTION = "net" |
| 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=a194eaefae2be54ee3221339b10d0581" |
| 6 | |
| 7 | PR = "r10" |
| 8 | |
| 9 | SRC_URI = "http://www.roaringpenguin.com/files/download/${BP}.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://configure.patch \ |
| 17 | file://pppoe-server.default \ |
| 18 | file://pppoe-server.init \ |
| 19 | file://configure.in-Error-fix.patch \ |
| 20 | file://pppoe-server.service" |
| 21 | |
| 22 | SRC_URI[md5sum] = "216eb52b69062b92a64ee37fd71f4b66" |
| 23 | SRC_URI[sha256sum] = "00794e04031546b0e9b8cf286f2a6d1ccfc4a621b2a3abb2d7ef2a7ab7cc86c2" |
| 24 | |
| 25 | inherit autotools-brokensep update-rc.d systemd |
| 26 | |
| 27 | do_install_append() { |
| 28 | install -d ${D}${systemd_unitdir}/system |
| 29 | install -m 0644 ${WORKDIR}/pppoe-server.service ${D}${systemd_unitdir}/system |
| 30 | sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/pppoe-server.service |
| 31 | sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/pppoe-server.service |
| 32 | install -d ${D}${datadir}/doc/${PN} |
| 33 | if [ -f ${D}${datadir}/doc/README ]; then |
| 34 | mv ${D}${datadir}/doc/README ${D}${datadir}/doc/${PN}/ |
| 35 | fi |
| 36 | } |
| 37 | |
| 38 | do_install() { |
| 39 | # Install init script and default settings |
| 40 | install -m 0755 -d ${D}${sysconfdir}/default ${D}${sysconfdir}/init.d |
| 41 | install -m 0644 ${WORKDIR}/pppoe-server.default ${D}${sysconfdir}/default/pppoe-server |
| 42 | install -m 0755 ${WORKDIR}/pppoe-server.init ${D}${sysconfdir}/init.d/pppoe-server |
| 43 | # Install |
| 44 | oe_runmake -C ${S} DESTDIR=${D} docdir=${docdir} install |
| 45 | chmod 4755 ${D}${sbindir}/pppoe |
| 46 | } |
| 47 | |
| 48 | SYSTEMD_PACKAGES = "${PN}-server" |
| 49 | SYSTEMD_SERVICE_${PN}-server = "pppoe-server.service" |
| 50 | SYSTEMD_AUTO_ENABLE = "disable" |
| 51 | # Insert server package before main package |
| 52 | PACKAGES = "${PN}-dbg ${PN}-server ${PN}-relay ${PN}-sniff ${PN} ${PN}-doc" |
| 53 | |
| 54 | FILES_${PN}-server = "${sysconfdir}/default/pppoe-server \ |
| 55 | ${sysconfdir}/init.d/pppoe-server \ |
| 56 | ${sbindir}/pppoe-server \ |
| 57 | ${sysconfdir}/ppp/pppoe-server-options" |
| 58 | FILES_${PN}-relay = "${sbindir}/pppoe-relay" |
| 59 | FILES_${PN}-sniff = "${sbindir}/pppoe-sniff" |
| 60 | |
| 61 | CONFFILES_${PN} = "${sysconfdir}/ppp/pppoe.conf \ |
| 62 | ${sysconfdir}/ppp/firewall-standalone \ |
| 63 | ${sysconfdir}/ppp/firewall-masq" |
| 64 | CONFFILES_${PN}-server = "${sysconfdir}/ppp/pppoe-server-options \ |
| 65 | ${sysconfdir}/default/pppoe-server" |
| 66 | |
| 67 | INITSCRIPT_PACKAGES = "${PN}-server" |
| 68 | INITSCRIPT_NAME_${PN}-server = "pppoe-server" |
| 69 | INITSCRIPT_PARAMS_${PN}-server = "defaults 92 8" |
| 70 | |
| 71 | RDEPENDS_${PN} = "ppp" |
| 72 | RDEPENDS_${PN}-server = "${PN}" |
| 73 | RRECOMMENDS_${PN} = "ppp-oe" |
| 74 | |