1999-08-28 01:35:59 +00:00
|
|
|
/* $FreeBSD$ */
|
1993-08-26 01:19:55 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* FreeBSD install - a package for the installation and maintainance
|
|
|
|
* of non-core utilities.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* Jordan K. Hubbard
|
|
|
|
* 23 August 1993
|
|
|
|
*
|
|
|
|
* Include and define various things wanted by the info command.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INST_INFO_H_INCLUDE
|
|
|
|
#define _INST_INFO_H_INCLUDE
|
|
|
|
|
2001-03-23 18:45:24 +00:00
|
|
|
#include <sys/queue.h>
|
|
|
|
|
1995-01-05 01:10:13 +00:00
|
|
|
#ifndef MAXINDEXSIZE
|
2000-10-18 20:16:26 +00:00
|
|
|
#define MAXINDEXSIZE 59
|
1995-01-05 01:10:13 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MAXNAMESIZE
|
|
|
|
#define MAXNAMESIZE 20
|
|
|
|
#endif
|
|
|
|
|
2002-09-09 19:43:30 +00:00
|
|
|
#define SHOW_COMMENT 0x00001
|
|
|
|
#define SHOW_DESC 0x00002
|
|
|
|
#define SHOW_PLIST 0x00004
|
|
|
|
#define SHOW_INSTALL 0x00008
|
|
|
|
#define SHOW_DEINSTALL 0x00010
|
|
|
|
#define SHOW_REQUIRE 0x00020
|
|
|
|
#define SHOW_PREFIX 0x00040
|
|
|
|
#define SHOW_INDEX 0x00080
|
|
|
|
#define SHOW_FILES 0x00100
|
|
|
|
#define SHOW_DISPLAY 0x00200
|
|
|
|
#define SHOW_REQBY 0x00400
|
|
|
|
#define SHOW_MTREE 0x00800
|
|
|
|
#define SHOW_SIZE 0x01000
|
|
|
|
#define SHOW_ORIGIN 0x02000
|
|
|
|
#define SHOW_CKSUM 0x04000
|
|
|
|
#define SHOW_FMTREV 0x08000
|
|
|
|
#define SHOW_PTREV 0x10000
|
1993-08-26 01:19:55 +00:00
|
|
|
|
2001-03-23 18:45:24 +00:00
|
|
|
struct which_entry {
|
|
|
|
TAILQ_ENTRY(which_entry) next;
|
|
|
|
char file[PATH_MAX];
|
|
|
|
char package[PATH_MAX];
|
|
|
|
Boolean skip;
|
|
|
|
};
|
|
|
|
TAILQ_HEAD(which_head, which_entry);
|
|
|
|
|
1993-08-26 01:19:55 +00:00
|
|
|
extern int Flags;
|
1993-09-08 01:46:59 +00:00
|
|
|
extern Boolean Quiet;
|
1993-09-03 23:01:17 +00:00
|
|
|
extern char *InfoPrefix;
|
1995-10-25 15:38:37 +00:00
|
|
|
extern char PlayPen[];
|
1993-09-05 22:36:54 +00:00
|
|
|
extern char *CheckPkg;
|
2002-05-04 14:49:49 +00:00
|
|
|
extern char *LookUpOrigin;
|
2001-02-08 17:44:00 +00:00
|
|
|
extern match_t MatchType;
|
2001-03-23 18:45:24 +00:00
|
|
|
extern struct which_head *whead;
|
1993-08-26 01:19:55 +00:00
|
|
|
|
2001-10-10 06:58:42 +00:00
|
|
|
extern void show_file(const char *, const char *);
|
|
|
|
extern void show_plist(const char *, Package *, plist_t, Boolean);
|
|
|
|
extern void show_files(const char *, Package *);
|
|
|
|
extern void show_index(const char *, const char *);
|
|
|
|
extern void show_size(const char *, Package *);
|
|
|
|
extern void show_cksum(const char *, Package *);
|
|
|
|
extern void show_origin(const char *, Package *);
|
2001-10-10 08:21:41 +00:00
|
|
|
extern void show_fmtrev(const char *, Package *);
|
1993-08-26 01:19:55 +00:00
|
|
|
|
|
|
|
#endif /* _INST_INFO_H_INCLUDE */
|