diff options
author | sborrill <sborrill@pkgsrc.org> | 2012-06-05 12:58:53 +0000 |
---|---|---|
committer | sborrill <sborrill@pkgsrc.org> | 2012-06-05 12:58:53 +0000 |
commit | 2c276cb355e9e069d421a27ad4c6211672e6ef40 (patch) | |
tree | 8cfbd27d601fcfe6526104b29abf6818efbd1898 /sysutils | |
parent | 757fa00f481b1cac484d819930c74da3590358f0 (diff) | |
download | pkgsrc-2c276cb355e9e069d421a27ad4c6211672e6ef40.tar.gz |
Add support for appending a custom string to the OS version as displayed by
XenCenter by setting xenguest_osappend in rc.conf.
Bump PKGREVISION
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/xe-guest-utilities/Makefile | 4 | ||||
-rwxr-xr-x | sysutils/xe-guest-utilities/files/xenguest.sh | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/sysutils/xe-guest-utilities/Makefile b/sysutils/xe-guest-utilities/Makefile index 61f7d7f22eb..fff17e40d36 100644 --- a/sysutils/xe-guest-utilities/Makefile +++ b/sysutils/xe-guest-utilities/Makefile @@ -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} diff --git a/sysutils/xe-guest-utilities/files/xenguest.sh b/sysutils/xe-guest-utilities/files/xenguest.sh index 95a0cada3ac..780bffac71a 100755 --- a/sysutils/xe-guest-utilities/files/xenguest.sh +++ b/sysutils/xe-guest-utilities/files/xenguest.sh @@ -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%%.*}" |