xtables-addons: fix installation in case only modules in subdirs of extensions are enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In case only modules that are built in subdirectories of extensions are
enabled (and thus nothing is build in extensions directory itself)
installation fails with the error (only build_ACCOUNT=y in mconfig):

install -pm0755
"/vt/portage/tmp/portage/net-firewall/xtables-addons-1.21/image///usr/local/libexec/xtables";
install: missing destination file operand after
`/vt/portage/tmp/portage/net-firewall/xtables-addons-1.21/image///usr/local/libexec/xtables'
Try `install --help' for more information.
make[3]: *** [install] Error 1

Patch in attachment fixes this.

-- 
Peter.
>From 0bb3a77b27e9006c4227913cc3b38bb6d98e3a39 Mon Sep 17 00:00:00 2001
From: Peter Volkov <pva@xxxxxxxxxx>
Date: Mon, 18 Jan 2010 11:46:34 +0300
Subject: [PATCH] build: don't fail if only modules in subdirs of extensions are enabled

In case only modules that are built in subdirectories of extensions are
enabled (and thus nothing is build in extensions directory itself)
installation fails with the error (only build_ACCOUNT=y in mconfig):

install -pm0755
"/vt/portage/tmp/portage/net-firewall/xtables-addons-1.21/image///usr/local/libexec/xtables";
install: missing destination file operand after
`/vt/portage/tmp/portage/net-firewall/xtables-addons-1.21/image///usr/local/libexec/xtables'
Try `install --help' for more information.
make[3]: *** [install] Error 1

This patch fixes that.
---
 Makefile.iptrules.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile.iptrules.in b/Makefile.iptrules.in
index 8be21fc..85e736c 100644
--- a/Makefile.iptrules.in
+++ b/Makefile.iptrules.in
@@ -47,7 +47,7 @@ all: ${targets}
 install: ${targets}
 	@for i in ${subdirs_list}; do ${MAKE} -C $$i $@; done;
 	install -dm0755 "${DESTDIR}/${xtlibdir}";
-	install -pm0755 $^ "${DESTDIR}/${xtlibdir}";
+	@for i in $^; do install -pm0755 $$i "${DESTDIR}/${xtlibdir}"; done;
 
 clean:
 	@for i in ${subdirs_list}; do ${MAKE} -C $$i $@; done;
-- 
1.6.4.4


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux