Commit Graph

52 Commits (d9de51dff40f1ff5eb271d09b00cf71e50c0fa21)

Author SHA1 Message Date
Jo-Philipp Wich bb9647c459 opkg: various additions
- only wrap package descriptions when outputting to a tty, simplifies parsing descriptions with external utils
	- introduce -i (--nocase) flag which makes all matching operations case insensitive
	- introduce "find" command which searches package names and descriptions (e.g. opkg -i find "*autoconfig*")

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34202 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-15 20:17:49 +00:00
Hamish Guthrie a81ef914e0 licensing: Add licensing metadata to many packages
Two new variables are introduces to many packages, namely PKG_LICENSE and
PKG_LICENSE_FILES - there may be more than one license applied to packages,
and these are listed in the PKG_LICENSE variable and separated by spaces.
All relevant license files are also added to the PKG_LICENSE_FILES variable,
also space separated.

The licensing metadata is put into the bin/<platform>/packages/Packages file
for later parsing. A script for that is on it's way!


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33861 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-19 15:34:28 +00:00
Felix Fietkau ce44bef353 build: add the + token to any commands that can pass through the jobserver, fixes parallel build on some systems
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33523 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-23 09:50:01 +00:00
Felix Fietkau d59be1dcfd opkg: add host and package parallel build support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33424 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-15 12:34:52 +00:00
Jo-Philipp Wich 5d7e7f9fe4 [buildroot] include, base-files, opkg: introduce version configuration to override the embedded version info of generated images
- Introduce new Kconfig symbols VERSION_DIST, VERSION_NICK, VERSION_NUMBER and VERSION_REPO to specify distribution, release name, version and repository for a given build
 - Introduce include/version.mk to provide common helpers for packages dealing with versions
 - Make opkg use version.mk to populate the opkg.conf template
 - Make base-files use version.mk to populate /etc/openwrt_version, /etc/openwrt_release and /etc/banner

