[crux-devel] [RFC] pkgmk and wget configuration

Juergen Daubert jue at jue.li
Fri Oct 31 10:27:14 UTC 2008


Hi all,

currently all options for wget are hardcoded in pkgmk, which is very
inflexible and doesn't allow user-specific settings. See [1] [2].

Unfortunately wget has not command-line option to read in an 
alternative configuration file, other than the default /etc/wgetrc
and ~/.wgetrc. 
I'd propose a solution similar to that I've done for the pure-ftpd,
which includes a custom configuration file via some bash tasks.

It might look like that in pkgmk:

  WGET_CONF=/etc/pkgmk_wget.conf
  WGET_ARGS=$(sed '/^#/d' $WGET_CONF)
  WGET="/usr/bin/wget $WGET_ARGS"

and pkgmk_wget.conf:

  # wget configuration for pkgmk

  --no-check-certificate
  --no-cache

  # End of file


Sounds this interesting? 

best regards
Juergen


PS: curl has a nice -K/--config option ;-)

[1] http://crux.nu/bugs/index.php?do=details&task_id=241
[2] http://crux.nu/bugs/index.php?do=details&task_id=347

-- 
Juergen Daubert  |  mailto:jue at jue.li  
Korb, Germany    |  http://jue.li/crux




More information about the crux-devel mailing list