Ivailo Monev
763d88a96d
ark: remove redundant kDebug() calls
...
log nothing
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-16 03:34:03 +03:00
Ivailo Monev
6260843dde
generic: prepare for KuitSemantics changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-03 08:53:32 +03:00
Ivailo Monev
7af8047900
generic: remove dead and irrelevant links references
...
svn repository reference? good luck getting source code from there..
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 16:01:25 +03:00
Ivailo Monev
93e394f1ca
generic: preperations for kdelibs changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 23:28:51 +03:00
Ivailo Monev
8f5472fb21
ark: drop CLI interface and rar plugin
...
hint: don't do interface on top of CLI tools, it is going to break under
your nose
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-02 15:34:02 +03:00
Ivailo Monev
3fb98b7044
ark: reserve space for the files to copy/remove from libarchive plugin
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-19 23:42:04 +03:00
Ivailo Monev
b024821c56
ark: implement isReadOnly() for libarchive plugin
...
now the interface will properly indicate that the archive is not writable
when that is the case (it was not even before the port to KArchive)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-22 02:09:04 +02:00
Ivailo Monev
4aaa9bbe6e
ark: remove read-only MIME types listed as read-write
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-22 02:02:37 +02:00
Ivailo Monev
6eba0a9eeb
ark: set the KArchive temporary prefix to the global working directory
...
fixes creating of archives with large files that cannot fit in /tmp (or
whatever the temporary directory is set to). note that this still depends
on how much space is available on the filesystem the archive is created on
and will not work for remote archives - remote archives will have to be
fetched somewhere with enough space to hold the archive and a copy of it
(possibly $HOME) but that is for another commit (currently archives are
fetched into /tmp but not uploaded upon modification)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-19 18:09:23 +02:00
Ivailo Monev
e459aedf26
ark: remove unused X-KDE-Kerfuffle-APIRevision property
...
if you are not doing full rebuild (to catch API changes) atleast on
every new release then you are doing something wrong anyway
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 07:42:04 +02:00
Ivailo Monev
a52db499cd
generic: link to karchive library for KCompressor and KDecompressor references
...
moved to karchive library
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-18 04:44:55 +03:00
Ivailo Monev
8072a6d3d9
ark: reuse constant in singlefileplugin source file
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-18 00:16:13 +03:00
Ivailo Monev
9d6fbdf279
ark: check for LibDeflate instead of ZLIB
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-17 18:19:01 +03:00
Ivailo Monev
a503038cdf
generic: port to the new KCompressor and KDecompressor classes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-17 18:14:21 +03:00
Ivailo Monev
d2eba577b8
ark: implement overwrite query for libarchive plugin
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-11 13:45:18 +03:00
Ivailo Monev
19c071ae34
ark: connect to the KArchive progress signal
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-09 21:03:42 +03:00
Ivailo Monev
9d9f4c765d
ark: implement extraction of password-protected files
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-09 15:39:40 +03:00
Ivailo Monev
c772aa4756
ark: emit entries for added files from libarchive plugin
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 21:33:53 +03:00
Ivailo Monev
3ee5a39a6b
ark: report the actual error from libarchive plugin
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 19:57:07 +03:00
Ivailo Monev
61bcac4d43
generic: use the new karchive library
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 16:55:46 +03:00
Ivailo Monev
108c168002
ark: handle warnings when setting write filter in libarchive plugin
...
fixes LZO compression
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-10 22:14:55 +03:00
Ivailo Monev
b2e7526ecb
ark: drop support for LHA/LZH
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-10 05:26:39 +03:00
Ivailo Monev
0e3ddf0613
ark: typo
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-26 11:14:36 +02:00
Ivailo Monev
e9d05084af
ark: partially implement bz2, gz and xz writing
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-23 09:17:36 +02:00
Ivailo Monev
90b1789d62
ark: crude crash fix for application/x-archive with weird directory entry
...
e.g. the libkspeech.a static library created by cmake
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-21 22:16:59 +02:00
Ivailo Monev
c3e740dc21
ark: do not use static buffer in KArchiveInterface::permissionsString()
...
make it protected so that it is reusable and implement permissions
for LibArchiveInterface via it while at it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-11 08:19:18 +02:00
Ivailo Monev
38684eebd8
ark: add missing MIME types and filters depending on their availability
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-11-25 20:22:07 +02:00
Ivailo Monev
2d89b0c7ee
ark: register application/x-xar MIME type as supported by libarchive plugin
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-11-21 08:13:41 +02:00
Ivailo Monev
194f6eda25
ark: implement encrypted entries info for libarchive plugin
...
fixes kerfuffle-archivetest failure
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-28 20:08:28 +03:00
Ivailo Monev
cb397b6a75
generic: move find_package() calls to top-level build file
...
reference:
https://github.com/fluxer/katana/issues/7
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-26 21:58:25 +02:00
Ivailo Monev
a5d82bcb5c
ark: include required header in karchiveplugin source file
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-10 23:13:20 +02:00
Ivailo Monev
94c1f7734c
ark: fix installation of karchive plugin
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-10 23:12:32 +02:00
Ivailo Monev
5dc3df843b
generic: consistent library variables usage
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-26 20:14:18 +02:00
Ivailo Monev
e06c507693
ark: add missing semi-colon char in MIME types
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-21 18:11:21 +02:00
Ivailo Monev
19dad4802e
ark: do not use libarchive plugin for single-file archives
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-18 16:32:57 +02:00
Ivailo Monev
1704b9a825
ark: register MIME types supported by recent libarchive versions
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-01 03:48:33 +02:00
Ivailo Monev
ca6ec59cc7
generic: replace macro_log_feature() with set_package_properties() calls
...
other changes such as syncing properties, updating some of the URLs,
adding missing feature information, removing of redundant checks and
variables and indentation were done in the process while testing if the
changes work as intended.
replacing find_package() with macro_optional_find_package() was also done
where applicable however it's usage is questionable due to the CMake
`CMAKE_DISABLE_FIND_PACKAGE_<PACKAGE>` option.
there is a lot to be done, mostly updating package properties so I am
thinking of either providing a package properties file (like the
MacroLibrary) which sets properties for packages globablly or setting
package properties from the CMake modules shipped with kdelibs. the first
solution may override properties for packages if other projects define them
however a check to ensure that is not done should suffice. the second
solution will cover only DESCRIPTION and URL meaning PURPOSE and TYPE will
still have to be specified in the build systems.
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-21 05:37:28 +02:00
Ivailo Monev
59190d3194
generic: replace installation paths with KDE4_ prefixed
...
see commit in kdelibs repository
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:12:24 +00:00
Ivailo Monev
6def6bb153
ark: make libarchive plugin priority 110 and lower others to 100
...
this ensures tarballs with .tar.gz extension, for an example, will not be
opened and displayed as .tar archive containing other archive
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-25 16:52:55 +00:00
Ivailo Monev
de80280f54
ark: replace archive_entry_pathname_w() with archive_entry_pathname_utf8()
...
archive_entry_pathname_w() is supposedly going to be removed/deprecated in
libarchive v4, see bottom of:
https://github.com/libarchive/libarchive/wiki/Filenames
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-11-29 02:24:18 +00:00
Ivailo Monev
85f69572f7
ark: deal with TODO
...
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-11-29 01:35:13 +00:00
Ivailo Monev
572f9eaa88
ark: do not link kerfuffle plugins to KIO unnecessaraly
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-22 23:23:50 +00:00
Ivailo Monev
82907eecca
ark: fix warning about null entry since 51d24304
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-22 23:21:19 +00:00
Ivailo Monev
51d243044d
ark: make sure lz4 and lzo are handled when supported
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-22 22:18:43 +00:00
Ivailo Monev
01d1bee274
ark: workaround archive_entry_set_pathname() limitation
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-05 06:51:30 +00:00
Ivailo Monev
bfbaa6fe0a
ark: update supported MIME types
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-07 17:28:26 +00:00
Ivailo Monev
cbf29a08cf
generic: make changes required for building against Katie
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-25 10:01:00 +00:00
Ivailo Monev
f990a18092
ark: update supported MIME types
...
nowdays .tar.gz and .tar.bz2 files are recognized as
application/x-bzip and application/x-gzip respectively.
also added application/x-gzip-compressed-tar because
application/x-bzip-compressed-tar is in the list and I
think that's a legacy one but should not hurt.
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-10-29 23:18:43 +02:00
Ivailo Monev
a165a95a57
generic: fix tests after the build system cleanup
2015-09-07 11:20:00 +03:00
Ivailo Monev
f58a4c5452
generic: major build system cleanup
2015-09-02 02:13:50 +03:00