Commit Graph

438 Commits (61cd5ce994701218a033578d2174e4791c146771)

Author SHA1 Message Date
John Crispin a0bbe0d6ce postinst trigger: the new postinst trigger broke IB
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42571 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-16 11:56:19 +00:00
John Crispin 3caa9395b5 ipkg: add a default postinst/prerm script
the postinst script enables/starts the init.d scripts upon package installation
and installs the users required by the package.

the prerm script stops and disables the init.d scripts.

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42470 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-11 12:27:49 +00:00
Jo-Philipp Wich 8af50ca921 build: consider sub-directories when deploying packages to image with CONFIG_PER_FEED_REPO (#17430)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42041 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-07 15:35:12 +00:00
Jo-Philipp Wich fdb795c3e4 build: introduce per feed repository support
This changeset implements a new menuconfig option to generate separate
repositories for each enabled package feed instead of one monolithic one.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42002 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-05 11:24:24 +00:00
John Crispin 509bbab11e package/Makefile: Substituted deprecated -perm +mode with -perm /mode
The find(1) -perm +mode is no longer supported and has been deprecated since
2005.

This could resolve #13855 ticket.

Signed-off-by: Rocco Folino <lordzen87@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40927 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-02 12:44:13 +00:00
Jo-Philipp Wich 574dc9ecf4 package: ignore failed downloads with IGNORE_ERRORS
When IGNORE_ERROR is set, also skip broken downloads, this is required
to make a full "make download" run even if some upstream sources are
unreachable.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40768 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-14 15:49:22 +00:00
Felix Fietkau 2ad5d768d4 target/sdk: use .config instead of unconditionally enabling all build dirs
Call make defconfig on every build to catch newly added packages

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39913 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-13 12:12:58 +00:00
Felix Fietkau e8af4ee9b0 build: fix installation of default-variant packages when the source package has multiple variants (#15237)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39899 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-12 19:53:13 +00:00
Steven Barth 0415b1d80f package/index: fix index creating when building without signing
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38287 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-02 16:38:28 +00:00
Steven Barth 414c5be62b Add package signing infrastructure
Add package signing key and certificate configuration options to the
"Image configuration" submenu. If enabled, the Packages.gz list will
be signed as file Packages.sig. The passphrase for the signing key can
be sourced from a file or entered by the user. The signing certificate
is automatically added to the firmware image if opkg-smime is selected.

Signed-off-by: Evan Hunt <each@isc.org>
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38284 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-02 12:12:10 +00:00
Felix Fietkau 5a6f443323 mklibs: Fix mklibs usage when *.so files reside in subdirs
Currently package/Makefile only passes /lib /usr/lib and /usr/lib/ebtables
to mklibs. However, other libs can also reside in different subdirectories
(in my case /usr/lib/ipsec). Hence, create the list of library directories
dynamically.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37841 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-26 17:31:27 +00:00
Felix Fietkau fc0a873b83 build: fix IGNORE_ERRORS for sources packages that match both 'y' and 'm'
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37405 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-18 16:44:44 +00:00
Felix Fietkau 5ee3e74ec9 build: only install packages for selected variants, fixes building multiple variant selections in one tree
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34656 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-13 13:07:01 +00:00
Jo-Philipp Wich 6acaf2e470 package: use file_copy to deploy files/ in the package/install phase
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34438 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-02 12:20:38 +00:00
Jo-Philipp Wich ee76e2804a buildroot: isolate the .install stamp files for build variants (#12279)
This fixes missing embedded packages if multiple build variants are selected in
the build config, e.g. missing ppp if CONFIG_PACKAGE_ppp=y and
CONFIG_PACKAGE_ppp-multilink=m .

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34106 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-07 16:15:22 +00:00
Felix Fietkau 136f00bfb2 build: add back the package/cleanup step to remove the root staging dir for mklibs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33777 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-15 13:19:45 +00:00
Felix Fietkau 6683f47568 build: rework the package/install step - collect package install lists during package/compile, then install all packages at once
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33631 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-06 16:01:06 +00:00
Luka Perkov 57c29c33cb [tools] mklibs: update to 0.1.34 (v2)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32165 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-10 17:07:46 +00:00
Jo-Philipp Wich 9ba991dcf1 [package] make sure that base-files is installed last, this allows per-target base-file overlays to work correctly
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27138 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-08 19:38:25 +00:00
Felix Fietkau a4f2f1ed3a remove postinst files for preinstalled packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26299 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-25 23:47:08 +00:00
Jo-Philipp Wich 610af758c1 [PATCH 2/2] Send ipkg-make-index.sh output to stdout
The "Generating index for package" created by ipkg-make-index only
clutter stderr and serve to push previous warnings/errors off-screen.
Instead, send to stdout.

Note:  This would send incorrect invocation messages to stdout as well.
If this is a concern, perhaps we could send them to FD 3, then send 3 to
2...

Signed-off-by: Kevin Locke <klocke@digitalenginesoftware.com>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25678 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-23 22:59:57 +00:00
Felix Fietkau c7c47ef489 allow files/ to overwrite existing symlinks (fixes #3508)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25078 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-23 20:59:13 +00:00
Felix Fietkau b2a72cfcdd make IGNORE_ERRORS apply to deselected packages as well (typically triggered through dependencies)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23796 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-02 16:38:57 +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 0a99e514e7 [buildsystem] make base-files dependent on opkg host compile, fixes install errors when package/compile and package/install are invoked separately
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22405 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-27 22:26:13 +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
Travis Kemen b9c5d6edc9 this patch fixes package/Makefile.
-Raphael

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20000 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-05 20:28:52 +00:00
Felix Fietkau 1f0c5ad7aa fix opkg directory cleaning (#5646)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17952 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-06 04:50:53 +00:00
Felix Fietkau ebf64f2c5c decrease verbosity of mklibs.py
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17174 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-08 02:37:59 +00:00
Felix Fietkau edf9cf7699 integrate mklibs.py support into the build process
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17173 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-08 02:25:03 +00:00
Felix Fietkau 079bbf2ee7 add a staging directory for unstripped package files, useful for debugging, will be used for mklibs integration later
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17167 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-07 21:58:35 +00:00
Felix Fietkau 5bdd866100 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-17 14:09:46 +00:00
Lars-Peter Clausen a5adc7a52c Fix enabling of init scripts.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12482 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-02 00:23:59 +00:00
Andy Boyett 26e3c2d39a [ipkg] Generate gzipped package lists
- Can be used by changing the src line in /etc/ipkg.conf to src/gz
 - Cannot be used by busybox ipkg

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11981 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-29 03:36:11 +00:00
Felix Fietkau 9f1c5d418a add a flag "IGNORE_ERRORS", which can be used to ignore build errors in packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11059 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-07 16:45:00 +00:00
Felix Fietkau b85354ab6e fix the sdk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9747 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-14 00:33:25 +00:00
Felix Fietkau c947d8532b add option for cleaning all ipkg info before the image build
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9151 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-05 21:52:05 +00:00
Eugene Konev dbd4e0eee6 fix image preconfiguration
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8921 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-21 17:01:46 +00:00
Felix Fietkau 485f2e16f4 fix a dependency bug
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8561 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-30 22:43:25 +00:00
Felix Fietkau d10a56dc58 build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8362 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-07 00:04:25 +00:00
Felix Fietkau 3312543ae1 fix package/index
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8294 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-01 08:21:15 +00:00
Felix Fietkau 48ed3043e3 fix rootfs and init script handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8293 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-31 22:54:21 +00:00
Felix Fietkau 8186b8e98e remove unnecessary deps
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8243 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-30 21:22:38 +00:00
Felix Fietkau 03ffe176e5 next round of cleanup, convert target/ - make -j works now ;)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-30 21:14:08 +00:00
Felix Fietkau afb0255875 more cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8238 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-30 18:39:20 +00:00
Felix Fietkau 7f5129c7d9 next round of build system cleanup - convert package/ to new structure
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8236 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-30 18:22:01 +00:00
Felix Fietkau b78269d614 add source feed rev to menuconfig, set 8180 as default rev for kamikaze 7.07
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8181 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-26 15:28:59 +00:00
Felix Fietkau eae69f1e83 fix parallel build issues
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7941 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-12 12:50:16 +00:00
Felix Fietkau ac587815b0 package/refresh should clean all packages before refreshing their patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7489 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-04 11:20:03 +00:00
Felix Fietkau 80d2beea9d Rename 'refresh' to 'update' and make the new 'refresh' actually refresh all the patches.
Also added a target package/refresh which will do this to all packages in the buildroot


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7488 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-04 11:14:08 +00:00