aboutsummaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_conf.h
AgeCommit message (Collapse)Author
2013-12-17libopkg: cleanup inside the public header filesCarsten Schoenert
No functional changes! Just a cleanup like whitespaces, blank lines, tabs and reformating lines longer 76 characters. Also adding the missed comments at the closing bracket from the #ifndef HEADER_FOO_H ... #endif loop. This helps to identify the associated preprocessor elements like theay already exits in some files. Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com> Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-12-17libopkg: ensure symbol name mangling for C++Carsten Schoenert
Users who use C++ code for theirs application have always to include external C functions with a 'extern "C" { }' assignment. We can take that need from the user by putting thees assignments into the public header files. Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com> Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-12-17config.h: remove needless inclusion in the libopkg header filesCarsten Schoenert
There is no usage of variables from config.h inside the libopkg header files. If so it's wrong because the header files from the libopkg directory are installed to the target system and there is no config.h inside the installed directory. Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com> Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-12-17libopkg: Drop config checks from structures in headersPaul Barker
Ensure that all structures are always the same size, regardless of configuration options so that applications which use libopkg don't need to be rebuilt if configuration options are changed. Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Cc: Carsten Schoenert <c.schoenert@gmail.com>
2013-10-03opkg_install: Allow overwrite of files that have no ownerpaul.betafive@gmail.com
In a package install, the function check_data_file_clashes() checks if a file that is going to be installed exists and if it belongs to any package. Currently if a file exists but doesn't belong to any package, the installation fails as a result of a file clash. In comparison, some other package managers allow such files to be overwritten silently. To support both modes of operation, a new option "overwrite_no_owner" is added which can be set in the config file to cause such files to be overwritten. The default behaviour is unchanged. Signed-off-by: Jonh Wendell <jonh.wendell@oiwifi.com.br> Signed-off-by: Paul Barker <paul@paulbarker.me.uk> git-svn-id: http://opkg.googlecode.com/svn/trunk@720 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2013-09-02opkg_conf_get_option: New functionpaul.betafive@gmail.com
This function is based on opkg_get_option and mirrors opkg_conf_set_option. Signed-off-by: Paul Barker <paul@paulbarker.me.uk> git-svn-id: http://opkg.googlecode.com/svn/trunk@695 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2013-09-02opkg_conf_set_option: Add overwrite option and exportpaul.betafive@gmail.com
In order to consolidate all access to the 'options' variable into the file opkg_conf.c, we first extend opkg_conf_set_option to optionally overwrite the configuration value and add this function to opkg_conf.h so that it can be used elsewhere. Signed-off-by: Paul Barker <paul@paulbarker.me.uk> git-svn-id: http://opkg.googlecode.com/svn/trunk@694 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2013-09-02Renamed conf to opkg_configpaul.betafive@gmail.com
This prevents the libopkg from polluting the global namespace. From: Christian Ege <k4230r6@gmail.com> Signed-off-by: Paul Barker <paul@paulbarker.me.uk> git-svn-id: http://opkg.googlecode.com/svn/trunk@689 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2012-11-22Add the --prefer-arch-to-version optionpixdamix@gmail.com
If there were more than one candidate which had the same pkg name in the candidate list, for example, the same pkg with different versions, then it would use the last one which was the highest version one in the past, but it will use the higher arch priority when this option is specified. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> git-svn-id: http://opkg.googlecode.com/svn/trunk@643 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2011-04-07Introduce a new pkg_src list in global configuration to store the contents ↵javiplx@gmail.com
of 'dists' entries for apt-alike repositories git-svn-id: http://opkg.googlecode.com/svn/trunk@614 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2011-02-14Add overlay_root config option. Opkg checks this location for available space.graham.gower@gmail.com
This option is useful in the case where root is mounted ro, and another rw filesystem is overlaid on top with e.g. mini_fo. From Nicolas Thill via OpenWrt. git-svn-id: http://opkg.googlecode.com/svn/trunk@601 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2010-11-24Abort package removal if the prerm script of a package returns non zero.graham.gower@gmail.com
This can be overridden with --force-remove. Also, improve propagation of errors up the call stack for related errors. From Sergey 'Jin' Bostandzhyan. git-svn-id: http://opkg.googlecode.com/svn/trunk@587 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2010-09-13- split the loading part of opkg_conf_init() out into opkg_conf_load()google@wwsnet.net
- move the temporary destination list into the global config struct git-svn-id: http://opkg.googlecode.com/svn/trunk@561 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2010-09-13implement --force-postinstall option, this allows forcing the execution of ↵google@wwsnet.net
postinstall scripts in offline root mode git-svn-id: http://opkg.googlecode.com/svn/trunk@559 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2010-01-12s/dependences/dependencies/ Pointed out by klemmster in Issue 40.graham.gower
git-svn-id: http://opkg.googlecode.com/svn/trunk@515 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2010-01-05Add an option to download packages but do not install/upgrade anythingpixdamix
git-svn-id: http://opkg.googlecode.com/svn/trunk@512 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2009-12-21Include config.h to pull in HAVE_* macros where needed.graham.gower
git-svn-id: http://opkg.googlecode.com/svn/trunk@505 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2009-12-21Initial stab at untangling the #include maze. Probably needs a second pass.graham.gower
git-svn-id: http://opkg.googlecode.com/svn/trunk@504 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2009-12-17Add a message callback function to the config struct for libopkg users.graham.gower
git-svn-id: http://opkg.googlecode.com/svn/trunk@496 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2009-12-11Remove args_t and cleanup unused stuff.graham.gower
git-svn-id: http://opkg.googlecode.com/svn/trunk@484 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2009-12-09Merge commit 'grg' into HEADgraham.gower
git-svn-id: http://opkg.googlecode.com/svn/trunk@471 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2009-11-24Remove list_pending command. Undocumented and the pending_dir was unpopulated.graham.gower
git-svn-id: http://opkg.googlecode.com/svn/trunk@359 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2009-11-06Remove some bogus error checking and return void instead of int.graham.gower
git-svn-id: http://opkg.googlecode.com/svn/trunk@266 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2009-11-05Some refactoring of pathfinder supportpixdamix
git-svn-id: http://opkg.googlecode.com/svn/trunk@263 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2009-11-03Make `curl' an instance variable and ssl supportpixdamix
This patch adds several new options - option ssl_ca_path /path/to/dir Tells curl to use the specified certificate directory to verify the peer. The certificates must be in PEM format, and the directory must have been processed using the c_rehash utility supplied with openssl. - option ssl_ca_file Tells curl to use the specified certificate file to verify the peer. The file may contain multiple CA certificates - option ssl_key_type Tells curl the Private key file type. Specify which type your ssl_key provided private key is. PEM (default), DER and ENG (see option ssl_engine) are recognized types. - option ssl_cert_type Tells curl what certificate type the provided certificate is in. PEM (default), DER and ENG (see option ssl_engine) are recognized types. - option ssl_key & option ssl_cert Tells curl to use the specified certificate file and private key when getting a file with HTTPS - option ssl_key_passwd Passphrase for the private key - option ssl_engine Select the OpenSSL crypto engine to use for cipher operations. - option ssl_dont_verify_peer This option explicitly allows curl to perform "insecure" SSL connections and transfers. All SSL connections are attempted to be made secure by using the CA certificate. This makes all connections considered "insecure" fail unless ssl_dont_verify_peer is used. git-svn-id: http://opkg.googlecode.com/svn/trunk@251 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2009-10-27Opkg support for smime (pkcs7) packages list signingticktock35
Thanks to Camille Moncelier <moncelier@devlife.org> http://groups.google.com/group/opkg-devel/browse_thread/thread/6071ce290d5ceb77?utoken=qjR-TC0AAADKDldt5ZXsDDLs9sWCpWZI1zgeariQUwksg5ob1tmaFTCAL7MTcQRO6S85GfHgQ_k As promised :) here is a patch allowing opkg to authenticate a package list using smime and openssl instead of gpgme Example: Sign a package list: openssl smime -sign -in /path/to/repo/Packages \ -signer /root/server.pem -binary \ -outform PEM -out /path/to/repo/Packages.sig Configuration in /etc/opkg/opkg.conf option check_signature 1 option signature_ca_file /etc/serverCA.pem option signature_ca_path /path/to/certs/dir opkg update Downloading http://repo:8000/Packages Updated list of available packages in /usr/lib/opkg/lists/angstrom Downloading http://repo:8000/Packages.sig Signature check passed Package list corruption or MIM: Downloading http://repo:8000/Packages Updated list of available packages in /usr/lib/opkg/lists/angstrom Downloading http://repo:8000/Packages.sig Signature check failed Collected errors: * Verification failure Camille Moncelier http://devlife.org/ git-svn-id: http://opkg.googlecode.com/svn/trunk@221 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2009-04-17adding new flag flag_maintainerticktock35
This flag is used for maintainer can use the latest conffile. this flag need to be set manually. git-svn-id: http://opkg.googlecode.com/svn/trunk@212 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-28adding check_signature configticktock35
default if off you can turn that on via adding one line in /etc/opkg/opkg.conf file + option check_signature 1 git-svn-id: http://opkg.googlecode.com/svn/trunk@193 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: add a simple way to pass a path environment for pre/post scription ↵ticktock35
execution when in offline mode. Thanks for Christopher Hall <hsw@openmoko.com> git-svn-id: http://opkg.googlecode.com/svn/trunk@155 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: adding cache supportticktock35
opkg-cl --cache <cache_directory> Thank for Werner git-svn-id: http://opkg.googlecode.com/svn/trunk@154 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: Consolidate error reporting from opkg_conf_init and ensure return value isticktock35
checked in the appropriate places. opkg: Add a locking mechanism to prevent two instances of opkg being run at the same time. git-svn-id: http://opkg.googlecode.com/svn/trunk@130 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: remove redundant multiple_providers option and also remove redundant ↵ticktock35
familiar_revision pointer from the pkg struct git-svn-id: http://opkg.googlecode.com/svn/trunk@118 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: (leak fixing, day 2) lots and lots of memory leaks fixedticktock35
git-svn-id: http://opkg.googlecode.com/svn/trunk@115 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: (leak fixing, day 1) lots and lots of memory leaks fixedticktock35
git-svn-id: http://opkg.googlecode.com/svn/trunk@114 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: remove verbose_wget optionticktock35
git-svn-id: http://opkg.googlecode.com/svn/trunk@112 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: implement opkg_set_option() and opkg_get_option()ticktock35
git-svn-id: http://opkg.googlecode.com/svn/trunk@71 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: 's/itsy/opkg/'ticktock35
git-svn-id: http://opkg.googlecode.com/svn/trunk@67 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: remove opkg.h in preperation for new APIticktock35
git-svn-id: http://opkg.googlecode.com/svn/trunk@65 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: add autoremove command line optionticktock35
git-svn-id: http://opkg.googlecode.com/svn/trunk@37 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: re-arrange source code into sub-directoriesticktock35
git-svn-id: http://opkg.googlecode.com/svn/trunk@33 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358