From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Elsayed Subject: Re: [nft PATCH] files: replace interpreter during installation Date: Mon, 13 Jan 2014 08:30:17 -0800 Message-ID: References: <20140113091623.10582.14579.stgit@nfdev.cica.es> <20140113093912.GA14898@macbook.localnet> <20140113095252.GB15457@macbook.localnet> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit To: netfilter-devel@vger.kernel.org Return-path: Received: from plane.gmane.org ([80.91.229.3]:43769 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753453AbaARGuH (ORCPT ); Sat, 18 Jan 2014 01:50:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W4PjH-00059S-Ae for netfilter-devel@vger.kernel.org; Sat, 18 Jan 2014 07:50:03 +0100 Received: from c-50-132-41-203.hsd1.wa.comcast.net ([50.132.41.203]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jan 2014 07:50:03 +0100 Received: from eternaleye by c-50-132-41-203.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jan 2014 07:50:03 +0100 Sender: netfilter-devel-owner@vger.kernel.org List-ID: Patrick McHardy wrote: > On Mon, Jan 13, 2014 at 10:49:51AM +0100, Arturo Borrero Gonzalez wrote: >> On 13 January 2014 10:39, Patrick McHardy wrote: >> > >> > I think we should use .in files instead and perform variable >> > substition. >> > >> >> Could you please elaborate this? >> >> I have understood: >> >> Use a variable in files/nftables/*, like: >> << >> $shebang >> >> table filter { >> [...] >> >> >> >> >> And replace during install. Is this true? > > Use f.i. files/nftables/ipv4-filter.in and use > > #! ${sbindir}/nft Another option would be the venerable #!/usr/bin/env nft