diff options
Diffstat (limited to 'meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb')
-rw-r--r-- | meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb | 17 |
1 files changed, 9 insertions, 8 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 b3282d273b..89b2572c04 100644 --- a/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb +++ b/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb | |||
@@ -7,7 +7,7 @@ Accounting needs." | |||
7 | 7 | ||
8 | HOMEPAGE = "http://www.freediameter.net" | 8 | HOMEPAGE = "http://www.freediameter.net" |
9 | 9 | ||
10 | DEPENDS = "flex bison cmake-native libgcrypt gnutls libidn2 lksctp-tools virtual/kernel bison-native" | 10 | DEPENDS = "flex-native bison-native cmake-native libgcrypt gnutls libidn2 lksctp-tools virtual/kernel bison-native" |
11 | 11 | ||
12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
13 | 13 | ||
@@ -23,9 +23,10 @@ SRC_URI = "git://github.com/freeDiameter/freeDiameter;protocol=https;branch=mast | |||
23 | file://freeDiameter.conf \ | 23 | file://freeDiameter.conf \ |
24 | file://install_test.patch \ | 24 | file://install_test.patch \ |
25 | file://0001-tests-use-EXTENSIONS_DIR.patch \ | 25 | file://0001-tests-use-EXTENSIONS_DIR.patch \ |
26 | file://0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch \ | ||
27 | file://0001-fixes-for-gcc-15.patch \ | ||
26 | " | 28 | " |
27 | 29 | ||
28 | S = "${WORKDIR}/git" | ||
29 | 30 | ||
30 | LICENSE = "BSD-3-Clause" | 31 | LICENSE = "BSD-3-Clause" |
31 | LIC_FILES_CHKSUM = "file://LICENSE;md5=868c059b6147748b1d621e500feeac4f" | 32 | LIC_FILES_CHKSUM = "file://LICENSE;md5=868c059b6147748b1d621e500feeac4f" |
@@ -49,6 +50,8 @@ EXTRA_OECMAKE = " \ | |||
49 | -DEXTENSIONS_DIR:PATH=${libdir}/${fd_pkgname} \ | 50 | -DEXTENSIONS_DIR:PATH=${libdir}/${fd_pkgname} \ |
50 | -DINSTALL_TEST_SUFFIX:PATH=${PTEST_PATH}-tests \ | 51 | -DINSTALL_TEST_SUFFIX:PATH=${PTEST_PATH}-tests \ |
51 | -DCMAKE_SKIP_RPATH:BOOL=ON \ | 52 | -DCMAKE_SKIP_RPATH:BOOL=ON \ |
53 | -DFLEX_TARGET_ARG_COMPILE_FLAGS='--noline' \ | ||
54 | -DBISON_TARGET_ARG_COMPILE_FLAGS='--no-lines' \ | ||
52 | " | 55 | " |
53 | # INSTALL_LIBRARY_SUFFIX is relative to CMAKE_INSTALL_PREFIX | 56 | # INSTALL_LIBRARY_SUFFIX is relative to CMAKE_INSTALL_PREFIX |
54 | # specify it on cmd line will fix the SET bug in CMakeList.txt | 57 | # specify it on cmd line will fix the SET bug in CMakeList.txt |
@@ -62,7 +65,7 @@ EXTRA_OECMAKE = " \ | |||
62 | 65 | ||
63 | # -DALL_EXTENSIONS=ON will enable all | 66 | # -DALL_EXTENSIONS=ON will enable all |
64 | 67 | ||
65 | FD_KEY ?="${BPN}.key" | 68 | FD_KEY ?= "${BPN}.key" |
66 | FD_PEM ?= "${BPN}.pem" | 69 | FD_PEM ?= "${BPN}.pem" |
67 | FD_CA ?= "${BPN}.pem" | 70 | FD_CA ?= "${BPN}.pem" |
68 | FD_DH_PEM ?= "${BPN}-dh.pem" | 71 | FD_DH_PEM ?= "${BPN}-dh.pem" |
@@ -78,18 +81,18 @@ do_install:append() { | |||
78 | mv ${D}${sysconfdir}/${fd_pkgname}/freediameter.conf.sample \ | 81 | mv ${D}${sysconfdir}/${fd_pkgname}/freediameter.conf.sample \ |
79 | ${D}${sysconfdir}/${fd_pkgname}/freeDiameter.conf.sample | 82 | ${D}${sysconfdir}/${fd_pkgname}/freeDiameter.conf.sample |
80 | install -d ${D}${sysconfdir}/freeDiameter | 83 | install -d ${D}${sysconfdir}/freeDiameter |
81 | install ${WORKDIR}/freeDiameter.conf ${D}${sysconfdir}/${fd_pkgname}/freeDiameter.conf | 84 | install ${UNPACKDIR}/freeDiameter.conf ${D}${sysconfdir}/${fd_pkgname}/freeDiameter.conf |
82 | 85 | ||
83 | # install daemon init related files | 86 | # install daemon init related files |
84 | install -d -m 0755 ${D}${sysconfdir}/default | 87 | install -d -m 0755 ${D}${sysconfdir}/default |
85 | install -d -m 0755 ${D}${sysconfdir}/init.d | 88 | install -d -m 0755 ${D}${sysconfdir}/init.d |
86 | install -m 0644 ${S}/contrib/debian/freediameter-daemon.default \ | 89 | install -m 0644 ${S}/contrib/debian/freediameter-daemon.default \ |
87 | ${D}${sysconfdir}/default/${BPN} | 90 | ${D}${sysconfdir}/default/${BPN} |
88 | install -m 0755 ${WORKDIR}/freediameter.init ${D}${sysconfdir}/init.d/${BPN} | 91 | install -m 0755 ${UNPACKDIR}/freediameter.init ${D}${sysconfdir}/init.d/${BPN} |
89 | 92 | ||
90 | # install for systemd | 93 | # install for systemd |
91 | install -d ${D}${systemd_system_unitdir} | 94 | install -d ${D}${systemd_system_unitdir} |
92 | install -m 0644 ${WORKDIR}/freediameter.service ${D}${systemd_system_unitdir} | 95 | install -m 0644 ${UNPACKDIR}/freediameter.service ${D}${systemd_system_unitdir} |
93 | sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_system_unitdir}/*.service | 96 | sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_system_unitdir}/*.service |
94 | 97 | ||
95 | cat >> ${D}${sysconfdir}/freeDiameter/freeDiameter.conf <<EOF | 98 | cat >> ${D}${sysconfdir}/freeDiameter/freeDiameter.conf <<EOF |
@@ -107,8 +110,6 @@ EOF | |||
107 | # create self cert | 110 | # create self cert |
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}' | 111 | 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 | 112 | openssl dhparam -out ${D}${sysconfdir}/freeDiameter/${FD_DH_PEM} 1024 |
110 | |||
111 | find ${B} \( -name "*.c" -o -name "*.h" \) -exec sed -i -e 's#${WORKDIR}##g' {} \; | ||
112 | } | 113 | } |
113 | 114 | ||
114 | do_install_ptest() { | 115 | do_install_ptest() { |