Changeset 3879


Ignore:
Timestamp:
01/18/08 12:28:48 (5 years ago)
Author:
thomas
Message:
  • Rename ipkg to opkg
Location:
trunk/src/target/ipkg
Files:
48 edited
29 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/target/ipkg/AUTHORS

    r3837 r3879  
    1 ipkg actually is maintained by Pierluigi Frullani <pigi@frumar.it> 
     1opkg actually is maintained by Pierluigi Frullani <pigi@frumar.it> 
    22 
    3 ipkg is being written by Carl Worth <cworth@handhelds.org> and Steve 
     3opkg is being written by Carl Worth <cworth@handhelds.org> and Steve 
    44Ayer <steven.ayer@compaq.com> 
    55 
  • trunk/src/target/ipkg/ChangeLog

    r3837 r3879  
    35352006-02-02 pigi ( pigi@frumar.it) 
    3636        * Version update to 0.99.158 
    37         * Modified the way upgrade handle the removing of a package, to be sure that ipkg doesn't break busybox upgrade 
     37        * Modified the way upgrade handle the removing of a package, to be sure that opkg doesn't break busybox upgrade 
    3838        *          this should fix #1503 
    3939         
     
    5656        * Version update to 0.99.155 
    5757        * Added a function to remove the package that is being upgraded. 
    58         * Fixed a problem when installing by hand. Now ipkg knows that a package has been selected by hand,  
     58        * Fixed a problem when installing by hand. Now opkg knows that a package has been selected by hand,  
    5959        *       and, if every check returns ok, it install the wanted package, instead of selecting one from feed. 
    6060        *       Moreover, now downgrade should works again. 
    61         * Fixed the "Replaces" bug. Now ipkg is able to replace a package also if it doesn't conflict. 
     61        * Fixed the "Replaces" bug. Now opkg is able to replace a package also if it doesn't conflict. 
    6262        * Other minor changes in debug options 
    6363 
     
    6969 
    70702005-07-29 pigi ( pigi@frumar.it) 
    71         * Applied a patch for the GNU tar compatibility . Now ipkg can handle filenames > 100 char. 
     71        * Applied a patch for the GNU tar compatibility . Now opkg can handle filenames > 100 char. 
    7272 
    73732005-07-29 pigi ( pigi@frumar.it) 
    7474        * Version update to 0.99.153 
    75         * Fixed a problem with Provides:. Now ipkg is able to install foo when foo is provided by bar, and is able to determine the best candidate based on  
     75        * Fixed a problem with Provides:. Now opkg is able to install foo when foo is provided by bar, and is able to determine the best candidate based on  
    7676        * package name. This also fix #1328 
    7777 
     
    90902005-05-11 pigi ( pigi@frumar.it) 
    9191        * Version update to 0.99.149 
    92         * Added the possibility to choice the ipkglibdir from configure ( --with-libipkgdir ) 
     92        * Added the possibility to choice the opkglibdir from configure ( --with-libopkgdir ) 
    9393 
    94942005-04-10 pigi ( pigi@frumar.it) 
     
    1011012005-03-30 pigi ( pigi@frumar.it) 
    102102        * Version update to 0.99.147 
    103         * Found a bug in ipkg_install when freeing a cursor  
     103        * Found a bug in opkg_install when freeing a cursor  
    104104 
    1051052005-03-28 pigi ( pigi@frumar.it) 
    106106        * Version update to 0.99.146 
    107         * Modified the ipkg_error messaging to collect all the messages at the end of the program 
     107        * Modified the opkg_error messaging to collect all the messages at the end of the program 
    108108 
    1091092005-03-26 pigi ( pigi@frumar.it) 
     
    1121122005-03-14 pigi ( pigi@frumar.it) 
    113113        * Version update to 0.99.145 
    114         * Found a bug in ipkg remove when a package was depending in itself and ipkg where asked to "-recursive" 
     114        * Found a bug in opkg remove when a package was depending in itself and opkg where asked to "-recursive" 
    115115          This fix bug # 1301 
    116116        * A very little beautify in args.c 
    117117 
    1181182005-03-07 pigi ( pigi@frumar.it) 
    119         * Added the check for md5 in resolv_conf_file. Now ipkg ask for confirmation only it the files differ 
     119        * Added the check for md5 in resolv_conf_file. Now opkg ask for confirmation only it the files differ 
    120120 
    1211212005-02-22 pigi ( pigi@frumar.it) 
    122122        * Version update to 0.99.144 
    123         * A little fix suggested by drw in ipkg_conf.c 
    124         * Changed the ipkg.h to be build in automake for oe mechanism . This will enhance the building phase  
     123        * A little fix suggested by drw in opkg_conf.c 
     124        * Changed the opkg.h to be build in automake for oe mechanism . This will enhance the building phase  
    125125          by honouring the lib hierarchy choose by users 
    126126        * Changes in automake to honour the new building mechanism 
     
    1281282005-02-20 pigi ( pigi@frumar.it) 
    129129        * Version update to 0.99.143 
    130         * libipkg.h: reverting the previous modify 
    131         * ipkg_conf.c: fixing a probable bug in list_dir that fix problems with opie-packagemanager ( tanks to drw for signaling) 
     130        * libopkg.h: reverting the previous modify 
     131        * opkg_conf.c: fixing a probable bug in list_dir that fix problems with opie-packagemanager ( tanks to drw for signaling) 
    132132 
    1331332005-02-20 pigi ( pigi@frumar.it) 
    134         * libipkg.h: added some define to fix the broken external interface after 0.99.139 and lists_dir 
     134        * libopkg.h: added some define to fix the broken external interface after 0.99.139 and lists_dir 
    135135 
    1361362005-02-17 pigi ( pigi@frumar.it) 
     
    1431432005-02-06 pigi ( pigi@frumar.it) 
    144144        * Version update to 0.99.141 
    145         * Added space in ipkg_message to give more readible messages 
     145        * Added space in opkg_message to give more readible messages 
    146146        * Corrected a problem when creating the directories in pkg_dest_init 
    147147 
    1481482005-02-05 pigi ( pigi@frumar.it) 
    149149        * Version update to 0.99.140 
    150         * Fixed the bug in ipkg_conf for a wrong pointer. 
     150        * Fixed the bug in opkg_conf for a wrong pointer. 
    151151 
    1521522005-02-05 pigi ( pigi@frumar.it) 
    153153        * Version update to 0.99.139 
    154         * Fixed the "replaces" problem  reported by pb_. Now ipkg is able to resolve a "replace/conflict" reference 
     154        * Fixed the "replaces" problem  reported by pb_. Now opkg is able to resolve a "replace/conflict" reference 
    155155        * Added the possibility to keep the lists file in a different location. Fullfill enh #1276 
    156156 
     
    164164 
    1651652005-01-14 pigi ( pigi@frumar.it) 
    166         * ipkg_install.c: applied patch from rjt@cambridgebroadband.com to remove some c99ism  
     166        * opkg_install.c: applied patch from rjt@cambridgebroadband.com to remove some c99ism  
    167167 
    1681682005-01-14 jamey ( jamey@handhelds.org ) 
     
    192192        * Added a new option for listing only the installed packages. Asked by pb_ but really important 
    193193        * Little modification to autoconfigure.sh  
    194         * removed fileutils dependencies that has disappeared from 0.8 in control-cl.in  control-unstripped.in libipkg-control.in   
     194        * removed fileutils dependencies that has disappeared from 0.8 in control-cl.in  control-unstripped.in libopkg-control.in   
    195195 
    1961962004-11-18 pigi ( pigi@frumar.it) 
     
    206206        * Version update to 0.99.131 
    207207        * Added a lot of debug info in DEBUG2 
    208         * Added a check in ipkg_install.c to permit replacing of existing file when installing a package 
    209         * from a file ( not an upgrade ) when ipkg find a file clash but the owner of the package is the  
     208        * Added a check in opkg_install.c to permit replacing of existing file when installing a package 
     209        * from a file ( not an upgrade ) when opkg find a file clash but the owner of the package is the  
    210210        * same. That should fix the #1246 
    211211 
     
    2192192004-09-01 pigi ( pigi@frumar.it) 
    220220        * Applied patches from pb_ (bug #1244) 
    221         * Added EXTRADIST = ipkg.c and others in Makefile.am as in ipkg.0.99.xxx.tar.gz the ipkg.c was missing. (  
     221        * Added EXTRADIST = opkg.c and others in Makefile.am as in opkg.0.99.xxx.tar.gz the opkg.c was missing. (  
    222222          reported by odvard12@yahoo.com ) 
    223223        * Version update to 0.99.129 
     
    2252252004-08-19 Florian <florian.boor@kernelconcepts.de> 
    226226        * Version update to 0.99.128 
    227         * libipkg.c, ipkg_cmd.c: Fixed return value zero if installation 
     227        * libopkg.c, opkg_cmd.c: Fixed return value zero if installation 
    228228          failed. Changed text because failing to install a package 
    229229          is not necessarily a bug :-) 
     
    2452452004-06-12 florian <florian.boor@kernelconcepts.de> 
    246246        * Makefile.am: Added some missing headers to the list. 
    247         * libipkg.pc.in: Fixed hardcoded prefix... tsts 
     247        * libopkg.pc.in: Fixed hardcoded prefix... tsts 
    2482482004-06-12 pigi ( pigi@frumar.it) 
    249249        * pb_ patch for setuid bit in unarchive 
     
    256256        * configure.ac: updated to 0.99.124 
    257257        * import the kergoth patch for Makefile.am to fix the linking problems on arch <> arm 
    258         * added the ipkg remove <regexp> feature. 
    259         * fixed the ipkg usage message, 'cause in "ifdef LIBIPKG" we don't have the ipkg info field version. 
     258        * added the opkg remove <regexp> feature. 
     259        * fixed the opkg usage message, 'cause in "ifdef LIBOPKG" we don't have the opkg info field version. 
    260260        * added the message "No package removed" if no package has been removed. This to avoid misunderstanding 
    261261          with the successfully done message at the exit of execution. 
     
    2652652004-05-16 pigi ( pigi@frumar.it) 
    266266        * configure.ac: updated to 0.99.122-2 
    267         * New subrelease released to correct the problem for dependencies (libipkg >= 0.99.122-1) in ipkg control file 
     267        * New subrelease released to correct the problem for dependencies (libopkg >= 0.99.122-1) in opkg control file 
    2682682004-05-14 pigi ( pigi@frumar.it) 
    269269        * configure.ac: updated to 0.99.122-1 
     
    2722722004-05-10 pigi ( pigi@frumar.it) 
    273273        * configure.ac: updated to 0.99.122 
    274         * pb_, cworth and I discussed a bit on ipkg output to users. We agreed on removing some confusing 
     274        * pb_, cworth and I discussed a bit on opkg output to users. We agreed on removing some confusing 
    275275        * messages, moving them to a debug level of verbosity. 
    276         * I do added also some message to user indicating the phase ipkg is in, and a global ending message 
     276        * I do added also some message to user indicating the phase opkg is in, and a global ending message 
    277277        * informing the user for the status of operation. 
    278278        * This fixes the #1206, and hopefully does not introduce others ;-)  
     
    2962962004-03-17 pigi ( pigi@frumar.it) 
    297297        *  Added the implement for Essential in status file. This is needed to avoid the unintentional remove 
    298            of essential packages. In effect the command "ipkg remove ipkg" worked without problems, but then 
     298           of essential packages. In effect the command "opkg remove opkg" worked without problems, but then 
    299299           it was difficult to reinstall. This fix the bug # 867 
    3003002004-03-15 jamey <jamey@handhelds.org> 
     
    313313           This fixes the bug #1099 
    3143142004-03-07 pigi ( pigi@frumar.it) 
    315         *  Minimal changes for a clean compile in libipkg.c ( so we can close the bug# 1119 ) 
     315        *  Minimal changes for a clean compile in libopkg.c ( so we can close the bug# 1119 ) 
    3163162004-03-03 pigi ( pigi@frumar.it) 
    317317        * Missing \n in Size and Source Fields. 
    3183182004-03-03 pigi ( pigi@frumar.it) 
    319         * Florian noticed a free missiing in ipkg_cmd.c ( should sleep more at night )  
     319        * Florian noticed a free missiing in opkg_cmd.c ( should sleep more at night )  
    320320          it was in an (almost) unsed part of the code ( old code ) but, just in case... 
    321321        * Changed a comment in pkg.c ( it was in italian ) and added a bit of explain in  
     
    324324        * configure.ac: updated to 0.99.116 
    325325        * pkg.h: from Pigi: pkg_formatted_info and pkg_formatted_field now allocate the strings they fill in 
    326         * pkg.c, ipkg_cmd.c: from Pigi: updated to the new pkg.h interface  
     326        * pkg.c, opkg_cmd.c: from Pigi: updated to the new pkg.h interface  
    3273272004-02-29 florian <florian.boor@kernelconcepts.de> 
    328328        pkg.c: Pigi and me poked around a little bit and located the cause of 
     
    3333332004-02-24 jamey <jamey@handhelds.org> 
    334334        * configure.ac: updated to 0.99.115 
    335         * ipkg_cmd.c: segv caught by pigi: buffer freed in loop but used on next iterations.  bug squashed. 
     335        * opkg_cmd.c: segv caught by pigi: buffer freed in loop but used on next iterations.  bug squashed. 
    336336        * user.c: realloc question buffer if it is too short so that messages are not truncated. 
    3373372004-02-20 jamey <jamey@handhelds.org> 
     
    3403402004-02-19 jamey <jamey.hicks@hp.com> 
    341341        * configure.ac: update to 0.99.113 
    342         * libipkg.c: patch from drw to fix ipkg list 
     342        * libopkg.c: patch from drw to fix opkg list 
    3433432004-02-19 florian <florian.boor@kernelconcepts.de> 
    344344        * Some minor changes to make code compile on more compilers. 
     
    3513512004-01-23 florian <florian.boor@kernelconcepts.de> 
    352352        * Applied Dan's patch that adds a package download command to 
    353           libipkg.       
     353          libopkg.       
    3543542004-01-20 florian <florian.boor@kernelconcepts.de> 
    355355        * Applied Dan's changes to work incuded from a C++ app.  
    3563562004-01-15 jamey 
    357357        * configure.ac: updated to 0.99.110 
    358         * libipkg.c: added default callbacks for output 
    359         * ipkg_conf.c: default verbosity to 1 
     358        * libopkg.c: added default callbacks for output 
     359        * opkg_conf.c: default verbosity to 1 
    3603602004-01-12 jamey 
    361361        * configure.ac: updated to 0.99.109 
    362         * ipkg_install.c: fix potential segv sprintf_alloc with fewer args than required by format string (yay valgrind) 
     362        * opkg_install.c: fix potential segv sprintf_alloc with fewer args than required by format string (yay valgrind) 
    363363        * sprintf_alloc.c: add null pointer checking 
    3643642004-01-12 jamey 
    365365        * configure.ac: updated to 0.99.108 
    366         * Makefile.am, familiar/: use ipkg-cl as default executable, install as ipkg via update-alternatives 
     366        * Makefile.am, familiar/: use opkg-cl as default executable, install as opkg via update-alternatives 
    3673672004-01-12 jamey 
    368368        * configure.ac: updated to 0.99.107 
     
    373373 
    3743742003-12-02 florian <florian.boor@kernelconcepts.de> 
    375         * Added familiar/ipkg-cl.control.in, which is a prototype of 
    376           control file for ipkg-cl package creation. 
     375        * Added familiar/opkg-cl.control.in, which is a prototype of 
     376          control file for opkg-cl package creation. 
    3773772003-12-01 florian <florian.boor@kernelconcepts.de> 
    378         * added ipkg command line tool using libipkg, binary is known as ipkg-cl 
    379         * ipkg-frontend.c: source for this tool 
     378        * added opkg command line tool using libopkg, binary is known as opkg-cl 
     379        * opkg-frontend.c: source for this tool 
    380380        * libbb/Makefile.am: Removed changing of CFLAGS, this avoids a nasty warning. 
    381         * Makefile.am: Same fix and addition of new target creating ipkg-cl. 
     381        * Makefile.am: Same fix and addition of new target creating opkg-cl. 
    382382        * removed ltmain.sh, libtool which seem to be created by autostuff 
    383383         
    3843842003-12-01 jamey 
    385385        * configure.ac: updated to 0.99.106 
    386         * pkg.c, ipkg_conf.c: check for null pointers (null pkg->dest in particular) 
     386        * pkg.c, opkg_conf.c: check for null pointers (null pkg->dest in particular) 
    3873872003-11-11 jamey 
    388388        * configure.ac: updated to 0.99.105 
    389         * ipkg_conf.c: added verbosity option to conf file 
     389        * opkg_conf.c: added verbosity option to conf file 
    3903902003-11-11 jamey 
    391391        * configure.ac: updated to 0.99.104 
    392         * ipkg_install.c: removed spurious calls to fflush, remove obsolete maintainer scripts on upgrade 
    393         * ipkg_remove.c: remove unused function: remove_conffiles 
     392        * opkg_install.c: removed spurious calls to fflush, remove obsolete maintainer scripts on upgrade 
     393        * opkg_remove.c: remove unused function: remove_conffiles 
    3943942003-11-11 jamey 
    395395        * configure.ac: updated to 0.99.103 
    396         * libipkg.pc.in, configure.ac: pkgconfig for libipkg 
    397         * ipkg_conf.c, pkg.c: check for error on fopen 
     396        * libopkg.pc.in, configure.ac: pkgconfig for libopkg 
     397        * opkg_conf.c, pkg.c: check for error on fopen 
    398398        * pkg_hash.c: reduced verbosity 
    399399        * libtool: arm-linux-strip does not support --strip-debug on .a files 
    4004002003-11-10 jamey 
    401401        * configure.ac: updated to 0.99.102 
    402         * ipkg_cmd.c: compute architecture_priority of packages in database before doing download command 
    403         * conffile.c file_util.[ch] ipkg_install.c: better separation of installation root filenames and actual filenames 
     402        * opkg_cmd.c: compute architecture_priority of packages in database before doing download command 
     403        * conffile.c file_util.[ch] opkg_install.c: better separation of installation root filenames and actual filenames 
    404404        * pkg.h: added prototype for pkg_free_installed_files 
    4054052003-11-10 jamey 
    406406        * configure.ac: updated to 0.99.101 
    407         * libipkg changes 
     407        * libopkg changes 
    408408        * generate .list files from file_hash 
    4094092003-11-05 jamey 
    410410        * configure.ac: updated to 0.99.100 
    411         * ipkg_install.c: fix segv: was passing conflictee->parent instead of conflictee 
     411        * opkg_install.c: fix segv: was passing conflictee->parent instead of conflictee 
    4124122003-10-08 jamey 
    413413        * configure.ac: updated to 0.99.99 
    414         * ipkg_install.c: use the root_dir after stripping off offline_root prefix 
     414        * opkg_install.c: use the root_dir after stripping off offline_root prefix 
    4154152003-10-08 jamey 
    416416        * configure.ac: updated to 0.99.98 
    417417        * pkg_hash.c: fixed segv if replaced_by->len was 0 
    418         * ipkg_cmd.c: ipkg remove with no arguments will remove non-user leaf packages 
    419         * ipkg_remove.[ch]: export pkg_has_installed_dependents 
     418        * opkg_cmd.c: opkg remove with no arguments will remove non-user leaf packages 
     419        * opkg_remove.[ch]: export pkg_has_installed_dependents 
    420420        * pkg_depends.c: add pkg->parent to pkg->provides 
    421         * ipkg_install.c: strip offline_root prefix off of conffile name so comparing the md5sums should work 
     421        * opkg_install.c: strip offline_root prefix off of conffile name so comparing the md5sums should work 
    422422        * pkg.c: missing comma added 
    4234232003-10-01 jamey 
    424424        * configure.ac: updated to 0.99.97 
    425         * ipkg_cmd.c: added whatdependsrec command to show what recursively depends on a package or packages 
     425        * opkg_cmd.c: added whatdependsrec command to show what recursively depends on a package or packages 
    426426        * pkg_vec.[ch]: added pkg_vec_clear_marks and pkg_vec_mark_if_matches 
    427427        * args.c: usage string updated 
    4284282003-09-28 jamey 
    429429        * configure.ac: updated to 0.99.96 
    430         * ipkg_conf.c: adjusted verbosity 
    431         * ipkg_install.c: only remove replacee if it is also conflicted, per debian standard 
     430        * opkg_conf.c: adjusted verbosity 
     431        * opkg_install.c: only remove replacee if it is also conflicted, per debian standard 
    432432        * pkg_depends.c: only add to replaced_by if it also conflicts, per debian standard 
    433433                added pkg_provides, pkg_replaces, pkg_conflicts 
     
    4354352003-09-28 jamey 
    436436        * configure.ac: updated to 0.99.95 
    437         * args.[ch], ipkg_cmd.c, ipkg_conf.[ch], ipkg_download.c, ipkg_install.c, ipkg_remove.c, pkg.[ch]: 
    438            Implemented -test mode for ipkg. 
     437        * args.[ch], opkg_cmd.c, opkg_conf.[ch], opkg_download.c, opkg_install.c, opkg_remove.c, pkg.[ch]: 
     438           Implemented -test mode for opkg. 
    4394392003-09-28 jamey 
    440440        * configure.ac: updated to 0.99.94 
     
    4434432003-09-26 jamey 
    444444        * configure.ac: updated to 0.99.93 
    445         * ipkg_install.c: corrected message level depending on conf->force_depend 
    446         * ipkg_conf.c: check for duplicate src entries 
     445        * opkg_install.c: corrected message level depending on conf->force_depend 
     446        * opkg_conf.c: check for duplicate src entries 
    447447        * nv_pair_list.[ch]: added nv_pair_list_find 
    4484482003-09-16 jamey 
     
    463463        * pkg_extract.c: use installed_file list if it exists in pkg_extract_data_file_names_to_file 
    464464        * pkg.[ch]: added pkg_write_filelist() and pkg_write_changed_filelists() 
    465         * ipkg_remove.c: do not call ipkg_conf_write_status_files from ipkg_remove 
    466         * ipkg_install.c: use ipkg_write_filelist() 
     465        * opkg_remove.c: do not call opkg_conf_write_status_files from opkg_remove 
     466        * opkg_install.c: use opkg_write_filelist() 
    467467        * ipgk_cmd.c: after writing status file, write any changed pkg filelists 
    4684682003-08-20 11:02  jamey 
     
    472472        * configure.ac: updated to 0.99.88 
    473473        * pkg_hash: bug 942, declare internal induction variable 
    474         * ipkg_cmd.c, ipkg_conf.[ch], pkg_src.[ch], pkg_src_list.[ch]: bug 604, support Packages.gz 
     474        * opkg_cmd.c, opkg_conf.[ch], pkg_src.[ch], pkg_src_list.[ch]: bug 604, support Packages.gz 
    4754752003-08-06 18:34  jamey 
    476476        * configure.ac: updated to 0.99.87 
     
    4804802003-07-11 18:34  jamey 
    481481        * configure.ac: updated to 0.99.86 
    482         * ipkg.h, ipkg_cmd.c, ipkg_configure.c, ipkg_install.c, ipkg_remove.c: only write status file if something changed. 
     482        * opkg.h, opkg_cmd.c, opkg_configure.c, opkg_install.c, opkg_remove.c: only write status file if something changed. 
    4834832003-07-11 18:34  jamey 
    484484        * configure.ac: updated to 0.99.85 
    485485        * pkg.c, pkg.h, pkg_depends.c, pkg_depends.h, pkg_parse.c: bug 885: 
    486486          add recommends and suggests 
    487         * args.c, ipkg_cmd.c, ipkg_cmd.h: add ipkg configure command 
     487        * args.c, opkg_cmd.c, opkg_cmd.h: add opkg configure command 
    488488        * pkg_vec.c: apply patch for bug 883 
    4894892003-05-11 Jamey Hicks <jamey@handhelds.org> 
    490490        * configure.ac: updated to 0.99.84 
    491         * pkg.c, ipkg-compare-versions.c: fix problem where . and - were not treated as separators in version comparison 
     491        * pkg.c, opkg-compare-versions.c: fix problem where . and - were not treated as separators in version comparison 
    4924922003-04-11 Jamey Hicks <jamey@handhelds.org> 
    493493        * configure.ac: updated to 0.99.83 
    494         * ipkg_install.c: use pkg->installed_size instead of pkg->size 
    495         * ipkg_cmd.c, ipkg_conf.c: put lists under offline_root if specified 
     494        * opkg_install.c: use pkg->installed_size instead of pkg->size 
     495        * opkg_cmd.c, opkg_conf.c: put lists under offline_root if specified 
    4964962003-04-11 Jamey Hicks <jamey@handhelds.org> 
    497497        * configure.ac: updated to 0.99.82 
     
    508508        * configure.ac: updated to 0.99.79 
    509509        * pkg_hash.c: default architecture to host_cpu if unspecified 
    510         * ipkg_install.c, ipkg_download.c: refuse to install package with no architecture 
     510        * opkg_install.c, opkg_download.c: refuse to install package with no architecture 
    5115112003-04-07 Jamey Hicks <jamey@handhelds.org> 
    512512        * configure.ac: updated to 0.99.78 
    513         * args.[ch], ipkg_conf.[ch]: added query_all (-A) 
    514         * ipkg_cmd.c: finished implementing whatdepends, whatrequires, whatprovides, and whatconflicts 
     513        * args.[ch], opkg_conf.[ch]: added query_all (-A) 
     514        * opkg_cmd.c: finished implementing whatdepends, whatrequires, whatprovides, and whatconflicts 
    5155152003-04-03 Jamey Hicks <jamey@handhelds.org> 
    516516        * configure.ac: updated to 0.99.77 
    517         * ipkg_cmd.c: implemented whatdepends 
    518         * ipkg_conf.c: fixed typo 
     517        * opkg_cmd.c: implemented whatdepends 
     518        * opkg_conf.c: fixed typo 
    5195192003-04-03 Jamey Hicks <jamey@handhelds.org> 
    520520        * configure.ac: updated to 0.99.76 
    521521        * args.c: was zeroing args structure too late 
    522         * ipkg_conf.c: test for existence of /etc/ipkg.conf before trying to load it 
     522        * opkg_conf.c: test for existence of /etc/opkg.conf before trying to load it 
    5235232003-04-03 Jamey Hicks <jamey@handhelds.org> 
    524524        * configure.ac: updated to 0.99.75 
     
    5275272003-04-03 Jamey Hicks <jamey@handhelds.org> 
    528528        * configure.ac: updated to 0.99.74 
    529         * ipkg_cmd.c: avoid segv by only calling xregfree after xregcomp was called 
     529        * opkg_cmd.c: avoid segv by only calling xregfree after xregcomp was called 
    530530        * pkg_hash.c: prefer pkgs that are marked hold/prefer, next 
    531531        abstract pkgs that are installed, next latest pkg if one provider, 
     
    540540        * configure.ac: updated to 0.99.71 
    541541        * pkg.c: Added pkg_name_version_and_architecture_compare and abstract_pkg_name_compare 
    542         * ipkg_cmd.c: allow multiple fields for info and status command. 
     542        * opkg_cmd.c: allow multiple fields for info and status command. 
    543543        Allow posix regexp's for package name in status, info, and list 
    544544        commands. 
     
    5485482003-04-02 Jamey Hicks <jamey@handhelds.org> 
    549549        * configure.ac: updated to 0.99.70 
    550         * args.c, args.h, ipkg_conf.c, ipkg_conf.h, ipkg_install.c: implemented nodeps option 
     550        * args.c, args.h, opkg_conf.c, opkg_conf.h, opkg_install.c: implemented nodeps option 
    551551        * pkg_vec.[ch]: added [abstract_]pkg_vec_{contains,sort} 
    552552        * pkg.c: print which script not being run in offline root mode 
     
    554554        * configure.ac: updated to 0.99.69 
    555555        * pkg_vec.c: compare architecture to architecture, not to name 
    556         * ipkg_utils.c: do not exit, instead return NULL 
    557         * ipkg_install.c: do not exit, instead return -EINVAL 
    558         * ipkg_download.c: make sure to set pkg dest 
    559         * ipkg_cmd.c: notice instead of info for writing status file message 
     556        * opkg_utils.c: do not exit, instead return NULL 
     557        * opkg_install.c: do not exit, instead return -EINVAL 
     558        * opkg_download.c: make sure to set pkg dest 
     559        * opkg_cmd.c: notice instead of info for writing status file message 
    5605602003-04-02 Jamey Hicks <jamey@handhelds.org> 
    561561        * configure.ac: updated to 0.99.68 
     
    5635632003-04-01 Jamey Hicks <jamey@handhelds.org> 
    564564        * configure.ac: updated to 0.99.67 
    565         * ipkg_install.c: one last check for supported architecture in ipkg_install_pkg 
     565        * opkg_install.c: one last check for supported architecture in opkg_install_pkg 
    566566        * pkg.c: make pkg_print_field less fragile by using strcasecmp, 
    567567        added support to print Conflicts 
    568568        * pkg_hash.c: if multiple candidates with right architecture 
    569569        satisfy constraint_fcn, return latest version 
    570         * ipkg_cmd.c: when verbosity > 1, show if conffiles have been 
     570        * opkg_cmd.c: when verbosity > 1, show if conffiles have been 
    571571        modified in info command 
    572572        * hash_table.c, hash_table.h: count number of elements in hash 
     
    5815812003-04-01 Jamey Hicks <jamey@handhelds.org> 
    582582        * configure.ac: updated to 0.99.65 
    583         * ipkg_cmd.c, ipkg_conf.c: applied ipkg dest installation patch from Ben Lau <benlau@linux.org.hk> 
    584         * ipkg_cmd.c: fixed probably segv when using offline_root, fixed problem installing from local file. 
    585         * ipkg_conf.c:  
    586           - Do not add default architectures if ipkg configuration files include architecture definitions. 
    587           - Look for /etc/ipkg/*.conf under offline root if using offline root mode 
     583        * opkg_cmd.c, opkg_conf.c: applied opkg dest installation patch from Ben Lau <benlau@linux.org.hk> 
     584        * opkg_cmd.c: fixed probably segv when using offline_root, fixed problem installing from local file. 
     585        * opkg_conf.c:  
     586          - Do not add default architectures if opkg configuration files include architecture definitions. 
     587          - Look for /etc/opkg/*.conf under offline root if using offline root mode 
    588588        * void_list.h: added void_list_empty() 
    589589        * nv_pair_list.h: added nv_pair_list_empty() 
    5905902003-03-28 14:30  Jamey Hicks <jamey@handhelds.org>  
    591591        * configure.ac: 0.99.64 
    592         * pkg_hash.c: change fprintf stderr to ipkg_message 
     592        * pkg_hash.c: change fprintf stderr to opkg_message 
    593593        * pkg.h: added SF_MARKED and abstract_pkg_t state_flag field 
    594594        * pkg.c: include Provides, Replaces, and Architecture in status 
    595595        file 
    596         * ipkg_remove.c: make sure to print each dependent package only 
     596        * opkg_remove.c: make sure to print each dependent package only 
    597597        once 
    598         * ipkg_message.h: added IPKG_DEBUG2 
    599         * ipkg_install.c: modify message and level depending on 
     598        * opkg_message.h: added OPKG_DEBUG2 
     599        * opkg_install.c: modify message and level depending on 
    600600        force_depends 
    601         * ipkg_cmd.c: call pkg_info_preinstall_check before any 
     601        * opkg_cmd.c: call pkg_info_preinstall_check before any 
    602602        install/upgrade/remove action 
    603603        * ChangeLog, autoconfigure.sh, includes.h, 
    604         ipkg_conf.c, ipkg_remove.c, pkg.c, pkg.h, update-alternatives, 
     604        opkg_conf.c, opkg_remove.c, pkg.c, pkg.h, update-alternatives, 
    605605        xregex.h: applied kergoth's update-alternatives patch 
    606         * ipkg_cmd.c, ipkg_remove.c: remove maybe_broken_removal... which 
     606        * opkg_cmd.c, opkg_remove.c: remove maybe_broken_removal... which 
    607607        was an expensive no-op; before removing package, make sure that 
    608608        nothing is installed that depends on the apkgs **provided** by a 
     
    6136132003-03-27 18:26  jamey 
    614614        * autoconfigure.sh: accidentally committed /usr/local/bin calls 
    615         * ipkg_conf.c: needed a strdup, set default verbosity back to 0 
     615        * opkg_conf.c: needed a strdup, set default verbosity back to 0 
    616616        * familiar/postinst: default architecture priorities 
    617         * Makefile.in, autoconfigure.sh, ipkg_cmd.c, ipkg_conf.c, pkg.c: 
     617        * Makefile.in, autoconfigure.sh, opkg_cmd.c, opkg_conf.c, pkg.c: 
    618618        both name and value in nv_pair_list must be actual strings 
    619619        * pkg_hash.c: do not try to invoke NULL constraint_fcn 
    620         * ipkg_install.c: added file_hash_{set,get}_file_owner, created 
     620        * opkg_install.c: added file_hash_{set,get}_file_owner, created 
    621621        check_downgrade 
    622         * ipkg_conf.c, ipkg_conf.h, ipkg_remove.c, pkg.c, pkg_hash.c, 
     622        * opkg_conf.c, opkg_conf.h, opkg_remove.c, pkg.c, pkg_hash.c, 
    623623        pkg_hash.h: added file_hash_{set,get}_file_owner 
    624624        * hash_table.c: check for key already being present in 
    625625        hash_table_insert 
    626626        * configure.ac: update to 0.99.63 
    627         * ipkg_hash_test.c: update due to new prototypes 
    628         * ipkg_conf.c: missed a conversion from str_list to nv_pair_list 
    629         * ipkg_install.c: minor tweaks 
     627        * opkg_hash_test.c: update due to new prototypes 
     628        * opkg_conf.c: missed a conversion from str_list to nv_pair_list 
     629        * opkg_install.c: minor tweaks 
    630630        * pkg.c, pkg.h: added pkg_info_preinstall_check to update 
    631631        pkg->arch_priority 
     
    633633        pkg_hash_fetch_best_installation_candidate in 
    634634        pkg_hash_fetch_unsatisfied_dependencies 
    635         * pkg_hash.c, pkg_hash.h, ipkg_cmd.c, ipkg_upgrade.c: split 
     635        * pkg_hash.c, pkg_hash.h, opkg_cmd.c, opkg_upgrade.c: split 
    636636        pkg_hash_fetch_best_installation_candidate into a by name and a 
    637637        constrained version 
    638         * ipkg_install.c: block SIGINT while doing core of package 
     638        * opkg_install.c: block SIGINT while doing core of package 
    639639        installation (single package) 
    640         * ipkg_conf.c, ipkg_conf.h: support for architecture priority 
     640        * opkg_conf.c, opkg_conf.h: support for architecture priority 
    641641        * pkg_depends.c: cleanup, reindent 
    642642        * pkg.c, pkg.h: support for architecture_priority 
    643         * ipkg_cmd.c: installed SIGINT handler when upgrading or removing, 
     643        * opkg_cmd.c: installed SIGINT handler when upgrading or removing, 
    644644        support for architecture_priority 
    645645        * pkg_hash.c: added support for architecture priority, reindented 
     
    6476472003-03-24  Jamey Hicks <jamey@handhelds.org> 
    648648        * configure.ac: updated to 0.99.61 
    649         * familiar/postinst: mkdir -p /etc/ipkg 
     649        * familiar/postinst: mkdir -p /etc/opkg 
    6506502003-03-24  Jamey Hicks <jamey@handhelds.org> 
    651651        * configure.ac: updated to 0.99.61 
    652         * ipkg_conf.c: read configuration from all *.conf files in /etc/ipkg/ 
    653         * familiar/postinst: create /etc/ipkg/*.conf according to platform ipkg is installed on 
     652        * opkg_conf.c: read configuration from all *.conf files in /etc/opkg/ 
     653        * familiar/postinst: create /etc/opkg/*.conf according to platform opkg is installed on 
    6546542003-03-20  Jamey Hicks <jamey@handhelds.org> 
    655655        * configure.ac: updated to 0.99.60 
    656656        * various: added support for package architectures 
    657657        * configure.ac: do not test for malloc 
    658 2003-03-17  Aman Gupta <ipkg@themastermind1.net> 
     6582003-03-17  Aman Gupta <opkg@themastermind1.net> 
    659659        * configure.ac: updated to 0.99.59 
    660660        * args.c: show all verbosity levels in usage info 
    661661        * args.h: changed default verbosity level to 1 
    662         * ipkg_cmd.c: ipkg_multiple_files_scan() was useless, switch to using  
    663         ipkg_prepare_url_for_install() 
    664         * ipkg_install.c: fix --force-reinstall 
    665         * ipkg_remove.c: stop removing of modified conffiles 
     662        * opkg_cmd.c: opkg_multiple_files_scan() was useless, switch to using  
     663        opkg_prepare_url_for_install() 
     664        * opkg_install.c: fix --force-reinstall 
     665        * opkg_remove.c: stop removing of modified conffiles 
    6666662003-03-04  Jamey Hicks <jamey@handhelds.org> 
    667667        * configure.ac: updated to 0.99.56 
    668         * ipkg_message.c: show error messages by default 
    669         * ipkg_message.h: protect against multiple inclusion 
    670         * conffile.[ch]: switch to ipkg_message, added conf argument to conffile_has_been_modified 
    671         * ipkg.h: move EXTENSION macros here 
     668        * opkg_message.c: show error messages by default 
     669        * opkg_message.h: protect against multiple inclusion 
     670        * conffile.[ch]: switch to opkg_message, added conf argument to conffile_has_been_modified 
     671        * opkg.h: move EXTENSION macros here 
    672672        * pkg_depends.c: minor cleanup 
    673673        * pkg.h: added prefer and obsolete flags 
    674674        * pkg.c: parse and unparse SF_PREFER and SF_OBSOLETE 
    675         * ipkg_install.[ch]:  
     675        * opkg_install.[ch]:  
    676676          - added {pkg,name}_mark_dependencies_for_installation,  
    677677          - added conf argument to conffile_has_been_modified  
    678           - missing ifdef IPKG_DEBUG_NO_TMP_CLEANUP 
    679         * ipkg_remove.c: added conf argument to conffile_has_been_modified 
    680         * ipkg_download.c: added ipkg_prepare_for_install 
     678          - missing ifdef OPKG_DEBUG_NO_TMP_CLEANUP 
     679        * opkg_remove.c: added conf argument to conffile_has_been_modified 
     680        * opkg_download.c: added opkg_prepare_for_install 
    6816812003-03-01  Jamey Hicks <jamey@handhelds.org> 
    682682        * configure.ac: updated to 0.99.55 
    683         * ipkg.h: wrap #if 0 around definition of of IPKG_DEBUG_NO_TMP_CLEANUP 
     683        * opkg.h: wrap #if 0 around definition of of OPKG_DEBUG_NO_TMP_CLEANUP 
    6846842003-03-01  Jamey Hicks <jamey@handhelds.org> 
    685685        * configure.ac: updated to 0.99.54 
    686         * ipkg_install.c: make old package SW_DEINSTALL during ipkg installation 
    687         * ipkg_cmd.[ch]: added some code to install packages marked SW_INSTALL, but have not enabled this code yet. 
     686        * opkg_install.c: make old package SW_DEINSTALL during opkg installation 
     687        * opkg_cmd.[ch]: added some code to install packages marked SW_INSTALL, but have not enabled this code yet. 
    6886882003-03-01  Jamey Hicks <jamey@handhelds.org> 
    689689        * configure.ac: updated to 0.99.53 
    690690        * pkg_depends.c: let SW_INSTALL satisfy dependences (instead of SS_INSTALL) 
    6916912003-03-01  Daniele Nicolodi <daniele@grinta.net>        
    692         * ipkg_install.c: indentation fixes and finish switch to message 
     692        * opkg_install.c: indentation fixes and finish switch to message 
    693693        facility 
    694         * ipkg_cmd.c: indentation fixes, switch to message facility and 
     694        * opkg_cmd.c: indentation fixes, switch to message facility and 
    695695        some code cleanup 
    696         * ipkg_message.c (ipkg_message): check for a NULL *conf parameter 
    697         * ipkg_message.h: renamed IPKG_ERR in IPKG_ERROR 
     696        * opkg_message.c (opkg_message): check for a NULL *conf parameter 
     697        * opkg_message.h: renamed OPKG_ERR in OPKG_ERROR 
    6986982003-02-28  Jamey Hicks <jamey@handhelds.org> (patch from Daniele Nicolodi <daniele@grinta.net>) 
    699699        * configure.ac: incremented version to 0.99.5 
    700         * ipkg_message.[ch]: added message facility 
     700        * opkg_message.[ch]: added message facility 
    701701        * args.[ch]: verbosity control 
    702         * ipkg_conf.[ch]: verbosity control 
    703         * ipkg_install.c: switch to using message factility 
     702        * opkg_conf.[ch]: verbosity control 
     703        * opkg_install.c: switch to using message factility 
    7047042003-02-28  Jamey Hicks <jamey@handhelds.org> 
    705705        * configure.ac: incremented version to 0.99.51 
    706         * ipkg_cmd.c: added ipkg_statisfy_all_dependences, called after 
     706        * opkg_cmd.c: added opkg_statisfy_all_dependences, called after 
    707707        install/upgrade of packages to handle packages that were split and 
    708708        no longer provide all the resources they used to provide. 
    7097092003-02-27  Jamey Hicks <jamey@handhelds.org> 
    710710        * configure.ac: incremented version to 0.99.50 
    711         * ipkg_cmd.c: write out status after doing an upgrade 
     711        * opkg_cmd.c: write out status after doing an upgrade 
    7127122003-02-27  Jamey Hicks <jamey@handhelds.org> (another patch from pb) 
    713713        * configure.ac: incremented version to 0.99.49 
     
    7157152003-02-27  Jamey Hicks <jamey@handhelds.org> (another patch from pb) 
    716716        * configure.ac: incremented version number to 0.99.48 
    717         * args.c: added help for ipkg flags sub-command 
    718         * ipkg_cmd.c: added ipkg_flag_cmd, do not upgrade package marked hold 
    719         * ipkg_install.c: do not remove obsolesced files if old_pkg is flagged noprune 
    720         * ipkg_remove.c: pkg->state_flag is a bitvector now 
     717        * args.c: added help for opkg flags sub-command 
     718        * opkg_cmd.c: added opkg_flag_cmd, do not upgrade package marked hold 
     719        * opkg_install.c: do not remove obsolesced files if old_pkg is flagged noprune 
     720        * opkg_remove.c: pkg->state_flag is a bitvector now 
    721721        * pkg.c: pkg->state_flag is a bitvector now 
    722722        * pkg.h: pkg->state_flag is a bitvector now 
     
    731731        * configure.ac: incremented version to 0.99.45 
    732732        * file_util.c: include space for null in line_size 
    733         * ipkg_cmd.c: sigint handler while configuring packages 
    734         * ipkg_install.c: state_status != SS_INSTALLED and != SS_UNPACKED 
    735         * ipkg_remove.c: missing i++ 
     733        * opkg_cmd.c: sigint handler while configuring packages 
     734        * opkg_install.c: state_status != SS_INSTALLED and != SS_UNPACKED 
     735        * opkg_remove.c: missing i++ 
    736736        * pkg.c: do not run scripts in offline_root mode 
    737737        * pkg_depends.c: every package provides itself 
     
    7427422002-11-26  Jamey Hicks <jamey@handhelds.org> 
    743743        * configure.ac: incremented version number to 0.99.43 
    744         * ipkg_install.c: completely skip the space check when -force_space asserted 
     744        * opkg_install.c: completely skip the space check when -force_space asserted 
    7457452002-11-23  Jamey Hicks <jamey@handhelds.org> 
    746746        * configure.ac: incremented version number to 0.99.42 
     
    7487482002-11-23  Jamey Hicks <jamey@handhelds.org> 
    749749        * configure.ac: incremented version number to 0.99.41 
    750         * ipkg_install.c: added -force_space option to override out of space check 
     750        * opkg_install.c: added -force_space option to override out of space check 
    7517512002-11-23  Aman Gupta  <oz@themastermind1.net> 
    752752        * configure.ac: incremented version number to 0.99.40 
    753         * ipkg_configure.c: updated to match new text output format 
    754         * ipkg_install.c: updated to new text output format 
     753        * opkg_configure.c: updated to match new text output format 
     754        * opkg_install.c: updated to new text output format 
    755755                          fixed problems where ipks installed from file or 
    756756                          http were being installed over newer ipks of the 
    757757                          same name 
    758         * ipkg_remove.c: updated to new text output format 
    759                          made ipkg remove do what ipkg purge originally did, 
     758        * opkg_remove.c: updated to new text output format 
     759                         made opkg remove do what opkg purge originally did, 
    760760                         by having it remove conffiles, and status entries for 
    761                          ipks that are removed. ipkg_purge now calls 
    762                          ipkg_remove 
     761                         ipks that are removed. opkg_purge now calls 
     762                         opkg_remove 
    7637632002-11-22  Jamey Hicks <jamey.hicks@hp.com> 
    764764        * configure.ac: incremented version number to 0.99.39 
     
    7727722002-10-29  Jamey Hicks <jamey.hicks@hp.com> 
    773773        * configure.ac: incremented version number to 0.99.37 
    774         * ipkg_cmd.c: ipkg_upgrade_cmd now installs uninstalled packages 
     774        * opkg_cmd.c: opkg_upgrade_cmd now installs uninstalled packages 
    775775                      instead of getting a segv  
    7767762002-10-29  Jamey Hicks <jamey.hicks@hp.com> 
     
    7797792002-08-08  Jamey Hicks <jamey.hicks@hp.com> 
    780780        * configure.ac: incremented version number to 0.99.34 
    781         * ipkg_cmd.c: fixed problem stringifying HOST_CPU 
     781        * opkg_cmd.c: fixed problem stringifying HOST_CPU 
    782782        * Makefile.am: helped fix problem stringifying HOST_CPU 
    7837832002-08-08  Jamey Hicks <jamey.hicks@hp.com> 
    784784        * configure.ac: incremented version number to 0.99.33 
    785         * ipkg_cmd.c, args.c: added print-architecture and print-installation-architecture commands 
     785        * opkg_cmd.c, args.c: added print-architecture and print-installation-architecture commands 
    786786        * Makefile.am: added defines for HOST_CPU and BUILD_CPU to CFLAGS and package: target 
    7877872002-08-08  Jamey Hicks <jamey.hicks@hp.com> 
     
    791791        * configure.ac: incremented version number to 0.99.31 
    792792        * other: applied multiple providers patch from philip blundell 
    793         * ipkg_cmd.c: implemented compare_versions cmd 
     793        * opkg_cmd.c: implemented compare_versions cmd 
    7947942002-07-25  Jamey Hicks <jamey.hicks@hp.com> 
    795795        * configure.ac: incremented version number to 0.99.30 
    796         * ipkg_conf.c: added offline_root_pre_script_cmd and offline_root_post_script_cmd 
     796        * opkg_conf.c: added offline_root_pre_script_cmd and offline_root_post_script_cmd 
    797797        * pkg.c: execute scripts in chroot'ed environment running 
    798798        pre_script_cmd and post_script_cmd before and after the pkg script.  
     
    8028022002-07-24  Jamey Hicks <jamey.hicks@hp.com> 
    803803        * configure.ac: incremented version number to 0.99.28 
    804         * ipkg_cmd.c: merged functionality from ipkg_install_cmd into 
    805         ipkg_upgrade_cmd with an eye towards unifying these two commands.  
    806         * ipkg_install.c: installing a package that replaces other 
     804        * opkg_cmd.c: merged functionality from opkg_install_cmd into 
     805        opkg_upgrade_cmd with an eye towards unifying these two commands.  
     806        * opkg_install.c: installing a package that replaces other 
    807807        packages removes them first.  (Upgrade does not do replacements automatically). 
    808         * ipkg_remove.c: ipkg_remove_pkg will remove a package with 
     808        * opkg_remove.c: opkg_remove_pkg will remove a package with 
    809809        installed dependents if state_flag == SF_REPLACE. 
    8108102002-07-24  Jamey Hicks <jamey.hicks@hp.com> 
     
    8228222002-07-17  Jamey Hicks <jamey.hicks@hp.com> 
    823823        * configure.ac: incremented version number to 0.99.23 
    824         * ipkg_remove.c: do not do recursive removal if force-depends is 
     824        * opkg_remove.c: do not do recursive removal if force-depends is 
    825825          specified 
    826826        * other-files: other cleanups to reduce code clutter 
     
    828828        * configure.ac: incremented version number to 0.99.22 
    829829        * user.[ch]: moved user interaction procedure here 
    830         * args.[ch], ipkg_conf.[ch]: added force_removal_of_dependent_packages 
     830        * args.[ch], opkg_conf.[ch]: added force_removal_of_dependent_packages 
    831831        * pkg.h: added state_status to abstract_pkg_t 
    832         * ipkg_remove.c: If package has installed dependents, then only 
     832        * opkg_remove.c: If package has installed dependents, then only 
    833833        remove if force_removal_of_dependent_packages is asserted in 
    834         ipkg.conf or on command line.  Will add user interaction option later. 
     834        opkg.conf or on command line.  Will add user interaction option later. 
    8358352002-07-16  Jamey Hicks <jamey.hicks@hp.com> 
    836836        * configure.ac: incremented version number to 0.99.21 after 
     
    840840         
    841841        * configure.ac: incremented version number to 0.99.20 
    842         * ipkg_download.c: removed useless -N flag from wget  
     842        * opkg_download.c: removed useless -N flag from wget  
    843843        * update-alternatives: 'head -1' -> 'head -n 1', no sort -k 2 for busybox 
    844844         
    8458452002-07-15  Karthikeyan K  <karthik@innvo.com> 
    846846         
    847         * ipkg_remove.c (ipkg_remove_dependant_pkgs): removed setting the  
     847        * opkg_remove.c (opkg_remove_dependant_pkgs): removed setting the  
    848848        dependencies_checked variable in the while loop b4 actually checking 
    849849        the dependencies of that package. 
    850         * ipkg_cmd.c (ipkg_multiple_files_scan): added check for ".ipk" and 
     850        * opkg_cmd.c (opkg_multiple_files_scan): added check for ".ipk" and 
    851851        ".deb" extension, so that no caching is attempted on  arguments that 
    852852        are not local files 
     
    876876 
    8778772002-07-04  Abhaya Shenoy  <abhaya@innvo.com> 
    878         * ipkg_install.c (check_conflicts_for): new function to call 
     878        * opkg_install.c (check_conflicts_for): new function to call 
    879879        pkg_hash_fetch_conflicts and print offending packages 
    880         (ipkg_install_pkg): added call to check_conflicts_for 
     880        (opkg_install_pkg): added call to check_conflicts_for 
    881881        * pkg.c (pkg_merge): provides from oldpkg should be given 
    882882        priority 
     
    8948942002-07-04  Karthikeyan K  <karthik@innvo.com> 
    895895         
    896         * ipkg_cmd.c (ipkg_multiple_files_scan): new function to handle installation 
     896        * opkg_cmd.c (opkg_multiple_files_scan): new function to handle installation 
    897897        of already downloaded files 
    898         (ipkg_install_cmd): added call to ipkg_multiple_files_scan 
    899         (ipkg_remove_cmd): added call to possible_broken_removal_of_packages 
    900         * ipkg_install.c (ipkg_install_pkg): added check to remove redundant upgrade 
     898        (opkg_install_cmd): added call to opkg_multiple_files_scan 
     899        (opkg_remove_cmd): added call to possible_broken_removal_of_packages 
     900        * opkg_install.c (opkg_install_pkg): added check to remove redundant upgrade 
    901901        when a package to be installed is already installed as a dependancy of 
    902902        another 
    903         * ipkg_remove.c (possible_broken_removal_of_packages): new fnuction  
     903        * opkg_remove.c (possible_broken_removal_of_packages): new fnuction  
    904904        to check that all packages can be removed, before actually starting to 
    905905        remove them 
    906         (ipkg_remove_dependant_pkgs): new function to remove dependant packages 
    907         (ipkg_remove_pkg): added call to ipkg_remove_dependant_pkgs 
     906        (opkg_remove_dependant_pkgs): new function to remove dependant packages 
     907        (opkg_remove_pkg): added call to opkg_remove_dependant_pkgs 
    908908        * pkg.c (abstract_pkg_init): initialized dependencies_checked 
    909909        * pkg_hash.c (pkg_hash_dump): added more information to hash dump 
     
    912912         
    913913        * configure.ac: incremented version number to 0.99.16 
    914         * ipkg_install.c: defensive programming in case pkg contains no Size: clause 
     914        * opkg_install.c: defensive programming in case pkg contains no Size: clause 
    915915         
    9169162002-07-02  Jamey Hicks <jamey.hicks@hp.com> 
     
    927927         
    928928        * configure.ac: incremented version number to 0.99.12 
    929         * args.h, ipkg_conf.h, ipkg_install.c: Added force_overwrite 
    930         option.  When this is asserted, ipkg will overwrite files that 
     929        * args.h, opkg_conf.h, opkg_install.c: Added force_overwrite 
     930        option.  When this is asserted, opkg will overwrite files that 
    931931        have no owner or that belong to other packages. 
    932         * ipkg_conf.c, ipkg_dest.c: Update status file atomically, keeping 
     932        * opkg_conf.c, opkg_dest.c: Update status file atomically, keeping 
    933933        old copy of status file if cannot update new status file.  Applied 
    934934        patch from Jukka Santala for this fix. 
     
    957957        rather than "make install" and a strip command. 
    958958 
    959         * ipkg_cmd.c (ipkg_install_cmd): Moved an error message up from 
    960         ipkg_install_by_name, (eventually all error messages should come 
    961         up out of what will become libipkg, (pkg.c, ipkg_install.c, etc.) 
    962         and into ipkg_cmd.c and friends). 
    963         (ipkg_upgrade_pkg): Pushed downgrade check down into 
    964         ipkg_install_by_name so that "ipkg install foo" will do the 
     959        * opkg_cmd.c (opkg_install_cmd): Moved an error message up from 
     960        opkg_install_by_name, (eventually all error messages should come 
     961        up out of what will become libopkg, (pkg.c, opkg_install.c, etc.) 
     962        and into opkg_cmd.c and friends). 
     963        (opkg_upgrade_pkg): Pushed downgrade check down into 
     964        opkg_install_by_name so that "opkg install foo" will do the 
    965965        downgrade check. 
    966966 
    967         * ipkg.h: Rename some ipkg_error_t error codes to be more 
     967        * opkg.h: Rename some opkg_error_t error codes to be more 
    968968        consistent. 
    969969 
    970         * ipkg_install.c (resolve_conffiles): Added missing removal of 
     970        * opkg_install.c (resolve_conffiles): Added missing removal of 
    971971        backed-up modified conffiles, (which led to bizarre, bogus 
    972972        conffile prompting the next time the package was upgraded). 
    973973        (user_prefers_old_conffile): Fixed reversed arguments to diff in 
    974974        interactive conffiles prompting. 
    975         (ipkg_install_by_name): Fixed "ipkg install foo" to never 
    976         downgrade foo, (just like "ipkg upgrade foo"). 
     975        (opkg_install_by_name): Fixed "opkg install foo" to never 
     976        downgrade foo, (just like "opkg upgrade foo"). 
    977977 
    978978        * familiar/rules: Added installation of 
    979         /usr/share/doc/ipkg/copyright file. Fixed so that ipkg.conf goes 
     979        /usr/share/doc/opkg/copyright file. Fixed so that opkg.conf goes 
    980980        to /etc, not /usr/etc, (but still keep binary in /usr/bin not 
    981         /bin). Changed name of installed binary from ipkg-unstable to 
    982         ipkg. 
     981        /bin). Changed name of installed binary from opkg-unstable to 
     982        opkg. 
    983983 
    984984        * familiar/control.in (Package): Changed package name from 
    985         ipkg-unstable to ipkg. 
     985        opkg-unstable to opkg. 
    986986 
    987987        * pkg_parse.c (parseVersion): Fixed to ignore whitespace at 
     
    990990        a package paragraph without a final blank line. 
    991991 
    992         * ipkg_install.c (check_data_file_clashes): Improved wording of 
     992        * opkg_install.c (check_data_file_clashes): Improved wording of 
    993993        file clash error message. 
    994994 
    995         * ipkg_download.c (ipkg_download_pkg): Fixed segfault if package 
     995        * opkg_download.c (opkg_download_pkg): Fixed segfault if package 
    996996        has no src, (occurs if package had benn installed locally, then 
    997997        was removed (but not purged), then tried to reinstall eithout it 
    998         existing in any /usr/lib/ipkg/lists/* file). 
    999  
    1000         * etc/ipkg.conf: Added a default ipkg.conf to the distribution. 
     998        existing in any /usr/lib/opkg/lists/* file). 
     999 
     1000        * etc/opkg.conf: Added a default opkg.conf to the distribution. 
    10011001 
    100210022002-03-13  Carl Worth  <cworth@east.isi.edu> 
     
    10071007 
    10081008        * pkg.c (pkg_run_script): Added support to export 
    1009         IPKG_OFFLINE_ROOT. This is really a nasty hack as it means scripts 
    1010         need to be modified to check IPKG_OFFLINE_ROOT. I'd really prefer 
     1009        OPKG_OFFLINE_ROOT. This is really a nasty hack as it means scripts 
     1010        need to be modified to check OPKG_OFFLINE_ROOT. I'd really prefer 
    10111011        coming up with a good, reliable chroot system. But for now this 
    10121012        will let update-alternatives work, (which already does examine 
    1013         IPKG_OFFLINE_ROOT). 
     1013        OPKG_OFFLINE_ROOT). 
    10141014        (pkg_run_script): Added missing brace. 
    10151015 
    1016         * ipkg_conf.c (ipkg_conf_init): Reworked significantly to properly 
     1016        * opkg_conf.c (opkg_conf_init): Reworked significantly to properly 
    10171017        set up the pkg_dest_list stuff to account for offline_root. 
    10181018 
     
    10271027        * RELEASE_NOTES: Added release notes for 0.99.6. 
    10281028 
    1029         * ipkg_download.c (ipkg_download): Fixed bug in handling of 
     1029        * opkg_download.c (opkg_download): Fixed bug in handling of 
    10301030        "file://" URLs. 
    10311031 
    1032         * ipkg.c (main): Fixed to abort if ipkg_conf_init fails. 
    1033  
    1034         * ipkg_conf.c (ipkg_conf_init): Fixed to complain if given an 
     1032        * opkg.c (main): Fixed to abort if opkg_conf_init fails. 
     1033 
     1034        * opkg_conf.c (opkg_conf_init): Fixed to complain if given an 
    10351035        unknown dest. 
    10361036 
     
    10461046 
    10471047        * familiar/rules (binary-arch): Added strip back in in preparation 
    1048         of non-unstable release of ipkg. 
     1048        of non-unstable release of opkg. 
    10491049 
    10501050        * str_util.c (str_starts_with): Added convenience function. 
     
    10521052        * pkg_extract.c (pkg_extract_data_file_names_to_file): Fixed 
    10531053        filenames in *.list files to be compatible with dpkg and the old 
    1054         ipkg, (no prefix of "." for example). 
     1054        opkg, (no prefix of "." for example). 
    10551055 
    10561056        * pkg.c (pkg_run_script): Added export of PKG_ROOT for the benefit 
    10571057        of maintainer scripts. 
    10581058 
    1059         * ipkg_remove.c (ipkg_remove_pkg): Complain and abort if user 
     1059        * opkg_remove.c (opkg_remove_pkg): Complain and abort if user 
    10601060        attempts to remove an essential package, (also inform them of the 
    10611061        force option if they insist). 
    10621062 
    1063         * ipkg_install.c (ipkg_install_pkg): Added message about whether 
     1063        * opkg_install.c (opkg_install_pkg): Added message about whether 
    10641064        installing or upgrading. 
    10651065 
    1066         * ipkg_download.c (ipkg_download): Added support for "file://" 
     1066        * opkg_download.c (opkg_download): Added support for "file://" 
    10671067        URLs, (untested). 
    1068         (ipkg_download): Added support for wget proxy options. 
    1069  
    1070         * ipkg_conf.c (ipkg_conf_init): Added proxy support to ipkg_conf, 
     1068        (opkg_download): Added support for wget proxy options. 
     1069 
     1070        * opkg_conf.c (opkg_conf_init): Added proxy support to opkg_conf, 
    10711071        (http_proxy, ftp_proxy, no_proxy, proxy_user, and proxy_passwd). 
    10721072 
    1073         * ipkg_cmd.c (ipkg_upgrade_pkg): Moved Upgrading message from 
    1074         ipkg_upgrade_cmd to ipkg_install_pkg. 
     1073        * opkg_cmd.c (opkg_upgrade_pkg): Moved Upgrading message from 
     1074        opkg_upgrade_cmd to opkg_install_pkg. 
    10751075 
    10761076        * args.c (args_parse): Added new option 
     
    11011101        (pkg_print_field): Don't print MD5sum field if NULL. 
    11021102 
    1103         * ipkg_install.c (satisfy_dependencies_for): Now returns error 
     1103        * opkg_install.c (satisfy_dependencies_for): Now returns error 
    11041104        status if one or more of the dependencies fail to install cleanly. 
    11051105        (unpack_pkg_control_files): Fixed to not tack on a bunch of 
     
    11101110        have ugly things like "///" inside them. 
    11111111 
    1112         * ipkg_download.c (ipkg_download): Cleaned up error message. 
    1113         (ipkg_download): Now uses new file_move function. 
    1114         (ipkg_download_pkg): Created new function, (from old code in ipkg_install). 
    1115  
    1116         * ipkg_cmd.c (ipkg_download_cmd): Added new "ipkg download" 
     1112        * opkg_download.c (opkg_download): Cleaned up error message. 
     1113        (opkg_download): Now uses new file_move function. 
     1114        (opkg_download_pkg): Created new function, (from old code in opkg_install). 
     1115 
     1116        * opkg_cmd.c (opkg_download_cmd): Added new "opkg download" 
    11171117        command. 
    11181118 
    11191119        * file_util.c (file_move): Created file_move, (from code that had 
    1120         been in ipkg_download). 
     1120        been in opkg_download). 
    11211121        (file_copy): Added error message on failure. 
    11221122 
     
    11401140        * pkg_hash.c (pkg_hash_pkg_owning_file): Moved this function in 
    11411141        from pkg_dest.c. Also, updated it to use pkg_get_installed rather 
    1142         than mucking around inside /usr/lib/ipkg and globbing for *.list 
     1142        than mucking around inside /usr/lib/opkg and globbing for *.list 
    11431143        files. 
    11441144        (pkg_hash_fetch_best_installation_candidate): Fixed to only return 
    11451145        a package that actually could be installed, (ie. it must have 
    11461146        either a local_filename or a non-NULL src from which it could be 
    1147         downloaded). This prevents a segfault during "ipkg upgrade". 
     1147        downloaded). This prevents a segfault during "opkg upgrade". 
    11481148 
    11491149        * pkg.c (pkg_get_installed_files): Fixed to not do strange things 
    11501150        to filenames such as: "//./bin/sh" 
    11511151 
    1152         * ipkg_cmd.c (ipkg_files_cmd): Added pkg_free_installed_files to 
     1152        * opkg_cmd.c (opkg_files_cmd): Added pkg_free_installed_files to 
    11531153        conserve a bit of memory. 
    1154         (ipkg_search_cmd): Updated to use pkg_get_installed rather than 
    1155         mucking around inside /usr/lib/ipkg and globbing for *.list files. 
     1154        (opkg_search_cmd): Updated to use pkg_get_installed rather than 
     1155        mucking around inside /usr/lib/opkg and globbing for *.list files. 
    11561156 
    11571157        * pkg.c (pkg_free_installed_files): Added this function to free up 
    11581158        memory from pkg_get_installed_files. 
    11591159 
    1160         * ipkg_conf.c (ipkg_conf_set_option): Added force_reinstall option 
     1160        * opkg_conf.c (opkg_conf_set_option): Added force_reinstall option 
    11611161        to allow reinstallation of an installed package. 
    11621162 
     
    11701170        function to plug memory leak. 
    11711171 
    1172         * ipkg_install.c (check_data_file_clashes): Fixed crash if no 
     1172        * opkg_install.c (check_data_file_clashes): Fixed crash if no 
    11731173        package can be found owning the pre-existing file. 
    11741174 
     
    12261226        the package is installed. 
    12271227 
    1228         * ipkg_utils.c (read_raw_pkgs_from_file): Moved fclose out of 
     1228        * opkg_utils.c (read_raw_pkgs_from_file): Moved fclose out of 
    12291229        read_raw_pkgs_from_stream and into this function where it belongs, 
    12301230        (since the fopen occurs here). 
     
    12321232        name to make it obvious that it is allocating memory. 
    12331233 
    1234         * ipkg_install.c (ipkg_install_from_file): Fixed to be more robust 
     1234        * opkg_install.c (opkg_install_from_file): Fixed to be more robust 
    12351235        to the fact that hash_insert_pkg sometimes frees the data that I 
    12361236        pass into it (!). 
     
    12411241        (satisfy_dependencies_for): Added pkg_vec_deinit to plug memory 
    12421242        leak. 
    1243         (ipkg_install_pkg): Added "run ipkg update?" hint to error 
     1243        (opkg_install_pkg): Added "run opkg update?" hint to error 
    12441244        message. 
    12451245        (backup_modified_conffiles): Made more robust to the case that a 
     
    12521252        leak. 
    12531253 
    1254         * ipkg_download.c (ipkg_download): Cosmetic change to error 
     1254        * opkg_download.c (opkg_download): Cosmetic change to error 
    12551255        messages. 
    12561256 
    1257         * ipkg_conf.c (ipkg_conf_parse_file): Plugged some small memory 
     1257        * opkg_conf.c (opkg_conf_parse_file): Plugged some small memory 
    12581258        leaks. 
    1259         (ipkg_conf_set_option): Changed configuration options from 
     1259        (opkg_conf_set_option): Changed configuration options from 
    12601260        force-depends, force-defaults to force_depdends, force_defaults to 
    1261         be compatible with old ipkg.conf files. 
    1262         (ipkg_conf_set_option): Fixed bug in parsing options. 
    1263         (ipkg_conf_write_status_files): Fixed to list all interesting 
     1261        be compatible with old opkg.conf files. 
     1262        (opkg_conf_set_option): Fixed bug in parsing options. 
     1263        (opkg_conf_write_status_files): Fixed to list all interesting 
    12641264        packages, (any with non-default state), in status file rather than 
    12651265        just installed files. 
    1266         (ipkg_conf_write_status_files): Plugged a memory leak. 
    1267  
    1268         * ipkg_cmd.c (ipkg_status_cmd): Changed "ipkg status" to use 
     1266        (opkg_conf_write_status_files): Plugged a memory leak. 
     1267 
     1268        * opkg_cmd.c (opkg_status_cmd): Changed "opkg status" to use 
    12691269        pkg_print_info so it is much more verbose, (includes fields such 
    12701270        as Maintainer, etc. that are merged in from the lists files). 
    12711271 
    1272         * ipkg.h (IPKG_DEBUG_NO_TMP_CLEANUP): Added compile-time option to 
     1272        * opkg.h (OPKG_DEBUG_NO_TMP_CLEANUP): Added compile-time option to 
    12731273        preserve temporary files for easier debugging. 
    12741274 
     
    12761276        names. 
    12771277         
    1278         * ipkg_conf.c (ipkg_conf_init): Added support for offline_root 
     1278        * opkg_conf.c (opkg_conf_init): Added support for offline_root 
    12791279        configuration file option. 
    12801280 
     
    12831283        have any effect yet). 
    12841284 
    1285         * ipkg_install.c (ipkg_install_pkg): Changed back to marking 
     1285        * opkg_install.c (opkg_install_pkg): Changed back to marking 
    12861286        package as installed before postinst, (the pkg_run_script wanted 
    1287         to find the scripts in /usr/lib/ipkg/info). Actually, it could 
     1287        to find the scripts in /usr/lib/opkg/info). Actually, it could 
    12881288        probably find the script in either place at this point so maybe it 
    12891289        doesn't really matter. 
     
    129112912002-03-07  Carl Worth  <cworth@east.isi.edu> 
    12921292 
    1293         * ipkg_install.c (ipkg_install_pkg): Changed to only mark package 
    1294         as installed after running ipkg_configure, (to run the postinst 
     1293        * opkg_install.c (opkg_install_pkg): Changed to only mark package 
     1294        as installed after running opkg_configure, (to run the postinst 
    12951295        script). 
    12961296 
    1297         * RELEASED ipkg-unstable 0.99.0 
     1297        * RELEASED opkg-unstable 0.99.0 
    12981298 
    12991299        * Updated all instances of "XXX" in the code to indicate one of 
     
    13051305         
    13061306        * pkg.c (pkg_print_status): Added the Depends field to package 
    1307         paragraphs in the status file, ("ipkg remove" will need this). 
    1308  
    1309         * ipkg_install.c (satisfy_dependencies_for): Fixed "ipkg install" 
     1307        paragraphs in the status file, ("opkg remove" will need this). 
     1308 
     1309        * opkg_install.c (satisfy_dependencies_for): Fixed "opkg install" 
    13101310        to not complain several times about "Package foo already 
    13111311        installed" when doing large recursive installs. 
    1312         (ipkg_install_pkg): "ipkg install foo" for an installed package 
     1312        (opkg_install_pkg): "opkg install foo" for an installed package 
    13131313        will now check and install any missing dependencies before exiting 
    13141314        with "Package foo is alrady installed." 
     
    13171317 
    13181318        * pkg_dest.c (pkg_dest_pkg_owning_file_alloc): Moved this function 
    1319         here from ipkg_install.c. Also plugged a memory leak in it with 
     1319        here from opkg_install.c. Also plugged a memory leak in it with 
    13201320        globfree. 
    13211321 
    13221322        * pkg.c (pkg_remove_installed_files_list): Fixed bug that 
    1323         prevented package.list file from ever being removed during "ipkg 
     1323        prevented package.list file from ever being removed during "opkg 
    13241324        remove". 
    13251325 
    1326         * ipkg_remove.c (remove_data_files_and_list): Fixed noisy and 
    1327         spurious warnings about non-empty directories. "ipkg remove" 
     1326        * opkg_remove.c (remove_data_files_and_list): Fixed noisy and 
     1327        spurious warnings about non-empty directories. "opkg remove" 
    13281328        should now only say anything if a directory that was solely 
    13291329        provided by that package is non-empty. 
    13301330 
    1331         * ipkg_cmd.c (ipkg_install_pending_cmd): Plugged memory leak with 
     1331        * opkg_cmd.c (opkg_install_pending_cmd): Plugged memory leak with 
    13321332        globfree. 
    13331333 
    1334         * ipkg_install.c: *Many* fixes to enable "ipkg upgrade" to more or 
     1334        * opkg_install.c: *Many* fixes to enable "opkg upgrade" to more or 
    13351335        less work. Primarily fixing file clash identification and conffile 
    1336         handling/resolution. "ipkg upgrade" has now worked correctly on 
     1336        handling/resolution. "opkg upgrade" has now worked correctly on 
    13371337        several test cases! 
    13381338 
    1339         * ipkg_install.c (unpack_pkg_control_files): Now initializes 
     1339        * opkg_install.c (unpack_pkg_control_files): Now initializes 
    13401340        conffiles list from the contents of conffiles control file, 
    13411341        (leaves md5sum calculation until the actual conffiles are 
    13421342        extracted later). 
    1343         (ipkg_install_pkg): Separated backup_modified_conffiles and 
     1343        (opkg_install_pkg): Separated backup_modified_conffiles and 
    13441344        check_data_file_clashes into separate functions. 
    13451345        (preinst_configure): Simplified this function pushing its old 
     
    13951395        field. 
    13961396 
    1397         * ipkg_install.c (remove_obsolesced_files): With the fixed 
     1397        * opkg_install.c (remove_obsolesced_files): With the fixed 
    13981398        pkg_get_installed_files_list from below, this function now seems 
    13991399        to work! 
    1400         (ipkg_install_pkg): Fixed to mark old package as uninstalled after 
     1400        (opkg_install_pkg): Fixed to mark old package as uninstalled after 
    14011401        upgrading. 
    14021402 
     
    14061406        package). 
    14071407 
    1408         * ipkg_cmd.c (ipkg_upgrade_cmd): Fixed ipkg_upgrade to not choke 
     1408        * opkg_cmd.c (opkg_upgrade_cmd): Fixed opkg_upgrade to not choke 
    14091409        if asked to upgrade an un-installed package. 
    1410         (ipkg_upgrade_pkg): Fixed printing of version numbers. 
     1410        (opkg_upgrade_pkg): Fixed printing of version numbers. 
    14111411 
    14121412        * file_util.c (file_mkdir_hier): Abstracted call to libbb 
     
    142114212002-03-04  Carl Worth  <cworth@east.isi.edu> 
    14221422 
    1423         * ipkg_conf.c (ipkg_conf_init): Added support to ipkg_conf to 
     1423        * opkg_conf.c (opkg_conf_init): Added support to opkg_conf to 
    14241424        pickup command-line arguments for "force-defaults" and 
    14251425        "force-depends". Things set on the command-line should take 
    14261426        precedence over things found in the configuration file. 
    14271427 
    1428         * ipkg_cmd.c (ipkg_search_cmd): Fixed formatting of "ipkg search" 
     1428        * opkg_cmd.c (opkg_search_cmd): Fixed formatting of "opkg search" 
    14291429        output. 
    14301430 
     
    14351435        calls to regexec. 
    14361436 
    1437         * ipkg_install.c (satisfy_dependencies_for): Added support for new 
     1437        * opkg_install.c (satisfy_dependencies_for): Added support for new 
    14381438        "unresolved" argument in 
    14391439        pkg_hash_fetch_unsatisfied_dependencies. Cleaned up warning/error 
    14401440        messages. 
    14411441 
    1442         * ipkg_cmd.c (ipkg_search_cmd): Implemented first-cut of "ipkg search". 
     1442        * opkg_cmd.c (opkg_search_cmd): Implemented first-cut of "opkg search". 
    14431443 
    14441444        * pkg_depends.c (pkg_hash_fetch_unsatisfied_dependencies): Fixed 
     
    144714472002-03-01  Carl Worth  <cworth@east.isi.edu> 
    14481448 
    1449         * RELEASED ipkg-unstable 0.98.0 
    1450  
    1451         * ipkg_configure.c (ipkg_configure): Added flushing of stdout, 
     1449        * RELEASED opkg-unstable 0.98.0 
     1450 
     1451        * opkg_configure.c (opkg_configure): Added flushing of stdout, 
    14521452        (here and in a few other modules). 
    14531453 
    14541454        * file_util.c (file_copy): Implemented this function here as one 
    14551455        step toward isolating the calls into libbb functions. Updated old 
    1456         copy_file calls to file_copy in both ipkg_download.c and 
    1457         ipkg_install.c. 
    1458  
    1459         * ipkg_install.c, ipkg_remove.c: Demoted several "XXX" comments to 
     1456        copy_file calls to file_copy in both opkg_download.c and 
     1457        opkg_install.c. 
     1458 
     1459        * opkg_install.c, opkg_remove.c: Demoted several "XXX" comments to 
    14601460        DPKG_INCOMPATIBILITY as I really don't intend on addressing them 
    14611461        any time soon, (if ever). 
    14621462 
    1463         * ipkg_cmd.c (ipkg_files_cmd): Fixed "ipkg files" from crashing on 
     1463        * opkg_cmd.c (opkg_files_cmd): Fixed "opkg files" from crashing on 
    14641464        uninstalled packages. 
    14651465 
    14661466        * familiar/rules: Added support for easy building of an 
    1467         ipkg.ipk. The version number and the architecture are 
     1467        opkg.ipk. The version number and the architecture are 
    14681468        automatically sucked in correctly from autoconf magic, (even when 
    14691469        cross-compiling). Maybe autoconf will start paying off with 
     
    14731473        cross-compilation. 
    14741474 
    1475         * ipkg_cmd.c (ipkg_upgrade_pkg): BIG bugfix: Package version 
     1475        * opkg_cmd.c (opkg_upgrade_pkg): BIG bugfix: Package version 
    14761476        comparison was sign-reversed, (hence it would never upgrade). 
    14771477 
    147814782002-02-28  Carl Worth  <cworth@east.isi.edu> 
    14791479 
    1480         * ipkg_download.c (ipkg_download): Changed from 
     1480        * opkg_download.c (opkg_download): Changed from 
    14811481        system("/bin/cp",...) to copy_file(...) 
    14821482 
     
    14851485 
    14861486        * configure.ac: Added AC_CANONICAL_HOST to automatically set the 
    1487         correct architecture type in the ipkg control file. 
     1487        correct architecture type in the opkg control file. 
    14881488 
    14891489        * configure.ac: Changed version number to 0.98.0 in preparation 
    14901490        for alpha release. 
    14911491 
    1492         * familiar/rules: Added support for easy building of an ipkg.ipk. 
     1492        * familiar/rules: Added support for easy building of an opkg.ipk. 
    14931493 
    149414942002-02-27  Carl Worth  <cworth@east.isi.edu> 
    14951495 
    1496         * ipkg_install.c (ipkg_install_pkg): Fixed to abort on failed 
     1496        * opkg_install.c (opkg_install_pkg): Fixed to abort on failed 
    14971497        download. 
    14981498 
     
    15061506 
    15071507        * pkg_parse.c (pkg_parse_raw): Added parsing of "MD5Sum" in 
    1508         addition to "MD5sum" to accomodate bug in old ipkg. 
     1508        addition to "MD5sum" to accomodate bug in old opkg. 
    15091509 
    15101510        * void_list.c (void_list_remove): Added new remove function, (also 
     
    15151515        conffile_list_t datatype. 
    15161516        (pkg_remove_installed_files_list): Pulled this function into 
    1517         pkg.c, (from ipkg_remove.c), so the mallocs and frees would be in 
     1517        pkg.c, (from opkg_remove.c), so the mallocs and frees would be in 
    15181518        the same C file. 
    15191519        (pkg_get_conffile): Added this convenience function. 
    15201520 
    1521         * ipkg_remove.c: Fixed several bugs. ipkg_remove now actually 
     1521        * opkg_remove.c: Fixed several bugs. opkg_remove now actually 
    15221522        works for simple packages! 
    15231523 
    1524         * ipkg_install.c (ipkg_install_pkg): Don't re-install if a package 
     1524        * opkg_install.c (opkg_install_pkg): Don't re-install if a package 
    15251525        is already installed. 
    1526         (ipkg_install_pkg): Fixed major bug that all of ipkg_install's 
     1526        (opkg_install_pkg): Fixed major bug that all of opkg_install's 
    15271527        work was always being unwound even when successful. 
    15281528 
    1529         * ipkg_cmd.c (ipkg_files_cmd): Fixed to use 
     1529        * opkg_cmd.c (opkg_files_cmd): Fixed to use 
    15301530        pkg_get_installed_files_list rather than a private implementation 
    15311531        that sifted through the file lists on disk. 
     
    15341534        (str_chomp): Another convenience. 
    15351535 
    1536         * ipkg_conf.c: Moved chomp to str_util.c (str_chomp), since 
     1536        * opkg_conf.c: Moved chomp to str_util.c (str_chomp), since 
    15371537        someone else wanted it too. 
    15381538 
     
    15561556        script. 
    15571557 
    1558         * ipkg_remove.c: Fleshed out initial version of all ipkg_remove.c 
     1558        * opkg_remove.c: Fleshed out initial version of all opkg_remove.c 
    15591559        functions. 
    15601560 
    1561         * ipkg_configure.c (ipkg_configure): Added check on return value 
     1561        * opkg_configure.c (opkg_configure): Added check on return value 
    15621562        of pkg_run script. Added comments about dpkg compliance. 
    15631563 
    1564         * ipkg_cmd.c (ipkg_purge_cmd): Added ipkg_purge_cmd 
     1564        * opkg_cmd.c (opkg_purge_cmd): Added opkg_purge_cmd 
    15651565 
    156615662002-02-20  Carl Worth  <cworth@east.isi.edu> 
     
    15681568        * Added USC copyright statements, (and Compaq stubs as necessary) 
    15691569 
    1570         * ipkg_install.c: At this point "ipkg install" on a simple 
     1570        * opkg_install.c: At this point "opkg install" on a simple 
    15711571        package, (no scripts and no dependencies), works just fine. It 
    15721572        might even do some of the script and dependency handling correctly 
    1573         too, but I haven't tested that yet. "ipkg install libc6" is a nice 
     1573        too, but I haven't tested that yet. "opkg install libc6" is a nice 
    15741574        little test that should complete without any errors or 
    1575         warnings. Follow that up with "ipkg status" to see that it worked. 
     1575        warnings. Follow that up with "opkg status" to see that it worked. 
    15761576 
    15771577        * pkg.c (pkg_run_script): Added convenience method for running 
    15781578        package scripts. 
    15791579 
    1580         * ipkg_install.c: Fixed several bugs: 
     1580        * opkg_install.c: Fixed several bugs: 
    15811581        (unpack_pkg_control_files): control files now extract to the 
    15821582        correct temporary directory. 
    1583         (ipkg_install_pkg): pkg->state_want is now properly set to SW_INSTALL 
    1584         (ipkg_install_pkg): status file now gets written after installation 
     1583        (opkg_install_pkg): pkg->state_want is now properly set to SW_INSTALL 
     1584        (opkg_install_pkg): status file now gets written after installation 
    15851585        (cleanup_temporary_files): All temporary files are cleaned up. 
    15861586 
    1587         * ipkg_configure.c (ipkg_configure): Fleshed out a very simple 
    1588         ipkg_configure, (simply runs "postinst configure"). Maybe it will 
     1587        * opkg_configure.c (opkg_configure): Fleshed out a very simple 
     1588        opkg_configure, (simply runs "postinst configure"). Maybe it will 
    15891589        need to be smarter at some point. Moved unwritten conffiles stuff 
    1590         back to ipkg_install.c. 
    1591  
    1592         * ipkg_conf.c (ipkg_conf_write_status_files): Moved this function 
    1593         from ipkg_utils to ipkg_conf since it needs access to the 
     1590        back to opkg_install.c. 
     1591 
     1592        * opkg_conf.c (opkg_conf_write_status_files): Moved this function 
     1593        from opkg_utils to opkg_conf since it needs access to the 
    15941594        pkg_dest_list. 
    15951595 
     
    160116012002-02-19  Carl Worth  <cworth@east.isi.edu> 
    16021602 
    1603         * ipkg_install.c: several little bug fixes. "ipkg install" will 
     1603        * opkg_install.c: several little bug fixes. "opkg install" will 
    16041604        now actually install files from a package! There are still some 
    16051605        bugs, (eg. postinst scripts are not called -- probably other 
     
    16081608        * pkg_dest.c (pkg_dest_init): now creates all necessary directories 
    16091609 
    1610         * ipkg_download.c (ipkg_download): Fixed misleading parameter name. 
    1611  
    1612         * ipkg_conf.c (ipkg_conf_deinit): Now cleans up tmd_dir on deinit 
    1613         ipkg.c: now calls ipkg_conf_deinit before exiting. 
    1614         (ipkg_conf_add_nv): Fixed to set default_dest when parsing first 
    1615         dest in ipkg.conf 
    1616  
    1617         * ipkg_cmd.c (ipkg_list_cmd): Fixed ugly bug in ipkg_list that led 
     1610        * opkg_download.c (opkg_download): Fixed misleading parameter name. 
     1611 
     1612        * opkg_conf.c (opkg_conf_deinit): Now cleans up tmd_dir on deinit 
     1613        opkg.c: now calls opkg_conf_deinit before exiting. 
     1614        (opkg_conf_add_nv): Fixed to set default_dest when parsing first 
     1615        dest in opkg.conf 
     1616 
     1617        * opkg_cmd.c (opkg_list_cmd): Fixed ugly bug in opkg_list that led 
    16181618        to infinite loops, segfaults, string corruption, and other bizarre 
    16191619        behavior. 
    16201620 
    1621         * Added many files as we are approaching the first functional ipkg 
     1621        * Added many files as we are approaching the first functional opkg 
    16221622        implementation in C: 
    16231623        file_util.c: convenience for testing if file_exists, reading files, etc. 
    1624         ipkg_configure.c: mostly just a stub so far 
    1625         ipkg_download.c: convenient function to download a file 
     1624        opkg_configure.c: mostly just a stub so far 
     1625        opkg_download.c: convenient function to download a file 
    16261626        nv_pair.c: data structure to hold a name-value pair 
    16271627        nv_pair_list.c: data structure to hold a list of nv_pair_t 
     
    16371637        xsystem.c: wrapper around system() with error checking 
    16381638 
    1639         * ipkg_remove.c: Just added some stubs. Nothing really works at 
     1639        * opkg_remove.c: Just added some stubs. Nothing really works at 
    16401640        all yet. 
    16411641 
    1642         * ipkg_install.c: Large rework of ipkg_install. It's now close to 
     1642        * opkg_install.c: Large rework of opkg_install. It's now close to 
    16431643        actually being usable, (but it's not quite there yet). Revamped to 
    16441644        match dpkg install order more closely, (with all the stubs in case 
     
    16461646        to use a more recent deb_extract from libbb. 
    16471647 
    1648         * ipkg_extract_test.c (main): Added support for a third arg, (the 
     1648        * opkg_extract_test.c (main): Added support for a third arg, (the 
    16491649        filename to extract to the buffer). 
    16501650 
    1651         * ipkg_conf.c (ipkg_conf_init): Added several fields to 
    1652         ipkg_conf_t: pkg_src_list, pkg_dest_list , 
     1651        * opkg_conf.c (opkg_conf_init): Added several fields to 
     1652        opkg_conf_t: pkg_src_list, pkg_dest_list , 
    16531653        restrict_to_default_dest, default_dest, tmp_dir, lists_dir, 
    16541654        pending_dir, force_depends, and pkg_hash. There's still a bit of 
    1655         tension between options stored in the config file, (ipkg_conf_t), 
     1655        tension between options stored in the config file, (opkg_conf_t), 
    16561656        and command-line arguments, (args_t). 
    16571657 
    1658         * ipkg_cmd.c: First version that is approaching usability. The 
    1659         following commands are more-or-less in place: "ipkg update", "ipkg 
    1660         list", "ipkg info", "ipkg status". While the rest are in various 
     1658        * opkg_cmd.c: First version that is approaching usability. The 
     1659        following commands are more-or-less in place: "opkg update", "opkg 
     1660        list", "opkg info", "opkg status". While the rest are in various 
    16611661        states of being partiallyy written or written but untested. 
    1662         (ipkg_upgrade_cmd): Added support for restricting to a dest.  Many 
     1662        (opkg_upgrade_cmd): Added support for restricting to a dest.  Many 
    16631663        other changes, largely involving plugging into the pkg_hash for 
    16641664        real for the first time, and adding multiple dest support. 
    16651665 
    1666         * ipkg.c: Added support for setting the dest on the command-line. 
    1667  
    1668         * args.c: Added support for IPKG_CONF_DIR environment variable and 
     1666        * opkg.c: Added support for setting the dest on the command-line. 
     1667 
     1668        * args.c: Added support for OPKG_CONF_DIR environment variable and 
    16691669        -f, -conf, and -conf-file options. 
    16701670 
     
    17301730        support pkg_dest 
    17311731 
    1732         * ipkg_utils.h: Added GPL blurb 
    1733         (IPKG_UTILS_H): Added multiple include protection 
    1734  
    1735         * ipkg_utils.c: 
     1732        * opkg_utils.h: Added GPL blurb 
     1733        (OPKG_UTILS_H): Added multiple include protection 
     1734 
     1735        * opkg_utils.c: 
    17361736        (read_raw_pkgs_from_file): broke read_raw_pkgs into 
    17371737        read_raw_pkgs_from_file and read_raw-pkgs_from_stream 
    1738         (ipkg_write_status_file): Fixed return value 
     1738        (opkg_write_status_file): Fixed return value 
    17391739        (print_pkg_status): Moved this function to pkg.c:pkg_print_status 
    17401740        (line_is_blank): Fixed const char handling 
     
    175117512001-12-11  Carl Worth  <cworth@east.isi.edu> 
    17521752 
    1753         * ipkg_conf.c: Now parses /etc/ipkg.conf, (and doesn't do anything 
     1753        * opkg_conf.c: Now parses /etc/opkg.conf, (and doesn't do anything 
    17541754        with it). 
    17551755 
    1756         * ipkg.c: Started work on ipkg main, (not much here yet). 
    1757  
    1758         * ipkg_cmd.h: Added a tiny thing to abstract top-level ipkg 
     1756        * opkg.c: Started work on opkg main, (not much here yet). 
     1757 
     1758        * opkg_cmd.h: Added a tiny thing to abstract top-level opkg 
    17591759        commands, (not finished). 
    17601760 
  • trunk/src/target/ipkg/INSTALL

    r3837 r3879  
    1 ipkg uses autoconf and friends for configuration. The familiar steps of: 
     1opkg uses autoconf and friends for configuration. The familiar steps of: 
    22 
    33        ./configure 
  • trunk/src/target/ipkg/Makefile.am

    r3871 r3879  
    44HOST_CPU=@host_cpu@ 
    55BUILD_CPU=@build_cpu@ 
    6 IPKGLIBDIR=@ipkglibdir@  
    7 ALL_CFLAGS=-g -O -Wall -DHOST_CPU_STR=\"@host_cpu@\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DIPKGLIBDIR=\"@ipkglibdir@\" -DDATADIR=\"@datadir@\" 
     6OPKGLIBDIR=@opkglibdir@  
     7ALL_CFLAGS=-g -O -Wall -DHOST_CPU_STR=\"@host_cpu@\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DDATADIR=\"@datadir@\" 
    88 
    9 bin_PROGRAMS = ipkg-cl 
     9bin_PROGRAMS = opkg-cl 
    1010 
    11 lib_LTLIBRARIES = libipkg.la 
     11lib_LTLIBRARIES = libopkg.la 
    1212 
    1313bin_SCRIPTS = update-alternatives 
    1414 
    15 interceptdir = $(datadir)/ipkg/intercept 
     15interceptdir = $(datadir)/opkg/intercept 
    1616intercept_DATA = intercept/ldconfig intercept/depmod intercept/update-modules 
    1717 
    1818install-data-hook: 
    19         chmod +x $(DESTDIR)$(datadir)/ipkg/intercept/* 
     19        chmod +x $(DESTDIR)$(datadir)/opkg/intercept/* 
    2020 
    21 # ipkg_LDADD = libbb/libbb.a replace/libreplace.a 
     21# opkg_LDADD = libbb/libbb.a replace/libreplace.a 
    2222 
    23 #ipkg_cl_LDADD = libipkg.la libbb/libbb.la replace/libreplace.a  
    24 ipkg_cl_LDADD = libipkg.la libbb/libbb.la  
     23#opkg_cl_LDADD = libopkg.la libbb/libbb.la replace/libreplace.a  
     24opkg_cl_LDADD = libopkg.la libbb/libbb.la  
    2525 
    26 libipkg_includedir=$(includedir)/libipkg 
     26libopkg_includedir=$(includedir)/libopkg 
    2727 
    28 libipkg_include_HEADERS= \ 
     28libopkg_include_HEADERS= \ 
    2929        args.h \ 
    3030        conffile.h \ 
     
    3333        hash_table.h \ 
    3434        includes.h \ 
    35         ipkg_conf.h \ 
    36         ipkg.h \ 
    37         ipkg_message.h \ 
     35        opkg_conf.h \ 
     36        opkg.h \ 
     37        opkg_message.h \ 
    3838        nv_pair.h \ 
    3939        nv_pair_list.h \ 
     
    4848        str_list.h \ 
    4949        void_list.h \ 
    50         libipkg.h  
     50        libopkg.h  
    5151 
    5252#\ replace/replace.h 
    5353 
    54 #libipkg_la_LIBADD = libbb/libbb.la replace/libreplace.a 
    55 libipkg_la_LIBADD = libbb/libbb.la $(CURL_LIBS) 
     54#libopkg_la_LIBADD = libbb/libbb.la replace/libreplace.a 
     55libopkg_la_LIBADD = libbb/libbb.la $(CURL_LIBS) 
    5656 
    57 ipkg_core_sources = args.c args.h ipkg.c \ 
     57opkg_core_sources = args.c args.h opkg.c \ 
    5858                    user.c user.h  
    59 ipkg_libcore_sources = args.c args.h libipkg.c libipkg.h ipkg.h\ 
     59opkg_libcore_sources = args.c args.h libopkg.c libopkg.h opkg.h\ 
    6060                    user.c user.h  
    61 ipkg_cmd_sources = ipkg_cmd.c ipkg_cmd.h \ 
    62                    ipkg_configure.c ipkg_configure.h \ 
    63                    ipkg_download.c ipkg_download.h \ 
    64                    ipkg_install.c ipkg_install.h \ 
    65                    ipkg_upgrade.c ipkg_upgrade.h \ 
    66                    ipkg_remove.c ipkg_remove.h 
    67 ipkg_db_sources = ipkg_conf.c ipkg_conf.h \ 
    68                   ipkg_utils.c ipkg_utils.h pkg.c pkg.h hash_table.h \ 
     61opkg_cmd_sources = opkg_cmd.c opkg_cmd.h \ 
     62                   opkg_configure.c opkg_configure.h \ 
     63                   opkg_download.c opkg_download.h \ 
     64                   opkg_install.c opkg_install.h \ 
     65                   opkg_upgrade.c opkg_upgrade.h \ 
     66                   opkg_remove.c opkg_remove.h 
     67opkg_db_sources = opkg_conf.c opkg_conf.h \ 
     68                  opkg_utils.c opkg_utils.h pkg.c pkg.h hash_table.h \ 
    6969                  pkg_depends.c pkg_depends.h pkg_extract.c pkg_extract.h \ 
    7070                  hash_table.c pkg_hash.c pkg_hash.h pkg_parse.c pkg_parse.h \ 
    7171                  pkg_vec.c pkg_vec.h 
    72 ipkg_list_sources = conffile.c conffile.h conffile_list.c conffile_list.h \ 
     72opkg_list_sources = conffile.c conffile.h conffile_list.c conffile_list.h \ 
    7373                    nv_pair.c nv_pair.h nv_pair_list.c nv_pair_list.h \ 
    7474                    pkg_dest.c pkg_dest.h pkg_dest_list.c pkg_dest_list.h \ 
    7575                    pkg_src.c pkg_src.h pkg_src_list.c pkg_src_list.h \ 
    7676                    str_list.c str_list.h void_list.c void_list.h 
    77 ipkg_util_sources = file_util.c file_util.h ipkg_message.h ipkg_message.c md5.c md5.h \ 
     77opkg_util_sources = file_util.c file_util.h opkg_message.h opkg_message.c md5.c md5.h \ 
    7878                    sprintf_alloc.c sprintf_alloc.h str_util.c str_util.h \ 
    7979                    xregex.c xregex.h xsystem.c xsystem.h 
    8080 
    81 # ipkg_SOURCES = $(ipkg_core_sources) $(ipkg_cmd_sources) $(ipkg_db_sources) \ 
    82 #              $(ipkg_util_sources) $(ipkg_list_sources) 
     81# opkg_SOURCES = $(opkg_core_sources) $(opkg_cmd_sources) $(opkg_db_sources) \ 
     82#              $(opkg_util_sources) $(opkg_list_sources) 
    8383 
    84 EXTRA_DIST = ipkg.c update-alternatives $(intercept_DATA) 
     84EXTRA_DIST = opkg.c update-alternatives $(intercept_DATA) 
    8585 
    8686MAINTAINERCLEANFILES= \ 
     
    9393        aclocal.m4 
    9494 
    95 libipkg_la_SOURCES = $(ipkg_libcore_sources) $(ipkg_cmd_sources) $(ipkg_db_sources) \ 
    96                $(ipkg_util_sources) $(ipkg_list_sources) 
     95libopkg_la_SOURCES = $(opkg_libcore_sources) $(opkg_cmd_sources) $(opkg_db_sources) \ 
     96               $(opkg_util_sources) $(opkg_list_sources) 
    9797 
    98 ipkg_cl_SOURCES = ipkg-frontend.c 
     98opkg_cl_SOURCES = opkg-frontend.c 
    9999 
    100 libipkg_la_CFLAGS = -DIPKG_LIB $(ALL_CFLAGS)  $(CURL_CFLAGS) 
     100libopkg_la_CFLAGS = -DOPKG_LIB $(ALL_CFLAGS)  $(CURL_CFLAGS) 
    101101 
    102 ipkg_CFLAGS = $(ALL_CFLAGS) $(CURL_CFLAGS) 
     102opkg_CFLAGS = $(ALL_CFLAGS) $(CURL_CFLAGS) 
    103103 
    104 ipkg_cl_CFLAGS = -DIPKG_LIB $(ALL_CFLAGS) 
     104opkg_cl_CFLAGS = -DOPKG_LIB $(ALL_CFLAGS) 
    105105 
    106 noinst_PROGRAMS = ipkg_hash_test ipkg_extract_test 
     106noinst_PROGRAMS = opkg_hash_test opkg_extract_test 
    107107 
    108 ipkg_hash_test_LDADD = libbb/libbb.la 
    109 ipkg_hash_test_SOURCES = ipkg_hash_test.c $(ipkg_db_sources) $(ipkg_util_sources) $(ipkg_list_sources) 
    110 ipkg_hash_test_CFLAGS = $(ALL_CFLAGS) 
     108opkg_hash_test_LDADD = libbb/libbb.la 
     109opkg_hash_test_SOURCES = opkg_hash_test.c $(opkg_db_sources) $(opkg_util_sources) $(opkg_list_sources) 
     110opkg_hash_test_CFLAGS = $(ALL_CFLAGS) 
    111111 
    112 ipkg_extract_test_LDADD = libbb/libbb.la 
    113 ipkg_extract_test_SOURCES = ipkg_extract_test.c $(ipkg_db_sources) $(ipkg_util_sources) $(ipkg_list_sources) 
    114 ipkg_extract_test_CFLAGS = $(ALL_CFLAGS) 
     112opkg_extract_test_LDADD = libbb/libbb.la 
     113opkg_extract_test_SOURCES = opkg_extract_test.c $(opkg_db_sources) $(opkg_util_sources) $(opkg_list_sources) 
     114opkg_extract_test_CFLAGS = $(ALL_CFLAGS) 
    115115 
    116116package: all-recursive 
  • trunk/src/target/ipkg/README

    r3837 r3879  
    1 ipkg - The Itsy Package Management System 
    2  
    3 See http://www.handhelds.org/moin/moin.cgi/Ipkg for more details about ipkg. 
  • trunk/src/target/ipkg/TODO

    r3837 r3879  
    11 
    2 Things to do for ipkg, in a partial order: 
     2Things to do for opkg, in a partial order: 
    33 
    440) Play with configure to check for strdup/strndup ( to works with replace/replace.h stuffs ) 
    55 
    6 1) Fix incompatibilities between current C-based ipkg and original 
    7 sh-based ipkg. 
     61) Fix incompatibilities between current C-based opkg and original 
     7sh-based opkg. 
    88 
    9 1.a) Fix ipkg.conf options for http_proxy and friends. DONE: 
     91.a) Fix opkg.conf options for http_proxy and friends. DONE: 
    1010     http_proxy tested, (ftp_proxy, no_proxy, proxy_user, and 
    1111     proxy_passwd have not been tested). 
     
    19191.e) Fix offline_root mode. DONE: tested. 
    2020 
    21 2) Release ipkg as ipkg, (no longer as ipkg-unstable). This depends on 
     212) Release opkg as opkg, (no longer as opkg-unstable). This depends on 
    2222   all of (1) being DONE. Although I might let this release proceed 
    2323   without offline_root --- only Jamey will complain. ;-) 
     
    27273.a) fix all code marked "XXX: BUG" 
    2828 
    29 3.b) fix all outstanding ipkg bugzilla bugs 
     293.b) fix all outstanding opkg bugzilla bugs 
    3030 
    31313.c) conffiles support seems broken again. It's prompting on just 
     
    48483.g) Audit all dpkg package fields for both parsing and printing support. 
    4949 
    50 3.h) "ipkg status" and "ipkg info" need to complain about unknown 
     503.h) "opkg status" and "opkg info" need to complain about unknown 
    5151  packages. For that matter, these two commands should probably just 
    5252  become aliases to the same functionality. 
    5353 
    54   Jamey thinks ipkg status should be brief give one line per package, while 
    55   ipkg info can continue to be verbose. 7/23/2002. 
     54  Jamey thinks opkg status should be brief give one line per package, while 
     55  opkg info can continue to be verbose. 7/23/2002. 
    5656 
    57 3.i) Currently "ipkg install foo" will upgrade foo if possible. The 
     573.i) Currently "opkg install foo" will upgrade foo if possible. The 
    5858  "Package foo is already installed" check needs to be moved up to 
    5959  avoid this. 
    6060 
    61   Jamey thinkgs that "ipkg install foo" should upgrade foo.  7/23/2002. 
     61  Jamey thinkgs that "opkg install foo" should upgrade foo.  7/23/2002. 
    6262 
    63634) Implement new features 
     
    65654.a) start with all "XXX: FEATURE" comments 
    6666 
    67 4.b) implement all accepted ipkg bugzilla feature requests, (also 
    68      check old post "Subject: Reinventing ipkg" to see if we forgot 
     674.b) implement all accepted opkg bugzilla feature requests, (also 
     68     check old post "Subject: Reinventing opkg" to see if we forgot 
    6969     any of the good ideas we had once upon a time) 
    7070 
    71 4.c) ipkg remove needs to (prompt first) then remove packages for 
     714.c) opkg remove needs to (prompt first) then remove packages for 
    7272     which the dependencies will no longer be met. DONE. 7/19/2002. 
    7373 
    74744.d) Add support for: 
    75         ipkg install foo from some-feed 
    76         ipkg install foo-0.4.3 
    77         ipkg install foo-latest # Only needed if we add a feed-order-priority option 
     75        opkg install foo from some-feed 
     76        opkg install foo-0.4.3 
     77        opkg install foo-latest # Only needed if we add a feed-order-priority option 
    7878     or something like that. 
    7979 
     
    9090     something like uclibc to work well? 
    9191 
    92 4.h) Add support for a deb-src in /etc/ipkg.conf. (ARGH! Name clash 
     924.h) Add support for a deb-src in /etc/opkg.conf. (ARGH! Name clash 
    9393     alert! In apt-land, deb-src means something very different than 
    9494     what I would mean here. Hrm... Maybe src-deb would be cleaner? ) 
     
    9999     offline_root mode. 
    100100 
    101 4.j) Implement ipkg history mechanism, with undo and redo?  Keep track of 
    102      packages removed/installed by each call to ipkg. 
     1014.j) Implement opkg history mechanism, with undo and redo?  Keep track of 
     102     packages removed/installed by each call to opkg. 
    103103 
    104 5) release ipkg-1.0.0 
     1045) release opkg-1.0.0 
    105105 
    1061066) Cleanup the code 
  • trunk/src/target/ipkg/args.c

    r3837 r3879  
    2121#include <unistd.h> 
    2222 
    23 #include "ipkg.h" 
     23#include "opkg.h" 
    2424 
    2525#include "config.h" 
     
    5454     args->dest = ARGS_DEFAULT_DEST; 
    5555 
    56      conf_file_dir = getenv("IPKG_CONF_DIR"); 
     56     conf_file_dir = getenv("OPKG_CONF_DIR"); 
    5757     if (conf_file_dir == NULL || conf_file_dir[0] == '\0') { 
    5858          conf_file_dir = ARGS_DEFAULT_CONF_FILE_DIR; 
     
    227227{ 
    228228     if (complaint) { 
    229           fprintf(stderr, "ipkg: %s\n", complaint); 
     229          fprintf(stderr, "opkg: %s\n", complaint); 
    230230     } 
    231231     print_version(); 
    232      fprintf(stderr, "usage: ipkg [options...] sub-command [arguments...]\n"); 
     232     fprintf(stderr, "usage: opkg [options...] sub-command [arguments...]\n"); 
    233233     fprintf(stderr, "where sub-command is one of:\n"); 
    234234     
     
    248248     fprintf(stderr, "\tfiles <pkg>             List all files belonging to <pkg>\n"); 
    249249     fprintf(stderr, "\tsearch <file|regexp>            Search for a package providing <file>\n"); 
    250 #ifndef IPKG_LIB 
     250#ifndef OPKG_LIB 
    251251     fprintf(stderr, "\tinfo [pkg|regexp [<field>]]     Display all/some info fields for <pkg> or all\n"); 
    252252     fprintf(stderr, "\tstatus [pkg|regexp [<field>]]   Display all/some status fields for <pkg> or all\n"); 
     
    274274     fprintf(stderr, "\t                         2 informative messages\n"); 
    275275     fprintf(stderr, "\t                         3 debug output\n"); 
    276      fprintf(stderr, "\t-f <conf_file>          Use <conf_file> as the ipkg configuration file\n"); 
     276     fprintf(stderr, "\t-f <conf_file>          Use <conf_file> as the opkg configuration file\n"); 
    277277     fprintf(stderr, "\t-conf <conf_file>       Default configuration file location\n"); 
    278278     fprintf(stderr, "                          is %s/%s\n", ARGS_DEFAULT_CONF_FILE_DIR, ARGS_DEFAULT_CONF_FILE_NAME); 
     
    286286     fprintf(stderr, "\t-verbose_wget           more wget messages\n"); 
    287287     
    288      fprintf(stderr, "\tForce Options (use when ipkg is too smart for its own good):\n"); 
     288     fprintf(stderr, "\tForce Options (use when opkg is too smart for its own good):\n"); 
    289289     fprintf(stderr, "\t-force-depends          Make dependency checks warnings instead of errors\n"); 
    290290     fprintf(stderr, "\t                                Install/remove package in spite of failed dependences\n"); 
    291      fprintf(stderr, "\t-force-defaults         Use default options for questions asked by ipkg.\n"); 
     291     fprintf(stderr, "\t-force-defaults         Use default options for questions asked by opkg.\n"); 
    292292     fprintf(stderr, "                          (no prompts). Note that this will not prevent\n"); 
    293293     fprintf(stderr, "                          package installation scripts from prompting.\n"); 
    294      fprintf(stderr, "\t-force-reinstall        Allow ipkg to reinstall a package.\n"); 
    295      fprintf(stderr, "\t-force-overwrite        Allow ipkg to overwrite files from another package during an install.\n"); 
    296      fprintf(stderr, "\t-force-downgrade        Allow ipkg to downgrade packages.\n"); 
     294     fprintf(stderr, "\t-force-reinstall        Allow opkg to reinstall a package.\n"); 
     295     fprintf(stderr, "\t-force-overwrite        Allow opkg to overwrite files from another package during an install.\n"); 
     296     fprintf(stderr, "\t-force-downgrade        Allow opkg to downgrade packages.\n"); 
    297297     fprintf(stderr, "\t-force_space            Install even if there does not seem to be enough space.\n"); 
    298298     fprintf(stderr, "\t-noaction               No action -- test only\n"); 
    299299     fprintf(stderr, "\t-nodeps                 Do not follow dependences\n"); 
    300300     fprintf(stderr, "\t-force-removal-of-dependent-packages\n"); 
    301      fprintf(stderr, "\t-recursive              Allow ipkg to remove package and all that depend on it.\n"); 
     301     fprintf(stderr, "\t-recursive              Allow opkg to remove package and all that depend on it.\n"); 
    302302     fprintf(stderr, "\t-test                   No action -- test only\n"); 
    303303     fprintf(stderr, "\t-t                      Specify tmp-dir.\n"); 
     
    305305     fprintf(stderr, "\n"); 
    306306     fprintf(stderr, "\tregexp could be something like 'pkgname*' '*file*' or similar\n"); 
    307      fprintf(stderr, "\teg: ipkg info 'libstd*'  or ipkg search '*libop*' or ipkg remove 'libncur*'\n"); 
    308      /* -force-removal-of-essential-packages    Let ipkg remove essential packages.  
     307     fprintf(stderr, "\teg: opkg info 'libstd*'  or opkg search '*libop*' or opkg remove 'libncur*'\n"); 
     308     /* -force-removal-of-essential-packages    Let opkg remove essential packages.  
    309309        Using this option is almost guaranteed to break your system, hence this option 
    310310        is not even advertised in the usage statement. */ 
     
    314314static void print_version(void) 
    315315{ 
    316      fprintf(stderr, "ipkg version %s\n", VERSION); 
    317 } 
     316     fprintf(stderr, "opkg version %s\n", VERSION); 
     317} 
  • trunk/src/target/ipkg/args.h

    r3837 r3879  
    4747 
    4848#define ARGS_DEFAULT_CONF_FILE_DIR "/etc" 
    49 #define ARGS_DEFAULT_CONF_FILE_NAME "ipkg.conf" 
     49#define ARGS_DEFAULT_CONF_FILE_NAME "opkg.conf" 
    5050#define ARGS_DEFAULT_DEST NULL 
    5151#define ARGS_DEFAULT_FORCE_DEFAULTS 0 
  • trunk/src/target/ipkg/conffile.c

    r3837 r3879  
    1919#include <stdlib.h> 
    2020 
    21 #include "ipkg.h" 
    22 #include "ipkg_message.h" 
     21#include "opkg.h" 
     22#include "opkg_message.h" 
    2323 
    2424#include "conffile.h" 
     
    3636} 
    3737 
    38 int conffile_has_been_modified(ipkg_conf_t *conf, conffile_t *conffile) 
     38int conffile_has_been_modified(opkg_conf_t *conf, conffile_t *conffile) 
    3939{ 
    4040    char *md5sum; 
     
    4444 
    4545    if (conffile->value == NULL) { 
    46          ipkg_message(conf, IPKG_NOTICE, "%s: conffile %s has no md5sum\n", __FUNCTION__, conffile->name); 
     46         opkg_message(conf, OPKG_NOTICE, "%s: conffile %s has no md5sum\n", __FUNCTION__, conffile->name); 
    4747         return 1; 
    4848    } 
     
    5454    ret = strcmp(md5sum, conffile->value); 
    5555    if (ret) { 
    56       ipkg_message(conf, IPKG_NOTICE, "%s: conffile %s: \t\nold md5=%s \t\nnew md5=%s\n", __FUNCTION__, 
     56      opkg_message(conf, OPKG_NOTICE, "%s: conffile %s: \t\nold md5=%s \t\nnew md5=%s\n", __FUNCTION__, 
    5757              conffile->name, md5sum, conffile->value); 
    5858    } 
  • trunk/src/target/ipkg/conffile.h

    r3837 r3879  
    2525int conffile_init(conffile_t *conffile, const char *file_name, const char *md5sum); 
    2626void conffile_deinit(conffile_t *conffile); 
    27 int conffile_has_been_modified(struct ipkg_conf *conf, conffile_t *conffile); 
     27int conffile_has_been_modified(struct opkg_conf *conf, conffile_t *conffile); 
    2828 
    2929#endif 
  • trunk/src/target/ipkg/conffile_list.c

    r3837 r3879  
    1616*/ 
    1717 
    18 #include "ipkg.h" 
     18#include "opkg.h" 
    1919 
    2020#include "conffile_list.h" 
  • trunk/src/target/ipkg/configure.ac

    r3871 r3879  
    11# Process this file with autoconf to produce a configure script 
    2 AC_INIT(ipkg.c) 
    3 AM_INIT_AUTOMAKE([ipkg], [0.99.163]) 
     2AC_INIT(opkg.c) 
     3AM_INIT_AUTOMAKE([opkg], [0.99.163]) 
    44AM_CONFIG_HEADER(config.h) 
    55 
     
    2020AC_PROG_LIBTOOL 
    2121 
    22 # Checks for libraries (hah! ipkg is pretty much self-contained) 
     22# Checks for libraries (hah! opkg is pretty much self-contained) 
    2323PKG_CHECK_MODULES(CURL, libcurl) 
    2424 
     
    5252AC_CHECK_FUNCS([memmove memset mkdir regcomp strchr strcspn strdup strerror strndup strrchr strstr strtol strtoul sysinfo utime]) 
    5353 
    54 ipkglibdir= 
    55 AC_ARG_WITH(ipkglibdir, 
    56 [  --with-ipkglibdir=DIR   specifies directory to put status and info files. 
    57                           "/ipkg" is always added so if you want your files  
    58                           to be in /usr/lib/ipkg you should indicate  
    59                           --with-ipkglibdir=/usr/lib ], 
     54opkglibdir= 
     55AC_ARG_WITH(opkglibdir, 
     56[  --with-opkglibdir=DIR   specifies directory to put status and info files. 
     57                          "/opkg" is always added so if you want your files  
     58                          to be in /usr/lib/opkg you should indicate  
     59                          --with-opkglibdir=/usr/lib ], 
    6060[case "${withval}" in 
    61 yes)    AC_MSG_ERROR(bad value ${withval} given for ipkg libs directories ) ;; 
     61yes)    AC_MSG_ERROR(bad value ${withval} given for opkg libs directories ) ;; 
    6262no)     ;; 
    63 *)      ipkglibdir=$with_ipkglibdir ;; 
     63*)      opkglibdir=$with_opkglibdir ;; 
    6464esac]) 
    6565 
    6666# Default local prefix if it is empty 
    67 if test x$ipkglibdir = x; then 
    68         ipkglibdir=/usr/lib 
     67if test x$opkglibdir = x; then 
     68        opkglibdir=/usr/lib 
    6969fi 
    7070 
    71 AC_SUBST(ipkglibdir) 
     71AC_SUBST(opkglibdir) 
    7272 
    73 AC_OUTPUT(Makefile etc/Makefile familiar/Makefile familiar/control familiar/control-unstripped familiar/libipkg-control  familiar/libipkg-dev-control libbb/Makefile libipkg.pc ipkg.h) 
     73AC_OUTPUT(Makefile etc/Makefile familiar/Makefile familiar/control familiar/control-unstripped familiar/libopkg-control  familiar/libopkg-dev-control libbb/Makefile libopkg.pc opkg.h) 
  • trunk/src/target/ipkg/familiar/control-unstripped.in

    r3837 r3879  
    1 Package: ipkg-unstripped 
    2 Replaces: ipkg 
     1Package: opkg-unstripped 
     2Replaces: opkg 
    33Version: @VERSION@ 
    44Section: base 
     
    77Architecture: @host_cpu@ 
    88Maintainer: Jamey Hicks <jamey@handhelds.org> 
    9 Source: http://www.handhelds.org/packages/ipkg/ipkg-@VERSION@.tar.gz 
     9Source: http://www.handhelds.org/packages/opkg/opkg-@VERSION@.tar.gz 
    1010Depends: libc6, busybox  
    1111Description: lightweight package management system 
    12  ipkg is the Itsy Package Management System, for handling 
     12 opkg is the Itsy Package Management System, for handling 
    1313 installation and removal of packages on a system. It can 
    1414 recursively follow dependencies and download all packages 
    1515 necessary to install a particular package. 
    1616 . 
    17  ipkg knows how to install both .ipk and .deb packages. 
     17 opkg knows how to install both .ipk and .deb packages. 
    1818 . 
    19  ipkg is intended to serve the same functions (and more) for 
     19 opkg is intended to serve the same functions (and more) for 
    2020 Familiar that dpkg and apt serve for Debian, (while taking 
    2121 up much less space). 
  • trunk/src/target/ipkg/familiar/control.in

    r3837 r3879  
    1 Package: ipkg 
     1Package: opkg 
    22Version: @VERSION@ 
    33Section: base 
     
    66Architecture: @host_cpu@ 
    77Maintainer: Pierluigi Frullani <pigi@frumar.it> 
    8 Source: http://www.handhelds.org/packages/ipkg/ipkg-@VERSION@.tar.gz 
    9 Depends: libc6, libipkg (>= @VERSION@) 
     8Source: http://www.handhelds.org/packages/opkg/opkg-@VERSION@.tar.gz 
     9Depends: libc6, libopkg (>= @VERSION@) 
    1010Description: lightweight package management system 
    11  ipkg is the Itsy Package Management System, for handling 
     11 opkg is the Itsy Package Management System, for handling 
    1212 installation and removal of packages on a system. It can 
    1313 recursively follow dependencies and download all packages 
    1414 necessary to install a particular package. 
    1515 . 
    16  ipkg knows how to install both .ipk and .deb packages. 
     16 opkg knows how to install both .ipk and .deb packages. 
    1717 . 
    18  ipkg is intended to serve the same functions (and more) for 
     18 opkg is intended to serve the same functions (and more) for 
    1919 Familiar that dpkg and apt serve for Debian, (while taking 
    2020 up much less space). 
  • trunk/src/target/ipkg/familiar/libopkg-control.in

    r3877 r3879  
    1 Package: libipkg 
     1Package: libopkg 
    22Version: @VERSION@ 
    33Section: base 
     
    66Architecture: @host_cpu@ 
    77Maintainer: Jamey Hicks <jamey@handhelds.org> 
    8 Source: http://www.handhelds.org/packages/ipkg/ipkg-@VERSION@.tar.gz 
     8Source: http://www.handhelds.org/packages/opkg/opkg-@VERSION@.tar.gz 
    99Depends: libc6, busybox 
    1010Description: lightweight package management system 
    11  ipkg is the Itsy Package Management System, for handling 
     11 opkg is the Itsy Package Management System, for handling 
    1212 installation and removal of packages on a system. It can 
    1313 recursively follow dependencies and download all packages 
    1414 necessary to install a particular package. 
    1515 . 
    16  ipkg knows how to install both .ipk and .deb packages. 
     16 opkg knows how to install both .ipk and .deb packages. 
    1717 . 
    18  ipkg is intended to serve the same functions (and more) for 
     18 opkg is intended to serve the same functions (and more) for 
    1919 Familiar that dpkg and apt serve for Debian, (while taking 
    2020 up much less space). 
  • trunk/src/target/ipkg/familiar/libopkg-dev-control.in

    r3877 r3879  
    1 Package: libipkg-dev 
     1Package: libopkg-dev 
    22Version: @VERSION@ 
    33Section: base 
     
    66Architecture: @host_cpu@ 
    77Maintainer: Jamey Hicks <jamey@handhelds.org> 
    8 Source: http://www.handhelds.org/packages/ipkg/ipkg-@VERSION@.tar.gz 
    9 Depends: libipkg 
     8Source: http://www.handhelds.org/packages/opkg/opkg-@VERSION@.tar.gz 
     9Depends: libopkg 
    1010Description: lightweight package management system 
    11  ipkg is the Itsy Package Management System, for handling 
     11 opkg is the Itsy Package Management System, for handling 
    1212 installation and removal of packages on a system. It can 
    1313 recursively follow dependencies and download all packages 
    1414 necessary to install a particular package. 
    1515 . 
    16  ipkg knows how to install both .ipk and .deb packages. 
     16 opkg knows how to install both .ipk and .deb packages. 
    1717 . 
    18  ipkg is intended to serve the same functions (and more) for 
     18 opkg is intended to serve the same functions (and more) for 
    1919 Familiar that dpkg and apt serve for Debian, (while taking 
    2020 up much less space). 
  • trunk/src/target/ipkg/file_util.c

    r3837 r3879  
    1616*/ 
    1717 
    18 #include "ipkg.h" 
     18#include "opkg.h" 
    1919#include <sys/types.h> 
    2020#include <sys/stat.h> 
     
    108108 
    109109/* I put these here to keep libbb dependencies from creeping all over 
    110    the ipkg code */ 
     110   the opkg code */ 
    111111int file_copy(const char *src, const char *dest) 
    112112{ 
  • trunk/src/target/ipkg/hash_table.c

    r3837 r3879  
    1 /* hash.c - hash tables for ipkg 
     1/* hash.c - hash tables for opkg 
    22 
    33   Steven M. Ayer, Jamey Hicks 
     
    2121#include <string.h> 
    2222#include "hash_table.h" 
    23 #include "ipkg_message.h" 
     23#include "opkg_message.h" 
    2424 
    2525 
     
    9393    { 
    9494      if (strcmp(key, hash_entry->key) == 0) { 
    95          // ipkg_message(NULL, IPKG_DEBUG, "Function: %s. Key found for '%s' \n", __FUNCTION__, key); 
     95         // opkg_message(NULL, OPKG_DEBUG, "Function: %s. Key found for '%s' \n", __FUNCTION__, key); 
    9696         return hash_entry->data; 
    9797      } 
     
    106106     int ndx= hash_index(hash, key); 
    107107     hash_entry_t *hash_entry = hash->entries + ndx; 
    108      if (0) ipkg_message(NULL, IPKG_DEBUG2, "Function: %s. Inserting in hash for '%s' \n", __FUNCTION__, key); 
     108     if (0) opkg_message(NULL, OPKG_DEBUG2, "Function: %s. Inserting in hash for '%s' \n", __FUNCTION__, key); 
    109109     if (hash_entry->key) { 
    110110          if (strcmp(hash_entry->key, key) == 0) { 
    111111               /* alread in table, update the value */ 
    112                if (0) ipkg_message(NULL, IPKG_DEBUG2, "Function: %s. Value already in hash for '%s' \n", __FUNCTION__, key); 
     112               if (0) opkg_message(NULL, OPKG_DEBUG2, "Function: %s. Value already in hash for '%s' \n", __FUNCTION__, key); 
    113113               hash_entry->data = value; 
    114114               return 0; 
     
    119119                * before we can hook up the value 
    120120                */ 
    121                if (0) ipkg_message(NULL, IPKG_DEBUG2, "Function: %s. Value already in hash by collision for '%s' \n", __FUNCTION__, key); 
     121               if (0) opkg_message(NULL, OPKG_DEBUG2, "Function: %s. Value already in hash by collision for '%s' \n", __FUNCTION__, key); 
    122122               while (hash_entry->next) 
    123123                    hash_entry = hash_entry->next; 
  • trunk/src/target/ipkg/hash_table.h

    r3837 r3879  
    1 /* hash.h - hash tables for ipkg 
     1/* hash.h - hash tables for opkg 
    22 
    33   Steven M. Ayer, Jamey Hicks 
  • trunk/src/target/ipkg/intercept/depmod

    r3837 r3879  
    22 
    33if [ "x$1" = "x-a" ] || [ "x$1" = "x-A" ]; then 
    4   if [ ! -f $IPKG_INTERCEPT_DIR/depmod ]; then 
    5     echo "depmod -A" > $IPKG_INTERCEPT_DIR/depmod 
    6     chmod +x $IPKG_INTERCEPT_DIR/depmod 
     4  if [ ! -f $OPKG_INTERCEPT_DIR/depmod ]; then 
     5    echo "depmod -A" > $OPKG_INTERCEPT_DIR/depmod 
     6    chmod +x $OPKG_INTERCEPT_DIR/depmod 
    77  fi 
    88  exit 0 
  • trunk/src/target/ipkg/intercept/ldconfig

    r3837 r3879  
    11#!/bin/sh 
    22 
    3 if [ ! -f $IPKG_INTERCEPT_DIR/ldconfig ]; then 
    4   echo "ldconfig" > $IPKG_INTERCEPT_DIR/ldconfig 
    5   chmod +x $IPKG_INTERCEPT_DIR/ldconfig 
     3if [ ! -f $OPKG_INTERCEPT_DIR/ldconfig ]; then 
     4  echo "ldconfig" > $OPKG_INTERCEPT_DIR/ldconfig 
     5  chmod +x $OPKG_INTERCEPT_DIR/ldconfig 
    66fi 
    77 
  • trunk/src/target/ipkg/intercept/update-modules

    r3837 r3879  
    11#!/bin/sh 
    22 
    3 if [ ! -f $IPKG_INTERCEPT_DIR/update-modules ]; then 
    4   echo "update-modules" > $IPKG_INTERCEPT_DIR/update-modules 
    5   chmod +x $IPKG_INTERCEPT_DIR/update-modules 
     3if [ ! -f $OPKG_INTERCEPT_DIR/update-modules ]; then 
     4  echo "update-modules" > $OPKG_INTERCEPT_DIR/update-modules 
     5  chmod +x $OPKG_INTERCEPT_DIR/update-modules 
    66fi 
    77 
  • trunk/src/target/ipkg/libbb/libbb.h

    r3837 r3879  
    2828#include <netdb.h> 
    2929 
    30 // Include because of single use with ipkg 
     30// Include because of single use with opkg 
    3131#define _BB_INTERNAL_H_ 
    3232#define L_archive_offset 
  • trunk/src/target/ipkg/libbb/unarchive.c

    r3837 r3879  
    763763                return(output_buffer); 
    764764        } else if (strncmp(ar_magic, "\037\213", 2) == 0) { 
    765                 /* it's a gz file, let's assume it's an ipkg */ 
    766                 int unzipped_ipkg_pid; 
    767                 FILE *unzipped_ipkg_stream; 
     765                /* it's a gz file, let's assume it's an opkg */ 
     766                int unzipped_opkg_pid; 
     767                FILE *unzipped_opkg_stream; 
    768768                file_header_t *tar_header; 
    769769                archive_offset = 0; 
    770770                fseek(deb_stream, 0, SEEK_SET); 
    771                 unzipped_ipkg_stream = gz_open(deb_stream, &unzipped_ipkg_pid); 
     771                unzipped_opkg_stream = gz_open(deb_stream, &unzipped_opkg_pid); 
    772772                 
    773                 /*fprintf(stderr, __FUNCTION__ ": processing ipkg %s -- ared_file=%s\n", package_filename, ared_file);*/ 
     773                /*fprintf(stderr, __FUNCTION__ ": processing opkg %s -- ared_file=%s\n", package_filename, ared_file);*/ 
    774774                /* walk through outer tar file to find ared_file */ 
    775                 while ((tar_header = get_header_tar(unzipped_ipkg_stream)) != NULL) { 
     775                while ((tar_header = get_header_tar(unzipped_opkg_stream)) != NULL) { 
    776776                        int name_offset = 0; 
    777777                        if (strncmp(tar_header->name, "./", 2) == 0) 
     
    779779                        if (strcmp(ared_file, tar_header->name+name_offset) == 0) { 
    780780                                /* open a stream of decompressed data */ 
    781                                 uncompressed_stream = gz_open(unzipped_ipkg_stream, &gunzip_pid); 
     781                                uncompressed_stream = gz_open(unzipped_opkg_stream, &gunzip_pid); 
    782782                                archive_offset = 0; 
    783783                                /*fprintf(stderr, __FUNCTION__ ":%d: here -- found file\n", __LINE__);*/ 
     
    795795                                break; 
    796796                        } 
    797                         seek_sub_file(unzipped_ipkg_stream, tar_header->size); 
     797                        seek_sub_file(unzipped_opkg_stream, tar_header->size); 
    798798                        free_header_tar(tar_header); 
    799799                } 
    800                 gz_close(unzipped_ipkg_pid); 
    801                 fclose(unzipped_ipkg_stream); 
     800                gz_close(unzipped_opkg_pid); 
     801                fclose(unzipped_opkg_stream); 
    802802                fclose(deb_stream); 
    803803                free(ared_file); 
  • trunk/src/target/ipkg/libopkg.c

    r3877 r3879  
    1 /* ipkglib.c - the itsy package management system 
     1/* opkglib.c - the itsy package management system 
    22 
    33   Florina Boor 
     
    1616*/ 
    1717 
    18 #ifdef IPKG_LIB 
    19  
    20 #include "ipkg.h" 
     18#ifdef OPKG_LIB 
     19 
     20#include "opkg.h" 
    2121#include "includes.h" 
    22 #include "libipkg.h" 
     22#include "libopkg.h" 
    2323 
    2424#include "args.h" 
    25 #include "ipkg_conf.h" 
    26 #include "ipkg_cmd.h" 
     25#include "opkg_conf.h" 
     26#include "opkg_cmd.h" 
    2727#include "file_util.h" 
    2828 
    2929 
    3030 
    31 ipkg_message_callback ipkg_cb_message = NULL; 
    32 ipkg_response_callback ipkg_cb_response = NULL; 
    33 ipkg_status_callback ipkg_cb_status = NULL; 
    34 ipkg_list_callback ipkg_cb_list = NULL; 
    35  
    36  
    37 int 
    38 ipkg_init (ipkg_message_callback mcall,  
    39            ipkg_response_callback rcall, 
     31opkg_message_callback opkg_cb_message = NULL; 
     32opkg_response_callback opkg_cb_response = NULL; 
     33opkg_status_callback opkg_cb_status = NULL; 
     34opkg_list_callback opkg_cb_list = NULL; 
     35 
     36 
     37int 
     38opkg_init (opkg_message_callback mcall,  
     39           opkg_response_callback rcall, 
    4040           args_t * args) 
    4141{ 
    42         ipkg_cb_message = mcall; 
    43         ipkg_cb_response = rcall; 
     42        opkg_cb_message = mcall; 
     43        opkg_cb_response = rcall; 
    4444 
    4545        args_init (args); 
     
    5050 
    5151int 
    52 ipkg_deinit (args_t * args) 
     52opkg_deinit (args_t * args) 
    5353{ 
    5454        args_deinit (args); 
    55         ipkg_cb_message = NULL; 
    56         ipkg_cb_response = NULL; 
     55        opkg_cb_message = NULL; 
     56        opkg_cb_response = NULL; 
    5757 
    5858        /* place other cleanup stuff here */ 
     
    6363 
    6464int 
    65 ipkg_packages_list(args_t *args,  
     65opkg_packages_list(args_t *args,  
    6666                   const char *packages,  
    67                    ipkg_list_callback cblist, 
     67                   opkg_list_callback cblist, 
    6868                   void *userdata) 
    6969{ 
    70         ipkg_cmd_t *cmd; 
    71         ipkg_conf_t ipkg_conf; 
    72         int err; 
    73  
    74         err = ipkg_conf_init (&ipkg_conf, args); 
    75         if (err) 
    76         { 
    77                 return err; 
    78         } 
    79  
    80         ipkg_cb_list = cblist; 
    81         /* we need to do this because of static declarations,  
    82          * maybe a good idea to change */ 
    83         cmd = ipkg_cmd_find ("list"); 
     70        opkg_cmd_t *cmd; 
     71        opkg_conf_t opkg_conf; 
     72        int err; 
     73 
     74        err = opkg_conf_init (&opkg_conf, args); 
     75        if (err) 
     76        { 
     77                return err; 
     78        } 
     79 
     80        opkg_cb_list = cblist; 
     81        /* we need to do this because of static declarations,  
     82         * maybe a good idea to change */ 
     83        cmd = opkg_cmd_find ("list"); 
    8484        if (packages) 
    85                 err = ipkg_cmd_exec (cmd, &ipkg_conf, 1, &packages, userdata); 
     85                err = opkg_cmd_exec (cmd, &opkg_conf, 1, &packages, userdata); 
    8686        else 
    87                 err = ipkg_cmd_exec (cmd, &ipkg_conf, 0, NULL, userdata); 
    88         ipkg_cb_list = NULL; 
    89         ipkg_conf_deinit (&ipkg_conf); 
    90         return (err); 
    91 } 
    92  
    93  
    94 int 
    95 ipkg_packages_status(args_t *args, 
     87                err = opkg_cmd_exec (cmd, &opkg_conf, 0, NULL, userdata); 
     88        opkg_cb_list = NULL; 
     89        opkg_conf_deinit (&opkg_conf); 
     90        return (err); 
     91} 
     92 
     93 
     94int 
     95opkg_packages_status(args_t *args, 
    9696                     const char *packages, 
    97                      ipkg_status_callback cbstatus, 
     97                     opkg_status_callback cbstatus, 
    9898                     void *userdata) 
    9999{ 
    100         ipkg_cmd_t *cmd; 
    101         ipkg_conf_t ipkg_conf; 
    102         int err; 
    103  
    104         err = ipkg_conf_init (&ipkg_conf, args); 
    105         if (err) 
    106         { 
    107                 return err; 
    108         } 
    109  
    110         ipkg_cb_status = cbstatus; 
     100        opkg_cmd_t *cmd; 
     101        opkg_conf_t opkg_conf; 
     102        int err; 
     103 
     104        err = opkg_conf_init (&opkg_conf, args); 
     105        if (err) 
     106        { 
     107                return err; 
     108        } 
     109 
     110        opkg_cb_status = cbstatus; 
    111111 
    112112        /* we need to do this because of static declarations, 
    113113         * maybe a good idea to change */ 
    114         cmd = ipkg_cmd_find ("status"); 
     114        cmd = opkg_cmd_find ("status"); 
    115115        if (packages) 
    116                 err = ipkg_cmd_exec (cmd, &ipkg_conf, 1, &packages, userdata); 
     116                err = opkg_cmd_exec (cmd, &opkg_conf, 1, &packages, userdata); 
    117117        else 
    118                 err = ipkg_cmd_exec (cmd, &ipkg_conf, 0, NULL, userdata); 
    119  
    120         ipkg_cb_status = NULL; 
    121         ipkg_conf_deinit (&ipkg_conf); 
    122         return (err); 
    123 } 
    124  
    125  
    126 int 
    127 ipkg_packages_info(args_t *args, 
     118                err = opkg_cmd_exec (cmd, &opkg_conf, 0, NULL, userdata); 
     119 
     120        opkg_cb_status = NULL; 
     121        opkg_conf_deinit (&opkg_conf); 
     122        return (err); 
     123} 
     124 
     125 
     126int 
     127opkg_packages_info(args_t *args, 
    128128                   const char *packages, 
    129                    ipkg_status_callback cbstatus, 
     129                   opkg_status_callback cbstatus, 
    130130                   void *userdata) 
    131131{ 
    132         ipkg_cmd_t *cmd; 
    133         ipkg_conf_t ipkg_conf; 
    134         int err; 
    135  
    136         err = ipkg_conf_init (&ipkg_conf, args); 
    137         if (err) 
    138         { 
    139                 return err; 
    140         } 
    141  
    142         ipkg_cb_status = cbstatus; 
     132        opkg_cmd_t *cmd; 
     133        opkg_conf_t opkg_conf; 
     134        int err; 
     135 
     136        err = opkg_conf_init (&opkg_conf, args); 
     137        if (err) 
     138        { 
     139                return err; 
     140        } 
     141 
     142        opkg_cb_status = cbstatus; 
    143143 
    144144        /* we need to do this because of static declarations, 
    145145         * maybe a good idea to change */ 
    146         cmd = ipkg_cmd_find ("info"); 
     146        cmd = opkg_cmd_find ("info"); 
    147147        if (packages) 
    148                 err = ipkg_cmd_exec (cmd, &ipkg_conf, 1, &packages, userdata); 
     148                err = opkg_cmd_exec (cmd, &opkg_conf, 1, &packages, userdata); 
    149149        else 
    150                 err = ipkg_cmd_exec (cmd, &ipkg_conf, 0, NULL, userdata); 
    151  
    152         ipkg_cb_status = NULL; 
    153         ipkg_conf_deinit (&ipkg_conf); 
    154         return (err); 
    155 } 
    156  
    157  
    158 int 
    159 ipkg_packages_install (args_t * args, const char *name) 
    160 { 
    161         ipkg_cmd_t *cmd; 
    162         ipkg_conf_t ipkg_conf; 
     150                err = opkg_cmd_exec (cmd, &opkg_conf, 0, NULL, userdata); 
     151 
     152        opkg_cb_status = NULL; 
     153        opkg_conf_deinit (&opkg_conf); 
     154        return (err); 
     155} 
     156 
     157 
     158int 
     159opkg_packages_install (args_t * args, const char *name) 
     160{ 
     161        opkg_cmd_t *cmd; 
     162        opkg_conf_t opkg_conf; 
    163163        int err; 
    164164 
     
    167167                return (-1); 
    168168 
    169         err = ipkg_conf_init (&ipkg_conf, args); 
     169        err = opkg_conf_init (&opkg_conf, args); 
    170170        if (err) 
    171171        { 
     
    175175        /* we need to do this because of static declarations, 
    176176         * maybe a good idea to change */ 
    177         cmd = ipkg_cmd_find ("install"); 
    178         err = ipkg_cmd_exec (cmd, &ipkg_conf, 1, &name, NULL); 
    179  
    180         ipkg_conf_deinit(&ipkg_conf); 
    181         return (err); 
    182 } 
    183  
    184  
    185 int 
    186 ipkg_packages_remove(args_t *args, const char *name, int purge) 
    187 { 
    188         ipkg_cmd_t *cmd; 
    189         ipkg_conf_t ipkg_conf; 
     177        cmd = opkg_cmd_find ("install"); 
     178        err = opkg_cmd_exec (cmd, &opkg_conf, 1, &name, NULL); 
     179 
     180        opkg_conf_deinit(&opkg_conf); 
     181        return (err); 
     182} 
     183 
     184 
     185int 
     186opkg_packages_remove(args_t *args, const char *name, int purge) 
     187{ 
     188        opkg_cmd_t *cmd; 
     189        opkg_conf_t opkg_conf; 
    190190        int err; 
    191191 
     
    194194                return (-1); 
    195195 
    196         err = ipkg_conf_init (&ipkg_conf, args); 
     196        err = opkg_conf_init (&opkg_conf, args); 
    197197        if (err) 
    198198        { 
     
    203203         * maybe a good idea to change */ 
    204204        if (purge) 
    205                 cmd = ipkg_cmd_find ("purge"); 
     205                cmd = opkg_cmd_find ("purge"); 
    206206        else 
    207                 cmd = ipkg_cmd_find ("remove"); 
    208  
    209         err = ipkg_cmd_exec (cmd, &ipkg_conf, 1, &name, NULL); 
    210          
    211         ipkg_conf_deinit(&ipkg_conf); 
     207                cmd = opkg_cmd_find ("remove"); 
     208 
     209        err = opkg_cmd_exec (cmd, &opkg_conf, 1, &name, NULL); 
     210         
     211        opkg_conf_deinit(&opkg_conf); 
    212212        return (err); 
    213213} 
     
    215215 
    216216int  
    217 ipkg_lists_update(args_t *args) 
    218 { 
    219         ipkg_cmd_t *cmd; 
    220         ipkg_conf_t ipkg_conf; 
    221         int err; 
    222  
    223         err = ipkg_conf_init (&ipkg_conf, args); 
    224         if (err) 
    225         { 
    226                 return err; 
    227         } 
    228  
    229         /* we need to do this because of static declarations,  
    230          * maybe a good idea to change */ 
    231         cmd = ipkg_cmd_find ("update"); 
    232  
    233         err = ipkg_cmd_exec (cmd, &ipkg_conf, 0, NULL, NULL); 
    234          
    235         ipkg_conf_deinit(&ipkg_conf); 
     217opkg_lists_update(args_t *args) 
     218{ 
     219        opkg_cmd_t *cmd; 
     220        opkg_conf_t opkg_conf; 
     221        int err; 
     222 
     223        err = opkg_conf_init (&opkg_conf, args); 
     224        if (err) 
     225        { 
     226                return err; 
     227        } 
     228 
     229        /* we need to do this because of static declarations,  
     230         * maybe a good idea to change */ 
     231        cmd = opkg_cmd_find ("update"); 
     232 
     233        err = opkg_cmd_exec (cmd, &opkg_conf, 0, NULL, NULL); 
     234         
     235        opkg_conf_deinit(&opkg_conf); 
    236236        return (err); 
    237237} 
     
    239239 
    240240int  
    241 ipkg_packages_upgrade(args_t *args) 
    242 { 
    243         ipkg_cmd_t *cmd; 
    244         ipkg_conf_t ipkg_conf; 
    245         int err; 
    246  
    247         err = ipkg_conf_init (&ipkg_conf, args); 
    248         if (err) 
    249         { 
    250                 return err; 
    251         } 
    252  
    253         /* we need to do this because of static declarations,  
    254          * maybe a good idea to change */ 
    255         cmd = ipkg_cmd_find ("upgrade"); 
    256  
    257         err = ipkg_cmd_exec (cmd, &ipkg_conf, 0, NULL, NULL); 
    258          
    259         ipkg_conf_deinit(&ipkg_conf); 
    260         return (err); 
    261 } 
    262  
    263  
    264 int 
    265 ipkg_packages_download (args_t * args, const char *name) 
    266 { 
    267         ipkg_cmd_t *cmd; 
    268         ipkg_conf_t ipkg_conf; 
     241opkg_packages_upgrade(args_t *args) 
     242{ 
     243        opkg_cmd_t *cmd; 
     244        opkg_conf_t opkg_conf; 
     245        int err; 
     246 
     247        err = opkg_conf_init (&opkg_conf, args); 
     248        if (err) 
     249        { 
     250                return err; 
     251        } 
     252 
     253        /* we need to do this because of static declarations,  
     254         * maybe a good idea to change */ 
     255        cmd = opkg_cmd_find ("upgrade"); 
     256 
     257        err = opkg_cmd_exec (cmd, &opkg_conf, 0, NULL, NULL); 
     258         
     259        opkg_conf_deinit(&opkg_conf); 
     260        return (err); 
     261} 
     262 
     263 
     264int 
     265opkg_packages_download (args_t * args, const char *name) 
     266{ 
     267        opkg_cmd_t *cmd; 
     268        opkg_conf_t opkg_conf; 
    269269        int err; 
    270270 
     
    273273                return (-1); 
    274274 
    275         err = ipkg_conf_init (&ipkg_conf, args); 
     275        err = opkg_conf_init (&opkg_conf, args); 
    276276        if (err) 
    277277        { 
     
    281281        /* we need to do this because of static declarations, 
    282282         * maybe a good idea to change */ 
    283         cmd = ipkg_cmd_find ("download"); 
    284         err = ipkg_cmd_exec (cmd, &ipkg_conf, 1, &name, NULL); 
    285  
    286         ipkg_conf_deinit(&ipkg_conf); 
    287         return (err); 
    288 } 
    289  
    290  
    291 int 
    292 ipkg_package_files(args_t *args,  
     283        cmd = opkg_cmd_find ("download"); 
     284        err = opkg_cmd_exec (cmd, &opkg_conf, 1, &name, NULL); 
     285 
     286        opkg_conf_deinit(&opkg_conf); 
     287        return (err); 
     288} 
     289 
     290 
     291int 
     292opkg_package_files(args_t *args,  
    293293                   const char *name,  
    294                    ipkg_list_callback cblist, 
     294                   opkg_list_callback cblist, 
    295295                   void *userdata) 
    296296{ 
    297         ipkg_cmd_t *cmd; 
    298         ipkg_conf_t ipkg_conf; 
     297        opkg_cmd_t *cmd; 
     298        opkg_conf_t opkg_conf; 
    299299        int err; 
    300300 
     
    303303                return (-1); 
    304304 
    305         err = ipkg_conf_init (&ipkg_conf, args); 
    306         if (err) 
    307         { 
    308                 return err; 
    309         } 
    310  
    311         ipkg_cb_list = cblist; 
    312          
    313         /* we need to do this because of static declarations,  
    314          * maybe a good idea to change */ 
    315         cmd = ipkg_cmd_find ("files"); 
    316  
    317         err = ipkg_cmd_exec (cmd, &ipkg_conf, 1, &name, userdata); 
    318          
    319         ipkg_cb_list = NULL; 
    320         ipkg_conf_deinit(&ipkg_conf); 
     305        err = opkg_conf_init (&opkg_conf, args); 
     306        if (err) 
     307        { 
     308                return err; 
     309        } 
     310 
     311        opkg_cb_list = cblist; 
     312         
     313        /* we need to do this because of static declarations,  
     314         * maybe a good idea to change */ 
     315        cmd = opkg_cmd_find ("files"); 
     316 
     317        err = opkg_cmd_exec (cmd, &opkg_conf, 1, &name, userdata); 
     318         
     319        opkg_cb_list = NULL; 
     320        opkg_conf_deinit(&opkg_conf); 
    321321        return (err); 
    322322} 
     
    324324 
    325325int  
    326 ipkg_file_search(args_t *args,  
     326opkg_file_search(args_t *args,  
    327327                const char *file, 
    328                                 ipkg_list_callback cblist, 
     328                                opkg_list_callback cblist, 
    329329                void *userdata) 
    330330{ 
    331         ipkg_cmd_t *cmd; 
    332         ipkg_conf_t ipkg_conf; 
     331        opkg_cmd_t *cmd; 
     332        opkg_conf_t opkg_conf; 
    333333        int err; 
    334334         
     
    337337                return (-1); 
    338338 
    339         err = ipkg_conf_init (&ipkg_conf, args); 
    340         if (err) 
    341         { 
    342                 return err; 
    343         } 
    344  
    345         ipkg_cb_list = cblist; 
    346  
    347         /* we need to do this because of static declarations,  
    348          * maybe a good idea to change */ 
    349         cmd = ipkg_cmd_find ("search"); 
    350         err = ipkg_cmd_exec (cmd, &ipkg_conf, 1, &file, userdata); 
    351          
    352         ipkg_cb_list = NULL; 
    353         ipkg_conf_deinit(&ipkg_conf); 
     339        err = opkg_conf_init (&opkg_conf, args); 
     340        if (err) 
     341        { 
     342                return err; 
     343        } 
     344 
     345        opkg_cb_list = cblist; 
     346 
     347        /* we need to do this because of static declarations,  
     348         * maybe a good idea to change */ 
     349        cmd = opkg_cmd_find ("search"); 
     350        err = opkg_cmd_exec (cmd, &opkg_conf, 1, &file, userdata); 
     351         
     352        opkg_cb_list = NULL; 
     353        opkg_conf_deinit(&opkg_conf); 
    354354        return(err); 
    355355} 
     
    357357 
    358358int  
    359 ipkg_file_what(args_t *args, const char *file, const char* command) 
    360 { 
    361         ipkg_cmd_t *cmd; 
    362         ipkg_conf_t ipkg_conf; 
     359opkg_file_what(args_t *args, const char *file, const char* command) 
     360{ 
     361        opkg_cmd_t *cmd; 
     362        opkg_conf_t opkg_conf; 
    363363        int err; 
    364364         
     
    367367                return (-1); 
    368368 
    369         err = ipkg_conf_init (&ipkg_conf, args); 
    370         if (err) 
    371         { 
    372                 return err; 
    373         } 
    374  
    375         /* we need to do this because of static declarations,  
    376          * maybe a good idea to change */ 
    377         cmd = ipkg_cmd_find (command); 
    378         err = ipkg_cmd_exec (cmd, &ipkg_conf, 1, &file, NULL); 
    379          
    380         ipkg_conf_deinit(&ipkg_conf); 
     369        err = opkg_conf_init (&opkg_conf, args); 
     370        if (err) 
     371        { 
     372                return err; 
     373        } 
     374 
     375        /* we need to do this because of static declarations,  
     376         * maybe a good idea to change */ 
     377        cmd = opkg_cmd_find (command); 
     378        err = opkg_cmd_exec (cmd, &opkg_conf, 1, &file, NULL); 
     379         
     380        opkg_conf_deinit(&opkg_conf); 
    381381        return(err); 
    382382} 
    383383 
    384 #define ipkg_package_whatdepends(args,file) ipkg_file_what(args,file,"whatdepends") 
    385 #define ipkg_package_whatrecommends(args, file) ipkg_file_what(args,file,"whatrecommends") 
    386 #define ipkg_package_whatprovides(args, file) ipkg_file_what(args,file,"whatprovides") 
    387 #define ipkg_package_whatconflicts(args, file) ipkg_file_what(args,file,"whatconflicts") 
    388 #define ipkg_package_whatreplaces(args, file) ipkg_file_what(args,file,"whatreplaces") 
    389  
    390  
    391 int default_ipkg_message_callback(ipkg_conf_t *conf, message_level_t level,  
     384#define opkg_package_whatdepends(args,file) opkg_file_what(args,file,"whatdepends") 
     385#define opkg_package_whatrecommends(args, file) opkg_file_what(args,file,"whatrecommends") 
     386#define opkg_package_whatprovides(args, file) opkg_file_what(args,file,"whatprovides") 
     387#define opkg_package_whatconflicts(args, file) opkg_file_what(args,file,"whatconflicts") 
     388#define opkg_package_whatreplaces(args, file) opkg_file_what(args,file,"whatreplaces") 
     389 
     390 
     391int default_opkg_message_callback(opkg_conf_t *conf, message_level_t level,  
    392392                                  char *msg) 
    393393{ 
     
    395395          return 0; 
    396396     } else { 
    397 #ifdef IPKG_LIB 
    398           if ( level == IPKG_ERROR ){ 
     397#ifdef OPKG_LIB 
     398          if ( level == OPKG_ERROR ){ 
    399399             push_error_list(&error_list, msg);  
    400400//           printf(msg); 
     
    406406} 
    407407 
    408 int default_ipkg_list_callback(char *name, char *desc, char *version,  
     408int default_opkg_list_callback(char *name, char *desc, char *version,  
    409409                               pkg_state_status_t status, void *userdata) 
    410410{ 
     
    416416} 
    417417 
    418 int default_ipkg_files_callback(char *name, char *desc, char *version, 
     418int default_opkg_files_callback(char *name, char *desc, char *version, 
    419419                   pkg_state_status_t status, void *userdata) 
    420420{ 
     
    424424} 
    425425 
    426 int default_ipkg_status_callback(char *name, int istatus, char *desc, 
     426int default_opkg_status_callback(char *name, int istatus, char *desc, 
    427427                                 void *userdata) 
    428428{ 
     
    431431} 
    432432 
    433 char* default_ipkg_response_callback(char *question) 
     433char* default_opkg_response_callback(char *question) 
    434434{ 
    435435     char *response = NULL; 
     
    444444/* This is used for backward compatibility */ 
    445445int 
    446 ipkg_op (int argc, char *argv[]) 
     446opkg_op (int argc, char *argv[]) 
    447447{ 
    448448        int err, optind; 
    449449        args_t args; 
    450450        char *cmd_name; 
    451         ipkg_cmd_t *cmd; 
    452         ipkg_conf_t ipkg_conf; 
     451        opkg_cmd_t *cmd; 
     452        opkg_conf_t opkg_conf; 
    453453 
    454454        args_init (&args); 
     
    457457        if (optind == argc || optind < 0) 
    458458        { 
    459                 args_usage ("ipkg must have one sub-command argument"); 
     459                args_usage ("opkg must have one sub-command argument"); 
    460460        } 
    461461 
     
    486486 
    487487 
    488         err = ipkg_conf_init (&ipkg_conf, &args); 
     488        err = opkg_conf_init (&opkg_conf, &args); 
    489489        if (err) 
    490490        { 
     
    494494        args_deinit (&args); 
    495495 
    496         ipkg_cb_message = default_ipkg_message_callback; 
    497         ipkg_cb_response = default_ipkg_response_callback; 
    498         ipkg_cb_status = default_ipkg_status_callback; 
     496        opkg_cb_message = default_opkg_message_callback; 
     497        opkg_cb_response = default_opkg_response_callback; 
     498        opkg_cb_status = default_opkg_status_callback; 
    499499        if ( strcmp(cmd_name, "files")==0) 
    500              ipkg_cb_list = default_ipkg_files_callback; 
     500             opkg_cb_list = default_opkg_files_callback; 
    501501        else 
    502              ipkg_cb_list = default_ipkg_list_callback; 
    503  
    504         cmd = ipkg_cmd_find (cmd_name); 
     502             opkg_cb_list = default_opkg_list_callback; 
     503 
     504        cmd = opkg_cmd_find (cmd_name); 
    505505        if (cmd == NULL) 
    506506        { 
     
    518518        } 
    519519 
    520         err = ipkg_cmd_exec (cmd, &ipkg_conf, argc - optind, (const char **) (argv + optind), NULL); 
    521  
    522         ipkg_conf_deinit (&ipkg_conf); 
     520        err = opkg_cmd_exec (cmd, &opkg_conf, argc - optind, (const char **) (argv + optind), NULL); 
     521 
     522        opkg_conf_deinit (&opkg_conf); 
    523523 
    524524        return err; 
    525525} 
    526526 
    527 #endif /* IPKG_LIB */ 
     527#endif /* OPKG_LIB */ 
  • trunk/src/target/ipkg/libopkg.h

    r3877 r3879  
    1 /* ipkglib.h - the itsy package management system 
     1/* opkglib.h - the itsy package management system 
    22 
    33   Florian Boor <florian.boor@kernelconcepts.de> 
     
    1414*/ 
    1515 
    16 #ifndef IPKGLIB_H 
    17 #define IPKGLIB_H 
     16#ifndef OPKGLIB_H 
     17#define OPKGLIB_H 
    1818 
    1919#ifdef HAVE_CONFIG_H 
     
    2222 
    2323 
    24 #ifdef IPKG_LIB 
     24#ifdef OPKG_LIB 
    2525 
    26 #include "ipkg_conf.h" 
    27 #include "ipkg_message.h" 
     26#include "opkg_conf.h" 
     27#include "opkg_message.h" 
    2828 
    2929#include "args.h" 
    3030#include "pkg.h" 
    3131 
    32 typedef int (*ipkg_message_callback)(ipkg_conf_t *conf, message_level_t level,  
     32typedef int (*opkg_message_callback)(opkg_conf_t *conf, message_level_t level,  
    3333        char *msg); 
    34 typedef int (*ipkg_list_callback)(char *name, char *desc, char *version,  
     34typedef int (*opkg_list_callback)(char *name, char *desc, char *version,  
    3535        pkg_state_status_t status, void *userdata); 
    36 typedef int (*ipkg_status_callback)(char *name, int istatus, char *desc, 
     36typedef int (*opkg_status_callback)(char *name, int istatus, char *desc, 
    3737        void *userdata); 
    38 typedef char* (*ipkg_response_callback)(char *question); 
     38typedef char* (*opkg_response_callback)(char *question); 
    3939 
    40 extern int ipkg_op(int argc, char *argv[]); /* ipkglib.c */ 
    41 extern int ipkg_init (ipkg_message_callback mcall,  
    42                       ipkg_response_callback rcall, 
     40extern int opkg_op(int argc, char *argv[]); /* opkglib.c */ 
     41extern int opkg_init (opkg_message_callback mcall,  
     42                      opkg_response_callback rcall, 
    4343                                          args_t * args); 
    4444 
    45 extern int ipkg_deinit (args_t *args); 
    46 extern int ipkg_packages_list(args_t *args,  
     45extern int opkg_deinit (args_t *args); 
     46extern int opkg_packages_list(args_t *args,  
    4747                              const char *packages,  
    48                               ipkg_list_callback cblist, 
     48                              opkg_list_callback cblist, 
    4949                              void *userdata); 
    50 extern int ipkg_packages_status(args_t *args,  
     50extern int opkg_packages_status(args_t *args,  
    5151                                const char *packages,  
    52                                 ipkg_status_callback cbstatus, 
     52                                opkg_status_callback cbstatus, 
    5353                                                                void *userdata); 
    54 extern int ipkg_packages_info(args_t *args, 
     54extern int opkg_packages_info(args_t *args, 
    5555                              const char *packages, 
    56                               ipkg_status_callback cbstatus, 
     56                              opkg_status_callback cbstatus, 
    5757                              void *userdata); 
    58 extern int ipkg_packages_install(args_t *args, const char *name); 
    59 extern int ipkg_packages_remove(args_t *args, const char *name, int purge); 
    60 extern int ipkg_lists_update(args_t *args); 
    61 extern int ipkg_packages_upgrade(args_t *args); 
    62 extern int ipkg_packages_download(args_t *args, const char *name); 
    63 extern int ipkg_package_files(args_t *args, 
     58extern int opkg_packages_install(args_t *args, const char *name); 
     59extern int opkg_packages_remove(args_t *args, const char *name, int purge); 
     60extern int opkg_lists_update(args_t *args); 
     61extern int opkg_packages_upgrade(args_t *args); 
     62extern int opkg_packages_download(args_t *args, const char *name); 
     63extern int opkg_package_files(args_t *args, 
    6464                              const char *name, 
    65                                                           ipkg_list_callback cblist, 
     65                                                          opkg_list_callback cblist, 
    6666                                                          void *userdata); 
    67 extern int ipkg_file_search(args_t *args, 
     67extern int opkg_file_search(args_t *args, 
    6868                            const char *file, 
    69                                                         ipkg_list_callback cblist, 
     69                                                        opkg_list_callback cblist, 
    7070                                                        void *userdata); 
    71 extern int ipkg_package_whatdepends(args_t *args, const char *file); 
    72 extern int ipkg_package_whatrecommends(args_t *args, const char *file); 
    73 extern int ipkg_package_whatprovides(args_t *args, const char *file); 
    74 extern int ipkg_package_whatconflicts(args_t *args, const char *file); 
    75 extern int ipkg_package_whatreplaces(args_t *args, const char *file); 
     71extern int opkg_package_whatdepends(args_t *args, const char *file); 
     72extern int opkg_package_whatrecommends(args_t *args, const char *file); 
     73extern int opkg_package_whatprovides(args_t *args, const char *file); 
     74extern int opkg_package_whatconflicts(args_t *args, const char *file); 
     75extern int opkg_package_whatreplaces(args_t *args, const char *file); 
    7676 
    77 extern ipkg_message_callback ipkg_cb_message; /* ipkglib.c */ 
    78 extern ipkg_response_callback ipkg_cb_response; 
    79 extern ipkg_status_callback ipkg_cb_status; 
    80 extern ipkg_list_callback ipkg_cb_list; 
     77extern opkg_message_callback opkg_cb_message; /* opkglib.c */ 
     78extern opkg_response_callback opkg_cb_response; 
     79extern opkg_status_callback opkg_cb_status; 
     80extern opkg_list_callback opkg_cb_list; 
    8181extern void push_error_list(struct errlist **errors,char * msg); 
    8282extern void reverse_error_list(struct errlist **errors); 
  • trunk/src/target/ipkg/libopkg.pc.in

    r3877 r3879  
    44includedir=${prefix}/include 
    55 
    6 Name: libipkg 
    7 Description: ipkg package manager library 
     6Name: libopkg 
     7Description: opkg package manager library 
    88Version: @VERSION@ 
    9 Libs: -L${libdir} -lipkg 
    10 Cflags: -I${includedir}/libipkg 
     9Libs: -L${libdir} -lopkg 
     10Cflags: -I${includedir}/libopkg 
    1111 
  • trunk/src/target/ipkg/md5.c

    r3837 r3879  
    2121/* Hacked to work with BusyBox by Alfred M. Szmidt <ams@trillian.itslinux.org> */ 
    2222 
    23 /* Sucked directly into ipkg since the md5sum functions aren't in libbb 
    24    Dropped a few functions since ipkg only needs md5_stream. 
     23/* Sucked directly into opkg since the md5sum functions aren't in libbb 
     24   Dropped a few functions since opkg only needs md5_stream. 
    2525   Got rid of evil, twisted defines of FALSE=1 and TRUE=0 
    2626   6 March 2002 Carl Worth <cworth@east.isi.edu> 
  • trunk/src/target/ipkg/nv_pair.c

    r3837 r3879  
    1616*/ 
    1717 
    18 #include "ipkg.h" 
     18#include "opkg.h" 
    1919 
    2020#include "nv_pair.h" 
  • trunk/src/target/ipkg/nv_pair_list.c

    r3837 r3879  
    1616*/ 
    1717 
    18 #include "ipkg.h" 
     18#include "opkg.h" 
    1919 
    2020#include "nv_pair.h" 
  • trunk/src/target/ipkg/opkg-frontend.c

    r3877 r3879  
    1 /* ipkg-frontend.c - the itsy package management system 
     1/* opkg-frontend.c - the itsy package management system 
    22 
    33   Florina Boor 
     
    1515   General Public License for more details. 
    1616    
    17    ipkg command line frontend using libipkg 
     17   opkg command line frontend using libopkg 
    1818    
    1919*/ 
    2020 
    21 #include "libipkg.h" 
     21#include "libopkg.h" 
    2222 
    2323/* This is really small, eh? ;-) */ 
     
    2525int main(int argc, char *argv[]) 
    2626{ 
    27         return ipkg_op(argc,argv);       
     27        return opkg_op(argc,argv);       
    2828} 
  • trunk/src/target/ipkg/opkg.c

    r3877 r3879  
    1 /* ipkg.c - the itsy package management system 
     1/* opkg.c - the itsy package management system 
    22 
    33   Carl D. Worth 
     
    1616*/ 
    1717 
    18 #include "ipkg.h" 
     18#include "opkg.h" 
    1919 
    2020#include "args.h" 
    21 #include "ipkg_conf.h" 
    22 #include "ipkg_cmd.h" 
     21#include "opkg_conf.h" 
     22#include "opkg_cmd.h" 
    2323 
    2424int main(int argc, const char *argv[]) 
     
    2727    args_t args; 
    2828    char *cmd_name; 
    29     ipkg_cmd_t *cmd; 
    30     ipkg_conf_t ipkg_conf; 
     29    opkg_cmd_t *cmd; 
     30    opkg_conf_t opkg_conf; 
    3131 
    3232    error_list=NULL; 
     
    3636    optind = args_parse(&args, argc, argv); 
    3737    if (optind == argc || optind < 0) { 
    38         args_usage("ipkg must have one sub-command argument"); 
     38        args_usage("opkg must have one sub-command argument"); 
    3939    } 
    4040 
    4141    cmd_name = argv[optind++]; 
    4242 
    43     err = ipkg_conf_init(&ipkg_conf, &args); 
     43    err = opkg_conf_init(&opkg_conf, &args); 
    4444    if (err) { 
    4545        return err; 
     
    4848    args_deinit(&args); 
    4949 
    50     cmd = ipkg_cmd_find(cmd_name); 
     50    cmd = opkg_cmd_find(cmd_name); 
    5151    if (cmd == NULL) { 
    5252        fprintf(stderr, "%s: unknown sub-command %s\n", argv[0], cmd_name); 
     
    6060    } 
    6161 
    62     err = ipkg_cmd_exec(cmd, &ipkg_conf, argc - optind, argv + optind); 
     62    err = opkg_cmd_exec(cmd, &opkg_conf, argc - optind, argv + optind); 
    6363 
    6464    if ( err == 0 ) { 
    65        ipkg_message(ipkg_conf, IPKG_NOTICE, "Succesfully done.\n"); 
     65       opkg_message(opkg_conf, OPKG_NOTICE, "Succesfully done.\n"); 
    6666    } else { 
    67        ipkg_message(ipkg_conf, IPKG_NOTICE, "Error returned. Return value is %d\n.",err); 
     67       opkg_message(opkg_conf, OPKG_NOTICE, "Error returned. Return value is %d\n.",err); 
    6868 
    6969} 
     
    7171    } 
    7272    /* XXX: FEATURE request: run ldconfig and/or depmod after package needing them are installed or removed */   
    73     // ipkg_global_postinst(); 
     73    // opkg_global_postinst(); 
    7474 
    75     ipkg_conf_deinit(&ipkg_conf); 
     75    opkg_conf_deinit(&opkg_conf); 
    7676 
    7777    return err; 
  • trunk/src/target/ipkg/opkg.h

    r3877 r3879  
    1 /* ipkg.h - the itsy package management system 
     1/* opkg.h - the itsy package management system 
    22 
    33   Carl D. Worth 
     
    1616*/ 
    1717 
    18 #ifndef IPKG_H 
    19 #define IPKG_H 
     18#ifndef OPKG_H 
     19#define OPKG_H 
    2020 
    2121#ifdef HAVE_CONFIG_H 
     
    2424 
    2525#if 0 
    26 #define IPKG_DEBUG_NO_TMP_CLEANUP 
     26#define OPKG_DEBUG_NO_TMP_CLEANUP 
    2727#endif 
    2828 
    2929#include "includes.h" 
    30 #include "ipkg_conf.h" 
    31 #include "ipkg_message.h" 
     30#include "opkg_conf.h" 
     31#include "opkg_message.h" 
    3232 
    33 #define IPKG_PKG_EXTENSION ".ipk" 
     33#define OPKG_PKG_EXTENSION ".ipk" 
    3434#define DPKG_PKG_EXTENSION ".deb" 
    3535 
    36 #define IPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-" 
    37 #define IPKG_PKG_VERSION_SEP_CHAR '_' 
     36#define OPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-" 
     37#define OPKG_PKG_VERSION_SEP_CHAR '_' 
    3838 
    39 #define IPKG_STATE_DIR_PREFIX IPKGLIBDIR"/ipkg" 
    40 #define IPKG_LISTS_DIR_SUFFIX "lists" 
    41 #define IPKG_INFO_DIR_SUFFIX "info" 
    42 #define IPKG_STATUS_FILE_SUFFIX "status" 
     39#define OPKG_STATE_DIR_PREFIX OPKGLIBDIR"/opkg" 
     40#define OPKG_LISTS_DIR_SUFFIX "lists" 
     41#define OPKG_INFO_DIR_SUFFIX "info" 
     42#define OPKG_STATUS_FILE_SUFFIX "status" 
    4343 
    44 #define IPKG_BACKUP_SUFFIX "-ipkg.backup" 
     44#define OPKG_BACKUP_SUFFIX "-opkg.backup" 
    4545 
    46 #define IPKG_LIST_DESCRIPTION_LENGTH 128 
     46#define OPKG_LIST_DESCRIPTION_LENGTH 128 
    4747 
    48 enum ipkg_error { 
    49     IPKG_SUCCESS = 0, 
    50     IPKG_PKG_DEPS_UNSATISFIED, 
    51     IPKG_PKG_IS_ESSENTIAL, 
    52     IPKG_PKG_HAS_DEPENDENTS, 
    53     IPKG_PKG_HAS_NO_CANDIDATE 
     48enum opkg_error { 
     49    OPKG_SUCCESS = 0, 
     50    OPKG_PKG_DEPS_UNSATISFIED, 
     51    OPKG_PKG_IS_ESSENTIAL, 
     52    OPKG_PKG_HAS_DEPENDENTS, 
     53    OPKG_PKG_HAS_NO_CANDIDATE 
    5454}; 
    55 typedef enum ipkg_error ipkg_error_t; 
     55typedef enum opkg_error opkg_error_t; 
    5656 
    57 extern int ipkg_state_changed; 
     57extern int opkg_state_changed; 
    5858 
    5959 
  • trunk/src/target/ipkg/opkg.h.in

    r3877 r3879  
    1 /* ipkg.h - the itsy package management system 
     1/* opkg.h - the itsy package management system 
    22 
    33   Carl D. Worth 
     
    1616*/ 
    1717 
    18 #ifndef IPKG_H 
    19 #define IPKG_H 
     18#ifndef OPKG_H 
     19#define OPKG_H 
    2020 
    2121#ifdef HAVE_CONFIG_H 
     
    2424 
    2525#if 0 
    26 #define IPKG_DEBUG_NO_TMP_CLEANUP 
     26#define OPKG_DEBUG_NO_TMP_CLEANUP 
    2727#endif 
    2828 
    2929#include "includes.h" 
    30 #include "ipkg_conf.h" 
    31 #include "ipkg_message.h" 
     30#include "opkg_conf.h" 
     31#include "opkg_message.h" 
    3232 
    33 #define IPKG_PKG_EXTENSION ".ipk" 
     33#define OPKG_PKG_EXTENSION ".ipk" 
    3434#define DPKG_PKG_EXTENSION ".deb" 
    3535 
    36 #define IPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-" 
    37 #define IPKG_PKG_VERSION_SEP_CHAR '_' 
     36#define OPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-" 
     37#define OPKG_PKG_VERSION_SEP_CHAR '_' 
    3838 
    39 #define IPKG_STATE_DIR_PREFIX IPKGLIBDIR"/ipkg" 
    40 #define IPKG_LISTS_DIR_SUFFIX "lists" 
    41 #define IPKG_INFO_DIR_SUFFIX "info" 
    42 #define IPKG_STATUS_FILE_SUFFIX "status" 
     39#define OPKG_STATE_DIR_PREFIX OPKGLIBDIR"/opkg" 
     40#define OPKG_LISTS_DIR_SUFFIX "lists" 
     41#define OPKG_INFO_DIR_SUFFIX "info" 
     42#define OPKG_STATUS_FILE_SUFFIX "status" 
    4343 
    44 #define IPKG_BACKUP_SUFFIX "-ipkg.backup" 
     44#define OPKG_BACKUP_SUFFIX "-opkg.backup" 
    4545 
    46 #define IPKG_LIST_DESCRIPTION_LENGTH 128 
     46#define OPKG_LIST_DESCRIPTION_LENGTH 128 
    4747 
    48 enum ipkg_error { 
    49     IPKG_SUCCESS = 0, 
    50     IPKG_PKG_DEPS_UNSATISFIED, 
    51     IPKG_PKG_IS_ESSENTIAL, 
    52     IPKG_PKG_HAS_DEPENDENTS, 
    53     IPKG_PKG_HAS_NO_CANDIDATE 
     48enum opkg_error { 
     49    OPKG_SUCCESS = 0, 
     50    OPKG_PKG_DEPS_UNSATISFIED, 
     51    OPKG_PKG_IS_ESSENTIAL, 
     52    OPKG_PKG_HAS_DEPENDENTS, 
     53    OPKG_PKG_HAS_NO_CANDIDATE 
    5454}; 
    55 typedef enum ipkg_error ipkg_error_t; 
     55typedef enum opkg_error opkg_error_t; 
    5656 
    57 extern int ipkg_state_changed; 
     57extern int opkg_state_changed; 
    5858 
    5959 
  • trunk/src/target/ipkg/opkg_cmd.c

    r3877 r3879  
    1 /* ipkg_cmd.c - the itsy package management system 
     1/* opkg_cmd.c - the itsy package management system 
    22 
    33   Carl D. Worth 
     
    1818#include <string.h> 
    1919 
    20 #include "ipkg.h" 
     20#include "opkg.h" 
    2121#include <libgen.h> 
    2222#include <glob.h> 
     
    2828#include <dirent.h> 
    2929 
    30 #include "ipkg_conf.h" 
    31 #include "ipkg_cmd.h" 
    32 #include "ipkg_message.h" 
     30#include "opkg_conf.h" 
     31#include "opkg_cmd.h" 
     32#include "opkg_message.h" 
    3333#include "pkg.h" 
    3434#include "pkg_dest.h" 
     
    4343 
    4444 
    45 #include "ipkg_download.h" 
    46 #include "ipkg_install.h" 
    47 #include "ipkg_upgrade.h" 
    48 #include "ipkg_remove.h" 
    49 #include "ipkg_configure.h" 
    50 #include "ipkg_message.h" 
    51  
    52 #ifdef IPKG_LIB 
    53 #include "libipkg.h" 
     45#include "opkg_download.h" 
     46#include "opkg_install.h" 
     47#include "opkg_upgrade.h" 
     48#include "opkg_remove.h" 
     49#include "opkg_configure.h" 
     50#include "opkg_message.h" 
     51 
     52#ifdef OPKG_LIB 
     53#include "libopkg.h" 
    5454static void *p_userdata = NULL; 
    5555#endif 
    5656 
    57 static int ipkg_update_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    58 static int ipkg_upgrade_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    59 static int ipkg_list_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    60 static int ipkg_info_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    61 static int ipkg_status_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    62 static int ipkg_install_pending_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    63 static int ipkg_install_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    64 static int ipkg_list_installed_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    65 static int ipkg_remove_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    66 static int ipkg_purge_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    67 static int ipkg_flag_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    68 static int ipkg_files_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    69 static int ipkg_search_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    70 static int ipkg_download_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    71 static int ipkg_depends_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    72 static int ipkg_whatdepends_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    73 static int ipkg_whatdepends_recursively_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    74 static int ipkg_whatsuggests_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    75 static int ipkg_whatrecommends_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    76 static int ipkg_whatprovides_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    77 static int ipkg_whatconflicts_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    78 static int ipkg_whatreplaces_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    79 static int ipkg_compare_versions_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    80 static int ipkg_print_architecture_cmd(ipkg_conf_t *conf, int argc, char **argv); 
    81 static int ipkg_configure_cmd(ipkg_conf_t *conf, int argc, char **argv); 
     57static int opkg_update_cmd(opkg_conf_t *conf, int argc, char **argv); 
     58static int opkg_upgrade_cmd(opkg_conf_t *conf, int argc, char **argv); 
     59static int opkg_list_cmd(opkg_conf_t *conf, int argc, char **argv); 
     60static int opkg_info_cmd(opkg_conf_t *conf, int argc, char **argv); 
     61static int opkg_status_cmd(opkg_conf_t *conf, int argc, char **argv); 
     62static int opkg_install_pending_cmd(opkg_conf_t *conf, int argc, char **argv); 
     63static int opkg_install_cmd(opkg_conf_t *conf, int argc, char **argv); 
     64static int opkg_list_installed_cmd(opkg_conf_t *conf, int argc, char **argv); 
     65static int opkg_remove_cmd(opkg_conf_t *conf, int argc, char **argv); 
     66static int opkg_purge_cmd(opkg_conf_t *conf, int argc, char **argv); 
     67static int opkg_flag_cmd(opkg_conf_t *conf, int argc, char **argv); 
     68static int opkg_files_cmd(opkg_conf_t *conf, int argc, char **argv); 
     69static int opkg_search_cmd(opkg_conf_t *conf, int argc, char **argv); 
     70static int opkg_download_cmd(opkg_conf_t *conf, int argc, char **argv); 
     71static int opkg_depends_cmd(opkg_conf_t *conf, int argc, char **argv); 
     72static int opkg_whatdepends_cmd(opkg_conf_t *conf, int argc, char **argv); 
     73static int opkg_whatdepends_recursively_cmd(opkg_conf_t *conf, int argc, char **argv); 
     74static int opkg_whatsuggests_cmd(opkg_conf_t *conf, int argc, char **argv); 
     75static int opkg_whatrecommends_cmd(opkg_conf_t *conf, int argc, char **argv); 
     76static int opkg_whatprovides_cmd(opkg_conf_t *conf, int argc, char **argv); 
     77static int opkg_whatconflicts_cmd(opkg_conf_t *conf, int argc, char **argv); 
     78static int opkg_whatreplaces_cmd(opkg_conf_t *conf, int argc, char **argv); 
     79static int opkg_compare_versions_cmd(opkg_conf_t *conf, int argc, char **argv); 
     80static int opkg_print_architecture_cmd(opkg_conf_t *conf, int argc, char **argv); 
     81static int opkg_configure_cmd(opkg_conf_t *conf, int argc, char **argv); 
    8282 
    8383/* XXX: CLEANUP: The usage strings should be incorporated into this 
    8484   array for easier maintenance */ 
    85 static ipkg_cmd_t cmds[] = { 
    86      {"update", 0, (ipkg_cmd_fun_t)ipkg_update_cmd},  
    87      {"upgrade", 0, (ipkg_cmd_fun_t)ipkg_upgrade_cmd}, 
    88      {"list", 0, (ipkg_cmd_fun_t)ipkg_list_cmd}, 
    89      {"list_installed", 0, (ipkg_cmd_fun_t)ipkg_list_installed_cmd}, 
    90      {"info", 0, (ipkg_cmd_fun_t)ipkg_info_cmd}, 
    91      {"flag", 1, (ipkg_cmd_fun_t)ipkg_flag_cmd}, 
    92      {"status", 0, (ipkg_cmd_fun_t)ipkg_status_cmd}, 
    93      {"install_pending", 0, (ipkg_cmd_fun_t)ipkg_install_pending_cmd}, 
    94      {"install", 1, (ipkg_cmd_fun_t)ipkg_install_cmd}, 
    95      {"remove", 1, (ipkg_cmd_fun_t)ipkg_remove_cmd}, 
    96      {"purge", 1, (ipkg_cmd_fun_t)ipkg_purge_cmd}, 
    97      {"configure", 0, (ipkg_cmd_fun_t)ipkg_configure_cmd}, 
    98      {"files", 1, (ipkg_cmd_fun_t)ipkg_files_cmd}, 
    99      {"search", 1, (ipkg_cmd_fun_t)ipkg_search_cmd}, 
    100      {"download", 1, (ipkg_cmd_fun_t)ipkg_download_cmd}, 
    101      {"compare_versions", 1, (ipkg_cmd_fun_t)ipkg_compare_versions_cmd}, 
    102      {"compare-versions", 1, (ipkg_cmd_fun_t)ipkg_compare_versions_cmd}, 
    103      {"print-architecture", 0, (ipkg_cmd_fun_t)ipkg_print_architecture_cmd}, 
    104      {"print_architecture", 0, (ipkg_cmd_fun_t)ipkg_print_architecture_cmd}, 
    105      {"print-installation-architecture", 0, (ipkg_cmd_fun_t)ipkg_print_architecture_cmd}, 
    106      {"print_installation_architecture", 0, (ipkg_cmd_fun_t)ipkg_print_architecture_cmd}, 
    107      {"depends", 1, (ipkg_cmd_fun_t)ipkg_depends_cmd}, 
    108      {"whatdepends", 1, (ipkg_cmd_fun_t)ipkg_whatdepends_cmd}, 
    109      {"whatdependsrec", 1, (ipkg_cmd_fun_t)ipkg_whatdepends_recursively_cmd}, 
    110      {"whatrecommends", 1, (ipkg_cmd_fun_t)ipkg_whatrecommends_cmd}, 
    111      {"whatsuggests", 1, (ipkg_cmd_fun_t)ipkg_whatsuggests_cmd}, 
    112      {"whatprovides", 1, (ipkg_cmd_fun_t)ipkg_whatprovides_cmd}, 
    113      {"whatreplaces", 1, (ipkg_cmd_fun_t)ipkg_whatreplaces_cmd}, 
    114      {"whatconflicts", 1, (ipkg_cmd_fun_t)ipkg_whatconflicts_cmd}, 
     85static opkg_cmd_t cmds[] = { 
     86     {"update", 0, (opkg_cmd_fun_t)opkg_update_cmd},  
     87     {"upgrade", 0, (opkg_cmd_fun_t)opkg_upgrade_cmd}, 
     88     {"list", 0, (opkg_cmd_fun_t)opkg_list_cmd}, 
     89     {"list_installed", 0, (opkg_cmd_fun_t)opkg_list_installed_cmd}, 
     90     {"info", 0, (opkg_cmd_fun_t)opkg_info_cmd}, 
     91     {"flag", 1, (opkg_cmd_fun_t)opkg_flag_cmd}, 
     92     {"status", 0, (opkg_cmd_fun_t)opkg_status_cmd}, 
     93     {"install_pending", 0, (opkg_cmd_fun_t)opkg_install_pending_cmd}, 
     94     {"install", 1, (opkg_cmd_fun_t)opkg_install_cmd}, 
     95     {"remove", 1, (opkg_cmd_fun_t)opkg_remove_cmd}, 
     96     {"purge", 1, (opkg_cmd_fun_t)opkg_purge_cmd}, 
     97     {"configure", 0, (opkg_cmd_fun_t)opkg_configure_cmd}, 
     98     {"files", 1, (opkg_cmd_fun_t)opkg_files_cmd}, 
     99     {"search", 1, (opkg_cmd_fun_t)opkg_search_cmd}, 
     100     {"download", 1, (opkg_cmd_fun_t)opkg_download_cmd}, 
     101     {"compare_versions", 1, (opkg_cmd_fun_t)opkg_compare_versions_cmd}, 
     102     {"compare-versions", 1, (opkg_cmd_fun_t)opkg_compare_versions_cmd}, 
     103     {"print-architecture", 0, (opkg_cmd_fun_t)opkg_print_architecture_cmd}, 
     104     {"print_architecture", 0, (opkg_cmd_fun_t)opkg_print_architecture_cmd}, 
     105     {"print-installation-architecture", 0, (opkg_cmd_fun_t)opkg_print_architecture_cmd}, 
     106     {"print_installation_architecture", 0, (opkg_cmd_fun_t)opkg_print_architecture_cmd}, 
     107     {"depends", 1, (opkg_cmd_fun_t)opkg_depends_cmd}, 
     108     {"whatdepends", 1, (opkg_cmd_fun_t)opkg_whatdepends_cmd}, 
     109     {"whatdependsrec", 1, (opkg_cmd_fun_t)opkg_whatdepends_recursively_cmd}, 
     110     {"whatrecommends", 1, (opkg_cmd_fun_t)opkg_whatrecommends_cmd}, 
     111     {"whatsuggests", 1, (opkg_cmd_fun_t)opkg_whatsuggests_cmd}, 
     112     {"whatprovides", 1, (opkg_cmd_fun_t)opkg_whatprovides_cmd}, 
     113     {"whatreplaces", 1, (opkg_cmd_fun_t)opkg_whatreplaces_cmd}, 
     114     {"whatconflicts", 1, (opkg_cmd_fun_t)opkg_whatconflicts_cmd}, 
    115115}; 
    116116 
    117 int ipkg_state_changed; 
    118 static void write_status_files_if_changed(ipkg_conf_t *conf) 
    119 { 
    120      if (ipkg_state_changed && !conf->noaction) { 
    121           ipkg_message(conf, IPKG_INFO, 
     117int opkg_state_changed; 
     118static void write_status_files_if_changed(opkg_conf_t *conf) 
     119{ 
     120     if (opkg_state_changed && !conf->noaction) { 
     121          opkg_message(conf, OPKG_INFO, 
    122122                       "  writing status file\n"); 
    123           ipkg_conf_write_status_files(conf); 
     123          opkg_conf_write_status_files(conf); 
    124124          pkg_write_changed_filelists(conf); 
    125125     } else {  
    126           ipkg_message(conf, IPKG_NOTICE, "Nothing to be done\n"); 
    127      } 
    128 } 
    129  
    130  
    131 static int num_cmds = sizeof(cmds) / sizeof(ipkg_cmd_t); 
    132  
    133 ipkg_cmd_t *ipkg_cmd_find(const char *name) 
     126          opkg_message(conf, OPKG_NOTICE, "Nothing to be done\n"); 
     127     } 
     128} 
     129 
     130 
     131static int num_cmds = sizeof(cmds) / sizeof(opkg_cmd_t); 
     132 
     133opkg_cmd_t *opkg_cmd_find(const char *name) 
    134134{ 
    135135     int i; 
    136      ipkg_cmd_t *cmd; 
     136     opkg_cmd_t *cmd; 
    137137 
    138138     for (i=0; i < num_cmds; i++) { 
     
    146146} 
    147147 
    148 #ifdef IPKG_LIB 
    149 int ipkg_cmd_exec(ipkg_cmd_t *cmd, ipkg_conf_t *conf, int argc, const char **argv, void *userdata) 
     148#ifdef OPKG_LIB 
     149int opkg_cmd_exec(opkg_cmd_t *cmd, opkg_conf_t *conf, int argc, const char **argv, void *userdata) 
    150150{ 
    151151        int result; 
     
    155155        result = (cmd->fun)(conf, argc, argv); 
    156156        if ( result == 0 ) { 
    157            ipkg_message(conf, IPKG_NOTICE, "Successfully terminated.\n"); 
     157           opkg_message(conf, OPKG_NOTICE, "Successfully terminated.\n"); 
    158158        } else { 
    159            ipkg_message(conf, IPKG_NOTICE, "An error ocurred, return value: %d.\n", result); 
     159           opkg_message(conf, OPKG_NOTICE, "An error ocurred, return value: %d.\n", result); 
    160160 
    161161        } 
     
    163163           reverse_error_list(&error_list); 
    164164 
    165            ipkg_message(conf, IPKG_NOTICE, "Collected errors:\n"); 
     165           opkg_message(conf, OPKG_NOTICE, "Collected errors:\n"); 
    166166           /* Here we print the errors collected and free the list */ 
    167167           while (error_list != NULL) { 
    168                  ipkg_message(conf, IPKG_NOTICE, "%s",error_list->errmsg); 
     168                 opkg_message(conf, OPKG_NOTICE, "%s",error_list->errmsg); 
    169169                 error_list = error_list->next; 
    170170 
     
    178178} 
    179179#else 
    180 int ipkg_cmd_exec(ipkg_cmd_t *cmd, ipkg_conf_t *conf, int argc, const char **argv) 
     180int opkg_cmd_exec(opkg_cmd_t *cmd, opkg_conf_t *conf, int argc, const char **argv) 
    181181{ 
    182182     return (cmd->fun)(conf, argc, argv); 
     
    184184#endif 
    185185 
    186 static int ipkg_update_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     186static int opkg_update_cmd(opkg_conf_t *conf, int argc, char **argv) 
    187187{ 
    188188     int err; 
     
    197197    if (! file_is_dir(lists_dir)) { 
    198198          if (file_exists(lists_dir)) { 
    199                ipkg_message(conf, IPKG_ERROR, 
     199               opkg_message(conf, OPKG_ERROR, 
    200200                            "%s: ERROR: %s exists, but is not a directory\n", 
    201201                            __FUNCTION__, lists_dir); 
     
    205205          err = file_mkdir_hier(lists_dir, 0755); 
    206206          if (err) { 
    207                ipkg_message(conf, IPKG_ERROR, 
     207               opkg_message(conf, OPKG_ERROR, 
    208208                            "%s: ERROR: failed to make directory %s: %s\n", 
    209209                            __FUNCTION__, lists_dir, strerror(errno)); 
     
    231231              FILE *in, *out; 
    232232 
    233               tmp = strdup ("/tmp/ipkg.XXXXXX"); 
     233              tmp = strdup ("/tmp/opkg.XXXXXX"); 
    234234 
    235235              if (mkdtemp (tmp) == NULL) { 
     
    240240               
    241241              sprintf_alloc (&tmp_file_name, "%s/%s.gz", tmp, src->name); 
    242               err = ipkg_download(conf, url, tmp_file_name); 
     242              err = opkg_download(conf, url, tmp_file_name); 
    243243              if (err == 0) { 
    244                    ipkg_message (conf, IPKG_NOTICE, "Inflating %s\n", url); 
     244                   opkg_message (conf, OPKG_NOTICE, "Inflating %s\n", url); 
    245245                   in = fopen (tmp_file_name, "r"); 
    246246                   out = fopen (list_file_name, "w"); 
     
    258258              } 
    259259          } else 
    260               err = ipkg_download(conf, url, list_file_name); 
     260              err = opkg_download(conf, url, list_file_name); 
    261261          if (err) { 
    262262               failures++; 
    263263          } else { 
    264                ipkg_message(conf, IPKG_NOTICE, 
     264               opkg_message(conf, OPKG_NOTICE, 
    265265                            "Updated list of available packages in %s\n", 
    266266                            list_file_name); 
     
    274274#warning here 
    275275     /* clear SW_INSTALL on any package where state is SS_NOT_INSTALLED. 
    276       * this is a hack to work around poor bookkeeping in old ipkg upgrade code  
     276      * this is a hack to work around poor bookkeeping in old opkg upgrade code  
    277277      * -Jamey 3/1/03 
    278278      */ 
     
    282282          pkg_vec_t *available = pkg_vec_alloc(); 
    283283          pkg_hash_fetch_available(&conf->pkg_hash, available); 
    284           ipkg_message(conf, IPKG_DEBUG, "Clearing SW_INSTALL for SS_NOT_INSTALLED packages.\n"); 
     284          opkg_message(conf, OPKG_DEBUG, "Clearing SW_INSTALL for SS_NOT_INSTALLED packages.\n"); 
    285285          for (i = 0; i < available->len; i++) { 
    286286               pkg_t *pkg = available->pkgs[i]; 
    287287               if (pkg->state_want == SW_INSTALL && pkg->state_status == SS_NOT_INSTALLED) { 
    288                     ipkg_message(conf, IPKG_DEBUG, "Clearing SW_INSTALL on package %s.\n", pkg->name); 
     288                    opkg_message(conf, OPKG_DEBUG, "Clearing SW_INSTALL on package %s.\n", pkg->name); 
    289289                    pkg->state_want = SW_UNKNOWN; 
    290290                    changed = 1; 
     
    303303 
    304304/* scan the args passed and cache the local filenames of the packages */ 
    305 int ipkg_multiple_files_scan(ipkg_conf_t *conf, int argc, char **argv) 
     305int opkg_multiple_files_scan(opkg_conf_t *conf, int argc, char **argv) 
    306306{ 
    307307     int i; 
     
    318318          //int tmplen = strlen (tmp); 
    319319 
    320           //if (strcmp (tmp + (tmplen - strlen (IPKG_PKG_EXTENSION)), IPKG_PKG_EXTENSION) != 0) 
     320          //if (strcmp (tmp + (tmplen - strlen (OPKG_PKG_EXTENSION)), OPKG_PKG_EXTENSION) != 0) 
    321321          //     continue; 
    322322          //if (strcmp (tmp + (tmplen - strlen (DPKG_PKG_EXTENSION)), DPKG_PKG_EXTENSION) != 0) 
    323323          //     continue; 
    324324         
    325           ipkg_message(conf, IPKG_DEBUG2, "Debug mfs: %s  \n",filename ); 
    326  
    327           err = ipkg_prepare_url_for_install(conf, filename, &argv[i]); 
     325          opkg_message(conf, OPKG_DEBUG2, "Debug mfs: %s  \n",filename ); 
     326 
     327          err = opkg_prepare_url_for_install(conf, filename, &argv[i]); 
    328328          if (err) 
    329329            return err; 
     
    332332} 
    333333 
    334 struct ipkg_intercept 
     334struct opkg_intercept 
    335335{ 
    336336    char *oldpath; 
     
    338338}; 
    339339 
    340 typedef struct ipkg_intercept *ipkg_intercept_t; 
    341  
    342 ipkg_intercept_t ipkg_prep_intercepts(ipkg_conf_t *conf) 
    343 { 
    344     ipkg_intercept_t ctx; 
     340typedef struct opkg_intercept *opkg_intercept_t; 
     341 
     342opkg_intercept_t opkg_prep_intercepts(opkg_conf_t *conf) 
     343{ 
     344    opkg_intercept_t ctx; 
    345345    char *newpath; 
    346346    int gen; 
     
    349349    ctx->oldpath = strdup (getenv ("PATH")); 
    350350 
    351     sprintf_alloc (&newpath, "%s/ipkg/intercept:%s", DATADIR, ctx->oldpath); 
     351    sprintf_alloc (&newpath, "%s/opkg/intercept:%s", DATADIR, ctx->oldpath); 
    352352    setenv ("PATH", newpath, 1); 
    353353    free (newpath); 
     
    355355    gen = 0; 
    356356 retry: 
    357     sprintf_alloc (&ctx->statedir, "/tmp/ipkg-intercept-%d-%d", getpid (), gen); 
     357    sprintf_alloc (&ctx->statedir, "/tmp/opkg-intercept-%d-%d", getpid (), gen); 
    358358    if (mkdir (ctx->statedir, 0770) < 0) { 
    359359        if (errno == EEXIST) { 
     
    365365        return NULL; 
    366366    } 
    367     setenv ("IPKG_INTERCEPT_DIR", ctx->statedir, 1); 
     367    setenv ("OPKG_INTERCEPT_DIR", ctx->statedir, 1); 
    368368    return ctx; 
    369369} 
    370370 
    371 int ipkg_finalize_intercepts(ipkg_intercept_t ctx) 
     371int opkg_finalize_intercepts(opkg_intercept_t ctx) 
    372372{ 
    373373    char *cmd; 
     
    409409} 
    410410 
    411 int ipkg_configure_packages(ipkg_conf_t *conf, char *pkg_name) 
     411int opkg_configure_packages(opkg_conf_t *conf, char *pkg_name) 
    412412{ 
    413413     pkg_vec_t *all; 
    414414     int i; 
    415415     pkg_t *pkg; 
    416      ipkg_intercept_t ic; 
     416     opkg_intercept_t ic; 
    417417     int r, err = 0; 
    418418 
    419      ipkg_message(conf, IPKG_INFO, 
     419     opkg_message(conf, OPKG_INFO, 
    420420                  "Configuring unpacked packages\n"); 
    421421     fflush( stdout ); 
     
    424424     pkg_hash_fetch_available(&conf->pkg_hash, all); 
    425425 
    426      ic = ipkg_prep_intercepts (conf); 
     426     ic = opkg_prep_intercepts (conf); 
    427427     
    428428     for(i = 0; i < all->len; i++) { 
     
    433433 
    434434          if (pkg->state_status == SS_UNPACKED) { 
    435                ipkg_message(conf, IPKG_NOTICE, 
     435               opkg_message(conf, OPKG_NOTICE, 
    436436                            "Configuring %s\n", pkg->name); 
    437437               fflush( stdout ); 
    438                r = ipkg_configure(conf, pkg); 
     438               r = opkg_configure(conf, pkg); 
    439439               if (r == 0) { 
    440440                    pkg->state_status = SS_INSTALLED; 
     
    448448     } 
    449449 
    450      r = ipkg_finalize_intercepts (ic); 
     450     r = opkg_finalize_intercepts (ic); 
    451451     if (r && !err) 
    452452         err = r; 
     
    456456} 
    457457 
    458 static ipkg_conf_t *global_conf; 
     458static opkg_conf_t *global_conf; 
    459459 
    460460static void sigint_handler(int sig) 
    461461{ 
    462462     signal(sig, SIG_DFL); 
    463      ipkg_message(NULL, IPKG_NOTICE, 
    464                   "ipkg: interrupted. writing out status database\n"); 
     463     opkg_message(NULL, OPKG_NOTICE, 
     464                  "opkg: interrupted. writing out status database\n"); 
    465465     write_status_files_if_changed(global_conf); 
    466466     exit(128 + sig); 
    467467} 
    468468 
    469 static int ipkg_install_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     469static int opkg_install_cmd(opkg_conf_t *conf, int argc, char **argv) 
    470470{ 
    471471     int i; 
     
    482482          arg = argv[i]; 
    483483 
    484           ipkg_message(conf, IPKG_DEBUG2, "Debug install_cmd: %s  \n",arg ); 
    485           err = ipkg_prepare_url_for_install(conf, arg, &argv[i]); 
     484          opkg_message(conf, OPKG_DEBUG2, "Debug install_cmd: %s  \n",arg ); 
     485          err = opkg_prepare_url_for_install(conf, arg, &argv[i]); 
    486486          if (err != EINVAL && err != 0) 
    487487              return err; 
     
    492492          arg = argv[i]; 
    493493          if (conf->multiple_providers) 
    494                err = ipkg_install_multi_by_name(conf, arg); 
     494               err = opkg_install_multi_by_name(conf, arg); 
    495495          else{ 
    496                err = ipkg_install_by_name(conf, arg); 
     496               err = opkg_install_by_name(conf, arg); 
    497497          } 
    498           if (err == IPKG_PKG_HAS_NO_CANDIDATE) { 
    499                ipkg_message(conf, IPKG_ERROR, 
     498          if (err == OPKG_PKG_HAS_NO_CANDIDATE) { 
     499               opkg_message(conf, OPKG_ERROR, 
    500500                            "Cannot find package %s.\n" 
    501                             "Check the spelling or perhaps run 'ipkg update'\n", 
     501                            "Check the spelling or perhaps run 'opkg update'\n", 
    502502                            arg); 
    503503          } 
     
    505505 
    506506     /* recheck to verify that all dependences are satisfied */ 
    507      if (0) ipkg_satisfy_all_dependences(conf); 
    508  
    509      ipkg_configure_packages(conf, NULL); 
     507     if (0) opkg_satisfy_all_dependences(conf); 
     508 
     509     opkg_configure_packages(conf, NULL); 
    510510 
    511511     write_status_files_if_changed(conf); 
     
    514514} 
    515515 
    516 static int ipkg_upgrade_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     516static int opkg_upgrade_cmd(opkg_conf_t *conf, int argc, char **argv) 
    517517{ 
    518518     int i; 
     
    527527               char *arg = argv[i]; 
    528528 
    529                err = ipkg_prepare_url_for_install(conf, arg, &arg); 
     529               err = opkg_prepare_url_for_install(conf, arg, &arg); 
    530530               if (err != EINVAL && err != 0) 
    531531                   return err; 
     
    540540                                                                conf->default_dest); 
    541541                    if (pkg == NULL) { 
    542                          ipkg_message(conf, IPKG_NOTICE, 
     542                         opkg_message(conf, OPKG_NOTICE, 
    543543                                      "Package %s not installed in %s\n", 
    544544                                      argv[i], conf->default_dest->name); 
     
    550550               } 
    551551               if (pkg) 
    552                     ipkg_upgrade_pkg(conf, pkg); 
     552                    opkg_upgrade_pkg(conf, pkg); 
    553553               else { 
    554                     ipkg_install_by_name(conf, arg); 
     554                    opkg_install_by_name(conf, arg); 
    555555               } 
    556556          } 
     
    563563          for (i = 0; i < installed->len; i++) { 
    564564               pkg = installed->pkgs[i]; 
    565                ipkg_upgrade_pkg(conf, pkg); 
     565               opkg_upgrade_pkg(conf, pkg); 
    566566          } 
    567567          pkg_vec_free(installed); 
     
    569569 
    570570     /* recheck to verify that all dependences are satisfied */ 
    571      if (0) ipkg_satisfy_all_dependences(conf); 
    572  
    573      ipkg_configure_packages(conf, NULL); 
     571     if (0) opkg_satisfy_all_dependences(conf); 
     572 
     573     opkg_configure_packages(conf, NULL); 
    574574 
    575575     write_status_files_if_changed(conf); 
     
    578578} 
    579579 
    580 static int ipkg_download_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     580static int opkg_download_cmd(opkg_conf_t *conf, int argc, char **argv) 
    581581{ 
    582582     int i, err; 
     
    590590          pkg = pkg_hash_fetch_best_installation_candidate_by_name(conf, arg); 
    591591          if (pkg == NULL) { 
    592                ipkg_message(conf, IPKG_ERROR, 
     592               opkg_message(conf, OPKG_ERROR, 
    593593                            "Cannot find package %s.\n" 
    594                             "Check the spelling or perhaps run 'ipkg update'\n", 
     594                            "Check the spelling or perhaps run 'opkg update'\n", 
    595595                            arg); 
    596596               continue; 
    597597          } 
    598598 
    599           err = ipkg_download_pkg(conf, pkg, "."); 
     599          err = opkg_download_pkg(conf, pkg, "."); 
    600600 
    601601          if (err) { 
    602                ipkg_message(conf, IPKG_ERROR, 
     602               opkg_message(conf, OPKG_ERROR, 
    603603                            "Failed to download %s\n", pkg->name); 
    604604          } else { 
    605                ipkg_message(conf, IPKG_NOTICE, 
     605               opkg_message(conf, OPKG_NOTICE, 
    606606                            "Downloaded %s as %s\n", 
    607607                            pkg->name, pkg->local_filename); 
     
    613613 
    614614 
    615 static int ipkg_list_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     615static int opkg_list_cmd(opkg_conf_t *conf, int argc, char **argv) 
    616616{ 
    617617     int i ; 
    618618     pkg_vec_t *available; 
    619619     pkg_t *pkg; 
    620      char desc_short[IPKG_LIST_DESCRIPTION_LENGTH]; 
     620     char desc_short[OPKG_LIST_DESCRIPTION_LENGTH]; 
    621621     char *newline; 
    622622     char *pkg_name = NULL; 
     
    634634               continue; 
    635635          if (pkg->description) { 
    636                strncpy(desc_short, pkg->description, IPKG_LIST_DESCRIPTION_LENGTH); 
     636               strncpy(desc_short, pkg->description, OPKG_LIST_DESCRIPTION_LENGTH); 
    637637          } else { 
    638638               desc_short[0] = '\0'; 
    639639          } 
    640           desc_short[IPKG_LIST_DESCRIPTION_LENGTH - 1] = '\0'; 
     640          desc_short[OPKG_LIST_DESCRIPTION_LENGTH - 1] = '\0'; 
    641641          newline = strchr(desc_short, '\n'); 
    642642          if (newline) { 
    643643               *newline = '\0'; 
    644644          } 
    645 #ifndef IPKG_LIB 
     645#ifndef OPKG_LIB 
    646646          printf("%s - %s\n", pkg->name, desc_short); 
    647647#else 
    648           if (ipkg_cb_list) { 
     648          if (opkg_cb_list) { 
    649649                version_str = pkg_version_str_alloc(pkg); 
    650                 ipkg_cb_list(pkg->name,desc_short, 
     650                opkg_cb_list(pkg->name,desc_short, 
    651651                                             version_str, 
    652652                                         pkg->state_status, 
     
    662662 
    663663 
    664 static int ipkg_list_installed_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     664static int opkg_list_installed_cmd(opkg_conf_t *conf, int argc, char **argv) 
    665665{ 
    666666     int i ; 
    667667     pkg_vec_t *available; 
    668668     pkg_t *pkg; 
    669      char desc_short[IPKG_LIST_DESCRIPTION_LENGTH]; 
     669     char desc_short[OPKG_LIST_DESCRIPTION_LENGTH]; 
    670670     char *newline; 
    671671     char *pkg_name = NULL; 
     
    683683               continue; 
    684684          if (pkg->description) { 
    685                strncpy(desc_short, pkg->description, IPKG_LIST_DESCRIPTION_LENGTH); 
     685               strncpy(desc_short, pkg->description, OPKG_LIST_DESCRIPTION_LENGTH); 
    686686          } else { 
    687687               desc_short[0] = '\0'; 
    688688          } 
    689           desc_short[IPKG_LIST_DESCRIPTION_LENGTH - 1] = '\0'; 
     689          desc_short[OPKG_LIST_DESCRIPTION_LENGTH - 1] = '\0'; 
    690690          newline = strchr(desc_short, '\n'); 
    691691          if (newline) { 
    692692               *newline = '\0'; 
    693693          } 
    694 #ifndef IPKG_LIB 
     694#ifndef OPKG_LIB 
    695695          printf("%s - %s\n", pkg->name, desc_short); 
    696696#else 
    697           if (ipkg_cb_list) { 
     697          if (opkg_cb_list) { 
    698698                version_str = pkg_version_str_alloc(pkg); 
    699                 ipkg_cb_list(pkg->name,desc_short, 
     699                opkg_cb_list(pkg->name,desc_short, 
    700700                                             version_str, 
    701701                                         pkg->state_status, 
     
    709709} 
    710710 
    711 static int ipkg_info_status_cmd(ipkg_conf_t *conf, int argc, char **argv, int installed_only) 
     711static int opkg_info_status_cmd(opkg_conf_t *conf, int argc, char **argv, int installed_only) 
    712712{ 
    713713     int i; 
     
    737737               continue; 
    738738          } 
    739 #ifndef IPKG_LIB 
     739#ifndef OPKG_LIB 
    740740          if (n_fields) { 
    741741               for (j = 0; j < n_fields; j++) 
     
    748748          buff = pkg_formatted_info(pkg); 
    749749          if ( buff ) { 
    750                if (ipkg_cb_status) ipkg_cb_status(pkg->name, 
     750               if (opkg_cb_status) opkg_cb_status(pkg->name, 
    751751                                                  pkg->state_status, 
    752752                                                  buff, 
     
    764764                    conffile_t *cf = iter->data; 
    765765                    int modified = conffile_has_been_modified(conf, cf); 
    766                     ipkg_message(conf, IPKG_NOTICE, "conffile=%s md5sum=%s modified=%d\n", 
     766                    opkg_message(conf, OPKG_NOTICE, "conffile=%s md5sum=%s modified=%d\n", 
    767767                                 cf->name, cf->value, modified); 
    768768               } 
    769769          } 
    770770     } 
    771 #ifndef IPKG_LIB 
     771#ifndef OPKG_LIB 
    772772     if (buff) 
    773773          free(buff); 
     
    778778} 
    779779 
    780 static int ipkg_info_cmd(ipkg_conf_t *conf, int argc, char **argv) 
    781 { 
    782      return ipkg_info_status_cmd(conf, argc, argv, 0); 
    783 } 
    784  
    785 static int ipkg_status_cmd(ipkg_conf_t *conf, int argc, char **argv) 
    786 { 
    787      return ipkg_info_status_cmd(conf, argc, argv, 1); 
    788 } 
    789  
    790 static int ipkg_configure_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     780static int opkg_info_cmd(opkg_conf_t *conf, int argc, char **argv) 
     781{ 
     782     return opkg_info_status_cmd(conf, argc, argv, 0); 
     783} 
     784 
     785static int opkg_status_cmd(opkg_conf_t *conf, int argc, char **argv) 
     786{ 
     787     return opkg_info_status_cmd(conf, argc, argv, 1); 
     788} 
     789 
     790static int opkg_configure_cmd(opkg_conf_t *conf, int argc, char **argv) 
    791791{ 
    792792      
     
    797797          pkg_name = argv[0]; 
    798798 
    799           err = ipkg_configure_packages (conf, pkg_name); 
     799          err = opkg_configure_packages (conf, pkg_name); 
    800800      
    801801     } else { 
    802           err = ipkg_configure_packages (conf, NULL); 
     802          err = opkg_configure_packages (conf, NULL); 
    803803     } 
    804804 
     
    808808} 
    809809 
    810 static int ipkg_install_pending_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     810static int opkg_install_pending_cmd(opkg_conf_t *conf, int argc, char **argv) 
    811811{ 
    812812     int i, err; 
     
    814814     glob_t globbuf; 
    815815     
    816      sprintf_alloc(&globpattern, "%s/*" IPKG_PKG_EXTENSION, conf->pending_dir); 
     816     sprintf_alloc(&globpattern, "%s/*" OPKG_PKG_EXTENSION, conf->pending_dir); 
    817817     err = glob(globpattern, 0, NULL, &globbuf); 
    818818     free(globpattern); 
     
    821821     } 
    822822 
    823      ipkg_message(conf, IPKG_NOTICE, 
     823     opkg_message(conf, OPKG_NOTICE, 
    824824                  "The following packages in %s will now be installed.\n", 
    825825                  conf->pending_dir); 
    826826     for (i = 0; i < globbuf.gl_pathc; i++) { 
    827           ipkg_message(conf, IPKG_NOTICE, 
     827          opkg_message(conf, OPKG_NOTICE, 
    828828                       "%s%s", i == 0 ? "" : " ", globbuf.gl_pathv[i]); 
    829829     } 
    830      ipkg_message(conf, IPKG_NOTICE, "\n"); 
     830     opkg_message(conf, OPKG_NOTICE, "\n"); 
    831831     for (i = 0; i < globbuf.gl_pathc; i++) { 
    832           err = ipkg_install_from_file(conf, globbuf.gl_pathv[i]); 
     832          err = opkg_install_from_file(conf, globbuf.gl_pathv[i]); 
    833833          if (err == 0) { 
    834834               err = unlink(globbuf.gl_pathv[i]); 
    835835               if (err) { 
    836                     ipkg_message(conf, IPKG_ERROR, 
     836                    opkg_message(conf, OPKG_ERROR, 
    837837                                 "%s: ERROR: failed to unlink %s: %s\n", 
    838838                                 __FUNCTION__, globbuf.gl_pathv[i], strerror(err)); 
     
    846846} 
    847847 
    848 static int ipkg_remove_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     848static int opkg_remove_cmd(opkg_conf_t *conf, int argc, char **argv) 
    849849{ 
    850850     int i,a,done; 
     
    881881         
    882882               if (pkg == NULL) { 
    883                     ipkg_message(conf, IPKG_ERROR, "Package %s is not installed.\n", pkg->name); 
     883                    opkg_message(conf, OPKG_ERROR, "Package %s is not installed.\n", pkg->name); 
    884884                    continue; 
    885885               } 
    886886               if (pkg->state_status == SS_NOT_INSTALLED) {    // Added the control, so every already removed package could be skipped 
    887                     ipkg_message(conf, IPKG_ERROR, "Package seems to be %s not installed (STATUS = NOT_INSTALLED).\n", pkg->name); 
     887                    opkg_message(conf, OPKG_ERROR, "Package seems to be %s not installed (STATUS = NOT_INSTALLED).\n", pkg->name); 
    888888                    continue; 
    889889               } 
    890                ipkg_remove_pkg(conf, pkg_to_remove,0); 
     890               opkg_remove_pkg(conf, pkg_to_remove,0); 
    891891               done = 1; 
    892892           } 
     
    908908               } else { 
    909909                    if (!pkg_has_installed_dependents(conf, pkg->parent, pkg, NULL)) 
    910                          ipkg_message(conf, IPKG_NOTICE, "Non-user leaf package: %s\n", pkg->name); 
     910                         opkg_message(conf, OPKG_NOTICE, "Non-user leaf package: %s\n", pkg->name); 
    911911               } 
    912912          } 
    913913          if (!flagged_pkg_count) { 
    914                ipkg_message(conf, IPKG_NOTICE, "No packages flagged as installed by user, \n" 
     914               opkg_message(conf, OPKG_NOTICE, "No packages flagged as installed by user, \n" 
    915915                            "so refusing to uninstall unflagged non-leaf packages\n"); 
    916916               return 0; 
     
    927927                        && !pkg_has_installed_dependents(conf, pkg->parent, pkg, NULL)) { 
    928928                         removed++; 
    929                          ipkg_message(conf, IPKG_NOTICE, "Removing non-user leaf package %s\n"); 
    930                          ipkg_remove_pkg(conf, pkg,0); 
     929                         opkg_message(conf, OPKG_NOTICE, "Removing non-user leaf package %s\n"); 
     930                         opkg_remove_pkg(conf, pkg,0); 
    931931                         done = 1; 
    932932                    } 
     
    937937 
    938938     if ( done == 0 )  
    939         ipkg_message(conf, IPKG_NOTICE, "No packages removed.\n"); 
     939        opkg_message(conf, OPKG_NOTICE, "No packages removed.\n"); 
    940940 
    941941     write_status_files_if_changed(conf); 
     
    943943} 
    944944 
    945 static int ipkg_purge_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     945static int opkg_purge_cmd(opkg_conf_t *conf, int argc, char **argv) 
    946946{ 
    947947     int i; 
     
    963963 
    964964          if (pkg == NULL) { 
    965                ipkg_message(conf, IPKG_ERROR, 
     965               opkg_message(conf, OPKG_ERROR, 
    966966                            "Package %s is not installed.\n", argv[i]); 
    967967               continue; 
    968968          } 
    969           ipkg_purge_pkg(conf, pkg); 
     969          opkg_purge_pkg(conf, pkg); 
    970970     } 
    971971 
     
    974974} 
    975975 
    976 static int ipkg_flag_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     976static int opkg_flag_cmd(opkg_conf_t *conf, int argc, char **argv) 
    977977{ 
    978978     int i; 
     
    993993 
    994994          if (pkg == NULL) { 
    995                ipkg_message(conf, IPKG_ERROR, 
     995               opkg_message(conf, OPKG_ERROR, 
    996996                            "Package %s is not installed.\n", argv[i]); 
    997997               continue; 
     
    10061006              pkg->state_status = pkg_state_status_from_str(flags); 
    10071007          } 
    1008           ipkg_state_changed++; 
    1009           ipkg_message(conf, IPKG_NOTICE, 
     1008          opkg_state_changed++; 
     1009          opkg_message(conf, OPKG_NOTICE, 
    10101010                       "Setting flags for package %s to %s\n", 
    10111011                       pkg->name, flags); 
     
    10161016} 
    10171017 
    1018 static int ipkg_files_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     1018static int opkg_files_cmd(opkg_conf_t *conf, int argc, char **argv) 
    10191019{ 
    10201020     pkg_t *pkg; 
     
    10391039                                            argv[0]); 
    10401040     if (pkg == NULL) { 
    1041           ipkg_message(conf, IPKG_ERROR, 
     1041          opkg_message(conf, OPKG_ERROR, 
    10421042                       "Package %s not installed.\n", argv[0]); 
    10431043          return 0; 
     
    10471047     pkg_version = pkg_version_str_alloc(pkg); 
    10481048 
    1049 #ifndef IPKG_LIB 
     1049#ifndef OPKG_LIB 
    10501050     printf("Package %s (%s) is installed on %s and has the following files:\n", 
    10511051            pkg->name, pkg_version, pkg->dest->name); 
     
    10721072               strncat(buff, "\n", buff_len); 
    10731073          }  
    1074           if (ipkg_cb_list) ipkg_cb_list(pkg->name, 
     1074          if (opkg_cb_list) opkg_cb_list(pkg->name, 
    10751075                                         buff, 
    10761076                                         pkg_version_str_alloc(pkg), 
     
    10871087} 
    10881088 
    1089 static int ipkg_depends_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     1089static int opkg_depends_cmd(opkg_conf_t *conf, int argc, char **argv) 
    10901090{ 
    10911091 
     
    11051105               int j; 
    11061106 
    1107                ipkg_message(conf, IPKG_ERROR, "target=%s\n", target); 
     1107               opkg_message(conf, OPKG_ERROR, "target=%s\n", target); 
    11081108 
    11091109               for (j = 0; j < available_pkgs->len; j++) { 
     
    11121112                         int k; 
    11131113                         int count = pkg->depends_count + pkg->pre_depends_count; 
    1114                          ipkg_message(conf, IPKG_ERROR, "What %s (arch=%s) %s\n", 
     1114                         opkg_message(conf, OPKG_ERROR, "What %s (arch=%s) %s\n", 
    11151115                                      target, pkg->architecture, rel_str); 
    11161116                         for (k = 0; k < count; k++) { 
     
    11191119                              for (l = 0; l < cdepend->possibility_count; l++) { 
    11201120                                   depend_t *possibility = cdepend->possibilities[l]; 
    1121                                    ipkg_message(conf, IPKG_ERROR, "    %s", possibility->pkg->name); 
     1121                                   opkg_message(conf, OPKG_ERROR, "    %s", possibility->pkg->name); 
    11221122                                   if (conf->verbosity > 0) { 
    11231123                                        // char *ver = abstract_pkg_version_str_alloc(possibility->pkg);  
    1124                                         ipkg_message(conf, IPKG_NOTICE, " %s", possibility->version); 
     1124                                        opkg_message(conf, OPKG_NOTICE, " %s", possibility->version); 
    11251125                                        if (possibility->version) { 
    11261126                                             char *typestr = NULL; 
     
    11331133                                             case LATER: typestr = ">"; break; 
    11341134                                             } 
    1135                                              ipkg_message(conf, IPKG_NOTICE, " (%s %s)", typestr, possibility->version); 
     1135                                             opkg_message(conf, OPKG_NOTICE, " (%s %s)", typestr, possibility->version); 
    11361136                                        } 
    11371137                                        // free(ver); 
    11381138                                   } 
    1139                                    ipkg_message(conf, IPKG_ERROR, "\n"); 
     1139                                   opkg_message(conf, OPKG_ERROR, "\n"); 
    11401140                              } 
    11411141                         } 
     
    11571157}; 
    11581158 
    1159 static int ipkg_what_depends_conflicts_cmd(ipkg_conf_t *conf, enum what_field_type what_field_type, int recursive, int argc, char **argv) 
     1159static int opkg_what_depends_conflicts_cmd(opkg_conf_t *conf, enum what_field_type what_field_type, int recursive, int argc, char **argv) 
    11601160{ 
    11611161 
     
    11821182          /* mark the root set */ 
    11831183          pkg_vec_clear_marks(available_pkgs); 
    1184           ipkg_message(conf, IPKG_NOTICE, "Root set:\n"); 
     1184          opkg_message(conf, OPKG_NOTICE, "Root set:\n"); 
    11851185          for (i = 0; i < argc; i++) { 
    11861186               const char *dependee_pattern = argv[i]; 
     
    11921192                    /* mark the parent (abstract) package */ 
    11931193                    pkg_mark_provides(pkg); 
    1194                     ipkg_message(conf, IPKG_NOTICE, "  %s\n", pkg->name); 
     1194                    opkg_message(conf, OPKG_NOTICE, "  %s\n", pkg->name); 
    11951195               } 
    11961196          } 
    11971197 
    1198           ipkg_message(conf, IPKG_NOTICE, "What %s root set\n", rel_str); 
     1198          opkg_message(conf, OPKG_NOTICE, "What %s root set\n", rel_str); 
    11991199          do { 
    12001200               int j; 
     
    12231223                                   changed++; 
    12241224 
    1225                                    ipkg_message(conf, IPKG_NOTICE, "    %s", pkg->name); 
     1225                                   opkg_message(conf, OPKG_NOTICE, "    %s", pkg->name); 
    12261226                                   if (conf->verbosity > 0) { 
    12271227                                        char *ver = pkg_version_str_alloc(pkg);  
    1228                                         ipkg_message(conf, IPKG_NOTICE, " %s", ver); 
    1229                                         ipkg_message(conf, IPKG_NOTICE, "\t%s %s", rel_str, possibility->pkg->name); 
     1228                                        opkg_message(conf, OPKG_NOTICE, " %s", ver); 
     1229                                        opkg_message(conf, OPKG_NOTICE, "\t%s %s", rel_str, possibility->pkg->name); 
    12301230                                        if (possibility->version) { 
    12311231                                             char *typestr = NULL; 
     
    12381238                                             case LATER: typestr = ">"; break; 
    12391239                                             } 
    1240                                              ipkg_message(conf, IPKG_NOTICE, " (%s %s)", typestr, possibility->version); 
     1240                                             opkg_message(conf, OPKG_NOTICE, " (%s %s)", typestr, possibility->version); 
    12411241                                        } 
    12421242                                        free(ver); 
    12431243                                        if (!pkg_dependence_satisfiable(conf, possibility)) 
    1244                                              ipkg_message(conf, IPKG_NOTICE, " unsatisfiable"); 
     1244                                             opkg_message(conf, OPKG_NOTICE, " unsatisfiable"); 
    12451245                                   } 
    1246                                    ipkg_message(conf, IPKG_NOTICE, "\n"); 
     1246                                   opkg_message(conf, OPKG_NOTICE, "\n"); 
    12471247                                   goto next_package; 
    12481248                              } 
     
    12711271} 
    12721272 
    1273 static int ipkg_whatdepends_recursively_cmd(ipkg_conf_t *conf, int argc, char **argv) 
    1274 { 
    1275      return ipkg_what_depends_conflicts_cmd(conf, WHATDEPENDS, 1, argc, argv); 
    1276 } 
    1277 static int ipkg_whatdepends_cmd(ipkg_conf_t *conf, int argc, char **argv) 
    1278 { 
    1279      return ipkg_what_depends_conflicts_cmd(conf, WHATDEPENDS, 0, argc, argv); 
    1280 } 
    1281  
    1282 static int ipkg_whatsuggests_cmd(ipkg_conf_t *conf, int argc, char **argv) 
    1283 { 
    1284      return ipkg_what_depends_conflicts_cmd(conf, WHATSUGGESTS, 0, argc, argv); 
    1285 } 
    1286  
    1287 static int ipkg_whatrecommends_cmd(ipkg_conf_t *conf, int argc, char **argv) 
    1288 { 
    1289      return ipkg_what_depends_conflicts_cmd(conf, WHATRECOMMENDS, 0, argc, argv); 
    1290 } 
    1291  
    1292 static int ipkg_whatconflicts_cmd(ipkg_conf_t *conf, int argc, char **argv) 
    1293 { 
    1294      return ipkg_what_depends_conflicts_cmd(conf, WHATCONFLICTS, 0, argc, argv); 
    1295 } 
    1296  
    1297 static int ipkg_what_provides_replaces_cmd(ipkg_conf_t *conf, enum what_field_type what_field_type, int argc, char **argv) 
     1273static int opkg_whatdepends_recursively_cmd(opkg_conf_t *conf, int argc, char **argv) 
     1274{ 
     1275     return opkg_what_depends_conflicts_cmd(conf, WHATDEPENDS, 1, argc, argv); 
     1276} 
     1277static int opkg_whatdepends_cmd(opkg_conf_t *conf, int argc, char **argv) 
     1278{ 
     1279     return opkg_what_depends_conflicts_cmd(conf, WHATDEPENDS, 0, argc, argv); 
     1280} 
     1281 
     1282static int opkg_whatsuggests_cmd(opkg_conf_t *conf, int argc, char **argv) 
     1283{ 
     1284     return opkg_what_depends_conflicts_cmd(conf, WHATSUGGESTS, 0, argc, argv); 
     1285} 
     1286 
     1287static int opkg_whatrecommends_cmd(opkg_conf_t *conf, int argc, char **argv) 
     1288{ 
     1289     return opkg_what_depends_conflicts_cmd(conf, WHATRECOMMENDS, 0, argc, argv); 
     1290} 
     1291 
     1292static int opkg_whatconflicts_cmd(opkg_conf_t *conf, int argc, char **argv) 
     1293{ 
     1294     return opkg_what_depends_conflicts_cmd(conf, WHATCONFLICTS, 0, argc, argv); 
     1295} 
     1296 
     1297static int opkg_what_provides_replaces_cmd(opkg_conf_t *conf, enum what_field_type what_field_type, int argc, char **argv) 
    12981298{ 
    12991299 
     
    13131313               int j; 
    13141314 
    1315                ipkg_message(conf, IPKG_ERROR, "What %s %s\n", 
     1315               opkg_message(conf, OPKG_ERROR, "What %s %s\n", 
    13161316                            rel_str, target); 
    13171317               for (j = 0; j < available_pkgs->len; j++) { 
     
    13251325                               : pkg->replaces[k]); 
    13261326                         if (fnmatch(target, apkg->name, 0) == 0) { 
    1327                               ipkg_message(conf, IPKG_ERROR, "    %s", pkg->name); 
     1327                              opkg_message(conf, OPKG_ERROR, "    %s", pkg->name); 
    13281328                              if (strcmp(target, apkg->name) != 0) 
    1329                                    ipkg_message(conf, IPKG_ERROR, "\t%s %s\n", rel_str, apkg->name); 
    1330                               ipkg_message(conf, IPKG_ERROR, "\n"); 
     1329                                   opkg_message(conf, OPKG_ERROR, "\t%s %s\n", rel_str, apkg->name); 
     1330                              opkg_message(conf, OPKG_ERROR, "\n"); 
    13311331                         } 
    13321332                    } 
     
    13381338} 
    13391339 
    1340 static int ipkg_whatprovides_cmd(ipkg_conf_t *conf, int argc, char **argv) 
    1341 { 
    1342      return ipkg_what_provides_replaces_cmd(conf, WHATPROVIDES, argc, argv); 
    1343 } 
    1344  
    1345 static int ipkg_whatreplaces_cmd(ipkg_conf_t *conf, int argc, char **argv) 
    1346 { 
    1347      return ipkg_what_provides_replaces_cmd(conf, WHATREPLACES, argc, argv); 
    1348 } 
    1349  
    1350 static int ipkg_search_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     1340static int opkg_whatprovides_cmd(opkg_conf_t *conf, int argc, char **argv) 
     1341{ 
     1342     return opkg_what_provides_replaces_cmd(conf, WHATPROVIDES, argc, argv); 
     1343} 
     1344 
     1345static int opkg_whatreplaces_cmd(opkg_conf_t *conf, int argc, char **argv) 
     1346{ 
     1347     return opkg_what_provides_replaces_cmd(conf, WHATREPLACES, argc, argv); 
     1348} 
     1349 
     1350static int opkg_search_cmd(opkg_conf_t *conf, int argc, char **argv) 
    13511351{ 
    13521352     int i; 
     
    13731373               installed_file = iter->data; 
    13741374               if (fnmatch(argv[0], installed_file, 0)==0)  { 
    1375 #ifndef IPKG_LIB 
     1375#ifndef OPKG_LIB 
    13761376                    printf("%s: %s\n", pkg->name, installed_file); 
    13771377#else 
    1378                         if (ipkg_cb_list) ipkg_cb_list(pkg->name,  
     1378                        if (opkg_cb_list) opkg_cb_list(pkg->name,  
    13791379                                                       installed_file,  
    13801380                                                       pkg_version_str_alloc(pkg),  
     
    13951395} 
    13961396 
    1397 static int ipkg_compare_versions_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     1397static int opkg_compare_versions_cmd(opkg_conf_t *conf, int argc, char **argv) 
    13981398{ 
    13991399     if (argc == 3) { 
     
    14041404          return pkg_version_satisfied(&p1, &p2, argv[1]); 
    14051405     } else { 
    1406           ipkg_message(conf, IPKG_ERROR, 
    1407                        "ipkg compare_versions <v1> <op> <v2>\n" 
     1406          opkg_message(conf, OPKG_ERROR, 
     1407                       "opkg compare_versions <v1> <op> <v2>\n" 
    14081408                       "<op> is one of <= >= << >> =\n"); 
    14091409          return -1; 
     
    14171417#endif 
    14181418 
    1419 static int ipkg_print_architecture_cmd(ipkg_conf_t *conf, int argc, char **argv) 
     1419static int opkg_print_architecture_cmd(opkg_conf_t *conf, int argc, char **argv) 
    14201420{ 
    14211421     nv_pair_list_elt_t *l; 
  • trunk/src/target/ipkg/opkg_cmd.h

    r3877 r3879  
    1 /* ipkg_cmd.h - the itsy package management system 
     1/* opkg_cmd.h - the itsy package management system 
    22 
    33   Carl D. Worth 
     
    1616*/ 
    1717 
    18 #ifndef IPKG_CMD_H 
    19 #define IPKG_CMD_H 
     18#ifndef OPKG_CMD_H 
     19#define OPKG_CMD_H 
    2020 
    21 typedef int (*ipkg_cmd_fun_t)(ipkg_conf_t *conf, int argc, const char **argv); 
     21typedef int (*opkg_cmd_fun_t)(opkg_conf_t *conf, int argc, const char **argv); 
    2222 
    23 struct ipkg_cmd 
     23struct opkg_cmd 
    2424{ 
    2525    char *name; 
    2626    int requires_args; 
    27     ipkg_cmd_fun_t fun; 
     27    opkg_cmd_fun_t fun; 
    2828}; 
    29 typedef struct ipkg_cmd ipkg_cmd_t; 
     29typedef struct opkg_cmd opkg_cmd_t; 
    3030 
    31 ipkg_cmd_t *ipkg_cmd_find(const char *name); 
    32 #ifdef IPKG_LIB 
    33 int ipkg_cmd_exec(ipkg_cmd_t *cmd, ipkg_conf_t *conf, int argc,  
     31opkg_cmd_t *opkg_cmd_find(const char *name); 
     32#ifdef OPKG_LIB 
     33int opkg_cmd_exec(opkg_cmd_t *cmd, opkg_conf_t *conf, int argc,  
    3434                  const char **argv, void *userdata); 
    3535#else 
    36 int ipkg_cmd_exec(ipkg_cmd_t *cmd, ipkg_conf_t *conf, int argc, const char **argv); 
     36int opkg_cmd_exec(opkg_cmd_t *cmd, opkg_conf_t *conf, int argc, const char **argv); 
    3737#endif 
    38 int ipkg_multiple_files_scan (ipkg_conf_t *conf, int argc, char *argv[]); 
     38int opkg_multiple_files_scan (opkg_conf_t *conf, int argc, char *argv[]); 
    3939/* install any packges with state_want == SW_INSTALL */ 
    40 int ipkg_install_wanted_packages(ipkg_conf_t *conf); 
     40int opkg_install_wanted_packages(opkg_conf_t *conf); 
    4141/* ensure that all dependences are satisfied */ 
    42 int ipkg_configure_packages(ipkg_conf_t *conf, char *pkg_name); 
     42int opkg_configure_packages(opkg_conf_t *conf, char *pkg_name); 
    4343 
    4444int pkg_mark_provides(pkg_t *pkg); 
  • trunk/src/target/ipkg/opkg_conf.c

    <
    r3877 r3879  
    1 /* ipkg_conf.c - the itsy package management system 
     1/* opkg_conf.c - the itsy package management system 
    22 
    33   Carl D. Worth 
     
    1818#include <glob.h> 
    1919 
    20 #include "ipkg.h" 
    21 #include "ipkg_conf.h" 
     20#include "opkg.h" 
     21#include "opkg_conf.h" 
    2222 
    2323#include "xregex.h" 
    2424#include "sprintf_alloc.h" 
    25 #include "ipkg_conf.h" 
    26 #include "ipkg_message.h" 
     25#include "opkg_conf.h" 
     26#include "opkg_message.h" 
    2727#include "file_util.h" 
    2828#include "str_util.h" 
    2929#include "xsystem.h" 
    3030 
    31 static int ipkg_conf_parse_file(ipkg_conf_t *conf, const char *filename, 
     31static int opkg_conf_parse_file(opkg_conf_t *conf, const char *filename, 
    3232                                pkg_src_list_t *pkg_src_list, 
    3333                                nv_pair_list_t *tmp_dest_nv_pair_list, 
    3434                                char **tmp_lists_dir); 
    35 static int ipkg_init_options_array(const ipkg_conf_t *conf, ipkg_option_t **options); 
    36 static int ipkg_conf_set_option(const ipkg_option_t *options, 
     35static int opkg_init_options_array(const opkg_conf_t *conf, opkg_option_t **options); 
     36static int opkg_conf_set_option(const opkg_option_t *options, 
    3737                                const char *name, const char *value); 
    38 static int ipkg_conf_set_default_dest(ipkg_conf_t *conf, 
     38static int opkg_conf_set_default_dest(opkg_conf_t *conf, 
    3939                                      const char *default_dest_name); 
    40 static int set_and_load_pkg_src_list(ipkg_conf_t *conf, 
     40static int set_and_load_pkg_src_list(opkg_conf_t *conf, 
    4141                                     pkg_src_list_t *nv_pair_list); 
    42 static int set_and_load_pkg_dest_list(ipkg_conf_t *conf, 
     42static int set_and_load_pkg_dest_list(opkg_conf_t *conf, 
    4343                                      nv_pair_list_t *nv_pair_list, char * lists_dir); 
    4444 
    45 int ipkg_init_options_array(const ipkg_conf_t *conf, ipkg_option_t **options) 
    46 { 
    47      ipkg_option_t tmp[] = { 
    48           { "force_defaults", IPKG_OPT_TYPE_BOOL, &conf->force_defaults }, 
    49           { "force_depends", IPKG_OPT_TYPE_BOOL, &conf->force_depends }, 
    50           { "force_overwrite", IPKG_OPT_TYPE_BOOL, &conf->force_overwrite }, 
    51           { "force_downgrade", IPKG_OPT_TYPE_BOOL, &conf->force_downgrade }, 
    52           { "force_reinstall", IPKG_OPT_TYPE_BOOL, &conf->force_reinstall }, 
    53           { "force_space", IPKG_OPT_TYPE_BOOL, &conf->force_space }, 
    54           { "ftp_proxy", IPKG_OPT_TYPE_STRING, &conf->ftp_proxy }, 
    55           { "http_proxy", IPKG_OPT_TYPE_STRING, &conf->http_proxy }, 
    56           { "multiple_providers", IPKG_OPT_TYPE_BOOL, &conf->multiple_providers }, 
    57           { "no_proxy", IPKG_OPT_TYPE_STRING, &conf->no_proxy }, 
    58           { "test", IPKG_OPT_TYPE_INT, &conf->noaction }, 
    59           { "noaction", IPKG_OPT_TYPE_INT, &conf->noaction }, 
    60           { "nodeps", IPKG_OPT_TYPE_BOOL, &conf->nodeps }, 
    61           { "offline_root", IPKG_OPT_TYPE_STRING, &conf->offline_root }, 
    62           { "offline_root_post_script_cmd", IPKG_OPT_TYPE_STRING, &conf->offline_root_post_script_cmd }, 
    63           { "offline_root_pre_script_cmd", IPKG_OPT_TYPE_STRING, &conf->offline_root_pre_script_cmd }, 
    64           { "proxy_passwd", IPKG_OPT_TYPE_STRING, &conf->proxy_passwd }, 
    65           { "proxy_user", IPKG_OPT_TYPE_STRING, &conf->proxy_user }, 
    66           { "query-all", IPKG_OPT_TYPE_BOOL, &conf->query_all }, 
    67           { "verbose-wget", IPKG_OPT_TYPE_BOOL, &conf->verbose_wget }, 
    68           { "verbosity", IPKG_OPT_TYPE_BOOL, &conf->verbosity }, 
     45int opkg_init_options_array(const opkg_conf_t *conf, opkg_option_t **options) 
     46{ 
     47     opkg_option_t tmp[] = { 
     48          { "force_defaults", OPKG_OPT_TYPE_BOOL, &conf->force_defaults }, 
     49          { "force_depends", OPKG_OPT_TYPE_BOOL, &conf->force_depends }, 
     50          { "force_overwrite", OPKG_OPT_TYPE_BOOL, &conf->force_overwrite }, 
     51          { "force_downgrade", OPKG_OPT_TYPE_BOOL, &conf->force_downgrade }, 
     52          { "force_reinstall", OPKG_OPT_TYPE_BOOL, &conf->force_reinstall }, 
     53          { "force_space", OPKG_OPT_TYPE_BOOL, &conf->force_space }, 
     54          { "ftp_proxy", OPKG_OPT_TYPE_STRING, &conf->ftp_proxy }, 
     55          { "http_proxy", OPKG_OPT_TYPE_STRING, &conf->http_proxy }, 
     56          { "multiple_providers", OPKG_OPT_TYPE_BOOL, &conf->multiple_providers }, 
     57          { "no_proxy", OPKG_OPT_TYPE_STRING, &conf->no_proxy }, 
     58          { "test", OPKG_OPT_TYPE_INT, &conf->noaction }, 
     59          { "noaction", OPKG_OPT_TYPE_INT, &conf->noaction }, 
     60          { "nodeps", OPKG_OPT_TYPE_BOOL, &conf->nodeps }, 
     61          { "offline_root", OPKG_OPT_TYPE_STRING, &conf->offline_root }, 
     62          { "offline_root_post_script_cmd", OPKG_OPT_TYPE_STRING, &conf->offline_root_post_script_cmd }, 
     63          { "offline_root_pre_script_cmd", OPKG_OPT_TYPE_STRING, &conf->offline_root_pre_script_cmd }, 
     64          { "proxy_passwd", OPKG_OPT_TYPE_STRING, &conf->proxy_passwd }, 
     65          { "proxy_user", OPKG_OPT_TYPE_STRING, &conf->proxy_user }, 
     66          { "query-all", OPKG_OPT_TYPE_BOOL, &conf->query_all }, 
     67          { "verbose-wget", OPKG_OPT_TYPE_BOOL, &conf->verbose_wget }, 
     68          { "verbosity", OPKG_OPT_TYPE_BOOL, &conf->verbosity }, 
    6969          { NULL } 
    7070     }; 
    7171 
    72      *options = (ipkg_option_t *)malloc(sizeof(tmp)); 
     72     *options = (opkg_option_t *)malloc(sizeof(tmp)); 
    7373     if ( options == NULL ){ 
    7474        fprintf(stderr,"%s: Unable to allocate memory\n",__FUNCTION__); 
     
    8080}; 
    8181