2 ## Copyright (C) 2019 Wind River Systems, Inc.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 PACKAGES += " logmgmt"
18 RDEPENDS_logmgmt += " \
22 DESCRIPTION_logmgmt = "Management of /var/log filesystem"
24 do_configure_append() {
25 cd ${S}/utilities/logmgmt/logmgmt/
26 distutils_do_configure
29 cd ${S}/utilities/logmgmt/logmgmt/
34 cd ${S}/utilities/logmgmt/logmgmt/
37 cd ${S}/utilities/logmgmt/scripts
38 install -d -m0755 ${D}/${bindir}
39 install -m0700 bin/logmgmt ${D}/${bindir}
40 install -m0700 bin/logmgmt_postrotate ${D}/${bindir}
41 install -m0700 bin/logmgmt_prerotate ${D}/${bindir}
43 install -d -m0755 ${D}/${sysconfdir}/init.d
44 install -m0700 init.d/logmgmt ${D}/${sysconfdir}/init.d
46 install -d -m0755 ${D}/${sysconfdir}/pmon.d
47 install -m0700 pmon.d/logmgmt ${D}/${sysconfdir}/pmon.d
49 install -d -m0755 ${D}/${systemd_system_unitdir}
50 install -m0664 etc/systemd/system/logmgmt.service ${D}/${systemd_system_unitdir}
55 ${bindir}/logmgmt_postrotate \
56 ${bindir}/logmgmt_prerotate \
57 ${sysconfdir}/init.d/logmgmt \
58 ${sysconfdir}/pmon.d/logmgmt \
59 ${systemd_system_unitdir}/logmgmt.service \
60 ${PYTHON_SITEPACKAGES_DIR}/logmgmt/ \
61 ${PYTHON_SITEPACKAGES_DIR}/logmgmt-${PV}-py${PYTHON_BASEVERSION}.egg-info/ \
64 SYSTEMD_PACKAGES += "logmgmt"
65 SYSTEMD_SERVICE_logmgmt = "logmgmt.service"
66 SYSTEMD_AUTO_ENABLE_logmgmt = "enable"