4 * FreeBSD install - a package for the installation and maintainance
5 * of non-core utilities.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
19 * Include and define various things wanted by the info command.
23 #ifndef _INST_INFO_H_INCLUDE
24 #define _INST_INFO_H_INCLUDE
26 #include <sys/queue.h>
29 #define MAXINDEXSIZE 59
33 #define MAXNAMESIZE 20
36 #define SHOW_COMMENT 0x000001
37 #define SHOW_DESC 0x000002
38 #define SHOW_PLIST 0x000004
39 #define SHOW_INSTALL 0x000008
40 #define SHOW_DEINSTALL 0x000010
41 #define SHOW_REQUIRE 0x000020
42 #define SHOW_PREFIX 0x000040
43 #define SHOW_INDEX 0x000080
44 #define SHOW_FILES 0x000100
45 #define SHOW_DISPLAY 0x000200
46 #define SHOW_REQBY 0x000400
47 #define SHOW_MTREE 0x000800
48 #define SHOW_SIZE 0x001000
49 #define SHOW_ORIGIN 0x002000
50 #define SHOW_CKSUM 0x004000
51 #define SHOW_FMTREV 0x008000
52 #define SHOW_PTREV 0x010000
53 #define SHOW_DEPEND 0x020000
54 #define SHOW_PKGNAME 0x040000
55 #define SHOW_LPREV 0x100000
58 TAILQ_ENTRY(which_entry) next;
60 char package[PATH_MAX];
63 TAILQ_HEAD(which_head, which_entry);
67 extern Boolean UseBlkSz;
68 extern Boolean KeepPackage;
69 extern char *InfoPrefix;
70 extern char PlayPen[];
71 extern char *CheckPkg;
72 extern char *LookUpOrigin;
73 extern match_t MatchType;
74 extern struct which_head *whead;
76 extern void show_file(const char *, const char *);
77 extern void show_plist(const char *, Package *, plist_t, Boolean);
78 extern void show_files(const char *, Package *);
79 extern void show_index(const char *, const char *);
80 extern void show_size(const char *, Package *);
81 extern void show_cksum(const char *, Package *);
82 extern void show_origin(const char *, Package *);
83 extern void show_fmtrev(const char *, Package *);
85 #endif /* _INST_INFO_H_INCLUDE */