FreeBSD Bugzilla – Attachment 146367 Details for
Bug 182209
[new port] emulators/hyperv-ic: Ports containing Hyper-V integration components for FreeBSD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
shar file for Hyper-v Integration Service on FreeBSD 9.2
hyperv92.shar (text/plain), 14.11 KB, created by
Kylie
on 2014-08-27 11:59:36 UTC
(
hide
)
Description:
shar file for Hyper-v Integration Service on FreeBSD 9.2
Filename:
MIME Type:
Creator:
Kylie
Created:
2014-08-27 11:59:36 UTC
Size:
14.11 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># hyperv-is ># hyperv-is/pkg-deinstall ># hyperv-is/pkg-install ># hyperv-is/pkg-descr ># hyperv-is/pkg-plist ># hyperv-is/distinfo ># hyperv-is/Makefile ># >echo c - hyperv-is >mkdir -p hyperv-is > /dev/null 2>&1 >echo x - hyperv-is/pkg-deinstall >sed 's/^X//' >hyperv-is/pkg-deinstall << 'db86977df7236024435d800e621afbd9' >X#!/bin/sh >X# >X# make deinstall or pkd_delete script >X# cleans the hyperv labels >X# >X >Xif [ "$2" = "DEINSTALL" ]; then >X test="/boot/loader.conf" >X >X if [ -f $test ]; then >X echo "===> File $test exists" >X echo "Removing Hyper-v BIS drivers labels " >X # Deleting Hyper-v BIS driver names >X sed -i "" '/Loader labels for Hyper-v BIS driver/d' /boot/loader.conf >X sed -i "" '/hv_vmbus_load/d' /boot/loader.conf >X sed -i "" '/hv_utils_load/d' /boot/loader.conf >X sed -i "" '/hv_storvsc_load/d' /boot/loader.conf >X sed -i "" '/hv_netvsc_load/d' /boot/loader.conf >X sed -i "" '/hv_ata_pci_disengage_load/d' /boot/loader.conf >X else >X echo "===> File $test not found" >X fi >X >Xecho "===> Removing kvp daemon label" >Xsed -i "" '/Labels for KVP daemon/d' /etc/rc.conf >Xsed -i "" '/hv_kvp_daemon_enable/d' /etc/rc.conf >X# Remove rc.conf and loader.conf if null >Xrc_content=$(cat /etc/rc.conf |awk '{print $0}') >Xloader_content=$(cat /boot/loader.conf |awk '{print $0}') >Xif [ ${rc_content}="" ]; then >X rm /etc/rc.conf >X if [ -f /etc/rc.conf.bak ]; then >X rm /etc/rc.conf.bak >X fi >Xfi >X >Xif [ ${loader_content}="" ]; then >X rm /boot/loader.conf >X if [ -f /boot/loader.conf.bak ]; then >X rm /boot/loader.conf.bak >X fi >Xfi >X >Xfi >Xexit 0 >db86977df7236024435d800e621afbd9 >echo x - hyperv-is/pkg-install >sed 's/^X//' >hyperv-is/pkg-install << '3c520b87be02d411e687c6851c9f02c3' >X#!/bin/sh >X# >X# make install or pkg_add script >X# Checks labels/gptids for roots and swap partitions >X# adds hyperv labels in loader.conf >X# >X >X#Check poudriere workdirs >XPOD_WRK_HOME=/wrkdirs >Xif [ -d ${POD_WRK_HOME} ]; then >X else >X POD_WRK_HOME=/ >Xfi >XWRKDIRS=${POD_WRK_HOME}$(pwd |awk '{print $1}')/work/stage >X >Xif [ "$2" = "PRE-INSTALL" ]; then >Xecho "===> Pre-install Check" >X >X#rootfs check >Xroot_flag=$(mount | awk '/ on \/ / { print $1 }' | cut -d / -f3-) >Xif [ "$root_flag" != "" ]; then >X fs_test=$(glabel status | awk '{print $1}' | grep $root_flag) >X if [ "$fs_test" == "" ]; then >X echo " xxx rootfs Label/gptid missing in fstab" >X fi >Xelse >X echo " xxx rootfs Label/gptid missing in fstab" >Xfi >X#swap check >Xswap_flag=$(grep swap /etc/fstab | awk '{print $1}' | cut -d / -f3-) >Xif [ "$swap_flag" != "" ]; then >X sw_test=$(glabel status | awk '{print $1}' | grep $swap_flag) >X if [ "$sw_test" == "" ]; then >X echo " xxx swap Label/gptid missing in fstab" >X fi >Xelse >X echo " xxx swap Label/gptid missing in fstab " >Xfi >X >Xif [ "$fs_test" != "" -a "$sw_test" != "" ]; then >X echo "===> Labels/gptids Found" >X echo "===> Hyper-V BIS Installation Continues" >Xelse >X echo "===> Labels/gptids Not found" >X echo "===> Hyper-V BIS Installation Aborted" >X echo "===> Refer to Disk UUID section in README document" >X echo "===> Please refer the Prerequisites page and complete all steps" >X echo "WWW: https://github.com/FreeBSDonHyper-V/Hyperv-Ports/wiki/Prerequisites " >X exit -1 >Xfi >Xif [ -d ${WRKDIRS} ]; then >Xif [ -d ${WRKDIRS}"/usr" ]; then >X if [ -d ${WRKDIRS}"/usr/local" ]; then >X else >X mkdir ${WRKDIRS}/usr/local >X fi >Xelse >X mkdir ${WRKDIRS}/usr >X mkdir ${WRKDIRS}/usr/local >Xfi >X >X >X# KVP - Directories Check >Xecho "===> Checking KVP directories" >Xkvp_dir="${WRKDIRS}/usr/local/hyperv/" >Xkvp_dir_scripts="${WRKDIRS}/usr/local/hyperv/scripts" >X >Xif [ -d $kvp_dir ]; then >X if [ -d $kvp_dir_scripts ]; then >X echo " ### KVP Directories present " >X else >X echo " ### Creating $kvp_dir_scripts directory " >X mkdir ${WRKDIRS}/usr/local/hyperv/scripts >X fi >Xelse >X echo " xxx KVP directories not found" >X echo " ### Creating KVP directories " >X mkdir ${WRKDIRS}/usr/local/hyperv >X mkdir ${WRKDIRS}/usr/local/hyperv/scripts >Xfi >X >X# ETC Directories Check >X >Xecho "===> Checking Daemon Install directories" >Xetc_dir="${WRKDIRS}/etc" >Xetc_rc_dir="${WRKDIRS}/etc/rc.d" >X >Xif [ -d $etc_dir ]; then >X if [ -d $etc_rc_dir ]; then >X echo " ### ETCRC directories present " >X else >X echo " ### Creating $etc_rc_dir directory " >X mkdir ${WRKDIRS}/etc/rc.d >X fi >Xelse >X echo " xxx ETC directories not found" >X echo " ### Creating ETC directories " >X mkdir ${WRKDIRS}/etc >X mkdir ${WRKDIRS}/etc/rc.d >Xfi >X >X# DAEMONBIN Directories Check >X >Xecho "===> Checking Install Daemon directories" >Xsbin_dir="${WRKDIRS}/usr/sbin" >X >Xif [ -d $sbin_dir ]; then >X echo " ### SBIN Directories present" >Xelse >X echo " xxx SBIN directories not found" >X echo " ### Creating SBIN directories " >X mkdir $sbin_dir >Xfi >X >X# KERNEL Directories Check >X >Xecho "===> Checking Install Boot directories" >Xboot_dir="${WRKDIRS}/boot" >Xkernel_dir="${WRKDIRS}/boot/kernel" >X >Xif [ -d $boot_dir ]; then >X if [ -d $kernel_dir ]; then >X echo " ### KERNEL diretories present" >X else >X echo " ### Creating Kernel diretories " >X mkdir $kernel_dir >X fi >Xelse >X echo " xxx BOOT directories not found" >X echo " ### Creating BOOT direcories" >X mkdir $boot_dir >X mkdir $kernel_dir >Xfi >X >X#Check Share directories >Xshare_dir="${WRKDIRS}/usr/share" >Xif [ -d $share_dir ]; then >X echo " ### Share directories present " >Xelse >X echo " ### Creating Share direcories " >X mkdir $share_dir >Xfi >X >X#Check man directories >Xman_dir="$share_dir/man" >Xif [ -d $man_dir ]; then >X echo " ### Man directories present " >Xelse >X mkdir $man_dir >Xfi >X >X#Check subdir >Xman1_dir="$man_dir/man1" >Xman4_dir="$man_dir/man4" >Xman8_dir="$man_dir/man8" >Xif [ -d $man1_dir ]; then >X else >X mkdir $man1_dir >X mkdir $man4_dir >X mkdir $man8_dir >Xfi >X >Xelse >X# KVP - Directories Check >Xecho "===> Checking KVP directories" >Xkvp_dir="/usr/local/hyperv/" >Xkvp_dir_scripts="/usr/local/hyperv/scripts" >X >Xif [ -d $kvp_dir ]; then >X if [ -d $kvp_dir_scripts ]; then >X echo " ### KVP Directories present " >X else >X echo " ### Creating $kvp_dir_scripts directory " >X mkdir /usr/local/hyperv/scripts >X fi >Xelse >X echo " xxx KVP directories not found" >X echo " ### Creating KVP directories " >X mkdir /usr/local/hyperv >X mkdir /usr/local/hyperv/scripts >Xfi >Xfi >Xelse if [ "$2" = "POST-INSTALL" ]; then >X test="/boot/loader.conf" >X if [ -d ${WRKDIRS} ]; then >X rm -f ${WRKDIRS}/boot/kernel/linker.hints >X else >X rm -f /boot/kernel/linker.hints >X fi >X if [ -f $test ]; then >X echo "===> File $test exists" >X echo "Adding for Hyper-v drivers" >X >X # Deleting Hyper-v BIS driver names >X sed -i".bak" '/Loader labels for Hyper-v BIS driver/d' /boot/loader.conf >X sed -i".bak" '/hv_vmbus_load/d' /boot/loader.conf >X sed -i".bak" '/hv_utils_load/d' /boot/loader.conf >X sed -i".bak" '/hv_storvsc_load/d' /boot/loader.conf >X sed -i".bak" '/hv_netvsc_load/d' /boot/loader.conf >X sed -i".bak" '/hv_ata_pci_disengage_load/d' /boot/loader.conf >X >X #Hyper-v driver names >X echo "# Loader labels for Hyper-v BIS drivers -do not modify" >> /boot/loader.conf >X echo "hv_vmbus_load=\"YES\"" >> /boot/loader.conf >X echo "hv_utils_load=\"YES\"" >> /boot/loader.conf >X echo "hv_storvsc_load=\"YES\"" >> /boot/loader.conf >X echo "hv_netvsc_load=\"YES\"" >> /boot/loader.conf >X echo "hv_ata_pci_disengage_load=\"YES\"" >> /boot/loader.conf >X >X else >X echo "===> File $test does not exists" >X echo " Adding File $test and Hyper-v BIS driver labels" >X #Hyper-v driver names >X echo "# Loader labels for Hyper-v BIS drivers -do not modify" >> /boot/loader.conf >X echo "hv_vmbus_load=\"YES\"" >> /boot/loader.conf >X echo "hv_utils_load=\"YES\"" >> /boot/loader.conf >X echo "hv_storvsc_load=\"YES\"" >> /boot/loader.conf >X echo "hv_netvsc_load=\"YES\"" >> /boot/loader.conf >X echo "hv_ata_pci_disengage_load=\"YES\"" >> /boot/loader.conf >X fi >X >X# KVP - daemon label >Xecho "===> Adding kvp daemon label" >Xif [ -f "/etc/rc.conf" ]; then >X sed -i".bak" '/Labels for KVP daemon/d' /etc/rc.conf >X sed -i".bak" '/hv_kvp_daemon_enable/d' /etc/rc.conf >X echo "# Labels for KVP daemon -do not modify" >> /etc/rc.conf >X echo "hv_kvp_daemon_enable=\"YES\"" >> /etc/rc.conf >Xelse >X echo "# Labels for KVP daemon -do not modify" >> /etc/rc.conf >X echo "hv_kvp_daemon_enable=\"YES\"" >> /etc/rc.conf >Xfi >Xfi >Xfi >Xexit 0 >3c520b87be02d411e687c6851c9f02c3 >echo x - hyperv-is/pkg-descr >sed 's/^X//' >hyperv-is/pkg-descr << 'f4b7e228f12133b0b028061765b6d0dd' >XNAME >X hyperv-is -- FreeBSD Integration Service on Hyper-v >X >XSYNOPSIS >X The hyperv-is provision a collection of kernel mode drivers as well as >X user-space daemons to facilitate integration with Hyper-v to provide a >X feature rich and high performance FreeBSD guest experience. >X >X >XDESCRIPTION >X The FreeBSD Integration Service on Hyper-v includes a collection of kernel >X mode drivers as well as user-space daemons to interact with the drivers >X that are required to run Hyper-V-specific devices known as FreeBSD >X Integration Services (BIS). >X It is to facilitate integration with Hyper-v to provide a feature rich >X and high performance FreeBSD guest experience. >X As of this writing, the hyperv-is ports package >X installs the following binaries: >X >X a) hv_vmbus.ko - This is a loadable kernel module that provides a high >X performance communication interface between the FreeBSD guest partition >X and the Hyper-V root partition running Windows Server software. This mod- >X ule is located under /boot/kernel/. >X >X b) hv_storvsc.ko - This is a loadable kernel module that provides FreeBSD >X guests with optimized access to physical storage devices. This module is >X located under /boot/kernel/. >X >X c) hv_netvsc.ko - This is a loadable kernel module that provides FreeBSD >X guests with optimized access to the physical network card. This module >X is located under /boot/kernel/. >X >X d) hv_utils.ko - This is a loadable kernel module that provides FreeBSD >X guests with time synchronization, heartbeat, console shutdown and key-value pair >X functionality. This module is located under /boot/kernel/. >X >X e) hv_ata_pci_disengage.ko - This is a loadable kernel module that dis- >X ables the FreeBSD native ATA driver in order to avoid conflicts with the >X hv_storvsc driver. This module is located under /boot/kernel/. >X >X f) hv_kvp_daemon - This is a user mode daemon that communicates with the >X hv_utils driver to manage user configurable metadata in the form of key >X value pairs. This daemon also allows the system administrator to read >X and set IP addresses assigned to a FreeBSD guest. The daemon utilizes the >X following collection of scripts stored under /usr/local/hyperv/scripts: >X hv_get_dhcp_info >X hv_get_dns_info >X hv_set_ifconfig >X >X The daemon is located under /usr/sbin/. The corresponding daemon script >X named hv_kvpd is present under /etc/rc.d/. >X >XPRE-REQUISITE >X Before you install hyperv-is ports, please ensure that you have added >X disk labels or UUIDs to all devices listed in fstab. >X >XSEE ALSO >X hv_vmbus(4), hv_utils(4), hv_netvsc(4), hv_storvsc(4), >X hv_ata_pci_disengage(4), hv_kvp_daemon(8) >X >XHISTORY >X Support for hyperv-is ports was first released in September 2013. The >X ports were developed through a joint effort between Citrix Inc., >X Microsoft Corp. and Network Appliance Inc.. >X >XAUTHORS >X FreeBSD support for hyperv-is was first added by Microsoft BSD >X Integration Services Team <bsdic@microsoft.com>. >f4b7e228f12133b0b028061765b6d0dd >echo x - hyperv-is/pkg-plist >sed 's/^X//' >hyperv-is/pkg-plist << 'dc3af9f4a971bdee44bd9b2f6d0c44ed' >X@cwd /boot/kernel >Xhv_ata_pci_disengage.ko >Xhv_netvsc.ko >Xhv_storvsc.ko >Xhv_utils.ko >Xhv_vmbus.ko >X@cwd /usr/local/hyperv/scripts >Xhv_get_dhcp_info >Xhv_get_dns_info >Xhv_set_ifconfig >X@cwd /etc/rc.d >Xhv_kvpd >X@cwd /usr/sbin >Xhv_kvp_daemon >X@cwd /usr/share/man/man1 >Xhyperv-is.1.gz >X@cwd /usr/share/man/man4 >Xhv_ata_pci_disengage.4.gz >Xhv_kvp.4.gz >Xhv_netvsc.4.gz >Xhv_storvsc.4.gz >Xhv_utils.4.gz >Xhv_vmbus.4.gz >X@cwd /usr/share/man/man8 >Xhv_kvp_daemon.8.gz >X@cwd / >X@dirrm /usr/local/hyperv/scripts >X@dirrm /usr/local/hyperv >dc3af9f4a971bdee44bd9b2f6d0c44ed >echo x - hyperv-is/distinfo >sed 's/^X//' >hyperv-is/distinfo << '9b4f2f7673f4839a98b4e53d4eaaf56f' >XSHA256 (hyperv-is-1.1.tar.gz) = f675139b4ecf597d752b64fcb3d6a9eae6cdc32c831b8dec77221200bb56d52c >XSIZE (hyperv-is-1.1.tar.gz) = 107105 >9b4f2f7673f4839a98b4e53d4eaaf56f >echo x - hyperv-is/Makefile >sed 's/^X//' >hyperv-is/Makefile << '4e23e705ff6899a9f5d3177d806a802e' >X# $FreeBSD$ >XUSES+=uidfix >X#NO_STAGE="YES" >XPORTNAME= hyperv-is >XPORTVERSION= 1.1 >XCATEGORIES= kld >XMASTER_SITES= https://github.com/FreeBSDonHyper-V/Hyperv-Ports/raw/hyperv-is-master/BIS-1.1/FreeBSD-9.2/ports/ >X >XMAINTAINER= bsdic@microsoft.com >XCOMMENT= FreeBSD Integration Service on Hyper-v >X >XFETCH_ARGS= -Fpr >X >XCC=clang >XCXX=clang++ >XCPP=clang-cpp >X >XONLY_FOR_ARCHS= amd64 i386 >X >Xpre-install: >X @PKG_PREFIX=${STAGEDIR}${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL >X >Xpost-install: >X @PKG_PREFIX=${STAGEDIR}${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL >Xpost-deinstall: >X @PKG_PREFIX=${STAGEDIR}${PREFIX} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL >X >X.include <bsd.port.mk> >4e23e705ff6899a9f5d3177d806a802e >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 182209
:
136866
|
146366
|
146367
|
146369
|
146370
|
146371
|
146372
|
147366
|
147367
|
147368
|
147463
|
147681