diff options
author | Li xin <lixin.fnst@cn.fujitsu.com> | 2015-06-05 16:49:02 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-06-05 19:05:40 -0400 |
commit | 40639902b51f88d15de30cbe9c1d98ada4685486 (patch) | |
tree | 8d02def7df45bdff7301a996735501521e0bf5f3 /meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.8.bb | |
parent | 671304f007694b4329518aeb88e2f283fae75385 (diff) | |
download | meta-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.bb | 16 |
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 | ||
21 | SRC_URI[md5sum] = "0e32760f498f9cde44081ee6aafc823b" | 23 | SRC_URI[md5sum] = "0e32760f498f9cde44081ee6aafc823b" |
22 | SRC_URI[sha256sum] = "d916e9cfe1e62395f63a5361936fa855f6d0f0a37dc7227b394cdb725f553479" | 24 | SRC_URI[sha256sum] = "d916e9cfe1e62395f63a5361936fa855f6d0f0a37dc7227b394cdb725f553479" |
23 | 25 | ||
24 | inherit autotools-brokensep update-rc.d | 26 | inherit autotools-brokensep update-rc.d systemd |
27 | |||
28 | do_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 | ||
26 | do_install() { | 35 | do_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 | ||
45 | SYSTEMD_PACKAGES = "${PN}-server" | ||
46 | SYSTEMD_SERVICE_${PN}-server = "pppoe-server.service" | ||
47 | SYSTEMD_AUTO_ENABLE = "disable" | ||
36 | # Insert server package before main package | 48 | # Insert server package before main package |
37 | PACKAGES = "${PN}-dbg ${PN}-server ${PN}-relay ${PN}-sniff ${PN} ${PN}-doc" | 49 | PACKAGES = "${PN}-dbg ${PN}-server ${PN}-relay ${PN}-sniff ${PN} ${PN}-doc" |
38 | 50 | ||