From owner-freebsd-questions@FreeBSD.ORG Wed Jun 22 02:58:57 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D1CC10656EA for ; Wed, 22 Jun 2011 02:58:57 +0000 (UTC) (envelope-from freebsd@penx.com) Received: from Elmer.dco.penx.com (elmer.dco.penx.com [174.46.214.165]) by mx1.freebsd.org (Postfix) with ESMTP id DA2108FC0C for ; Wed, 22 Jun 2011 02:58:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by Elmer.dco.penx.com (8.14.5/8.14.4) with ESMTP id p5M2LkeJ009783 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 21 Jun 2011 20:21:47 -0600 (MDT) (envelope-from freebsd@penx.com) Date: Tue, 21 Jun 2011 20:21:46 -0600 (MDT) From: Dennis Glatting X-X-Sender: dennisg@Elmer.dco.penx.com To: freebsd-questions@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: Embedding a RCS token in uname -i X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 02:58:57 -0000 I have kernel configuration files (e.g., a custom GENERIC) under RCS. For example: ============== # $Revision: 1.1$ cpu HAMMER ident GENERIC ============== I want to add that "1.1" to the end of GENERIC such that it becomes: ============== # $Revision: 1.1$ cpu HAMMER ident GENERIC-1.1 ============= Therefore, a uname -i becomes: btw> uname -i GENERIC-1.1 My goal is to provide a mechanism where I can identify that kernels built on a group of machines are running the same kernel built from a configuration under RCS. How can I customized the current config and build mechanisms to accomplish this? Is there some other way to accomplish this? Is it a dumb idea?