SPECS: poldek.spec - does not require sed

Jakub Bogusz qboosh at pld-linux.org
Wed Jun 20 18:30:04 CEST 2007


On Wed, Jun 20, 2007 at 01:21:59PM +0300, Elan Ruusamäe wrote:
> On Wednesday 20 June 2007, Jakub Bogusz wrote:
> > On Wed, Jun 20, 2007 at 02:20:31AM +0200, glen wrote:
> > > Author: glen                         Date: Wed Jun 20 00:20:31 2007 GMT
> > > Module: SPECS                         Tag: HEAD
> > > ---- Log message:
> > > - does not require sed
> >
> > IIRC it was for vfjuggle and other scripts...
> 
> then should also depend on smbclient :) ?
> 
> $ ql poldek|xargs grep sed
> /etc/poldek/poldek.conf:# Comma separated list of hosts or domains which will not be accessed via proxy.
> /usr/lib64/poldek/vfcompr:# File (de)compression helper script. Used by vfile library when external
> /usr/lib64/poldek/vfcompr:            echo "$src already decompressed"
> /usr/lib64/poldek/vfjuggle:     CDID=`echo $URI | sed 's@/.*@@'`
> /usr/lib64/poldek/vfjuggle:     URI=`echo $URI | sed 's@[^/]*/@@'`
> /usr/lib64/poldek/vfsmb:# requires: basename, grep, sed, smbclient
> /usr/lib64/poldek/vfsmb:              passwd=$(echo $src|sed 's|^smb://[^:]\+:\([^@]\+\)@.*|\1|')
> /usr/lib64/poldek/vfsmb:              user=$(echo $src|sed 's|^smb://\([^:]\+\):[^@]\+ at .*|\1|')
> /usr/lib64/poldek/vfsmb:              user=$(echo $src|sed 's|^smb://\([^@]\+\)@.*|\1|')
> /usr/lib64/poldek/vfsmb:        src=$(echo $src|sed 's|^smb://[^@]\+@|smb://|')
> /usr/lib64/poldek/vfsmb:service=$(echo $src|sed 's|^smb://\([^/]\+/[^/]\+\)/|//\1|')
> /usr/lib64/poldek/vfsmb:file=$(echo $src|sed 's|^smb://[^/]\+/[^/]\+/||')
> 
> are those vf* used by default? 

Depends on source scheme?
vfjuggle is for cdrom://, vfsmb probably for smb://.

I don't remember now - aren't cdrom:// sources used by default after
installation from CD?

> if not we could leave comments inside poldek.conf that you need foo and bar when enabling these config options?

Either way...
- R: sed is not big deal
- it seems not too hard to rewrite sed calls in vfjuggle using sh or awk

"install sed from CD to be able to install packages from CD" is not
preferred solution ;)


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list