On 09/09/2013 08:19 AM, Thomas D. wrote:
> Hi,
> 
> on Gentoo, $T will be used by portage/emerge. So when install.sh will be
> called, $T is already initialized with a Gentoo-specific value.
> 
> All the other install.sh scripts (from shorewall[6]?{,-lite}) seems to
> initialize $T, but shorewall-init's install.sh doesn't:
> 
>> Installing Gentoo-specific configuration...
>> Installing Shorewall Init Version 4.5.21-Beta1
>> install: target 
>> ‘/var/tmp/portage/net-firewall/shorewall-init-4.5.21_beta1/image//etc/init.d/shorewall-init’
>>  is not a directory
>>
>> ERROR: Failed to install 
>> /var/tmp/portage/net-firewall/shorewall-init-4.5.21_beta1/temp -o root -g 
>> root -m 0544 init.gentoo.sh 
>> /var/tmp/portage/net-firewall/shorewall-init-4.5.21_beta1/image//etc/init.d/shorewall-init
> 
> I would suggest to initialize $T like the other install.sh scripts
> already do.
> 
> If not, I'll have to add Gentoo to the "case $BUILD" statement and
> initialize $T like shorewall-init is already doing for "apple".

You mean like the attached?

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________
diff --git a/Shorewall-init/install.sh b/Shorewall-init/install.sh
index 8ceff3d..e807a30 100755
--- a/Shorewall-init/install.sh
+++ b/Shorewall-init/install.sh
@@ -219,6 +219,8 @@ fi
 [ -n "$OWNER" ] || OWNER=$(id -un)
 [ -n "$GROUP" ] || GROUP=$(id -gn)
 
+T='-T'
+
 case $BUILD in
     apple)
 	T=

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to