aboutsummaryrefslogtreecommitdiffstats
path: root/package/system
Commit message (Collapse)AuthorAgeFilesLines
* build: use mkhash to replace various quirky md5sum/openssl callsFelix Fietkau2017-01-051-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* rpcd: Update to 2016-12-03Florian Fainelli2017-01-021-3/+3
| | | | | | | | | | Brings in the following changes: 0577cfc1acdb cmake: Find libubox/blobmsg_json.h 26c98ec94d7a sys: Check return values of chdir and write f4089654a399 cmake: Find libubus.h Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* fstools: Update to 2016-12-04Florian Fainelli2017-01-021-3/+3
| | | | | | | Brings in the following changes: 84b530a732b1 libfstools: Check return values for fread and system Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* opkg: vfork external gzip command to uncompress dataJo-Philipp Wich2016-12-274-23/+746
| | | | | | | | | | | | | | | | | | Opkg's builtin decompression code is unsuitable to process nested archives as it uses a single shared state and relies on undefined seek behaviour for pipes. Rework the extraction logic to use the external gzip command as I/O filter for decompressing data and remove the builtin inflate code entirely. This shrinks the final opkg binary by about 4KB and results in less runtime memory consumption due to efficient use of vfork() and less copy-on-write operations in the forked child. Rework by Felix: create a thread that relays data to the gzip process instead of using a fragile poll loop Signed-off-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Revert "opkg: vfork external gzip command to uncompress data"Stijn Tintel2016-12-274-746/+23
| | | | | | This reverts commit 0090adcd5c94adad2168cd9b338f45827533c81d. It breaks reading package list in /tmp/opkg-lists, making it impossible to install packages from feeds in snapshots.
* opkg: add missing dependency on libpthreadFelix Fietkau2016-12-261-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* opkg: vfork external gzip command to uncompress dataJo-Philipp Wich2016-12-264-23/+746
| | | | | | | | | | | | | | | | | | Opkg's builtin decompression code is unsuitable to process nested archives as it uses a single shared state and relies on undefined seek behaviour for pipes. Rework the extraction logic to use the external gzip command as I/O filter for decompressing data and remove the builtin inflate code entirely. This shrinks the final opkg binary by about 4KB and results in less runtime memory consumption due to efficient use of vfork() and less copy-on-write operations in the forked child. Rework by Felix: create a thread that relays data to the gzip process instead of using a fragile poll loop Signed-off-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* treewide: clean up and unify PKG_VERSION for git based downloadsFelix Fietkau2016-12-2210-61/+31
| | | | | | Also use default defintions for PKG_SOURCE_SUBDIR, PKG_SOURCE Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Revert mirror hash fixesFelix Fietkau2016-12-203-3/+3
| | | | | | | | | | They are based on obsolete download tarballs Revert "usign: fix mirror hash" (4f874423fd711e58aa43110918c923016615f22b) Revert "ubox: fix mirror hash" (9ee74b575305e8111fd3b1009ae183cf15e6d926) Revert "opkg: fix mirror hash" (bf6f4bfad12ded13ed9afcb886751cec24426257) Signed-off-by: Felix Fietkau <nbd@nbd.name>
* usign: fix mirror hashJohn Crispin2016-12-201-1/+1
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* ubox: fix mirror hashJohn Crispin2016-12-201-1/+1
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* opkg: fix mirror hashJohn Crispin2016-12-201-1/+1
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* procd: update procd.sh to support sending kill signal to a serviceHans Dedecker2016-12-201-1/+17
| | | | | | | | Add procd_send_signal which allows to send an optional specified kill signal to one specified or all instances of a given service. By default SIGHUP is sent if no signal is specified Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* mountd: update to latest git HEADJohn Crispin2016-12-201-2/+2
| | | | | | | | dd5799c mountd: Add static qualifier to missing variable declarations. bc4a6dd mountd: Fix fgets check. 3dd115b cmake: Really look for uci.h Signed-off-by: John Crispin <john@phrozen.org>
* treewide: clean up download hashesFelix Fietkau2016-12-1611-11/+11
| | | | | | Replace *MD5SUM with *HASH, replace MD5 hashes with SHA256 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: add support for service signalsJo-Philipp Wich2016-12-142-4/+4
| | | | | | | | | | | | | | | | Update procd to latest HEAD in order to introduce support for services signals: - Adds a new service.signal ubus call to send a kill() signal to one or all running instances of a given service - Adds a new "reload_signal" property which allows service init scripts to request procd to send a specific kill() signal on reload, instead of stopping and restarting running processes Also fixes some potential memory leaks reported by cppcheck and an environment variable corruption in the trace command. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ca-certificates: update to version 20161130Christian Schoenebeck2016-12-121-2/+2
| | | | Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
* procd: update to the latest version, fixes killing jailed processesFelix Fietkau2016-12-021-3/+3
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* opkg: run prerm scripts for the old version also on upgradeJonas Gorski2016-11-212-1/+74
| | | | | | | | | To make sure we properly restart services on upgrade we need to call the prerm script of the old package, in case the init script changes (or vanishes). Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Acked-by: Jo-Philipp Wich <jo@mein.io>
* opkg: set PKG_UPGRADE also when running scripts for the old packageJonas Gorski2016-11-215-15/+16
| | | | | | | | Allow scripts from the package to be upgraded to be aware of being upgraded. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Acked-by: Jo-Philipp Wich <jo@mein.io>
* fwtool: add utility for appending and extracting firmware metadata/signaturesFelix Fietkau2016-11-195-0/+693
| | | | | | | | | | | | | | | | | | | | | | | | | This will be used to append extra information to images which allows the system to verify if an image is compatible with the system. The extra data is appended to the end of the image, where it will be ignored when upgrading from systems that do not process this data yet: If the image is a squashfs or jffs2 image, the extra data will land after the end-of-filesystem marker, where it will be overwritten once the system boots for the first timee. If the image is a sysupgrade tar file, tar will simply ignore the extra data when unpacking. The layout of the metadata/signature chunks is constructed in a way that the last part contains just a magic and size information, so that the tool can quickly check if any valid data is present without having to do a pattern search throughout the full image. Chunks also contain CRC32 information to detect file corruption, even when the image is not signed. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ubox: update to the latest versionFelix Fietkau2016-11-141-3/+3
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ca-certificates: update to version 20161102Christian Schoenebeck2016-11-081-2/+2
| | | | Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
* fstools: add build-depends on util-linuxJo-Philipp Wich2016-11-011-0/+1
| | | | | | | The libblkid probe support in fstools git head requires blkid/blkid.h for compilation, so add a build dependency on util-linux which provides libblkid. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* fstools: update to latest git HEADJohn Crispin2016-10-311-3/+3
| | | | | | adds f2fs support Signed-off-by: John Crispin <john@phrozen.org>
* mtd: add fixwrgg commandStijn Tintel2016-10-275-3/+239
| | | | | | | Based on fixseama. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Acked-by: John Crispin <john@phrozen.org>
* mtd: fix endianness detection on muslStijn Tintel2016-10-272-0/+2
| | | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Acked-by: John Crispin <john@phrozen.org>
* package/system/mtd: fix usage messagePaul Wassi2016-10-261-1/+1
| | | | | | Minor fix in the usage message on the explanation of the -p option. Signed-off-by: Paul Wassi <p.wassi@gmx.at>
* procd: update to the latest version, fixes a few minor service handling issuesFelix Fietkau2016-10-191-3/+3
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: Allow initscripts to start one daemon instance at a timePierre Lebleu2016-10-181-1/+1
| | | | Signed-off-by: Pierre Lebleu <pierre.lebleu@technicolor.com>
* procd: update sha256sumHauke Mehrtens2016-10-151-1/+1
| | | | | | | | Commit f5c741b5e02 updated procd to a more recent version, but did not change the hash of the tar. Update it to the one matching the file on the download servers. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* procd: update to latest git HEAD revisionJohn Crispin2016-10-151-2/+2
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* system/mtd: drop Build/Prepare rule in favor of default oneAlexandru Ardelean2016-10-151-5/+0
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* mtd: fix up error messagesJohn Crispin2016-10-152-2/+2
| | | | | | remove the "Error fixing up TRX header" message which is misleading. Signed-off-by: John Crispin <john@phrozen.org>
* ubus: update to the latest version, adds a race fix for wait_forFelix Fietkau2016-10-121-3/+3
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* source: Switch to xz for packages and tools where possibleDaniel Engberg2016-10-0610-11/+20
| | | | | | | | | | | * Change git packages to xz * Update mirror checksums in packages where they are used * Change a few source tarballs to xz if available upstream * Remove unused lines in packages we're touching, requested by jow- and blogic * We're relying more on xz-utils so add official mirror as primary source, master site as secondary. * Add SHA256 checksums to multiple git tarball packages Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* mountd: update to latest git HEADJohn Crispin2016-10-041-2/+2
| | | | | | adds a cmake fix Signed-off-by: John Crispin <john@phrozen.org>
* procd: update to latest git HEADJohn Crispin2016-09-281-2/+2
| | | | | | | | this adds 2 new inittab handlers * askconsolelate * respawnlate Signed-off-by: John Crispin <john@phrozen.org>
* fstools: mark as nonshared and add missing PKG_CONFIG_DEPENDSMatthias Schiffer2016-09-251-0/+3
| | | | | | | The fstools build depends on the CONFIG_NAND_SUPPORT flag, which is target-specific. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* mountd: update to latest git HEADJohn Crispin2016-09-141-2/+2
| | | | | | fixes cleanup of mount points Signed-off-by: John Crispin <john@phrozen.org>
* fstools: update to the latest version, adds support for ext4/f2fs overlay ↵Felix Fietkau2016-09-101-2/+2
| | | | | | via loopback device Signed-off-by: Felix Fietkau <nbd@nbd.name>
* fstools: fix logic bug in extroot verification codeJohn Crispin2016-09-051-2/+2
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* zram-swap: CONFIG_PROCD_ZRAM_TMPFS compatibilityConn O'Griofa2016-09-051-2/+11
| | | | | | | | Enable CONFIG_PROCD_ZRAM_TMPFS compatibility via two changes to list_cpu_idx(): * detect if /tmp is being used by /dev/zram0; if yes, offset initial value by 1 to skip first zram device. * hot-add /dev/zram1, if not already present. Signed-off-by: Conn O'Griofa >connogriofa@gmail.com>
* Revert "opkg: use vfork on gz_open by default (FS#120)"Jo-Philipp Wich2016-08-281-20/+0
| | | | | | | | | | This reverts commit 763f5d787316ec1b041450a644ecd9416f11e94f. Currently the vfork() code path in opkg is broken and relies on unsupported ftello() / fseeko() operations on pipes - we need to restructure the code before we can reconsider this approach. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* Revert "opkg: disable the use of vfork for the host build"Jo-Philipp Wich2016-08-282-13/+8
| | | | | | | | | | This reverts commit 02e3c718e9ad0c14aa3cf359ba2a4763e81df805. Currently the vfork() code path in opkg is broken and relies on unsupported ftello() / fseeko() operations on pipes - we need to restructure the code before we can reconsider this approach. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* opkg: disable the use of vfork for the host buildFelix Fietkau2016-08-282-8/+13
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* opkg: use vfork on gz_open by default (FS#120)Felix Fietkau2016-08-281-0/+20
| | | | | | Reduces memory consumption and binary size Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ubus: update to the latest version, adds object remove fixesFelix Fietkau2016-08-231-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ubox: move logd into ubox packageFelix Fietkau2016-08-231-13/+1
| | | | | | Preparation for further build rework Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mtd: fix building with glibcJosua Mayer2016-08-181-0/+1
| | | | | | | | src/linksys_bootcount.c misses to include stdint.h. Apparently musl doesn't mind and includes this header by default, but glibc does not and causes the build to fail. Signed-off-by: Josua Mayer <josua.mayer97@gmail.com>