Add support for appending a custom string to the OS version as displayed by
XenCenter by setting xenguest_osappend in rc.conf. Bump PKGREVISION
This commit is contained in:
parent
7eef8bb03f
commit
6c61dbd4ec
2 changed files with 8 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.6 2012/05/24 09:44:18 sborrill Exp $
|
||||
# $NetBSD: Makefile,v 1.7 2012/06/05 12:58:53 sborrill Exp $
|
||||
#
|
||||
|
||||
# Values from XenServer 6.0.2 = 6, 0, 2, 52898
|
||||
|
@ -10,7 +10,7 @@ XENTEENY= 2
|
|||
XENBUILD= 52898
|
||||
|
||||
VERSION= ${XENMAJOR}.${XENMINOR}.${XENTEENY}
|
||||
PKGREVISION= 2
|
||||
PKGREVISION= 3
|
||||
DISTNAME= xe-guest-utilities_5.6.0-595
|
||||
CATEGORIES= sysutils
|
||||
PKGNAME= xe-guest-utilities-${VERSION}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
#!@RCD_SCRIPTS_SHELL@
|
||||
#
|
||||
# $NetBSD: xenguest.sh,v 1.3 2012/05/24 09:44:18 sborrill Exp $
|
||||
# $NetBSD: xenguest.sh,v 1.4 2012/06/05 12:58:53 sborrill Exp $
|
||||
#
|
||||
# PROVIDE: xenguest
|
||||
# REQUIRE: DAEMON
|
||||
|
||||
# Set xenguest_osappend to optional string to add after OS version
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="xenguest"
|
||||
|
@ -38,6 +40,9 @@ xenguest_precmd()
|
|||
os_distro="$(uname -s)"
|
||||
os_uname="$(uname -r)"
|
||||
os_name="$(uname -s) $(uname -r)"
|
||||
if [ -n "$xenguest_osappend" ]; then
|
||||
os_name="${os_name} ${xenguest_osappend}"
|
||||
fi
|
||||
os_majorver="${os_uname%%.*}"
|
||||
os_minorver="${os_uname#*.}"
|
||||
os_minorver="${os_minorver%%.*}"
|
||||
|
|
Loading…
Reference in a new issue