version.h revision 148435
198766Smarkm/* $FreeBSD: head/usr.sbin/pkg_install/version/version.h 148435 2005-07-27 07:55:12Z krion $ */
298766Smarkm
398766Smarkm/*
498766Smarkm * FreeBSD install - a package for the installation and maintainance
598766Smarkm * of non-core utilities.
698766Smarkm *
798766Smarkm * Redistribution and use in source and binary forms, with or without
898766Smarkm * modification, are permitted provided that the following conditions
998766Smarkm * are met:
1098766Smarkm * 1. Redistributions of source code must retain the above copyright
1198766Smarkm *    notice, this list of conditions and the following disclaimer.
1298766Smarkm * 2. Redistributions in binary form must reproduce the above copyright
1398766Smarkm *    notice, this list of conditions and the following disclaimer in the
1498766Smarkm *    documentation and/or other materials provided with the distribution.
1598766Smarkm *
1698766Smarkm * Jeremy D. Lea.
1798766Smarkm * 11 May 2002
1898766Smarkm *
1998766Smarkm * This is the version module. Based on pkg_version.pl by Bruce A. Mah.
2098766Smarkm *
2198766Smarkm */
2298766Smarkm
2398766Smarkm#ifndef _INST_VERSION_H_INCLUDE
2498766Smarkm#define _INST_VERSION_H_INCLUDE
2598766Smarkm
2698766Smarkm/* Where the ports lives by default */
2798766Smarkm#define DEF_PORTS_DIR	"/usr/ports"
2898766Smarkm/* just in case we change the environment variable name */
2998766Smarkm#define PORTSDIR	"PORTSDIR"
3098766Smarkm/* macro to get name of directory where we put logging information */
3198766Smarkm#define PORTS_DIR	(getenv(PORTSDIR) ? getenv(PORTSDIR) : DEF_PORTS_DIR)
3298766Smarkm
3398766Smarkmstruct index_entry {
3498766Smarkm    SLIST_ENTRY(index_entry) next;
35103119Ssobomax    char *name;
36103119Ssobomax    char *origin;
3798766Smarkm};
3898766SmarkmSLIST_HEAD(index_head, index_entry);
3998766Smarkm
4098766Smarkmextern char	*LimitChars;
4198766Smarkmextern char	*PreventChars;
4298766Smarkmextern char	*MatchName;
43148435Skrionextern char	*LookUpOrigin;
44131275Seikextern Boolean	RegexExtended;
45146559Scpercivaextern Boolean	UseINDEXOnly;
46148435Skrionextern Boolean	ShowOrigin;
4798766Smarkm
48131275Seikextern int	version_match(char *, const char *);
49131275Seik
5098766Smarkm#endif	/* _INST_VERSION_H_INCLUDE */
51