diff options
Diffstat (limited to 'meta-networking/recipes-protocols/freediameter')
-rw-r--r-- | meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb b/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb index b3282d273..c7c329a5d 100644 --- a/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb +++ b/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb | |||
@@ -78,18 +78,18 @@ do_install:append() { | |||
78 | mv ${D}${sysconfdir}/${fd_pkgname}/freediameter.conf.sample \ | 78 | mv ${D}${sysconfdir}/${fd_pkgname}/freediameter.conf.sample \ |
79 | ${D}${sysconfdir}/${fd_pkgname}/freeDiameter.conf.sample | 79 | ${D}${sysconfdir}/${fd_pkgname}/freeDiameter.conf.sample |
80 | install -d ${D}${sysconfdir}/freeDiameter | 80 | install -d ${D}${sysconfdir}/freeDiameter |
81 | install ${WORKDIR}/freeDiameter.conf ${D}${sysconfdir}/${fd_pkgname}/freeDiameter.conf | 81 | install ${UNPACKDIR}/freeDiameter.conf ${D}${sysconfdir}/${fd_pkgname}/freeDiameter.conf |
82 | 82 | ||
83 | # install daemon init related files | 83 | # install daemon init related files |
84 | install -d -m 0755 ${D}${sysconfdir}/default | 84 | install -d -m 0755 ${D}${sysconfdir}/default |
85 | install -d -m 0755 ${D}${sysconfdir}/init.d | 85 | install -d -m 0755 ${D}${sysconfdir}/init.d |
86 | install -m 0644 ${S}/contrib/debian/freediameter-daemon.default \ | 86 | install -m 0644 ${S}/contrib/debian/freediameter-daemon.default \ |
87 | ${D}${sysconfdir}/default/${BPN} | 87 | ${D}${sysconfdir}/default/${BPN} |
88 | install -m 0755 ${WORKDIR}/freediameter.init ${D}${sysconfdir}/init.d/${BPN} | 88 | install -m 0755 ${UNPACKDIR}/freediameter.init ${D}${sysconfdir}/init.d/${BPN} |
89 | 89 | ||
90 | # install for systemd | 90 | # install for systemd |
91 | install -d ${D}${systemd_system_unitdir} | 91 | install -d ${D}${systemd_system_unitdir} |
92 | install -m 0644 ${WORKDIR}/freediameter.service ${D}${systemd_system_unitdir} | 92 | install -m 0644 ${UNPACKDIR}/freediameter.service ${D}${systemd_system_unitdir} |
93 | sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_system_unitdir}/*.service | 93 | sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_system_unitdir}/*.service |
94 | 94 | ||
95 | cat >> ${D}${sysconfdir}/freeDiameter/freeDiameter.conf <<EOF | 95 | cat >> ${D}${sysconfdir}/freeDiameter/freeDiameter.conf <<EOF |
@@ -108,14 +108,14 @@ EOF | |||
108 | openssl req -x509 -config ${STAGING_DIR_NATIVE}/etc/ssl/openssl.cnf -newkey rsa:4096 -sha256 -nodes -out ${D}${sysconfdir}/freeDiameter/${FD_PEM} -keyout ${D}${sysconfdir}/freeDiameter/${FD_KEY} -days 3650 -subj '/CN=${FD_HOSTNAME}.${FD_REALM}' | 108 | openssl req -x509 -config ${STAGING_DIR_NATIVE}/etc/ssl/openssl.cnf -newkey rsa:4096 -sha256 -nodes -out ${D}${sysconfdir}/freeDiameter/${FD_PEM} -keyout ${D}${sysconfdir}/freeDiameter/${FD_KEY} -days 3650 -subj '/CN=${FD_HOSTNAME}.${FD_REALM}' |
109 | openssl dhparam -out ${D}${sysconfdir}/freeDiameter/${FD_DH_PEM} 1024 | 109 | openssl dhparam -out ${D}${sysconfdir}/freeDiameter/${FD_DH_PEM} 1024 |
110 | 110 | ||
111 | find ${B} \( -name "*.c" -o -name "*.h" \) -exec sed -i -e 's#${WORKDIR}##g' {} \; | 111 | find ${B} \( -name "*.c" -o -name "*.h" \) -exec sed -i -e 's#${UNPACKDIR}##g' {} \; |
112 | } | 112 | } |
113 | 113 | ||
114 | do_install_ptest() { | 114 | do_install_ptest() { |
115 | mv ${D}${PTEST_PATH}-tests/* ${D}${PTEST_PATH}/ | 115 | mv ${D}${PTEST_PATH}-tests/* ${D}${PTEST_PATH}/ |
116 | rmdir ${D}${PTEST_PATH}-tests | 116 | rmdir ${D}${PTEST_PATH}-tests |
117 | install -m 0644 ${B}/tests/CTestTestfile.cmake ${D}${PTEST_PATH}/ | 117 | install -m 0644 ${B}/tests/CTestTestfile.cmake ${D}${PTEST_PATH}/ |
118 | sed -i -e 's#${WORKDIR}##g' ${D}${PTEST_PATH}/CTestTestfile.cmake | 118 | sed -i -e 's#${UNPACKDIR}##g' ${D}${PTEST_PATH}/CTestTestfile.cmake |
119 | sed -i "/^set_tests_properties/d" ${D}${PTEST_PATH}/CTestTestfile.cmake | 119 | sed -i "/^set_tests_properties/d" ${D}${PTEST_PATH}/CTestTestfile.cmake |
120 | } | 120 | } |
121 | 121 | ||