The available placeholders are:
 %D .. Replace with $(CONFIG_VERSION_DIST), default to "OpenWrt"
 %d .. Like %D, but all characters made lowercase and spaces substituted with "_" (e.g. "openwrt")
 %N .. Replace with $(CONFIG_VERSION_NICK), default to the build tree release (e.g. "Attitude Adjustment")
 %n .. Like %N, but all characters made lowercase and spaces substituted with "_" (e.g. "attitude_adjustment")
 %V .. Replace with $(CONFIG_VERSION_NUMBER), default to the build tree release (e.g. "r31262")
 %v .. Like %V, but all characters made lowercase and spaces substituted with "_"
 %C .. Replace with $(CONFIG_VERSION_NUMBER), default to "Bleeding Edge"
 %c .. Like %C, but all characters made lowercase and spaces substituted with "_" (e.g. "bleeding_edge")
 %U .. Replace with $(CONFIG_VERSION_REPO), default to "http://downloads.openwrt.org/snapshots/trunk/%T/packages"
 %R .. Replace with the current build tree revision (e.g. "r31262" or "75488c4a05b8033cf69e91874a61852db7ba9c6c")
 %T .. Replace with the current target (e.g. "ar71xx")
 %S .. Replace with the current target/subtarget combo (e.g. "adm5120/router_le")


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31262 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-12 17:31:16 +00:00
Jo-Philipp Wich bc3d7f54b9 [package] opkg: fix a double free of pkg vectors when recursively removing packages due to --autoremove
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28458 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-15 01:05:25 +00:00
Jo-Philipp Wich 4db6664002 [package] opkg: update to r618
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26598 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-11 22:08:43 +00:00
Jo-Philipp Wich d5508174f1 [package] change PKG_FIXUP:=libtool to PKG_FIXUP:=autoreconf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25904 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-06 21:42:48 +00:00
Felix Fietkau 64eeb36223 opkg: use -ffunction-sections, -fdata-sections and --gc-sections
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25829 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-02 12:48:04 +00:00
Jo-Philipp Wich 56a99126c9 [package] opkg: remove stray HOST_BUILD_DEPENDS
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24679 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-18 19:16:03 +00:00
Jo-Philipp Wich 3b17d5b44b [package] opkg: remove manual automake invocations and rely and host and target fixups
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24554 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-13 20:54:01 +00:00
Jo-Philipp Wich 70d6feffa9 [package] opkg: update to r576, remove 013add-list-changed-conffiles.patch - went upstream.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23230 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-05 07:26:49 +00:00
Jo-Philipp Wich 90549d3d32 [package] opkg: implement "list-changed-conffiles" command, based on patch by Yann Lopez <yann.lopez@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23210 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-03 22:15:39 +00:00
Jo-Philipp Wich 397ec72934 [package] opkg: reenable global upgrade, refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23174 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-02 03:25:35 +00:00
Jo-Philipp Wich 20e84127cd [package] add maintainer information
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23159 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-30 10:48:37 +00:00
Alexandros C. Couloumbis 1e830d03cb package/opkg: update to r563
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23050 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-13 08:13:36 +00:00
Jo-Philipp Wich f10bd899e6 [package] opkg:
- implement --add-dest and --add-arch commandline options, this allows to run entirely without configuration
	- tweak default config location patch to not require a config in offline root mode
	- rename --force-run-hooks option to --force-postinstall, its a more appropriate name
	- utilize new opkg commandline options in package-ipkg.mk and remove config file generation


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23032 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-12 21:16:02 +00:00
Jo-Philipp Wich d9386d548b [package] opkg: add --force-run-hooks option to run postinstall scripts in offline root mode, utilize it for host package install
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22960 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-06 19:58:05 +00:00
Jo-Philipp Wich a417d0737b [package] opkg: reintroduce host build, utilize fixed HOST_BUILD_DEPENDS and depend libtool/host
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22947 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-06 02:12:14 +00:00
Jo-Philipp Wich 503d7a462b [buildsystem] revert r22372 and r22405, dependency on host libtool causes problems
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22406 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-28 02:18:16 +00:00
Jo-Philipp Wich fc7a57fa5d [buildsystem] use host opkg for installing packages in buildroot and ImageBuilder
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22372 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-23 19:49:19 +00:00
Jo-Philipp Wich 0e8c82e0bd [package] opkg: update to r528, refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21008 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-18 23:23:40 +00:00
Nicolas Thill e76080e98d [package] opkg: add upstream patch fixing the order packages are configured (closes: #7057, #7058), bump release number
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20686 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 21:38:17 +00:00
Travis Kemen 270dd5007d fix opkg.conf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19684 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-17 02:34:48 +00:00
Travis Kemen 29ba45b921 change the opkg path due to changes in the buildsystem, fixes incorrect path in snapshot images
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19575 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-11 02:38:08 +00:00
Jo-Philipp Wich 210ef07a74 [package] opkg: update to r513, move lock-file to /var/lock and drop cleanup patch - went upstream
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19061 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-07 12:37:49 +00:00
Jo-Philipp Wich e1aabea527 [package] opkg: only select overlay_root if the install destination is root, this eliminates the need for force_space when using external destinations like usb disks
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18884 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-22 11:46:49 +00:00
Jo-Philipp Wich 49a0eaa0ab [package] opkg: update to r503 - reduces peak memory usage by further 20%, rebased patches, restored old config file default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18864 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-20 21:21:14 +00:00
Jo-Philipp Wich 374664f3af [package] opkg: bump to r284
- incorporates parsing improvements upstream
	- fixes a couple of memory leaks
	- fixes some null pointer dereferences
	- fixes possible crashes during removal of packages
	- various other corrections


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18380 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-11 21:42:05 +00:00
Jo-Philipp Wich bd44398aea [package] opkg:
- replace package list parser by something that works with fixed buffers
	  to avoid slurping the whole file into memory during parsing
	- fix a possible null pointer dereference in opkg_remove_cmd()
	- get rid of upgrade, it cannot upgrade single packages and kills
	  the system in most cases
	- get rid of the flag operation, not needed
	- bump package revision


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18119 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-22 08:46:55 +00:00
Felix Fietkau 0ee55d9f55 opkg: get rid of libopkg, saves >10k compressed, >40k uncompressed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18091 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-20 08:21:10 +00:00
Felix Fietkau 11ea08ec3c opkg: move the build dir to KERNEL_BUILD_DIR, as compilation is target dependent
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17820 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-02 15:18:38 +00:00
Jo-Philipp Wich ee12684c89 [package] opkg: fix duplicate parsing of config file, move opkg.conf back to /etc, bump package revision, thanks kupseoft
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17209 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-10 22:38:37 +00:00
Imre Kaloz 25ee9c1d6b upgrade opkg to r215 from the googlecode svn
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17152 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-06 20:08:27 +00:00
Imre Kaloz b4ce4197c7 add special handling for the adm5120 target, which uses subtargets for different endianess -- later we should come up with something smarter
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17101 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-03 11:24:56 +00:00
Imre Kaloz 85c82eb8a0 use board names instead of arch in packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17063 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-31 12:15:51 +00:00
Florian Fainelli d5444d6804 [opkg] update to r4993
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15901 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-17 17:09:12 +00:00
Andy Boyett 0a0bddcf31 [opkg] opkg.conf: update trunk snapshots url
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15899 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-17 16:49:50 +00:00
Felix Fietkau fe7233958c opkg: work around the same broken array overrun check in gcc 4.4 as in gcc 4.3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15522 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-30 19:38:58 +00:00
Nicolas Thill 8ae9e2cf0f [package] replace some -I & -L flags with $(TARGET_CPPFLAGS) & $(TARGET_LDFLAGS) when appropriate
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14651 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-24 00:08:08 +00:00
Felix Fietkau 6def772341 opkg: apparently array bounds checking is gcc 4.3 specific, move -Wno-array-bounds into TARGET_CFLAGS instead of a patch and make it conditional
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14508 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-14 14:11:12 +00:00
Felix Fietkau 1a6786c4ea fix opkg target arch detection problem on x86
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14055 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-16 16:22:01 +00:00
Nicolas Thill 2fd3702308 add a patch helping available storage space detection, remove workaround from [13611], bump release number
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13650 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-15 13:11:12 +00:00
Travis Kemen 1f00b02bb4 remove unneeded line
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12321 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-16 16:46:11 +00:00
Travis Kemen 55722b974e make opkg the default package manager, disable busybox ipkg from building by default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12319 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-16 06:35:14 +00:00
Florian Fainelli e068762c01 Fix opkg compilation with ccache, thanks sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12303 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-13 21:12:26 +00:00
Felix Fietkau 73a5abbb32 use $(FPIC) in a few places where it matters
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12225 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-06 22:10:29 +00:00
Travis Kemen 4b47c62538 update opkg to 4564, fixes a couple of memory leaks
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12115 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-05 00:48:44 +00:00
Travis Kemen 44ef6c1c3d remove opkg config file and link ipkg.conf to opkg.conf being they are the same
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11994 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-29 17:23:52 +00:00
Travis Kemen 272ae30c63 removed a missed dependancy on curl
remove use of autogen, just run the one needed command from in it

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11991 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-29 12:57:43 +00:00