1/*	$NetBSD: mail_version.h,v 1.1.1.12.2.3 2012/08/12 19:25:23 martin Exp $	*/
2
3#ifndef _MAIL_VERSION_H_INCLUDED_
4#define _MAIL_VERSION_H_INCLUDED_
5
6/*++
7/* NAME
8/*	mail_version 3h
9/* SUMMARY
10/*	globally configurable parameters
11/* SYNOPSIS
12/*	#include <mail_version.h>
13/* DESCRIPTION
14/* .nf
15
16 /*
17  * Version of this program. Official versions are called a.b.c, and
18  * snapshots are called a.b-yyyymmdd, where a=major release number, b=minor
19  * release number, c=patchlevel, and yyyymmdd is the release date:
20  * yyyy=year, mm=month, dd=day.
21  *
22  * Patches change both the patchlevel and the release date. Snapshots have no
23  * patchlevel; they change the release date only.
24  */
25#define MAIL_RELEASE_DATE	"20121213"
26#define MAIL_VERSION_NUMBER	"2.8.13"
27
28#ifdef SNAPSHOT
29# define MAIL_VERSION_DATE	"-" MAIL_RELEASE_DATE
30#else
31# define MAIL_VERSION_DATE	""
32#endif
33
34#ifdef NONPROD
35# define MAIL_VERSION_PROD	"-nonprod"
36#else
37# define MAIL_VERSION_PROD	""
38#endif
39
40#define VAR_MAIL_VERSION	"mail_version"
41#define DEF_MAIL_VERSION	MAIL_VERSION_NUMBER MAIL_VERSION_DATE MAIL_VERSION_PROD
42
43extern char *var_mail_version;
44
45 /*
46  * Release date.
47  */
48#define VAR_MAIL_RELEASE	"mail_release_date"
49#define DEF_MAIL_RELEASE	MAIL_RELEASE_DATE
50extern char *var_mail_release;
51
52 /*
53  * The following macros stamp executable files as well as core dumps. This
54  * information helps to answer the following questions:
55  *
56  * - What Postfix versions(s) are installed on this machine?
57  *
58  * - Is this installation mixing multiple Postfix versions?
59  *
60  * - What Postfix version generated this core dump?
61  *
62  * To find out: strings -f file... | grep mail_version=
63  */
64#include <string.h>
65
66#define MAIL_VERSION_STAMP_DECLARE \
67    char *mail_version_stamp
68
69#define MAIL_VERSION_STAMP_ALLOCATE \
70    mail_version_stamp = strdup(VAR_MAIL_VERSION "=" DEF_MAIL_VERSION)
71
72/* LICENSE
73/* .ad
74/* .fi
75/*	The Secure Mailer license must be distributed with this software.
76/* AUTHOR(S)
77/*	Wietse Venema
78/*	IBM T.J. Watson Research
79/*	P.O. Box 704
80/*	Yorktown Heights, NY 10598, USA
81/*--*/
82
83#endif
84