Contents of /smage/trunk/extras/wget/alx/wget.custom
Parent Directory | Revision Log
Revision 3 -
(show annotations)
(download)
Sun Jan 11 00:48:53 2009 UTC (15 years, 5 months ago) by niro
File size: 761 byte(s)
Sun Jan 11 00:48:53 2009 UTC (15 years, 5 months ago) by niro
File size: 761 byte(s)
-import alx-0.9.0
1 | # $Header: /alx-cvs/smage-eglibc/wget/alx/wget.custom,v 1.1 2008/02/27 10:22:53 niro Exp $ |
2 | |
3 | # fix dependencies: |
4 | # remove openssl dep; not needed on alx |
5 | DEPEND=$(echo "${DEPEND}" | sed '/dev-libs\/openssl/d') |
6 | |
7 | # rename old functions |
8 | if [[ ! -z $(typeset -f preinstall) ]] |
9 | then |
10 | old_preinstall=old_$(typeset -f preinstall) |
11 | eval ${old_preinstall} |
12 | fi |
13 | |
14 | if [[ ! -z $(typeset -f postinstall) ]] |
15 | then |
16 | old_postinstall=old_$(typeset -f postinstall) |
17 | eval ${old_postinstall} |
18 | fi |
19 | |
20 | # functions to include in the mage file |
21 | SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} old_preinstall old_postinstall" |
22 | |
23 | preinstall() |
24 | { |
25 | old_preinstall |
26 | [ -f /etc/wgetrc ] && mv -f /etc/wgetrc{,._mage_} |
27 | } |
28 | |
29 | postinstall() |
30 | { |
31 | old_postinstall |
32 | [ -f /etc/wgetrc._mage_ ] && mv -f /etc/wgetrc{._mage_,} |
33 | } |