150479Speter/* $FreeBSD$ */
2327Sjkh
3327Sjkh/*
4228990Suqs * FreeBSD install - a package for the installation and maintenance
5327Sjkh * of non-core utilities.
6327Sjkh *
7327Sjkh * Redistribution and use in source and binary forms, with or without
8327Sjkh * modification, are permitted provided that the following conditions
9327Sjkh * are met:
10327Sjkh * 1. Redistributions of source code must retain the above copyright
11327Sjkh *    notice, this list of conditions and the following disclaimer.
12327Sjkh * 2. Redistributions in binary form must reproduce the above copyright
13327Sjkh *    notice, this list of conditions and the following disclaimer in the
14327Sjkh *    documentation and/or other materials provided with the distribution.
15327Sjkh *
16327Sjkh * Jordan K. Hubbard
17327Sjkh * 23 August 1993
18327Sjkh *
19327Sjkh * Include and define various things wanted by the info command.
20327Sjkh *
21327Sjkh */
22327Sjkh
23327Sjkh#ifndef _INST_INFO_H_INCLUDE
24327Sjkh#define _INST_INFO_H_INCLUDE
25327Sjkh
2674699Ssobomax#include <sys/queue.h>
2774699Ssobomax
285399Sswallace#ifndef MAXINDEXSIZE
2967300Sdes#define MAXINDEXSIZE 59
305399Sswallace#endif
315399Sswallace
325399Sswallace#ifndef MAXNAMESIZE
335399Sswallace#define MAXNAMESIZE  20
345399Sswallace#endif
355399Sswallace
36222035Sflz#define SHOW_COMMENT	0x00001
37222035Sflz#define SHOW_DESC	0x00002
38222035Sflz#define SHOW_PLIST	0x00004
39222035Sflz#define SHOW_INSTALL	0x00008
40222035Sflz#define SHOW_DEINSTALL	0x00010
41222035Sflz#define SHOW_REQUIRE	0x00020
42222035Sflz#define SHOW_PREFIX	0x00040
43222035Sflz#define SHOW_INDEX	0x00080
44222035Sflz#define SHOW_FILES	0x00100
45222035Sflz#define SHOW_DISPLAY	0x00200
46222035Sflz#define SHOW_REQBY	0x00400
47222035Sflz#define SHOW_MTREE	0x00800
48222035Sflz#define SHOW_SIZE	0x01000
49222035Sflz#define SHOW_ORIGIN	0x02000
50222035Sflz#define SHOW_CKSUM	0x04000
51222035Sflz#define SHOW_FMTREV	0x08000
52222035Sflz#define SHOW_PTREV	0x10000
53222035Sflz#define SHOW_DEPEND	0x20000
54222035Sflz#define SHOW_PKGNAME	0x40000
55327Sjkh
5674699Ssobomaxstruct which_entry {
5774699Ssobomax    TAILQ_ENTRY(which_entry) next;
5874699Ssobomax    char file[PATH_MAX];
5974699Ssobomax    char package[PATH_MAX];
6074699Ssobomax    Boolean skip;
6174699Ssobomax};
6274699SsobomaxTAILQ_HEAD(which_head, which_entry);
6374699Ssobomax
64327Sjkhextern int Flags;
65112572Smdoddextern Boolean QUIET;
66112579Smdoddextern Boolean UseBlkSz;
67154145Sflzextern Boolean KeepPackage;
68379Sjkhextern char *InfoPrefix;
6911780Sjkhextern char PlayPen[];
70392Sjkhextern char *CheckPkg;
7196030Ssobomaxextern char *LookUpOrigin;
7272174Ssobomaxextern match_t MatchType;
7374699Ssobomaxextern struct which_head *whead;
74327Sjkh
7584745Ssobomaxextern void	show_file(const char *, const char *);
7684745Ssobomaxextern void	show_plist(const char *, Package *, plist_t, Boolean);
7784745Ssobomaxextern void	show_files(const char *, Package *);
7884745Ssobomaxextern void	show_index(const char *, const char *);
7984745Ssobomaxextern void	show_size(const char *, Package *);
80240682Sbaptextern int	show_cksum(const char *, Package *);
8184745Ssobomaxextern void	show_origin(const char *, Package *);
8284750Ssobomaxextern void	show_fmtrev(const char *, Package *);
83327Sjkh
84327Sjkh#endif	/* _INST_INFO_H_INCLUDE */
85