summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Duskett <Aduskett@gmail.com>2017-02-07 09:04:11 -0500
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-02-07 17:40:15 +0100
commit61c8273e2357f6aab202f6c8653f85f21c3c4f7a (patch)
tree7a8900aa540a0f24bfcfd951c3065d1c99db0034
parent10366edf000756cf1eda9563691d6cf747df6ebe (diff)
downloadbuildroot-61c8273e2357f6aab202f6c8653f85f21c3c4f7a.tar.gz
buildroot-61c8273e2357f6aab202f6c8653f85f21c3c4f7a.zip
logrotate: enable selinux support
Selinux is currently disabled staticly in logrotate. This patch fixes this by checking for libselinux and adding it as a dependecy if it has been selected. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/logrotate/logrotate.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/logrotate/logrotate.mk b/package/logrotate/logrotate.mk
index 78288701a8..5fd779e644 100644
--- a/package/logrotate/logrotate.mk
+++ b/package/logrotate/logrotate.mk
@@ -12,7 +12,13 @@ LOGROTATE_DEPENDENCIES = popt host-pkgconf
# tarball does not have a generated configure script
LOGROTATE_AUTORECONF = YES
LOGROTATE_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs popt`"
-LOGROTATE_CONF_OPTS = --without-selinux
+
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+LOGROTATE_CONF_OPTS += --with-selinux
+LOGROTATE_DEPENDENCIES += libselinux
+else
+LOGROTATE_CONF_OPTS += --without-selinux
+endif
ifeq ($(BR2_PACKAGE_ACL),y)
LOGROTATE_DEPENDENCIES += acl
OpenPOWER on IntegriCloud