5fe43ff5b5
names of installed packages; - add new `-G' option to disable glob matching and revert to previous behaviour (I have no idea why this could be necessary, though); - add a new `-x' option, which instructs pkg_info(1) to treat supplied arguments as a regular expressions. For example: $ pkg_info foo\* - displays information about all packages whose names start from foo $ pkg_info -G foo\*-1.1 - displays information about package named "foo*-1.1" $ pkg_info -x ^foo.\* - displays information about all packages whose names start from foo Original idea submitted by: Edwin Groothuis <mavetju@chello.nl> (bin/24695) Reviewed by: jkh, roam Approved by: jkh
72 lines
1.8 KiB
C
72 lines
1.8 KiB
C
/* $FreeBSD$ */
|
|
|
|
/*
|
|
* 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
|
|
|
|
#ifndef MAXINDEXSIZE
|
|
#define MAXINDEXSIZE 59
|
|
#endif
|
|
|
|
#ifndef MAXNAMESIZE
|
|
#define MAXNAMESIZE 20
|
|
#endif
|
|
|
|
#define SHOW_COMMENT 0x0001
|
|
#define SHOW_DESC 0x0002
|
|
#define SHOW_PLIST 0x0004
|
|
#define SHOW_INSTALL 0x0008
|
|
#define SHOW_DEINSTALL 0x0010
|
|
#define SHOW_REQUIRE 0x0020
|
|
#define SHOW_PREFIX 0x0040
|
|
#define SHOW_INDEX 0x0080
|
|
#define SHOW_FILES 0x0100
|
|
#define SHOW_DISPLAY 0x0200
|
|
#define SHOW_REQBY 0x0400
|
|
#define SHOW_MTREE 0x0800
|
|
#define SHOW_SIZE 0x1000
|
|
#define SHOW_ORIGIN 0x2000
|
|
#define SHOW_CKSUM 0x4000
|
|
|
|
enum _match_t {
|
|
MATCH_ALL, MATCH_EXACT, MATCH_GLOB, MATCH_REGEX
|
|
};
|
|
|
|
typedef enum _match_t match_t;
|
|
|
|
extern int Flags;
|
|
extern Boolean Quiet;
|
|
extern char *InfoPrefix;
|
|
extern char PlayPen[];
|
|
extern char *CheckPkg;
|
|
extern match_t MatchType;
|
|
|
|
extern void show_file(char *, char *);
|
|
extern void show_plist(char *, Package *, plist_t);
|
|
extern void show_files(char *, Package *);
|
|
extern void show_index(char *, char *);
|
|
extern void show_size(char *, Package *);
|
|
extern void show_cksum(char *, Package *);
|
|
extern void show_origin(char *, Package *);
|
|
|
|
#endif /* _INST_INFO_H_INCLUDE */
|