summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.8.bb
diff options
context:
space:
mode:
authorLi xin <lixin.fnst@cn.fujitsu.com>2015-06-05 16:49:02 +0800
committerJoe MacDonald <joe_macdonald@mentor.com>2015-06-05 19:05:40 -0400
commit40639902b51f88d15de30cbe9c1d98ada4685486 (patch)
tree8d02def7df45bdff7301a996735501521e0bf5f3 /meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.8.bb
parent671304f007694b4329518aeb88e2f283fae75385 (diff)
downloadmeta-openembedded-40639902b51f88d15de30cbe9c1d98ada4685486.tar.gz
rp-pppoe: add systemd support and fix error in the step of do_configure.
The error is as follows: error: unrecognized command line option '-V' conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory #include <ac_nonexistent.h>. Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
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.bb16
1 files changed, 14 insertions, 2 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
index d1b0481b9..f3bd994a0 100644
--- a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.8.bb
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.8.bb
@@ -16,12 +16,21 @@ SRC_URI = "http://www.roaringpenguin.com/files/download/${BP}.tar.gz \
16 file://use-ldflags.patch \ 16 file://use-ldflags.patch \
17 file://configure.patch \ 17 file://configure.patch \
18 file://pppoe-server.default \ 18 file://pppoe-server.default \
19 file://pppoe-server.init" 19 file://pppoe-server.init \
20 file://configure.in-Error-fix.patch \
21 file://pppoe-server.service"
20 22
21SRC_URI[md5sum] = "0e32760f498f9cde44081ee6aafc823b" 23SRC_URI[md5sum] = "0e32760f498f9cde44081ee6aafc823b"
22SRC_URI[sha256sum] = "d916e9cfe1e62395f63a5361936fa855f6d0f0a37dc7227b394cdb725f553479" 24SRC_URI[sha256sum] = "d916e9cfe1e62395f63a5361936fa855f6d0f0a37dc7227b394cdb725f553479"
23 25
24inherit autotools-brokensep update-rc.d 26inherit autotools-brokensep update-rc.d systemd
27
28do_install_append() {
29 install -d ${D}${systemd_unitdir}/system
30 install -m 0644 ${WORKDIR}/pppoe-server.service ${D}${systemd_unitdir}/system
31 sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/pppoe-server.service
32 sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/pppoe-server.service
33}
25 34
26do_install() { 35do_install() {
27 # Install init script and default settings 36 # Install init script and default settings
@@ -33,6 +42,9 @@ do_install() {
33 chmod 4755 ${D}${sbindir}/pppoe 42 chmod 4755 ${D}${sbindir}/pppoe
34} 43}
35 44
45SYSTEMD_PACKAGES = "${PN}-server"
46SYSTEMD_SERVICE_${PN}-server = "pppoe-server.service"
47SYSTEMD_AUTO_ENABLE = "disable"
36# Insert server package before main package 48# Insert server package before main package
37PACKAGES = "${PN}-dbg ${PN}-server ${PN}-relay ${PN}-sniff ${PN} ${PN}-doc" 49PACKAGES = "${PN}-dbg ${PN}-server ${PN}-relay ${PN}-sniff ${PN} ${PN}-doc"
38 50