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 * This is the version module. Based on pkg_version.pl by Bruce A. Mah.
23 #ifndef _INST_VERSION_H_INCLUDE
24 #define _INST_VERSION_H_INCLUDE
26 /* Where the ports lives by default */
27 #define DEF_PORTS_DIR "/usr/ports"
28 /* just in case we change the environment variable name */
29 #define PORTSDIR "PORTSDIR"
30 /* macro to get name of directory where we put logging information */
31 #define PORTS_DIR (getenv(PORTSDIR) ? getenv(PORTSDIR) : DEF_PORTS_DIR)
34 SLIST_ENTRY(index_entry) next;
38 SLIST_HEAD(index_head, index_entry);
40 extern char *LimitChars;
41 extern char *PreventChars;
42 extern char *MatchName;
43 extern char *LookUpOrigin;
44 extern Boolean RegexExtended;
45 extern Boolean UseINDEXOnly;
46 extern Boolean ShowOrigin;
48 extern int version_match(char *, const char *);
50 #endif /* _INST_VERSION_H_INCLUDE */