summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb')
-rw-r--r--meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb b/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
index 183c0066df..4e5b45891d 100644
--- a/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
+++ b/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
@@ -41,14 +41,14 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BP}.tar.gz \
41SRC_URI[md5sum] = "e3d08dedfb9e6a9a1e24f6766f6dadd0" 41SRC_URI[md5sum] = "e3d08dedfb9e6a9a1e24f6766f6dadd0"
42SRC_URI[sha256sum] = "1c97704d4b963a87fbc0e741668d4530933991515ae9ab0dffd11b5444f4860f" 42SRC_URI[sha256sum] = "1c97704d4b963a87fbc0e741668d4530933991515ae9ab0dffd11b5444f4860f"
43 43
44inherit autotools-brokensep pkgconfig systemd ptest 44inherit pkgconfig systemd ptest
45 45
46SYSTEMD_SERVICE:${PN} = "openl2tpd.service" 46SYSTEMD_SERVICE:${PN} = "openl2tpd.service"
47SYSTEMD_AUTO_ENABLE = "disable" 47SYSTEMD_AUTO_ENABLE = "disable"
48 48
49DEPENDS += "libtirpc" 49DEPENDS += "libtirpc"
50CPPFLAGS += "-I${STAGING_INCDIR}/tirpc" 50CPPFLAGS += "-I${STAGING_INCDIR}/tirpc"
51CFLAGS += "-I${STAGING_INCDIR}/tirpc" 51CFLAGS += "-I${STAGING_INCDIR}/tirpc -std=gnu17"
52LDFLAGS += "-ltirpc" 52LDFLAGS += "-ltirpc"
53 53
54PARALLEL_MAKE = "" 54PARALLEL_MAKE = ""
@@ -67,14 +67,16 @@ do_compile:prepend() {
67 ${S}/Makefile 67 ${S}/Makefile
68} 68}
69 69
70do_install:append () { 70do_install () {
71 oe_runmake 'DESTDIR=${D}' install
72
71 install -d ${D}${sysconfdir}/init.d 73 install -d ${D}${sysconfdir}/init.d
72 install -d ${D}${sysconfdir}/default 74 install -d ${D}${sysconfdir}/default
73 install -m 0755 ${S}/etc/rc.d/init.d/openl2tpd ${D}${sysconfdir}/init.d/openl2tpd 75 install -m 0755 ${S}/etc/rc.d/init.d/openl2tpd ${D}${sysconfdir}/init.d/openl2tpd
74 install -m 0755 ${S}/etc/sysconfig/openl2tpd ${D}${sysconfdir}/default/openl2tpd 76 install -m 0755 ${S}/etc/sysconfig/openl2tpd ${D}${sysconfdir}/default/openl2tpd
75 77
76 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 78 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
77 install -D -m 0644 ${WORKDIR}/openl2tpd.service ${D}${systemd_system_unitdir}/openl2tpd.service 79 install -D -m 0644 ${UNPACKDIR}/openl2tpd.service ${D}${systemd_system_unitdir}/openl2tpd.service
78 sed -i -e 's,@STATEDIR@,${localstatedir},g' \ 80 sed -i -e 's,@STATEDIR@,${localstatedir},g' \
79 -e 's,@SYSCONFDIR@,${sysconfdir},g' \ 81 -e 's,@SYSCONFDIR@,${sysconfdir},g' \
80 -e 's,@SBINDIR@,${sbindir},g' \ 82 -e 's,@SBINDIR@,${sbindir},g' \
@@ -94,3 +96,4 @@ do_install_ptest () {
94} 96}
95 97
96RDEPENDS:${PN} = "ppp ppp-l2tp bash" 98RDEPENDS:${PN} = "ppp ppp-l2tp bash"
99RDEPENDS:${PN}-ptest += "rpcbind kernel-module-l2tp-ppp procps-ps tcl"