2c7a16
From 757e659344a144f86adb4c531fa4477771dfc0bc Mon Sep 17 00:00:00 2001
2c7a16
From: "Dmitry V. Levin" <ldv@altlinux.org>
2c7a16
Date: Thu, 18 May 2017 12:27:31 +0300
2c7a16
Subject: [PATCH] Do not install quota_nld.8 when quota_nld is not installed
2c7a16
MIME-Version: 1.0
2c7a16
Content-Type: text/plain; charset=UTF-8
2c7a16
Content-Transfer-Encoding: 8bit
2c7a16
2c7a16
Ported to 4.03:
2c7a16
2c7a16
commit 579425d669eb4df2ae26ceb70dfb9380c38fb521
2c7a16
Author: Dmitry V. Levin <ldv@altlinux.org>
2c7a16
Date:   Thu May 18 12:27:31 2017 +0300
2c7a16
2c7a16
    Do not install quota_nld.8 when quota_nld is not installed
2c7a16
2c7a16
    When netlink support is not enabled, quota_nld is not built
2c7a16
    and not installed but quota_nld.8 is still installed.
2c7a16
    Fix this inconsistency and install quota_nld.8 iff quota_nld
2c7a16
    is installed.
2c7a16
2c7a16
    Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2c7a16
    Signed-off-by: Jan Kara <jack@suse.cz>
2c7a16
2c7a16
Signed-off-by: Petr Písař <ppisar@redhat.com>
2c7a16
---
2c7a16
 Makefile.am | 5 ++++-
2c7a16
 1 file changed, 4 insertions(+), 1 deletion(-)
2c7a16
2c7a16
diff --git a/Makefile.am b/Makefile.am
2c7a16
index 1414f8d..ff9f6a0 100644
2c7a16
--- a/Makefile.am
2c7a16
+++ b/Makefile.am
2c7a16
@@ -27,7 +27,6 @@ man_MANS = \
2c7a16
 	edquota.8 \
2c7a16
 	quotagrpadmins.5 \
2c7a16
 	quotacheck.8 \
2c7a16
-	quota_nld.8 \
2c7a16
 	quotaon.8 \
2c7a16
 	quotastats.8 \
2c7a16
 	quotasync.1 \
2c7a16
@@ -42,6 +41,10 @@ man_MANS = \
2c7a16
 	warnquota.8 \
2c7a16
 	xqmstats.8
2c7a16
 
2c7a16
+if WITH_NETLINK
2c7a16
+man_MANS += quota_nld.8
2c7a16
+endif
2c7a16
+
2c7a16
 CLEANFILES = rquota.c rquota.h rquota_clnt.c
2c7a16
 
2c7a16
 SUBDIRS = po
2c7a16
-- 
2c7a16
2.9.4
2c7a16