aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-05-20 19:53:48 +0200
committerFabian Groffen <grobian@gentoo.org>2019-05-20 19:53:48 +0200
commitd16f69568285d76dfa8a367f2458bc16f9e049e4 (patch)
treef7795e5bc4804f644ed2f4f363388e7e5bac6f3e /applets.h
parenttest/source: utime is obsolete, utimes is POSIX.1.2001 (diff)
downloadportage-utils-d16f69568285d76dfa8a367f2458bc16f9e049e4.tar.gz
portage-utils-d16f69568285d76dfa8a367f2458bc16f9e049e4.tar.bz2
portage-utils-d16f69568285d76dfa8a367f2458bc16f9e049e4.zip
qmanifest: new applet to verify and generate thick Manifests
This incorporates https://github.com/grobian/hashgen into portage-utils as qmanifest. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'applets.h')
-rw-r--r--applets.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/applets.h b/applets.h
index fbb4e8c..902e664 100644
--- a/applets.h
+++ b/applets.h
@@ -38,23 +38,24 @@ typedef int (*APPLET)(int, char **);
#define DECLARE_APPLET(applet) \
extern int applet##_main(int, char **) __attribute__((weak));
DECLARE_APPLET(q)
+DECLARE_APPLET(qatom)
DECLARE_APPLET(qcheck)
DECLARE_APPLET(qdepends)
DECLARE_APPLET(qfile)
+/*DECLARE_APPLET(qglsa) disable */
+DECLARE_APPLET(qgrep)
+DECLARE_APPLET(qkeyword)
DECLARE_APPLET(qlist)
DECLARE_APPLET(qlop)
+DECLARE_APPLET(qmanifest)
+DECLARE_APPLET(qmerge)
+DECLARE_APPLET(qpkg)
DECLARE_APPLET(qsearch)
DECLARE_APPLET(qsize)
DECLARE_APPLET(qtbz2)
+DECLARE_APPLET(qtegrity)
DECLARE_APPLET(quse)
DECLARE_APPLET(qxpak)
-DECLARE_APPLET(qpkg)
-DECLARE_APPLET(qgrep)
-DECLARE_APPLET(qatom)
-DECLARE_APPLET(qmerge)
-DECLARE_APPLET(qkeyword)
-/*DECLARE_APPLET(qglsa) disable */
-DECLARE_APPLET(qtegrity)
#undef DECLARE_APPLET
static const struct applet_t {
@@ -66,7 +67,6 @@ static const struct applet_t {
/* q must always be the first applet */
{"q", q_main, "<applet> <args>", "virtual applet"},
{"qatom", qatom_main, "<pkg>", "split atom strings"},
- {"qkeyword", qkeyword_main, "<action> <args>", "list packages based on keywords"},
{"qcheck", qcheck_main, "<pkgname>", "verify integrity of installed packages"},
{"qdepends", qdepends_main, "<pkgname>", "show dependency info"},
{"qfile", qfile_main, "<filename>", "list all pkgs owning files"},
@@ -74,16 +74,18 @@ static const struct applet_t {
{"qglsa", qglsa_main, "<action> <list>", "check GLSAs against system"},
*/
{"qgrep", qgrep_main, "<expr> [pkg ...]", "grep in ebuilds"},
+ {"qkeyword", qkeyword_main, "<action> <args>", "list packages based on keywords"},
{"qlist", qlist_main, "<pkgname>", "list files owned by pkgname"},
{"qlop", qlop_main, "<pkgname>", "emerge log analyzer"},
+ {"qmanifest", qmanifest_main, "<misc args>", "verify or generate thick Manifest files"},
{"qmerge", qmerge_main, "<pkgnames>", "fetch and merge binary package"},
{"qpkg", qpkg_main, "<misc args>", "manipulate Gentoo binpkgs"},
{"qsearch", qsearch_main, "<regex>", "search pkgname/desc"},
{"qsize", qsize_main, "<pkgname>", "calculate size usage"},
{"qtbz2", qtbz2_main, "<misc args>", "manipulate tbz2 packages"},
+ {"qtegrity", qtegrity_main, "<misc args>", "verify files with IMA"},
{"quse", quse_main, "<useflag>", "find pkgs using useflags"},
{"qxpak", qxpak_main, "<misc args>", "manipulate xpak archives"},
- {"qtegrity", qtegrity_main, "<misc args>", "verify files with IMA"},
/* aliases for equery compatibility */
{"belongs", qfile_main, NULL, NULL},
@@ -107,6 +109,10 @@ static const struct applet_t {
/* alias for qtegrity */
{"integrity", qtegrity_main, NULL, NULL},
+ /* old hashgen */
+ {"hashgen", qmanifest_main, NULL, NULL},
+ {"hashverify",qmanifest_main, NULL, NULL},
+
{NULL, NULL, NULL, NULL}
};