summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-02-04remove apk_time() as it is causing problems with shared objectsTimo Teräs6-17/+10
Instead, to make sure test mode produces same output, redefine time() for the test mode binary. Reverts parts of 0b82bcc53e60.
2020-01-26remove travis ci, we are using gitlab ci now insteadTimo Teräs1-53/+0
2020-01-26remove tests connected to help output validationTimo Teräs1-10/+0
The help has been moved to man pages now.
2020-01-26build: separate subdirs out from targetsTimo Teräs2-7/+12
That list is needed in multiple places, so it simplifies things a bit.
2020-01-26convert man page makefile to make.rules formatTimo Teräs2-43/+54
2020-01-26man pages: consoldate commit options in apk(8)Drew DeVault5-104/+30
2020-01-26man pages: merge scdoc targetesDrew DeVault1-4/+1
2020-01-26Makefile: install man pages to MANDIRDrew DeVault1-8/+18
2020-01-26Update apk to make man pages sole source of truthDrew DeVault20-228/+107
Detailed docs have been removed from the apk binaries, in favor of git-style short summaries of each command.
2020-01-26add apk-cache(5)Drew DeVault2-0/+24
2020-01-26add apk-keys(5)Drew DeVault2-0/+19
2020-01-26add apk-version(8)Drew DeVault2-0/+54
2020-01-26add apk-stats(8)Drew DeVault2-0/+25
2020-01-26add apk-audit(8)Drew DeVault2-0/+56
2020-01-26add apk-verify(8)Drew DeVault2-0/+29
2020-01-26add apk-manifest(8)Drew DeVault3-1/+36
2020-01-26add apk-fetch(8)Drew DeVault2-0/+42
2020-01-26add apk-index(8)Drew DeVault2-0/+37
2020-01-26add apk-policy(8)Drew DeVault2-0/+26
2020-01-26add apk-dot(8)Drew DeVault2-0/+30
2020-01-26add apk-list(8)Drew DeVault3-1/+45
2020-01-26add apk-info(8)Drew DeVault2-0/+77
2020-01-26add apk-cache(8)Drew DeVault2-0/+42
2020-01-26add apk-upgrade(8)Drew DeVault2-0/+65
2020-01-26add apk-update(8)Drew DeVault2-0/+25
2020-01-26add apk-fix(8)Drew DeVault2-0/+65
2020-01-26add apk-del(8)Drew DeVault2-0/+52
2020-01-26add apk-add(8)Drew DeVault2-0/+70
2020-01-26add apk-repositories(5)Drew DeVault2-0/+41
2020-01-26add apk-world(8)Drew DeVault2-1/+64
2020-01-26Initial riggings for man pages, add apk(8)Drew DeVault4-3/+179
This commit sets up the build system to compile man pages with scdoc, and adds the first man page: apk(8).
2020-01-26.gitignore: add compiled man pagesDrew DeVault1-0/+2
2020-01-25don't use hardcoded checksum buffer sizesReid Rankin2-5/+8
2020-01-25document mysterious SHA-1 blob in database.cReid Rankin1-0/+2
2020-01-25don't ignore md parameter to apk_fileinfo_hash_xattr_array()Reid Rankin1-1/+1
2020-01-24db: additional clean up and hardening for apk extractionTimo Teräs1-15/+16
This enforces all scripts to be in the control block, and all data files to be in data block. Ignoring of dot files in root is added back: packages without any real files will ship one ".dummy" item in the data block to trigger processing and validation to work.
2020-01-24Harden signature verification processReid Rankin2-29/+32
This mostly boils down to making sure control_started and data_started are consistently used to gate actions, instead of relying whether on file names start with a '.'. None of the weaknesses this fixes are exploitable, but they might have become so after changes to seemingly-unrelated code, so it's good to clean them up.
2020-01-24Improve documentation of signature verification processReid Rankin1-7/+19
2020-01-24manifest: fix package file processingReid Rankin1-4/+7
This change ensures that apk_sign_ctx_process_file() and apk_sign_ctx_parse_pkginfo_line() are called during archive processing, allowing discovery of signatures and the data section checksum. Fixes a bug uncovered by commit f123d77e.
2020-01-11io: use min() instead of MIN()Timo Teräs1-5/+4
2020-01-11archive: make apk_tar_parse check and close input streamTimo Teräs5-54/+26
simplifies other code quite a bit
2020-01-11io: convert bstream mmap to istream, remove the now obsolete bstream machineryTimo Teräs2-244/+65
2020-01-11convert remaining locations to use istream instead of bstreamTimo Teräs8-156/+161
2020-01-11istream, archive, db: convert db and tar function to use istreamTimo Teräs8-156/+224
2020-01-11istream: add buffering capabilityTimo Teräs5-103/+109
Convert all implementations to do buffering. This is in preparation to remove bstream interface as redundant. istream_read() will return full reads unless end-of-file. The backends can return short reads to optimize buffering or due to other reasons like boundary change for gz.
2020-01-11archive: remove support for old packages without xattr checksumsTimo Teräs6-52/+14
2020-01-10remove obsolete md5.hTimo Teräs1-60/+0
2020-01-09database.c: drop GNU extension for fnmatchDrew DeVault1-1/+1
The non-wildcard version of the function is case-sensitive anyway.
2020-01-06io: remove the now unused pid association with istreamTimo Teräs2-32/+8
2020-01-06io: remove unused size parameter from bstream closeTimo Teräs5-44/+34