Mailing List archive

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

[linux-dvb] Re: [PATCH] don't install dvb_net.{sh,pl}



Johannes Stezenbach wrote:
> Ludwig Nussel wrote:
> > 
> > dvb_net.sh and dvb_net.sh get installed into $libdir/dvb. They
> > contain IP addresses so I suppose one needs to edit them to be able
> > to actually use them. Since editing non-config files is bad from a
> > package's point of view I suggest to not install them (the current
> > install target also breaks the scripts as it removes the blank in
> > front of the first parameter).
> 
> Makes sense. do you plan to install them in .../doc/examples/?

The SUSE package will have them in /usr/share/doc/packages/dvb/
 
> > Index: dvb-apps/util/dvbnet/net_start.sh
> > ===================================================================
> > --- dvb-apps.orig/util/dvbnet/net_start.sh
> > +++ dvb-apps/util/dvbnet/net_start.sh
> > @@ -4,7 +4,7 @@
> >  DEV_NAME=dvb0_0
> >  IP_ADDR=10.1.1.1
> >  
> > -./dvbnet -p $PID
> > +dvbnet -p $PID
> >  
> >  /sbin/ifconfig $DEV_NAME $IP_ADDR
> >  
> > Index: dvb-apps/util/dvbnet/net_start.pl
> > ===================================================================
> > --- dvb-apps.orig/util/dvbnet/net_start.pl
> > +++ dvb-apps/util/dvbnet/net_start.pl
> > @@ -12,7 +12,7 @@
> >  {
> >    local ($ADAPTER, $NETDEV, $PID, $IP_ADDR) = @_;
> >  
> > -  $DEV_NAME = `./dvbnet -a $ADAPTER -n $NETDEV -p $PID | grep created`;
> > +  $DEV_NAME = `dvbnet -a $ADAPTER -n $NETDEV -p $PID | grep created`;
> >    chop($DEV_NAME);
> >  
> >    $DEV_NAME =~ s/(.*)device //;
> 
> 
> This would be inconvenient for CVS users. Besides, if you don't install
> the scripts, why bother to remove the "./"?

The scripts are installed as example so it would be inconvenient for
users of the package because dvbnet is in $PATH :-). Anyways, it's
just nitpicking, it doesn't really matter as someone who can edit
the script is probably also smart enough to remove the ./ as well.

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   SUSE LINUX AG, Development
 V_/_  http://www.suse.de/




Home | Main Index | Thread Index