From patchwork Thu Jun 10 00:52:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 55137 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 24551B7D1F for ; Thu, 10 Jun 2010 10:52:41 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755986Ab0FJAwh (ORCPT ); Wed, 9 Jun 2010 20:52:37 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:55528 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755785Ab0FJAwg (ORCPT ); Wed, 9 Jun 2010 20:52:36 -0400 Received: from vapier (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id BF2921B4009; Thu, 10 Jun 2010 00:52:35 +0000 (UTC) From: Mike Frysinger To: stephen.hemminger@vyatta.com, netdev@vger.kernel.org Subject: [PATCH] netem: fix installs of dist files Date: Wed, 9 Jun 2010 20:52:09 -0400 Message-Id: <1276131129-18079-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The tc program searches LIBDIR by default for the .dist files, and that defaults to /usr/lib. But the netem subdir has /lib/ hardcoded which means the default build+install results in the files not being found. Further, these are plain text files which are read at runtime, so it doesn't make sense to give them executable bits. Signed-off-by: Mike Frysinger --- netem/Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netem/Makefile b/netem/Makefile index b6ccfc6..e52e125 100644 --- a/netem/Makefile +++ b/netem/Makefile @@ -20,9 +20,9 @@ stats: stats.c $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm install: all - mkdir -p $(DESTDIR)/lib/tc + mkdir -p $(DESTDIR)$(LIBDIR)/tc for i in $(DISTDATA); \ - do install -m 755 $$i $(DESTDIR)/lib/tc; \ + do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \ done clean: