Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a bunch of modified ports for 10.0, so we can fix the building

  • Loading branch information...
commit 1e102bd79cc788183085fa95ac47f20ffbb14f52 1 parent 0c2a506
@kmoore134 kmoore134 authored
Showing with 9,175 additions and 0 deletions.
  1. +308 −0 build-files/ports-overlay/editors/vim/Makefile
  2. +12 −0 build-files/ports-overlay/editors/vim/add-bad.sh
  3. +2,616 −0 build-files/ports-overlay/editors/vim/distinfo
  4. +77 −0 build-files/ports-overlay/editors/vim/files/patch-01
  5. +47 −0 build-files/ports-overlay/editors/vim/files/patch-configure
  6. +42 −0 build-files/ports-overlay/editors/vim/files/patch-installml.sh
  7. +286 −0 build-files/ports-overlay/editors/vim/files/vietnamese_viscii.vim
  8. +24 −0 build-files/ports-overlay/editors/vim/options
  9. +23 −0 build-files/ports-overlay/editors/vim/pkg-descr
  10. +43 −0 build-files/ports-overlay/editors/vim/pkg-plist
  11. +100 −0 build-files/ports-overlay/emulators/open-vm-tools/Makefile
  12. +2 −0  build-files/ports-overlay/emulators/open-vm-tools/distinfo
  13. +12 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-appUtilX11.c
  14. +12 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-arch
  15. +170 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-freebsd-8
  16. +38 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-freebsd-9
  17. +40 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-getpwnam
  18. +11 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-guestApp.c
  19. +22 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-hgfsmounter-Makefile.in
  20. +10 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-hostinfoPosix.c
  21. +22 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-libguestlib-Makefile
  22. +19 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-modules-Makefile.in
  23. +17 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-net_compat.h
  24. +11 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-scripts-Makefile
  25. +10 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-scripts-network
  26. +22 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-services-Makefile
  27. +20 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-util_misc.c
  28. +10 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vm_basic_types.h
  29. +24 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmblock-vnops.c
  30. +27 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmhgfs-Makefile
  31. +11 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmhgfs-kernelStubs.h
  32. +31 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmhgfs-state.c
  33. +11 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmhgfs-vnopscommon.c
  34. +50 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmmemctl-os.c
  35. +11 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmtoolsd-Makefile.in
  36. +11 −0 build-files/ports-overlay/emulators/open-vm-tools/files/patch-wrapper-Makefile.am
  37. +11 −0 build-files/ports-overlay/emulators/open-vm-tools/files/pkg-message.in
  38. +29 −0 build-files/ports-overlay/emulators/open-vm-tools/files/vmware-guestd.in
  39. +101 −0 build-files/ports-overlay/emulators/open-vm-tools/files/vmware-kmod.in
  40. +13 −0 build-files/ports-overlay/emulators/open-vm-tools/pkg-descr
  41. +83 −0 build-files/ports-overlay/emulators/open-vm-tools/pkg-plist
  42. +198 −0 build-files/ports-overlay/emulators/virtualbox-ose-additions/Makefile
  43. +2 −0  build-files/ports-overlay/emulators/virtualbox-ose-additions/distinfo
  44. +18 −0 ...-overlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Additions-common-VBoxGuestLib-Makefile.kmk
  45. +40 −0 ...orts-overlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Additions-common-crOpenGL-Makefile.kmk
  46. +120 −0 ...rts-overlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Additions-common-crOpenGL-fakedri_drv.c
  47. +27 −0 ...s-overlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Additions-x11-Installer-98vboxadd-xclient
  48. +10 −0 ...-overlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Additions-x11-Installer-vboxclient.desktop
  49. +20 −0 .../ports-overlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Additions-x11-vboxvideo-Makefile.kmk
  50. +16 −0 ...overlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-alloc-r0drv-freebsd.c
  51. +56 −0 ...verlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c
  52. +48 −0 ...tors/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd_VM_MAP_FIND.c
  53. +132 −0 ...virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd_VM_OBJECT_RENAME.c
  54. +20 −0 ...-overlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-the-freebsd-kernel.h
  55. +69 −0 build-files/ports-overlay/emulators/virtualbox-ose-additions/files/vboxguest.in
  56. +25 −0 build-files/ports-overlay/emulators/virtualbox-ose-additions/files/vboxservice.in
  57. +9 −0 build-files/ports-overlay/emulators/virtualbox-ose-additions/pkg-descr
  58. +21 −0 build-files/ports-overlay/emulators/virtualbox-ose-additions/pkg-message
  59. +31 −0 build-files/ports-overlay/emulators/virtualbox-ose-additions/pkg-plist
  60. +49 −0 build-files/ports-overlay/graphics/enblend/Makefile
  61. +2 −0  build-files/ports-overlay/graphics/enblend/distinfo
  62. +7 −0 build-files/ports-overlay/graphics/enblend/pkg-descr
  63. +25 −0 build-files/ports-overlay/graphics/kcoloredit/Makefile
  64. +2 −0  build-files/ports-overlay/graphics/kcoloredit/distinfo
  65. +4 −0 build-files/ports-overlay/graphics/kcoloredit/pkg-descr
  66. +120 −0 build-files/ports-overlay/graphics/kcoloredit/pkg-plist
  67. +71 −0 build-files/ports-overlay/graphics/opencolorio/Makefile
  68. +2 −0  build-files/ports-overlay/graphics/opencolorio/distinfo
  69. +10 −0 build-files/ports-overlay/graphics/opencolorio/files/extra-patch-CMakeLists.txt
  70. +17 −0 build-files/ports-overlay/graphics/opencolorio/files/patch-docs__CMakeLists.txt
  71. +11 −0 build-files/ports-overlay/graphics/opencolorio/files/patch-export__OpenColorIO__OpenColorABI.h.in
  72. +20 −0 build-files/ports-overlay/graphics/opencolorio/files/patch-share__cmake__OCIOMacros.cmake
  73. +11 −0 build-files/ports-overlay/graphics/opencolorio/files/patch-src__apps__ocioconvert__CMakeLists.txt
  74. +11 −0 build-files/ports-overlay/graphics/opencolorio/files/patch-src__apps__ociolutimage__CMakeLists.txt
  75. +8 −0 build-files/ports-overlay/graphics/opencolorio/files/patch-src__core__CMakeLists.txt
  76. +12 −0 build-files/ports-overlay/graphics/opencolorio/files/patch-src__core__Platform.h
  77. +5 −0 build-files/ports-overlay/graphics/opencolorio/pkg-descr
  78. +134 −0 build-files/ports-overlay/graphics/opencolorio/pkg-plist
  79. +5 −0 build-files/ports-overlay/graphics/opencolorio/pkg-plist-tools
  80. +134 −0 build-files/ports-overlay/multimedia/mythtv/Makefile
  81. +2 −0  build-files/ports-overlay/multimedia/mythtv/distinfo
  82. +42 −0 build-files/ports-overlay/multimedia/mythtv/files/mythbackend.in
  83. +71 −0 build-files/ports-overlay/multimedia/mythtv/files/patch-configure
  84. +11 −0 build-files/ports-overlay/multimedia/mythtv/files/patch-extern__zeromq__doc__Makefile.in
  85. +31 −0 build-files/ports-overlay/multimedia/mythtv/files/patch-external__FFmpeg__configure
  86. +11 −0 build-files/ports-overlay/multimedia/mythtv/files/patch-libs__libmythdvdnav__dvdnav__dvdnav.c
  87. +12 −0 build-files/ports-overlay/multimedia/mythtv/files/patch-libs__libmythtv__dvbdev__dvbci.cpp
  88. +29 −0 build-files/ports-overlay/multimedia/mythtv/files/patch-libs__libmythtv__dvbstreamhandler.cpp
  89. +11 −0 build-files/ports-overlay/multimedia/mythtv/files/patch-libs__libmythtv__videoout_vdpau.cpp
  90. +13 −0 build-files/ports-overlay/multimedia/mythtv/files/pkg-message.in
  91. +13 −0 build-files/ports-overlay/multimedia/mythtv/pkg-descr
  92. +2,277 −0 build-files/ports-overlay/multimedia/mythtv/pkg-plist
  93. +34 −0 build-files/ports-overlay/science/step/Makefile
  94. +2 −0  build-files/ports-overlay/science/step/distinfo
  95. +9 −0 build-files/ports-overlay/science/step/pkg-descr
  96. +97 −0 build-files/ports-overlay/science/step/pkg-plist
  97. +50 −0 build-files/ports-overlay/security/dirmngr/Makefile
  98. +4 −0 build-files/ports-overlay/security/dirmngr/distinfo
  99. +6 −0 build-files/ports-overlay/security/dirmngr/pkg-descr
  100. +61 −0 build-files/ports-overlay/security/dirmngr/pkg-plist
  101. +127 −0 build-files/ports-overlay/security/ossec-hids-server/Makefile
  102. +2 −0  build-files/ports-overlay/security/ossec-hids-server/distinfo
  103. +19 −0 build-files/ports-overlay/security/ossec-hids-server/files/extra-patch-src__os_csyslogd__csyslogd.c
  104. +52 −0 build-files/ports-overlay/security/ossec-hids-server/files/ossec-hids.in
  105. +28 −0 build-files/ports-overlay/security/ossec-hids-server/files/patch-src__InstallServer.sh
  106. +7 −0 build-files/ports-overlay/security/ossec-hids-server/files/patch-src__LOCATION
  107. +12 −0 build-files/ports-overlay/security/ossec-hids-server/files/patch-src__headers__defs.h
  108. +21 −0 build-files/ports-overlay/security/ossec-hids-server/files/pkg-message.in
  109. +6 −0 build-files/ports-overlay/security/ossec-hids-server/pkg-descr
  110. +154 −0 build-files/ports-overlay/security/ossec-hids-server/pkg-plist
View
308 build-files/ports-overlay/editors/vim/Makefile
@@ -0,0 +1,308 @@
+# Created by: David O'Brien <obrien@cs.ucdavis.edu>
+# $FreeBSD: editors/vim/Makefile 328318 2013-09-25 21:16:43Z obrien $
+
+PORTNAME?= vim
+# ! _NEVER_ reduce or lower PATCHLEVEL, even if the PATCHLEVEL
+# ! value # is added to BADPATCHES. Doing otherwise will cause
+# ! PORTEPOCH to be needed, which we do NOT want.
+#
+# ! DO NOT increase PATCHLEVEL to a patch listed in BADPATCHES.
+# ! Doing so is dis-genuine. It implies we're at a level we are
+# ! not. The "PATCHLEVEL" patch needs to apply before bumping
+# ! PATCHLEVEL to that level.
+PATCHLEVEL= 1314
+PORTVERSION= 7.3.${PATCHLEVEL}
+RELEASE= vim-${PORTVERSION:C/\.[0-9a-z]*$//}
+PORTREVISION?= 0
+CATEGORIES?= editors
+MASTER_SITES= ${MASTER_SITE_VIM}
+DISTFILES= ${RELEASE}${EXTRACT_SUFX}
+
+PATCH_SITES= ${MASTER_SITES:S|unix|patches/${PORTVERSION:C/\.[0-9a-z]*$//}|}\
+ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/obrien/:local
+PATCHFILES!= /usr/bin/jot -s " " -w ${PORTVERSION:C/\.[0-9]*$//}.%03d \
+ ${PATCHLEVEL} 1 ${PATCHLEVEL}
+# bits to remove
+BADPATCHES= 527 780 796 873 890 1104 1111
+.for p in ${BADPATCHES}
+PATCHFILES:= ${PATCHFILES:N7.3.${p}}
+.endfor
+
+MAINTAINER?= obrien@FreeBSD.org
+COMMENT?= Vi "workalike", with many additional features
+
+SLAVEDIRS= editors/vim-lite
+NO_STAGE= yes
+
+.if !defined(LITE)
+.if defined(WITH_OPTIONS) || defined(WITH_VIM_OPTIONS)
+.include "${.CURDIR}/../vim/options"
+OPTIONS_DEFAULT+= CSCOPE EXUBERANT_CTAGS PERL PYTHON RUBY \
+ TCL LUA X11 GTK2
+.else
+VIM_PORT_SCRIPT_LANGS?= LUA PERL PYTHON RUBY TCL
+VIM_PORT_OPTIONS= CSCOPE DOCS EXAMPLES EXUBERANT_CTAGS \
+ ${VIM_PORT_SCRIPT_LANGS}
+PORT_OPTIONS?= ${VIM_PORT_OPTIONS}
+.endif
+.endif
+
+.include <bsd.port.options.mk>
+
+CONFLICTS= vim6* vim*-gnome
+.if defined(LITE)
+CONFLICTS+= vim*
+.else
+CONFLICTS+= vim*-lite
+.endif
+
+MAKE_JOBS_UNSAFE= yes
+USE_GCC= yes
+USE_BZIP2= yes
+DIST_SUBDIR= vim
+WRKSRC= ${WRKDIR}/vim${PORTVERSION:C/\.[0-9]*$//:S/.//g}/src
+PATCH_DIST_ARGS= -d ${WRKSRC:S/src$//} --batch --forward --quiet -E ${PATCH_DIST_STRIP}
+# consider
+#PATCH_DIST_ARGS= -t
+REINPLACE_ARGS= -i ""
+MAKE_ARGS+= CONF_ARGS="--prefix=${PREFIX} --with-tlib=termlib ${CSCOPE_ARG}"
+ALL_TARGET= #
+_DATADIR= ${RELEASE:S/-//g:S/.//g}
+DATADIR= ${PREFIX}/share/vim/${_DATADIR}
+PLIST_SUB= VIM_VER=${_DATADIR}
+MAN1= evim.1 vim.1 vimdiff.1 vimtutor.1 xxd.1
+MLINKS= vim.1 rvim.1 vim.1 rview.1
+.if !defined(LITE)
+MLINKS+= vim.1 gvim.1 vim.1 gview.1 vimdiff.1 gvimdiff.1 \
+ vim.1 rgvim.1 vim.1 rgview.1 evim.1 eview.1
+.endif
+
+.if ${PORT_OPTIONS:MNLS}
+MANLANG= "" ru.KOI8-R ru.UTF-8 pl.ISO8859-2 pl.UTF-8 pl fr.ISO8859-1 \
+ fr.UTF-8 fr it.ISO8859-1 it.UTF-8 it
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
+MAKE_ARGS+= CONF_OPT_NLS="--disable-nls"
+PLIST_SUB+= NLS="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MPYTHON}
+USE_PYTHON= yes
+MAKE_ARGS+= CONF_OPT_PYTHON="--enable-pythoninterp"
+.endif
+
+.if ${PORT_OPTIONS:MRUBY}
+USE_RUBY= yes
+MAKE_ARGS+= CONF_OPT_RUBY="--enable-rubyinterp"
+.endif
+
+.if ${PORT_OPTIONS:MTCL}
+USE_TCL= 85+
+MAKE_ARGS+= CONF_OPT_TCL="--enable-tclinterp --with-tclsh="${TCLSH:S/${LOCALBASE}\/bin\///g}""
+.endif
+
+.if ${PORT_OPTIONS:MLUA}
+USE_LUA= yes
+MAKE_ARGS+= CONF_OPT_LUA="--enable-luainterp=dynamic"
+MAKE_ARGS+= CONF_OPT_LUA_PREFIX="--with-lua-prefix=${LOCALBASE}"
+.endif
+
+.if ${PORT_OPTIONS:MPERL}
+USES= perl5
+MAKE_ARGS+= CONF_OPT_PERL="--enable-perlinterp"
+.endif
+
+WANT_GNOME= yes
+
+.if defined(LITE)
+PKGNAMESUFFIX= -lite
+CONF_OPT_GUI="--enable-gui=no --without-x --enable-multibyte"
+MAKE_ARGS+= CONF_OPT_PERL="--disable-perlinterp --disable-pythoninterp --disable-tclinterp --disable-rubyinterp --disable-luainterp"
+.else # !LITE
+MAKE_ARGS+= CONF_OPT_FEAT="--with-features=big"
+I18N= CONF_OPT_MULTIBYTE="--enable-multibyte --enable-fontset --enable-xim"
+CONF_OPT_GUI="--enable-gui=no --without-x"
+.endif
+
+.if ${PORT_OPTIONS:MCSCOPE}
+RUN_DEPENDS+= cscope:${PORTSDIR}/devel/cscope
+MAKE_ARGS+= CONF_OPT_CSCOPE="--enable-cscope"
+.endif
+
+.if ${PORT_OPTIONS:MEXUBERANT_CTAGS}
+RUN_DEPENDS+= exctags:${PORTSDIR}/devel/ctags
+CTAGS_CMD= exctags -R .
+.else
+CTAGS_CMD= ${FIND} . -type f \\|${XARGS} ctags
+.endif
+
+.if ${PORT_OPTIONS:MX11}
+CONF_OPT_GUI="--enable-gui=no --with-x"
+
+. if ${PORT_OPTIONS:MATHENA}
+CONF_OPT_GUI="--enable-gui=athena"
+USE_XORG+= xaw
+. endif
+
+. if ${PORT_OPTIONS:MGTK2}
+USE_GNOME= gtk20
+CONF_OPT_GUI="--enable-gui=gtk2 --with-gtk-prefix=${LOCALBASE}"
+MAKE_ARGS+= X_LIBS="$(X_LIBS) -lXt"
+USE_XORG+= xt
+. endif
+
+. if ${PORT_OPTIONS:MGNOME}
+USE_GNOME= libgnomeui
+PKGNAMESUFFIX= -gnome2
+CONF_OPT_GUI="--enable-gui=gnome2"
+MAKE_ARGS+= X_LIBS="$(X_LIBS) -lXt"
+USE_XORG+= xt glproto
+. endif
+
+. if ${PORT_OPTIONS:MMOTIF}
+USES+= motif
+CONF_OPT_GUI="--enable-gui=motif --with-motif-lib=\"${MOTIFLIB}\""
+MAKE_ARGS+= MOTIFHOME=${LOCALBASE}
+. endif
+
+.endif
+MAKE_ARGS+= CONF_OPT_GUI=${CONF_OPT_GUI} ${I18N}
+
+
+.if exists(${LOCALBASE}/lib/libiconv.so)
+USES+= iconv
+.endif
+
+
+post-patch:
+ @(${FIND} ${WRKSRC}/../runtime/ -name menu\*.vim -print0 | ${XARGS} -0 \
+ ${REINPLACE_CMD} -e 's,ctags -R \.,${CTAGS_CMD},g')
+.if !defined(STRIP) || ${STRIP} == ""
+ ${REINPLACE_CMD} '/$$(STRIP)/d' ${WRKSRC}/Makefile
+.endif
+
+pre-configure:
+ @${CP} -pv ${WRKSRC}/config.mk.dist ${WRKSRC}/auto/config.mk
+ @(cd ${WRKSRC} ; ${MAKE} distclean)
+ @${REINPLACE_CMD} -e ' \
+ s|\$$gtk_config_prefix/bin/gtk-config|\$${GTK_CONFIG}|g; \
+ s|\$$gtk_config_exec_prefix/bin/gtk-config|\$${GTK_CONFIG}|g; \
+ s|/usr/local|${LOCALBASE}|g; \
+ s|set dummy lua;|set dummy lua-${LUA_VER};|g' \
+ ${WRKSRC}/auto/configure
+.if ${PORT_OPTIONS:MXTERM_SAVE}
+ @${REINPLACE_CMD} -e ' \
+ s|/\* #define FEAT_XTERM_SAVE \*/|#define FEAT_XTERM_SAVE|g' \
+ ${WRKSRC}/feature.h
+.endif
+
+post-configure:
+ @(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} scratch config)
+ ${REINPLACE_CMD} -e 's@#define HAVE_SYSINFO 1@/* #undef HAVE_SYSINFO */@' ${WRKSRC}/auto/config.h
+
+# Clean up junk files to keep them from being installed.
+pre-install:
+ @${FIND} ${WRKSRC:H} -type f -name '*.orig' -delete
+
+post-install:
+ [ -e ${PREFIX}/bin/gvim ] || (cd ${PREFIX}/bin ; ${LN} -sf vim gvim)
+ # below needed for `vim-lite' port
+ ${TEST} -e ${PREFIX}/bin/rgvim || (cd ${PREFIX}/bin ; ${LN} -sf vim rgvim)
+ ${TEST} -e ${PREFIX}/bin/gview || (cd ${PREFIX}/bin ; ${LN} -sf vim gview)
+ ${TEST} -e ${PREFIX}/bin/rgview || (cd ${PREFIX}/bin ; ${LN} -sf vim rgview)
+ ${TEST} -e ${PREFIX}/bin/evim || (cd ${PREFIX}/bin ; ${LN} -sf vim evim)
+ ${TEST} -e ${PREFIX}/bin/eview || (cd ${PREFIX}/bin ; ${LN} -sf vim eview)
+ ${TEST} -e ${PREFIX}/bin/gvimdiff \
+ || (cd ${PREFIX}/bin ; ${LN} -sf vim gvimdiff)
+ ${TEST} -e ${PREFIX}/bin/gvimtutor \
+ || (cd ${PREFIX}/bin ; ${LN} -sf vimtutor gvimtutor)
+ ${INSTALL_DATA} ${FILESDIR}/vietnamese_viscii.vim ${DATADIR}/keymap
+ cd ${PREFIX} ; \
+ ${FIND} share/vim/${_DATADIR} -type f -o -type l \
+ | ${SORT} \
+ >${WRKDIR}/PLIST.share-vim
+ cd ${PREFIX} ; \
+ ${FIND} share/vim/${_DATADIR} -type d \
+ | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' \
+ >>${WRKDIR}/PLIST.share-vim
+ ${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
+ ${ECHO_CMD} "/Insert PLIST.share-vim" >> ${WRKDIR}/ex.script
+ ${ECHO_CMD} "d" >> ${WRKDIR}/ex.script
+ ${ECHO_CMD} "r ${WRKDIR}/PLIST.share-vim" >> ${WRKDIR}/ex.script
+ ${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script
+ ${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-share-vim
+ cd ${WRKDIR} ; ex < ex.script
+
+show-options:
+ @${MAKE} -DWITH_OPTIONS showconfig
+ @${ECHO_CMD} ""
+ @${ECHO_CMD} "Put \"WITH_OPTIONS=yes\" -or- \"WITH_VIM_OPTIONS=yes\""
+ @${ECHO_CMD} "in your /etc/make.conf or /etc/ports.conf file to enable OPTIONS processing.
+
+.if defined(ONT_CHECKSUM)
+checksum:
+.endif
+
+cklatest: .PHONY
+ @${ECHO} -n "Currently at: "
+ @${MAKE} -V PATCHLEVEL
+ -(${SED} -i '' "s/^PATCHLEVEL=.*$$/PATCHLEVEL= `ncftpls \
+ ftp://ftp.vim.org/pub/vim/patches/${PORTVERSION:C/\.[0-9a-z]*$//}/ \
+ | grep "^${PORTVERSION:C/\.[0-9a-z]*$//}" \
+ | ${SED} -n -E -e 's/${PORTVERSION:C/[0-9]*$//}([0-9]+)$$/\1/p' \
+ | sort -n | ${TAIL} -1`/" Makefile)
+ @${ECHO} -n "Now at: "
+ @${MAKE} -V PATCHLEVEL
+
+find-bad-patches:
+ @cd ${DISTDIR} ; egrep -l \
+ '(src/if_(ole|mzsch)|src/gui_(w32|w48|mac)|src/os_(riscos|cyg|os2|vms|amiga|win32|mswin))|src(/testdir)?/Make_(dos|cyg|vms|mvc|ming|os2|amiga|mms)'\
+ vim/${PORTVERSION:C/\.[0-9a-z]*$//}*
+
+ckp:
+ /usr/bin/time -h ${MAKE} -DPATCH_DEBUG -DONT_CHECKSUM clean patch
+
+ckmtree:
+ ${MTREE_CMD} -f ${MTREE_FILE} -p ${PREFIX}
+
+do-patch:
+ @${ECHO_MSG} "===> Applying distribution patches for ${PKGNAME} from `pwd`"
+ @set -e ; \
+ (cd ${_DISTDIR} ; \
+ for i in ${_PATCHFILES}; do \
+ if [ ${PATCH_DEBUG_TMP} = yes ]; then \
+ ${ECHO_MSG} "===> Applying distribution patch $$i" ; \
+ fi ; \
+ ${PATCH} ${PATCH_DIST_ARGS} -i ${_DISTDIR}/$$i; \
+ done )
+ @set -e ;\
+ if [ -d ${PATCHDIR} ]; then \
+ if [ "`${ECHO_CMD} ${PATCHDIR}/patch-*`" != "${PATCHDIR}/patch-*" ]; then \
+ ${ECHO_MSG} "===> Applying ${OPSYS} patches for ${PKGNAME}" ; \
+ PATCHES_APPLIED="" ; \
+ for i in ${PATCHDIR}/patch-*; do \
+ case $$i in \
+ *.orig|*.rej|*~|*,v) \
+ ${ECHO_MSG} "===> Ignoring patchfile $$i" ; \
+ ;; \
+ *) \
+ if [ ${PATCH_DEBUG_TMP} = yes ]; then \
+ ${ECHO_MSG} "===> Applying ${OPSYS} patch $$i" ; \
+ fi; \
+ if ${PATCH} ${PATCH_ARGS} < $$i ; then \
+ PATCHES_APPLIED="$$PATCHES_APPLIED $$i" ; \
+ else \
+ ${ECHO_MSG} `${ECHO_CMD} "=> Patch $$i failed to apply cleanly." | ${SED} "s|${PATCHDIR}/||"` ; \
+ if [ x"$$PATCHES_APPLIED" != x"" ]; then \
+ ${ECHO_MSG} `${ECHO_CMD} "=> Patch(es) $$PATCHES_APPLIED applied cleanly." | ${SED} "s|${PATCHDIR}/||g"` ; \
+ fi; \
+ ${FALSE} ; \
+ fi; \
+ ;; \
+ esac; \
+ done; \
+ fi; \
+ fi
+
+.include <bsd.port.mk>
View
12 build-files/ports-overlay/editors/vim/add-bad.sh
@@ -0,0 +1,12 @@
+:
+# $FreeBSD: editors/vim/add-bad.sh 302686 2012-08-17 16:08:14Z obrien $
+
+usage() {
+ echo 'usage: ${0##*/} <bad patch #s to add to ${BADPATCHES}>'
+ exit 1
+}
+if [ $# -lt 1 ]; then
+ usage
+fi
+
+sed -i '' "s/^BADPATCHES=.*$/& $*/" Makefile
View
2,616 build-files/ports-overlay/editors/vim/distinfo
2,616 additions, 0 deletions not shown
View
77 build-files/ports-overlay/editors/vim/files/patch-01
@@ -0,0 +1,77 @@
+--- Makefile.orig Sun Jun 1 06:18:29 2003
++++ Makefile Sat Nov 1 15:39:09 2003
+@@ -256,7 +256,7 @@
+ #DO NOT CHANGE the next line, we need it for configure to find the compiler
+ #instead of using the default from the "make" program.
+ #Use a line further down to change the value for CC.
+-CC=
++#CC=
+
+ # Change and use these defines if configure cannot find your Motif stuff.
+ # Unfortunately there is no "standard" location for Motif. {{{
+@@ -288,6 +288,7 @@
+ # of make, will buid Vim.
+
+ # CONFIGURE - configure arguments {{{1
++CONF_ARGS = --prefix=$(PREFIX)
+ # You can give a lot of options to configure.
+ # Change this to your desire and do 'make config' afterwards
+
+@@ -1829,3 +1830,3 @@ install: $(GUI_INSTALL)
+
+-install_normal: installvim installtools $(INSTALL_LANGS) install-icons
++install_normal: installvim installtools $(INSTALL_LANGS) # install-icons
+
+@@ -1794,40 +1795,40 @@
+ installgvimdiff: $(DEST_BIN)/$(GVIMDIFFTARGET)
+
+ $(DEST_BIN)/$(EXTARGET):
+- cd $(DEST_BIN); ln -s $(VIMTARGET) $(EXTARGET)
++ #cd $(DEST_BIN); ln -sf $(VIMTARGET) $(EXTARGET)
+
+ $(DEST_BIN)/$(VIEWTARGET):
+- cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIEWTARGET)
++ #cd $(DEST_BIN); ln -sf $(VIMTARGET) $(VIEWTARGET)
+
+ $(DEST_BIN)/$(GVIMTARGET):
+- cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMTARGET)
++ cd $(DEST_BIN); ln -sf $(VIMTARGET) $(GVIMTARGET)
+
+ $(DEST_BIN)/$(GVIEWTARGET):
+- cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIEWTARGET)
++ cd $(DEST_BIN); ln -sf $(VIMTARGET) $(GVIEWTARGET)
+
+ $(DEST_BIN)/$(RVIMTARGET):
+- cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIMTARGET)
++ cd $(DEST_BIN); ln -sf $(VIMTARGET) $(RVIMTARGET)
+
+ $(DEST_BIN)/$(RVIEWTARGET):
+- cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIEWTARGET)
++ cd $(DEST_BIN); ln -sf $(VIMTARGET) $(RVIEWTARGET)
+
+ $(DEST_BIN)/$(RGVIMTARGET):
+- cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIMTARGET)
++ cd $(DEST_BIN); ln -sf $(VIMTARGET) $(RGVIMTARGET)
+
+ $(DEST_BIN)/$(RGVIEWTARGET):
+- cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIEWTARGET)
++ cd $(DEST_BIN); ln -sf $(VIMTARGET) $(RGVIEWTARGET)
+
+ $(DEST_BIN)/$(VIMDIFFTARGET):
+- cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIMDIFFTARGET)
++ cd $(DEST_BIN); ln -sf $(VIMTARGET) $(VIMDIFFTARGET)
+
+ $(DEST_BIN)/$(GVIMDIFFTARGET):
+- cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMDIFFTARGET)
++ cd $(DEST_BIN); ln -sf $(VIMTARGET) $(GVIMDIFFTARGET)
+
+ $(DEST_BIN)/$(EVIMTARGET):
+- cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIMTARGET)
++ cd $(DEST_BIN); ln -sf $(VIMTARGET) $(EVIMTARGET)
+
+ $(DEST_BIN)/$(EVIEWTARGET):
+- cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIEWTARGET)
++ cd $(DEST_BIN); ln -sf $(VIMTARGET) $(EVIEWTARGET)
+
+ # create links for the manual pages with various names to vim. This is only
+ # done when the links (or manpages with the same name) don't exist yet.
View
47 build-files/ports-overlay/editors/vim/files/patch-configure
@@ -0,0 +1,47 @@
+--- auto/configure.orig 2013-07-11 22:23:02.000000000 -0700
++++ auto/configure 2013-07-11 22:51:08.000000000 -0700
+@@ -855,7 +855,7 @@ pdfdir='${docdir}'
+ psdir='${docdir}'
+ libdir='${exec_prefix}/lib'
+ localedir='${datarootdir}/locale'
+-mandir='${datarootdir}/man'
++mandir='${prefix}/man'
+
+ ac_prev=
+ ac_dashdash=
+@@ -4694,7 +4694,7 @@ $as_echo_n "checking Lua version... " >&
+ if test "${vi_cv_version_lua+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+ else
+- vi_cv_version_lua=`${vi_cv_path_lua} -e "print(_VERSION)" | sed 's/.* //'`
++ vi_cv_version_lua=`${vi_cv_path_lua} -e "print(_VERSION)" | sed 's/.* //' | tr -d '.'`
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua" >&5
+ $as_echo "$vi_cv_version_lua" >&6; }
+@@ -4728,6 +4728,7 @@ $as_echo "no" >&6; }
+ LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
+ fi
+ LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
++ LUA_CFLAGS="-I${LUA_INCDIR}"
+ LUA_SRC="if_lua.c"
+ LUA_OBJ="objects/if_lua.o"
+ LUA_PRO="if_lua.pro"
+@@ -4759,7 +4760,8 @@ $as_echo "no" >&6; }
+ $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
+
+ LUA_LIBS=""
+- LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
++ vi_cv_version_lua=${LUA_VER}
++ LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua-${vi_cv_version_lua}.so.$LUA_VER_SH\\\" $LUA_CFLAGS"
+ fi
+ fi
+ if test "$fail_if_missing" = "yes" -a -z "$LUA_SRC"; then
+@@ -6285,7 +6287,7 @@ $as_echo_n "checking for location of tcl
+ $as_echo "$try/tclConfig.sh" >&6; }
+ . $try/tclConfig.sh
+ TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
+- TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
++ TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\ /g'`
+ break
+ fi
+ done
View
42 build-files/ports-overlay/editors/vim/files/patch-installml.sh
@@ -0,0 +1,42 @@
+--- installml.sh.orig Sun Apr 30 08:48:53 2006
++++ installml.sh Mon Jun 19 03:36:37 2006
+@@ -55,12 +55,12 @@ if test $what = "install" -a \( -f $dest
+ # ex
+- if test ! -f $destdir/$exname.1 -a -f $destdir/$vimname.1; then
+- echo creating link $destdir/$exname.1
+- cd $destdir; ln -s $vimname.1 $exname.1
+- fi
++ #if test ! -f $destdir/$exname.1 -a -f $destdir/$vimname.1; then
++ # echo creating link $destdir/$exname.1
++ # cd $destdir; ln -s $vimname.1 $exname.1
++ #fi
+
+ # view
+- if test ! -f $destdir/$viewname.1 -a -f $destdir/$vimname.1; then
+- echo creating link $destdir/$viewname.1
+- cd $destdir; ln -s $vimname.1 $viewname.1
+- fi
++ #if test ! -f $destdir/$viewname.1 -a -f $destdir/$vimname.1; then
++ # echo creating link $destdir/$viewname.1
++ # cd $destdir; ln -s $vimname.1 $viewname.1
++ #fi
+
+@@ -121,10 +121,10 @@ if test $what = "uninstall"; then
+
+- if test -L $destdir/$exname.1; then
+- echo deleting $destdir/$exname.1
+- rm -f $destdir/$exname.1
+- fi
+- if test -L $destdir/$viewname.1; then
+- echo deleting $destdir/$viewname.1
+- rm -f $destdir/$viewname.1
+- fi
++ #if test -L $destdir/$exname.1; then
++ # echo deleting $destdir/$exname.1
++ # rm -f $destdir/$exname.1
++ #fi
++ #if test -L $destdir/$viewname.1; then
++ # echo deleting $destdir/$viewname.1
++ # rm -f $destdir/$viewname.1
++ #fi
+ if test -L $destdir/$rvimname.1; then
View
286 build-files/ports-overlay/editors/vim/files/vietnamese_viscii.vim
@@ -0,0 +1,286 @@
+" $FreeBSD: editors/vim/files/vietnamese_viscii.vim 300896 2012-07-14 13:54:48Z beat $
+" vim:ts=8
+"
+" VIQR input
+"
+" RFC 1456 Vietnamese Standardization Working Group,
+" Conventions for Encoding the Vietnamese Language
+" VISCII: VIetnamese Standard Code for Information Interchange
+" VIQR: VIetnamese Quoted-Readable Specification Revision 1.1",
+" May 1993.
+"
+set isprint=@,002,005-006,020,025,128-255
+"
+"letter Á
+imap A' 193
+"letter À
+imap A` 192
+"letter Ä
+imap A? 196
+"letter Ã
+imap A~ 195
+"letter €
+imap A. 128
+"letter Å
+imap A( 197
+"letter 
+imap 197' 129
+"letter ‚
+imap 197` 130
+"letter 
+imap 197? 002
+"letter 
+imap 197~ 005
+"letter ƒ
+imap 197. 131
+"letter Â
+imap A^ 194
+"letter „
+imap 194' 132
+"letter …
+imap 194` 133
+"letter †
+imap 194? 134
+"letter 
+imap 194~ 006
+"letter ‡
+imap 194. 135
+"letter Ð
+imap DD 208
+imap Dd 208
+"letter É
+imap E' 201
+"letter È
+imap E` 200
+"letter Ë
+imap E? 203
+"letter ˆ
+imap E~ 136
+"letter ‰
+imap E. 137
+"letter Ê
+imap E^ 202
+"letter Š
+imap 202' 138
+"letter ‹
+imap 202` 139
+"letter Œ
+imap 202? 140
+"letter 
+imap 202~ 141
+"letter Ž
+imap 202. 142
+"letter Í
+imap I' 205
+"letter Ì
+imap I` 204
+"letter ›
+imap I? 155
+"letter Î
+imap I~ 206
+"letter ˜
+imap I. 152
+"letter Ó
+imap O' 211
+"letter Ò
+imap O` 210
+"letter ™
+imap O? 153
+"letter  
+"imap O~ 213 -- bug in encoding 213 --> a.
+imap O~ 160
+"letter š
+imap O. 154
+"letter Ô
+imap O^ 212
+"letter 
+imap 212' 143
+"letter 
+imap 212` 144
+"letter ‘
+imap 212? 145
+"letter ’
+imap 212~ 146
+"letter “
+imap 212. 147
+"letter ´
+imap O+ 180
+"letter •
+imap 180' 149
+"letter –
+imap 180` 150
+"letter —
+imap 180? 151
+"letter ³
+imap 180~ 179
+"letter ”
+imap 180. 148
+"letter Ú
+imap U' 218
+"letter Ù
+imap U` 217
+"letter œ
+imap U? 156
+"letter 
+imap U~ 157
+"letter ž
+imap U. 158
+"letter ¿
+imap U+ 191
+"letter º
+imap 191' 186
+"letter »
+imap 191` 187
+"letter ¼
+imap 191? 188
+"letter ÿ
+imap 191~ 255
+"letter ¹
+imap 191. 185
+"letter Ý
+imap Y' 221
+"letter Ÿ
+imap Y` 159
+"letter 
+imap Y? 020
+"letter 
+imap Y~ 025
+"letter 
+imap Y. 030
+"letter á
+imap a' 225
+"letter à
+imap a` 224
+"letter ä
+imap a? 228
+"letter ã
+imap a~ 227
+"letter Õ
+"imap a. 160 bug in encoding -- 160 --> O~
+imap a. 213
+"letter å
+imap a( 229
+"letter ¡
+imap 229' 161
+"letter ¢
+imap 229` 162
+"letter Æ
+imap 229? 198
+"letter Ç
+imap 229~ 199
+"letter £
+imap 229. 163
+"letter â
+imap a^ 226
+"letter ¤
+imap 226' 164
+"letter ¥
+imap 226` 165
+"letter ¦
+imap 226? 166
+"letter ç
+imap 226~ 231
+"letter §
+imap 226. 167
+"letter ð
+imap dd 240
+"letter é
+imap e' 233
+"letter è
+imap e` 232
+"letter ë
+imap e? 235
+"letter ¨
+imap e~ 168
+"letter ©
+imap e. 169
+"letter ê
+imap e^ 234
+"letter ª
+imap 234' 170
+"letter «
+imap 234` 171
+"letter ¬
+imap 234? 172
+"letter ­
+imap 234~ 173
+"letter ®
+imap 234. 174
+"letter í
+imap i' 237
+"letter ì
+imap i` 236
+"letter ï
+imap i? 239
+"letter î
+imap i~ 238
+"letter ¸
+imap i. 184
+"letter ó
+imap o' 243
+"letter ò
+imap o` 242
+"letter ö
+imap o? 246
+"letter õ
+imap o~ 245
+"letter ÷
+imap o. 247
+"letter ô
+imap o^ 244
+"letter ¯
+imap 244' 175
+"letter °
+imap 244` 176
+"letter ±
+imap 244? 177
+"letter ²
+imap 244~ 178
+"letter µ
+imap 244. 181
+"letter ½
+imap o+ 189
+"letter ¾
+imap 189' 190
+"letter ¶
+imap 189` 182
+"letter ·
+imap 189? 183
+"letter Þ
+imap 189~ 222
+"letter þ
+imap 189. 254
+"letter ú
+imap u' 250
+"letter ù
+imap u` 249
+"letter ü
+imap u? 252
+"letter û
+imap u~ 251
+"letter ø
+imap u. 248
+"letter ß
+imap u+ 223
+"letter Ñ
+imap 223' 209
+"letter ×
+imap 223` 215
+"letter Ø
+imap 223? 216
+"letter æ
+imap 223~ 230
+"letter ñ
+imap 223. 241
+"letter ý
+imap y' 253
+"letter Ï
+imap y` 207
+"letter Ö
+imap y? 214
+"letter Û
+imap y~ 219
+"letter Ü
+imap y. 220
+ "
+ " END OF VIQR input support
View
24 build-files/ports-overlay/editors/vim/options
@@ -0,0 +1,24 @@
+OPTIONS_DEFINE= \
+ PERL \
+ PYTHON \
+ RUBY \
+ TCL \
+ LUA \
+ CSCOPE \
+ EXUBERANT_CTAGS \
+ XTERM_SAVE \
+ NLS \
+ X11
+OPTIONS_RADIO= \
+ UI
+OPTIONS_RADIO_UI=\
+ ATHENA \
+ GTK2 \
+ GNOME \
+ MOTIF
+
+CSCOPE_DESC= cscope support
+EXUBERANT_CTAGS_DESC= Use exctags instead of ctags
+ATHENA_DESC= Athena GUI toolkit
+XTERM_SAVE_DESC= Restore xterm screen after exit
+UI_DESC= Graphical toolkit to use
View
23 build-files/ports-overlay/editors/vim/pkg-descr
@@ -0,0 +1,23 @@
+Vim is a virtually compatible, extremely enhanced, version of the UNIX
+text editor vi.
+
+There are a lot of enhancements above Vi: multi level undo, multi-windows
+and buffers, syntax highlighting, command line editing, filename completion,
+on-line help, visual selection, etc..
+
+Many features above standard vi's have been added:
+ multiple windows and buffers, multi level undo, command line history,
+ filename completion, selection highlighting, block operations (including
+ column/rectangular blocks), syntax highlighting, on-line help, etc.
+ Embeded Perl, Tcl, and Python support.
+ See ":help vi_diff" for a summary of the differences between Vim and Vi.
+
+ An X-windows aware or a full X-windows GUI version can also be built
+ that allows full use of the mouse and pull-down menus
+
+See http://www.vim.org/why.html for a full explanation of Vim's features.
+
+Portability to all UNIX platforms, AmigaOS, Archimedes, Atari MiNT, BeOS,
+M$-DOS, MacOS, OS/2, VMS, WinNT+Win95.
+
+WWW: http://www.vim.org/
View
43 build-files/ports-overlay/editors/vim/pkg-plist
@@ -0,0 +1,43 @@
+@comment $FreeBSD: editors/vim/pkg-plist 314778 2013-03-20 23:56:59Z bapt $
+bin/vim
+bin/vimtutor
+bin/xxd
+@comment bin/ex
+@comment bin/gex
+bin/eview
+bin/evim
+bin/gview
+bin/gvim
+bin/gvimtutor
+bin/rgview
+bin/rgvim
+bin/rview
+bin/rvim
+bin/vimdiff
+bin/gvimdiff
+@comment bin/view
+@exec mkdir -p %D/share/vim/%%VIM_VER%%/lang
+@comment Insert PLIST.share-vim here
+@comment -=[ begin PLIST.share-vim ]=-
+@comment -=[ end PLIST.share-vim ]=-
+%%NLS%%@dirrmtry man/fr/man1
+%%NLS%%@dirrmtry man/fr
+%%NLS%%@dirrmtry man/fr.ISO8859-1/man1
+%%NLS%%@dirrmtry man/fr.ISO8859-1
+%%NLS%%@dirrmtry man/fr.UTF-8/man1
+%%NLS%%@dirrmtry man/fr.UTF-8
+%%NLS%%@dirrmtry man/it/man1
+%%NLS%%@dirrmtry man/it
+%%NLS%%@dirrmtry man/it.ISO8859-1/man1
+%%NLS%%@dirrmtry man/it.ISO8859-1
+%%NLS%%@dirrmtry man/it.UTF-8/man1
+%%NLS%%@dirrmtry man/it.UTF-8
+%%NLS%%@dirrmtry man/pl/man1
+%%NLS%%@dirrmtry man/pl
+%%NLS%%@dirrmtry man/pl.ISO8859-2/man1
+%%NLS%%@dirrmtry man/pl.ISO8859-2
+%%NLS%%@dirrmtry man/pl.UTF-8/man1
+%%NLS%%@dirrmtry man/pl.UTF-8
+%%NLS%%@dirrmtry man/ru.UTF-8/man1
+%%NLS%%@dirrmtry man/ru.UTF-8
+@dirrm share/vim
View
100 build-files/ports-overlay/emulators/open-vm-tools/Makefile
@@ -0,0 +1,100 @@
+# Created by: mbr@FreeBSD.org
+# $FreeBSD: emulators/open-vm-tools/Makefile 327721 2013-09-20 16:43:52Z bapt $
+
+PORTNAME= open-vm-tools
+PORTVERSION= ${BUILD_VER}
+PORTREVISION= 3
+PORTEPOCH= 1
+CATEGORIES= emulators kld
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/stable-8.6.x
+DISTNAME= open-vm-tools-${RELEASE_VER}-${BUILD_VER}
+
+MAINTAINER= swills@FreeBSD.org
+COMMENT?= Open VMware tools for FreeBSD VMware guests
+
+LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+RELEASE_VER= 8.6.0
+BUILD_VER= 425873
+
+WRKSRC= ${WRKDIR}/open-vm-tools-${RELEASE_VER}-${BUILD_VER}
+GNU_CONFIGURE= yes
+USES= pkgconfig
+USE_LDCONFIG= yes
+USE_GCC= yes
+CPPFLAGS+= -Wno-deprecated-declarations
+
+SSP_UNSAFE= kernel module does not support ssp
+
+CONFIGURE_ARGS+= --without-procps --sysconfdir=${LOCALBASE}/etc
+.if defined(WITHOUT_X11)
+LIB_DEPENDS+= glib-2.0:${PORTSDIR}/devel/glib20
+CONFIGURE_ARGS+= --without-x --without-gtk2 --without-gtkmm
+PLIST_SUB+= X11="@comment "
+CONFLICTS= open-vm-tools-[0-9]*
+.else
+.if !defined(WITHOUT_LIBNOTIFY)
+LIB_DEPENDS+= notify.4:${PORTSDIR}/devel/libnotify
+.endif
+.if defined(WITH_UNITY)
+CONFIGURE_ENV+= CUSTOM_URIPARSER_CPPFLAGS="-I${LOCALBASE}/include/uriparser"
+LIB_DEPENDS+= uriparser.1:${PORTSDIR}/net/uriparser
+.else
+CONFIGURE_ARGS+= --disable-unity
+.endif
+LIB_DEPENDS+= gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24
+CONFIGURE_ARGS+= --with-x
+LDFLAGS+= -L${LOCALBASE}/lib
+USE_XORG= x11 ice sm xext xineramaproto xinerama xrandr xrender \
+ xtst
+USE_GNOME= gtk20 glib20
+PLIST_SUB+= X11=""
+CONFLICTS= open-vm-tools-nox11-[0-9]*
+.endif
+
+.if !defined(WITHOUT_FUSE)
+USES+= fuse
+PLIST_SUB+= FUSE=""
+.else
+PLIST_SUB+= FUSE="@comment "
+.endif
+
+CONFLICTS+= vmware-guestd[0-9]* vmware-tools[0-9]*
+SUB_FILES= pkg-message
+
+.if defined(WITHOUT_DNET)
+CONFIGURE_ARGS+= --without-dnet
+.else
+LIB_DEPENDS+= dnet:${PORTSDIR}/net/libdnet
+.endif
+
+.if defined(WITHOUT_ICU)
+CONFIGURE_ARGS+= --without-icu
+.else
+LIB_DEPENDS+= icuuc:${PORTSDIR}/devel/icu
+.endif
+
+USE_RC_SUBR= vmware-guestd vmware-kmod
+
+NO_STAGE= yes
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "sparc64"
+IGNORE= not yet ported to sparc64
+.endif
+
+post-build:
+ (cd ${WRKSRC}/modules && ${MAKE})
+
+post-install:
+ ${MKDIR} ${PREFIX}/lib/vmware-tools/modules/drivers
+ ${MKDIR} ${PREFIX}/lib/vmware-tools/modules/input
+ ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmmemctl.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmmemctl.ko
+ ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmxnet.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmxnet.ko
+ ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmhgfs.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmhgfs.ko
+ ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmblock.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmblock.ko
+ @-kldxref ${PREFIX}/lib/vmware-tools/modules/drivers 2>/dev/null
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
View
2  build-files/ports-overlay/emulators/open-vm-tools/distinfo
@@ -0,0 +1,2 @@
+SHA256 (open-vm-tools-8.6.0-425873.tar.gz) = 205768023fdf77962684f275f74c98644fba97961cb2afaa0a7d8aec5d074ebf
+SIZE (open-vm-tools-8.6.0-425873.tar.gz) = 3648242
View
12 build-files/ports-overlay/emulators/open-vm-tools/files/patch-appUtilX11.c
@@ -0,0 +1,12 @@
+--- ./lib/appUtil/appUtilX11.c.orig 2009-02-18 17:02:41.000000000 +0900
++++ ./lib/appUtil/appUtilX11.c 2009-03-24 18:54:18.000000000 +0900
+@@ -26,6 +26,9 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
++#if defined(__FreeBSD__)
++#include <libgen.h>
++#endif
+
+ #include "vmware.h"
+ #include "str.h"
View
12 build-files/ports-overlay/emulators/open-vm-tools/files/patch-arch
@@ -0,0 +1,12 @@
+--- configure.orig 2008-03-28 10:36:13.000000000 +0100
++++ configure 2008-03-28 10:36:45.000000000 +0100
+@@ -2259,6 +2259,9 @@
+ x86_64)
+ userSpaceBitness="64"
+ ;;
++ amd64)
++ userSpaceBitness="64"
++ ;;
+ *)
+ { { echo "$as_me:$LINENO: error: Unknown architecture." >&5
+ echo "$as_me: error: Unknown architecture." >&2;}
View
170 build-files/ports-overlay/emulators/open-vm-tools/files/patch-freebsd-8
@@ -0,0 +1,170 @@
+--- modules/freebsd/vmhgfs/vnops.c.orig 2009-02-18 17:02:35.000000000 +0900
++++ modules/freebsd/vmhgfs/vnops.c 2009-03-01 17:47:10.000000000 +0900
+@@ -325,7 +325,11 @@
+ */
+ {
+ struct vnode *vp = ap->a_vp;
++#if __FreeBSD_version >= 800001
++ int mode = ap->a_accmode;
++#else
+ int mode = ap->a_mode;
++#endif
+ HgfsAccessMode accessMode = 0;
+ Bool isDir = vp->v_type == VDIR;
+ if (mode & VREAD) {
+--- modules/freebsd/vmblock/vfsops.c.orig 2009-03-18 03:03:21.000000000 -0400
++++ modules/freebsd/vmblock/vfsops.c 2009-05-23 02:25:50.892549675 -0400
+@@ -126,6 +126,11 @@
+ char *target;
+ int len, error = 0;
+
++#if __FreeBSD_version >= 800087
++ struct thread *td;
++ td = curthread;
++#endif
++
+ VMBLOCKDEBUG("VMBlockVFSMount(mp = %p)\n", (void *)mp);
+
+ /*
+@@ -273,6 +278,11 @@
+ int error;
+ int flags = 0, removed = 0;
+
++#if __FreeBSD_version >= 800087
++ struct thread *td;
++ td = curthread;
++#endif
++
+ VMBLOCKDEBUG("VMBlockVFSUnmount: mp = %p\n", (void *)mp);
+
+ xmp = MNTTOVMBLOCKMNT(mp);
+@@ -448,10 +458,15 @@
+ VMBlockVFSSync(struct mount *mp, // Ignored
+ int waitfor) // Ignored
+ #else
++#if __FreeBSD_version >= 800087
++VMBlockVFSSync(struct mount *mp,
++ int waitfor)
++#else
+ VMBlockVFSSync(struct mount *mp, // Ignored
+ int waitfor, // Ignored
+ struct thread *td) // Ignored
+ #endif
++#endif
+ {
+ return 0;
+ }
+--- modules/freebsd/vmhgfs/vfsops.c.orig 2009-03-18 03:03:26.000000000 -0400
++++ modules/freebsd/vmhgfs/vfsops.c 2009-05-23 02:56:39.608109670 -0400
+@@ -109,8 +109,12 @@
+ */
+
+ static int
++#if __FreeBSD_version >= 800087
++HgfsVfsMount(struct mount *mp)
++#else
+ HgfsVfsMount(struct mount *mp, // IN: structure representing the file system
+ struct thread *td) // IN: thread which is mounting the file system
++#endif
+ {
+ HgfsSuperInfo *sip;
+ struct vnode *vp;
+@@ -122,6 +126,10 @@
+ int *uid = NULL;
+ Bool *gidSet = NULL;
+ int *gid = NULL;
++#if __FreeBSD_version >= 800087
++ struct thread *td;
++ td = curthread;
++#endif
+
+ /*
+ * - Examine/validate mount flags from userland.
+@@ -145,7 +153,11 @@
+ * Since Hgfs requires the caller to be root, only allow mount attempts made
+ * by the superuser.
+ */
++#if __FreeBSD_version >= 800001
++ if ((ret = priv_check(td, PRIV_VFS_MOUNT)) != 0) {
++#else
+ if ((ret = suser(td)) != 0) {
++#endif
+ return ret;
+ }
+
+@@ -277,11 +289,19 @@
+ */
+
+ static int
++#if __FreeBSD_version >= 800087
++HgfsVfsUnmount(struct mount *mp, int mntflags)
++#else
+ HgfsVfsUnmount(struct mount *mp, int mntflags, struct thread *td)
++#endif
+ {
+ HgfsSuperInfo *sip;
+ int ret = 0;
+ int flags = 0;
++#if __FreeBSD_version >= 800087
++ struct thread *td;
++ td = curthread;
++#endif
+
+ sip = (HgfsSuperInfo *)mp->mnt_data;
+
+@@ -348,10 +368,18 @@
+ */
+
+ static int
++#if __FreeBSD_version >= 800087
++HgfsVfsStatfs(struct mount *mp, struct statfs *sbp)
++#else
+ HgfsVfsStatfs(struct mount *mp, struct statfs *sbp, struct thread *td)
++#endif
+ {
+ int ret = 0;
+ struct vnode *vp;
++#if __FreeBSD_version >= 800087
++ struct thread *td;
++ td = curthread;
++#endif
+
+ /* We always want HGFS_BLOCKSIZE to be a power of two */
+ ASSERT_ON_COMPILE(HGFS_IS_POWER_OF_TWO(HGFS_BLOCKSIZE));
+@@ -361,8 +389,11 @@
+ * we got from a call to vfs_getnewfsid() in HgfsVfsMount()
+ */
+ bcopy(&mp->mnt_stat, sbp, sizeof mp->mnt_stat);
+-
++#if __FreeBSD_version >= 800087
++ ret = HgfsVfsRoot(mp, LK_SHARED, &vp);
++#else
+ ret = HgfsVfsRoot(mp, LK_SHARED, &vp, td);
++#endif
+ if (ret) {
+ DEBUG(VM_DEBUG_FAIL, "HgfsVfsRoot failed\n");
+ return ret;
+@@ -397,13 +428,23 @@
+ */
+
+ static int
++#if __FreeBSD_version >= 800087
++HgfsVfsRoot(struct mount *mp,
++ int flags,
++ struct vnode **vpp)
++#else
+ HgfsVfsRoot(struct mount *mp, // IN: Filesystem structure
+ int flags, // IN: Flags to vget
+ struct vnode **vpp, // OUT: Address of root vnode
+ struct thread *td) // IN: Thread structure
++#endif
+ {
+ HgfsSuperInfo *sip = (HgfsSuperInfo *)mp->mnt_data;
+ int ret = 0;
++#if __FreeBSD_version >= 800087
++ struct thread *td;
++ td = curthread;
++#endif
+
+ *vpp = NULL;
+
View
38 build-files/ports-overlay/emulators/open-vm-tools/files/patch-freebsd-9
@@ -0,0 +1,38 @@
+--- modules/freebsd/vmxnet/if_vxn.c.orig 2009-12-31 09:34:42.000000000 +0100
++++ modules/freebsd/vmxnet/if_vxn.c 2009-12-31 09:36:56.000000000 +0100
+@@ -134,7 +134,9 @@
+ static void vxn_init(void *);
+ static void vxn_start(struct ifnet *);
+ static int vxn_ioctl(struct ifnet *, u_long, caddr_t);
++#if __FreeBSD_version <= 900000
+ static void vxn_watchdog(struct ifnet *);
++#endif
+ static void vxn_intr (void *);
+
+ static void vxn_rx(vxn_softc_t *sc);
+@@ -383,7 +385,9 @@
+ ifp->if_ioctl = vxn_ioctl;
+ ifp->if_output = ether_output;
+ ifp->if_start = vxn_start;
++#if __FreeBSD_version <= 900000
+ ifp->if_watchdog = vxn_watchdog;
++#endif
+ ifp->if_init = vxn_init;
+ ifp->if_baudrate = 1000000000;
+ ifp->if_snd.ifq_maxlen = sc->vxn_num_tx_bufs;
+@@ -1018,6 +1022,7 @@
+ return error;
+ }
+
++#if __FreeBSD_version <= 900000
+ /*
+ *-----------------------------------------------------------------------------
+ * vxn_watchdog --
+@@ -1035,6 +1040,7 @@
+ {
+ printf("vxn%d: watchdog\n", VXN_IF_UNIT(ifp));
+ }
++#endif
+
+ /*
+ *-----------------------------------------------------------------------------
View
40 build-files/ports-overlay/emulators/open-vm-tools/files/patch-getpwnam
@@ -0,0 +1,40 @@
+--- lib/auth/authPosix.c 2008-03-19 08:49:49.000000000 +0100
++++ lib/auth/authPosix.c 2008-03-27 11:20:20.000000000 +0100
+@@ -264,7 +264,11 @@
+ #endif
+ /* If this point is reached, the user has been authenticated. */
+ setpwent();
++#if defined(__FreeBSD__)
++ pwd = getpwnam(user);
++#else
+ pwd = Posix_Getpwnam(user);
++#endif
+ endpwent();
+
+ #else /* !USE_PAM */
+@@ -274,7 +278,11 @@
+ corresponding #endif below. */
+
+ setpwent(); //XXX can kill?
++#if defined(__FreeBSD__)
++ pwd = getpwnam(user);
++#else
+ pwd = Posix_Getpwnam(user);
++#endif
+ endpwent(); //XXX can kill?
+
+ if (!pwd) {
+--- lib/impersonate/impersonatePosix.c 2008-03-19 08:49:50.000000000 +0100
++++ lib/impersonate/impersonatePosix.c 2008-03-27 11:21:38.000000000 +0100
+@@ -432,7 +432,11 @@
+ struct passwd *ppw = &pw;
+ int error;
+
++#if defined(__FreeBSD__)
++ if ((error = getpwnam_r(user, &pw, buffer, BUFSIZ, &ppw)) != 0 || !ppw) {
++#else
+ if ((error = Posix_Getpwnam_r(user, &pw, buffer, BUFSIZ, &ppw)) != 0 || !ppw) {
++#endif
+ if (error == 0) {
+ error = ENOENT;
+ }
View
11 build-files/ports-overlay/emulators/open-vm-tools/files/patch-guestApp.c
@@ -0,0 +1,11 @@
+--- lib/guestApp/guestApp.c.orig 2008-05-29 10:42:37.000000000 +0300
++++ lib/guestApp/guestApp.c 2008-05-29 10:43:09.000000000 +0300
+@@ -65,7 +65,7 @@
+ #elif defined __APPLE__
+ # define GUESTAPP_TOOLS_INSTALL_PATH "/Library/Application Support/VMware Tools"
+ #else
+-# define GUESTAPP_TOOLS_INSTALL_PATH "/etc/vmware-tools"
++# define GUESTAPP_TOOLS_INSTALL_PATH "/usr/local/share/vmware-tools"
+ #endif
+
+ /*
View
22 build-files/ports-overlay/emulators/open-vm-tools/files/patch-hgfsmounter-Makefile.in
@@ -0,0 +1,22 @@
+--- hgfsmounter/Makefile.in.orig 2011-09-21 18:25:50.000000000 +0000
++++ hgfsmounter/Makefile.in 2011-09-25 04:03:22.000000000 +0000
+@@ -606,14 +606,14 @@
+ @FREEBSD_TRUE@ mv $(DESTDIR)$(sbindir)/mount.vmhgfs \
+ @FREEBSD_TRUE@ $(DESTDIR)$(sbindir)/mount_vmhgfs
+ @FREEBSD_TRUE@ -$(MKDIR_P) $(DESTDIR)/sbin
+-@FREEBSD_TRUE@ -$(LN_S) $(DESTDIR)$(sbindir)/mount_vmhgfs \
+-@FREEBSD_TRUE@ $(DESTDIR)/sbin/mount_vmhgfs &> /dev/null
++#@FREEBSD_TRUE@ -$(LN_S) $(DESTDIR)$(sbindir)/mount_vmhgfs \
++#@FREEBSD_TRUE@ $(DESTDIR)/sbin/mount_vmhgfs &> /dev/null
+ @FREEBSD_TRUE@uninstall-hook:
+ @FREEBSD_TRUE@ rm -f $(DESTDIR)$(sbindir)/mount_vmhgfs
+ @FREEBSD_FALSE@install-exec-hook:
+-@FREEBSD_FALSE@ -$(MKDIR_P) $(DESTDIR)/sbin
+-@FREEBSD_FALSE@ -$(LN_S) $(DESTDIR)$(sbindir)/mount.vmhgfs \
+-@FREEBSD_FALSE@ $(DESTDIR)/sbin/mount.vmhgfs &> /dev/null
++#@FREEBSD_FALSE@ -$(MKDIR_P) $(DESTDIR)/sbin
++#@FREEBSD_FALSE@ -$(LN_S) $(DESTDIR)$(sbindir)/mount.vmhgfs \
++#@FREEBSD_FALSE@ $(DESTDIR)/sbin/mount.vmhgfs &> /dev/null
+ @FREEBSD_FALSE@uninstall-hook:
+ @FREEBSD_FALSE@ rm -f $(DESTDIR)/sbin/mount.vmhgfs
+
View
10 build-files/ports-overlay/emulators/open-vm-tools/files/patch-hostinfoPosix.c
@@ -0,0 +1,10 @@
+--- ./lib/misc/hostinfoPosix.c.orig 2010-04-28 03:17:27.000000000 +0900
++++ ./lib/misc/hostinfoPosix.c 2010-11-11 22:37:23.000000000 +0900
+@@ -31,7 +31,6 @@
+ #include <sys/wait.h>
+ #include <signal.h>
+ #include <sys/time.h>
+-#include <sys/timeb.h>
+ #include <pwd.h>
+ #include <pthread.h>
+ #include <sys/resource.h>
View
22 build-files/ports-overlay/emulators/open-vm-tools/files/patch-libguestlib-Makefile
@@ -0,0 +1,22 @@
+--- ./libguestlib/Makefile.am.orig 2010-04-28 03:17:28.000000000 +0900
++++ ./libguestlib/Makefile.am 2010-11-11 22:21:38.000000000 +0900
+@@ -41,7 +41,7 @@
+
+ EXTRA_DIST = vmguestlib.pc.in
+
+-pkgconfigdir = $(libdir)/pkgconfig
++pkgconfigdir = $(DESTDIR)$(prefix)/libdata/pkgconfig
+ pkgconfig_DATA = vmguestlib.pc
+
+ $(pkgconfig_DATA): $(top_builddir)/config.status
+--- ./libguestlib/Makefile.in.orig 2010-04-28 03:18:19.000000000 +0900
++++ ./libguestlib/Makefile.in 2010-11-11 22:22:04.000000000 +0900
+@@ -298,7 +298,7 @@
+ $(top_srcdir)/lib/include/vmSessionId.h \
+ $(top_srcdir)/lib/include/vm_basic_types.h
+ EXTRA_DIST = vmguestlib.pc.in
+-pkgconfigdir = $(libdir)/pkgconfig
++pkgconfigdir = $(DESTDIR)$(prefix)/libdata/pkgconfig
+ pkgconfig_DATA = vmguestlib.pc
+ all: all-am
+
View
19 build-files/ports-overlay/emulators/open-vm-tools/files/patch-modules-Makefile.in
@@ -0,0 +1,19 @@
+--- modules/Makefile.in.orig 2009-04-06 18:44:58.000000000 -0400
++++ modules/Makefile.in 2009-04-06 18:45:57.000000000 -0400
+@@ -528,11 +528,11 @@
+ @SOLARIS_TRUE@ $(MAKE) VM_UNAME=$(KERNEL_RELEASE) MV=mv RM=rm \
+ @SOLARIS_TRUE@ -C "$(modulesrc)/$(MODULES_OS)/$$MOD" install || exit 1; \
+ @SOLARIS_TRUE@ done
+-@FREEBSD_TRUE@ for MOD in $(MODULES); do \
+-@FREEBSD_TRUE@ $(INSTALL) -d $(DESTDIR)$(MODULES_DIR); \
+-@FREEBSD_TRUE@ $(INSTALL) -m644 $(modulesrc)/$(MODULES_OS)/$$MOD.ko \
+-@FREEBSD_TRUE@ $(DESTDIR)$(MODULES_DIR); \
+-@FREEBSD_TRUE@ done
++#@FREEBSD_TRUE@ for MOD in $(MODULES); do \
++#@FREEBSD_TRUE@ $(INSTALL) -d $(DESTDIR)$(MODULES_DIR); \
++#@FREEBSD_TRUE@ $(INSTALL) -m644 $(modulesrc)/$(MODULES_OS)/$$MOD.ko \
++#@FREEBSD_TRUE@ $(DESTDIR)$(MODULES_DIR); \
++#@FREEBSD_TRUE@ done
+ @LINUX_TRUE@ for MOD in $(MODULES); do \
+ @LINUX_TRUE@ $(INSTALL) -d $(DESTDIR)`eval echo '$$'$${MOD}dir`; \
+ @LINUX_TRUE@ $(INSTALL) -m644 $(modulesrc)/$(MODULES_OS)/$$MOD/$$MOD.ko \
View
17 build-files/ports-overlay/emulators/open-vm-tools/files/patch-net_compat.h
@@ -0,0 +1,17 @@
+--- modules/freebsd/vmxnet/net_compat.h.orig 2011-09-21 14:25:15.000000000 -0400
++++ modules/freebsd/vmxnet/net_compat.h 2012-06-28 17:05:44.638526644 -0400
+@@ -170,9 +170,12 @@
+ #if __FreeBSD_version < 505000
+ # define VXN_IF_ADDR_LOCK(_ifp)
+ # define VXN_IF_ADDR_UNLOCK(_ifp)
++#elif __FreeBSD_version < 1000000
++# define VXN_IF_ADDR_LOCK(_ifp) IF_ADDR_LOCK((_ifp))
++# define VXN_IF_ADDR_UNLOCK(_ifp) IF_ADDR_UNLOCK((_ifp))
+ #else
+-# define VXN_IF_ADDR_LOCK(_ifp) IF_ADDR_LOCK((_ifp))
+-# define VXN_IF_ADDR_UNLOCK(_ifp) IF_ADDR_UNLOCK((_ifp))
++# define VXN_IF_ADDR_LOCK(_ifp) IF_ADDR_WLOCK((_ifp))
++# define VXN_IF_ADDR_UNLOCK(_ifp) IF_ADDR_WUNLOCK((_ifp))
+ #endif
+
+ #endif /* _VXN_NET_COMPAT_H_ */
View
11 build-files/ports-overlay/emulators/open-vm-tools/files/patch-scripts-Makefile
@@ -0,0 +1,11 @@
+--- scripts/Makefile.in.orig 2010-05-22 04:41:58.000000000 +0200
++++ scripts/Makefile.in 2010-05-22 04:43:57.000000000 +0200
+@@ -236,7 +236,7 @@
+ top_srcdir = @top_srcdir@
+ defaultscripts = poweron-vm-default poweroff-vm-default \
+ suspend-vm-default resume-vm-default
+-confdir = /etc/vmware-tools
++confdir = ${prefix}/share/vmware-tools
+ conf_SCRIPTS = ./common/vm-support ./common/statechange.subr \
+ $(defaultscripts)
+ vmwsrcdir = $(confdir)/scripts/vmware
View
10 build-files/ports-overlay/emulators/open-vm-tools/files/patch-scripts-network
@@ -0,0 +1,10 @@
+--- ./scripts/freebsd/network.orig 2010-04-28 03:17:28.000000000 +0900
++++ ./scripts/freebsd/network 2010-11-11 22:18:23.000000000 +0900
+@@ -59,6 +59,7 @@
+
+ for intf in `list_net_interfaces dhcp`; do
+ /etc/rc.d/netif $1 $intf
++ /etc/rc.d/dhclient $1 $intf
+ ec=$?
+
+ # Failure to stop an interface should not interfere with suspend.
View
22 build-files/ports-overlay/emulators/open-vm-tools/files/patch-services-Makefile
@@ -0,0 +1,22 @@
+--- services/Makefile.am.orig 2009-02-28 20:48:46.000000000 +0100
++++ services/Makefile.am 2009-02-28 20:49:28.000000000 +0100
+@@ -20,6 +20,5 @@
+ SUBDIRS += plugins
+
+ install-exec-local:
+- mkdir -p $(DESTDIR)/etc/vmware-tools
+- ln -sf `dirname $(VMSVC_PLUGIN_INSTALLDIR)` $(DESTDIR)/etc/vmware-tools/plugins
++ mkdir -p $(prefix)/etc/vmware-tools
+
+--- services/Makefile.in.orig 2009-02-28 20:48:52.000000000 +0100
++++ services/Makefile.in 2009-02-28 20:49:46.000000000 +0100
+@@ -642,8 +642,7 @@
+
+
+ install-exec-local:
+- mkdir -p $(DESTDIR)/etc/vmware-tools
+- ln -sf `dirname $(VMSVC_PLUGIN_INSTALLDIR)` $(DESTDIR)/etc/vmware-tools/plugins
++ mkdir -p $(prefix)/etc/vmware-tools
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
View
20 build-files/ports-overlay/emulators/open-vm-tools/files/patch-util_misc.c
@@ -0,0 +1,20 @@
+--- lib/misc/util_misc.c.orig 2009-04-14 02:38:09.000000000 +0200
++++ lib/misc/util_misc.c 2009-04-14 02:39:00.000000000 +0200
+@@ -292,7 +292,7 @@
+ return (strcmp(path1, path2) == 0);
+ #elif defined(_WIN32)
+ return (_stricmp(path1, path2) == 0);
+-#elif defined(__APPLE__)
++#elif defined(__APPLE__) || defined(__FreeBSD__)
+ return (strcasecmp(path1, path2) == 0);
+ #else
+ NOT_IMPLEMENTED();
+@@ -319,7 +319,7 @@
+ Bool
+ Util_IsAbsolutePath(const char *path) // IN: path to check
+ {
+-#if defined(__linux__) || defined(__APPLE__)
++#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
+ // path[0] is valid even for the empty string.
+ return path && path[0] == DIRSEPC;
+ #elif defined(_WIN32)
View
10 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vm_basic_types.h
@@ -0,0 +1,10 @@
+--- ./lib/include/vm_basic_types.h.orig 2010-10-20 05:19:54.000000000 +0900
++++ ./lib/include/vm_basic_types.h 2010-10-29 20:11:03.000000000 +0900
+@@ -333,6 +333,7 @@
+ #define FMTPD ""
+ #endif
+ #elif defined(__linux__) \
++ || (defined(__clang__)) \
+ || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) \
+ || (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) \
+ || (defined(_POSIX2_VERSION) && _POSIX2_VERSION >= 200112L)
View
24 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmblock-vnops.c
@@ -0,0 +1,24 @@
+--- modules/freebsd/vmblock/vnops.c.orig 2011-09-21 14:25:15.000000000 -0400
++++ modules/freebsd/vmblock/vnops.c 2012-06-28 20:51:22.897344202 -0400
+@@ -1362,7 +1362,9 @@
+ */
+ {
+ struct vnode *vp = ap->a_vp;
++#if __FreeBSD_version < 1000000
+ struct thread *td = ap->a_td;
++#endif
+
+ vp->v_object = NULL;
+
+@@ -1370,7 +1372,11 @@
+ * If this is the last reference, then free up the vnode so as not to
+ * tie up the lower vnode.
+ */
++#if __FreeBSD_version < 1000000
+ vrecycle(vp, td);
++#else
++ vrecycle(vp);
++#endif
+
+ return 0;
+ }
View
27 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmhgfs-Makefile
@@ -0,0 +1,27 @@
+--- ./modules/freebsd/vmhgfs/Makefile.orig 2010-10-20 05:19:54.000000000 +0900
++++ ./modules/freebsd/vmhgfs/Makefile 2010-11-11 23:06:07.000000000 +0900
+@@ -90,22 +90,7 @@
+ CFLAGS += -Ishared
+ .endif
+
+-#
+-# FreeBSD's kernel module build system defines a bunch of additional warning
+-# flags for the compiler in addition to -Wall -Werror. However, some of these,
+-# like -Wredundant-decls, are overkill. To get around this, I copied their list
+-# of warning flags, but explicitly disabled a few.
+-#
+-CWARNFLAGS := -Wall
+-CWARNFLAGS += -Werror
+-CWARNFLAGS += -Wno-redundant-decls
+-CWARNFLAGS += -Wnested-externs
+-CWARNFLAGS += -Wstrict-prototypes
+-CWARNFLAGS += -Wno-missing-prototypes
+-CWARNFLAGS += -Wpointer-arith
+-CWARNFLAGS += -Winline
+-CWARNFLAGS += -Wcast-qual
+-
+ EXPORT_SYMS = NO
+
++.include <bsd.own.mk>
+ .include <bsd.kmod.mk>
+
View
11 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmhgfs-kernelStubs.h
@@ -0,0 +1,11 @@
+--- modules/freebsd/vmhgfs/kernelStubs.h.orig 2010-10-20 05:19:54.000000000 +0900
++++ modules/freebsd/vmhgfs/kernelStubs.h 2010-11-16 13:26:24.000000000 +0900
+@@ -132,7 +132,7 @@
+ * Stub functions we provide.
+ */
+
+-void Panic(const char *fmt, ...);
++/* void Panic(const char *fmt, ...); -> vm_assert.h */
+
+ char *Str_Strcpy(char *buf, const char *src, size_t maxSize);
+ int Str_Vsnprintf(char *str, size_t size, const char *format,
View
31 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmhgfs-state.c
@@ -0,0 +1,31 @@
+--- modules/freebsd/vmhgfs/state.c.orig 2010-10-20 05:19:54.000000000 +0900
++++ modules/freebsd/vmhgfs/state.c 2010-11-16 13:27:57.000000000 +0900
+@@ -770,6 +770,12 @@
+ goto destroyVnode;
+ }
+
++#if __FreeBSD_version >= 700034
++ if ((ret = insmntque(vp, vfsp)) != 0) {
++ return ret;
++ }
++#endif
++
+ /*
+ * Now we'll initialize the vnode. We need to set the file type, vnode
+ * operations, flags, filesystem pointer, reference count, and device.
+@@ -1277,6 +1283,7 @@
+ *----------------------------------------------------------------------------
+ */
+
++#if 0 /* never used */
+ void
+ HgfsMarkFileMmapped(struct vnode *vp, // vnode which state is being changed
+ Bool mmapped) // New mapping state
+@@ -1286,6 +1293,7 @@
+ fp = HGFS_VP_TO_FP(vp);
+ fp->mmapped = mmapped;
+ }
++#endif
+
+ /* Adding/finding/removing file state from hash table */
+
View
11 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmhgfs-vnopscommon.c
@@ -0,0 +1,11 @@
+--- modules/freebsd/vmhgfs/vnopscommon.c.orig 2010-10-20 05:19:54.000000000 +0900
++++ modules/freebsd/vmhgfs/vnopscommon.c 2010-11-16 13:26:55.000000000 +0900
+@@ -50,7 +50,7 @@
+ static int HgfsDoGetattrInt(const char *path, const HgfsHandle handle, HgfsSuperInfo *sip,
+ HgfsAttrV2 *hgfsAttrV2);
+ static int HgfsDoGetattrByName(const char *path, HgfsSuperInfo *sip, HgfsAttrV2 *hgfsAttrV2);
+-int HgfsReadlinkInt(struct vnode *vp, struct uio *uiop);
++/* int HgfsReadlinkInt(struct vnode *vp, struct uio *uiop); -> vnopscommon.h */
+ static int HgfsQueryAttrInt(const char *path, HgfsHandle handle, HgfsSuperInfo *sip,
+ HgfsKReqHandle req);
+ static int HgfsRefreshHandle(struct vnode *vp, HgfsSuperInfo *sip, HgfsHandle *handle);
View
50 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmmemctl-os.c
@@ -0,0 +1,50 @@
+--- modules/freebsd/vmmemctl/os.c.orig 2011-09-21 14:25:15.000000000 -0400
++++ modules/freebsd/vmmemctl/os.c 2012-06-20 09:44:40.434083000 -0400
+@@ -344,12 +344,22 @@
+ os_state *state = &global_state;
+ os_pmap *pmap = &state->pmap;
+
+- if ( !vm_page_lookup(state->vmobject, page->pindex) ) {
+- return;
++ VM_OBJECT_LOCK(state->vmobject);
++ if ( vm_page_lookup(state->vmobject, page->pindex) ) {
++ os_pmap_putindex(pmap, page->pindex);
++#if __FreeBSD_version >= 900000
++ vm_page_lock(page);
++#else
++ vm_page_lock_queues();
++#endif
++ vm_page_free(page);
++#if __FreeBSD_version >= 900000
++ vm_page_unlock(page);
++#else
++ vm_page_unlock_queues();
++#endif
+ }
+-
+- os_pmap_putindex(pmap, page->pindex);
+- vm_page_free(page);
++ VM_OBJECT_UNLOCK(state->vmobject);
+ }
+
+
+@@ -361,8 +371,11 @@
+ os_state *state = &global_state;
+ os_pmap *pmap = &state->pmap;
+
++ VM_OBJECT_LOCK(state->vmobject);
++
+ pindex = os_pmap_getindex(pmap);
+ if (pindex == (vm_pindex_t)-1) {
++ VM_OBJECT_UNLOCK(state->vmobject);
+ return NULL;
+ }
+
+@@ -383,6 +396,7 @@
+ if (!page) {
+ os_pmap_putindex(pmap, pindex);
+ }
++ VM_OBJECT_UNLOCK(state->vmobject);
+
+ return page;
+ }
View
11 build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmtoolsd-Makefile.in
@@ -0,0 +1,11 @@
+--- services/vmtoolsd/Makefile.in.orig 2009-04-06 18:40:27.000000000 -0400
++++ services/vmtoolsd/Makefile.in 2009-04-06 18:41:16.000000000 -0400
+@@ -722,7 +722,7 @@
+ $@ || (rm -f $@ && exit 1)
+
+ install-exec-hook:
+- $(INSTALL) -d $(DESTDIR)/etc/vmware-tools
++# $(INSTALL) -d $(DESTDIR)/etc/vmware-tools
+
+ uninstall-hook:
+ rm -rf $(DESTDIR)/etc/vmware-tools
View
11 build-files/ports-overlay/emulators/open-vm-tools/files/patch-wrapper-Makefile.am
@@ -0,0 +1,11 @@
+--- vmware-user-suid-wrapper/Makefile.am.orig 2010-10-20 05:19:54.000000000 +0900
++++ vmware-user-suid-wrapper/Makefile.am 2010-11-16 17:52:55.000000000 +0900
+@@ -19,6 +19,8 @@
+
+ AM_CPPFLAGS =
+ AM_CPPFLAGS += -DVMTOOLSD_PATH=\"$(bindir)/vmtoolsd\"
++# See post-install on Makefile of ports.
++AM_CPPFLAGS += -DVMWARE_KMOD_DIR=\"$(prefix)/lib/vmware-tools/modules/drivers\"
+
+ vmware_user_suid_wrapper_SOURCES =
+ vmware_user_suid_wrapper_SOURCES += main.c
View
11 build-files/ports-overlay/emulators/open-vm-tools/files/pkg-message.in
@@ -0,0 +1,11 @@
+*******************************************************************
+To run the Open Virtual Machine tools at startup, add the following
+settings to your /etc/rc.conf
+
+vmware_guest_vmblock_enable="YES"
+vmware_guest_vmhgfs_enable="YES"
+vmware_guest_vmmemctl_enable="YES"
+vmware_guest_vmxnet_enable="YES"
+vmware_guestd_enable="YES"
+
+*******************************************************************
View
29 build-files/ports-overlay/emulators/open-vm-tools/files/vmware-guestd.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD: emulators/open-vm-tools/files/vmware-guestd.in 302141 2012-08-05 23:19:36Z dougb $
+#
+
+# PROVIDE: vmware-guestd
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+
+. /etc/rc.subr
+
+# Global
+checkvm_cmd="%%PREFIX%%/bin/vmware-checkvm > /dev/null"
+
+# VMware guest daemon
+name="vmware_guestd"
+rcvar=vmware_guestd_enable
+start_precmd="${checkvm_cmd}"
+unset start_cmd
+stop_precmd="${checkvm_cmd}"
+unset stop_cmd
+command="%%PREFIX%%/bin/vmtoolsd"
+command_args="-c %%PREFIX%%/share/vmware-tools/tools.conf -p %%PREFIX%%/lib/open-vm-tools/plugins/vmsvc"
+pidfile="/var/run/${name}.pid"
+
+load_rc_config $name
+[ -z "$vmware_guestd_enable" ] && vmware_guestd_enable="YES"
+[ -z "$vmware_guestd_flags" ] && vmware_guestd_flags="--background ${pidfile}"
+run_rc_command "$1"
View
101 build-files/ports-overlay/emulators/open-vm-tools/files/vmware-kmod.in
@@ -0,0 +1,101 @@
+#!/bin/sh
+#
+# $FreeBSD: emulators/open-vm-tools/files/vmware-kmod.in 302141 2012-08-05 23:19:36Z dougb $
+#
+
+# PROVIDE: vmware-kmod
+# REQUIRE: FILESYSTEMS
+# BEFORE: netif
+
+. /etc/rc.subr
+
+# Global
+checkvm_cmd="%%PREFIX%%/bin/vmware-checkvm > /dev/null"
+
+# Functions
+vmware_mod_load()
+{
+ echo -n "Loading $1 kernel module: "
+ kldstat -n %%PREFIX%%/lib/vmware-tools/modules/drivers/$1.ko >/dev/null 2>&1
+ if [ "$?" = "0" ]; then
+ echo "already loaded."
+ else
+ kldload %%PREFIX%%/lib/vmware-tools/modules/drivers/$1.ko >/dev/null 2>&1
+ if [ "$?" = "0" ]; then
+ echo "done."
+ else
+ echo "failed."
+ fi
+ fi
+}
+vmware_mod_status()
+{
+ echo -n "Checking $1 kernel module: "
+ kldstat -n %%PREFIX%%/lib/vmware-tools/modules/drivers/$1.ko >/dev/null 2>&1
+ if [ "$?" = "0" ]; then
+ echo "loaded."
+ else
+ echo "not loaded"
+ fi
+}
+
+# VMware kernel module: vmmemctl
+kernel_mod="vmmemctl"
+name="vmware_guest_${kernel_mod}"
+rcvar=vmware_guest_${kernel_mod}_enable
+extra_commands="status"
+status_cmd="vmware_mod_status ${kernel_mod}"
+start_precmd="${checkvm_cmd}"
+start_cmd="vmware_mod_load ${kernel_mod}"
+stop_precmd="${checkvm_cmd}"
+stop_cmd=":"
+
+load_rc_config $name
+[ -z "$vmware_guest_vmmemctl_enable" ] && vmware_guest_vmmemctl_enable="NO"
+[ -n "$vmware_guest_kmod_enable" ] && vmware_guest_vmmemctl_enable="$vmware_guest_kmod_enable"
+run_rc_command "$1"
+
+# VMware kernel module: vmxnet
+kernel_mod="vmxnet"
+name="vmware_guest_${kernel_mod}"
+rcvar=vmware_guest_${kernel_mod}_enable
+extra_commands="status"
+status_cmd="vmware_mod_status ${kernel_mod}"
+start_precmd="${checkvm_cmd}"
+start_cmd="vmware_mod_load ${kernel_mod}"
+stop_precmd="${checkvm_cmd}"
+stop_cmd=":"
+
+load_rc_config $name
+[ -z "$vmware_guest_vmxnet_enable" ] && vmware_guest_vmxnet_enable="NO"
+run_rc_command "$1"
+
+# VMware kernel module: vmblock
+kernel_mod="vmblock"
+name="vmware_guest_${kernel_mod}"
+rcvar=vmware_guest_${kernel_mod}_enable
+extra_commands="status"
+status_cmd="vmware_mod_status ${kernel_mod}"
+start_precmd="${checkvm_cmd}"
+start_cmd="vmware_mod_load ${kernel_mod}"
+stop_precmd="${checkvm_cmd}"
+stop_cmd=":"
+
+load_rc_config $name
+[ -z "$vmware_guest_vmblock_enable" ] && vmware_guest_vmblock_enable="NO"
+run_rc_command "$1"
+
+# VMware kernel module: vmhgfs
+kernel_mod="vmhgfs"
+name="vmware_guest_${kernel_mod}"
+rcvar=vmware_guest_${kernel_mod}_enable
+extra_commands="status"
+status_cmd="vmware_mod_status ${kernel_mod}"
+start_precmd="${checkvm_cmd}"
+start_cmd="vmware_mod_load ${kernel_mod}"
+stop_precmd="${checkvm_cmd}"
+stop_cmd=":"
+
+load_rc_config $name
+[ -z "$vmware_guest_vmhgfs_enable" ] && vmware_guest_vmhgfs_enable="NO"
+run_rc_command "$1"
View
13 build-files/ports-overlay/emulators/open-vm-tools/pkg-descr
@@ -0,0 +1,13 @@
+The Open Virtual Machine Tools (open-vm-tools) are the open source
+implementation of VMware Tools. They are a set of guest operating
+system virtualization components that enhance performance and user
+experience of virtual machines. As virtualization technology rapidly
+becomes mainstream, each virtualization solution provider implements
+their own set of tools and utilities to supplement the guest virtual
+machine. However, most of the implementations are proprietary and
+are tied to a specific virtualization platform.
+
+This port replaces the vmware guest ports and the binary only vmware
+tools ports in the ports tree.
+
+WWW: http://open-vm-tools.sourceforge.net
View
83 build-files/ports-overlay/emulators/open-vm-tools/pkg-plist
@@ -0,0 +1,83 @@
+bin/vmware-checkvm
+bin/vmware-hgfsclient
+bin/vmware-rpctool
+bin/vmware-xferlogs
+bin/vmtoolsd
+bin/vmware-toolbox-cmd
+%%FUSE%%bin/vmware-vmblock-fuse
+lib/open-vm-tools/plugins/vmsvc/libguestInfo.so
+lib/open-vm-tools/plugins/vmsvc/libpowerOps.so
+lib/open-vm-tools/plugins/vmsvc/libtimeSync.so
+lib/open-vm-tools/plugins/vmsvc/libvmbackup.so
+lib/open-vm-tools/plugins/common/libhgfsServer.so
+lib/open-vm-tools/plugins/common/libhgfsServer.la
+lib/open-vm-tools/plugins/common/libvix.so
+lib/open-vm-tools/plugins/common/libvix.la
+%%X11%%lib/open-vm-tools/plugins/vmusr/libresolutionSet.so
+%%X11%%lib/open-vm-tools/plugins/vmusr/libvixUser.so
+%%X11%%lib/open-vm-tools/plugins/vmusr/libdesktopEvents.so
+%%X11%%lib/open-vm-tools/plugins/vmusr/libdndcp.so
+lib/libhgfs.a
+lib/libhgfs.la
+lib/libhgfs.so
+lib/libhgfs.so.0
+lib/libvmtools.a
+lib/libvmtools.la
+lib/libvmtools.so
+lib/libvmtools.so.0
+lib/libguestlib.a
+lib/libguestlib.la
+lib/libguestlib.so
+lib/libguestlib.so.0
+libdata/pkgconfig/vmguestlib.pc
+lib/vmware-tools/modules/drivers/linker.hints
+lib/vmware-tools/modules/drivers/vmblock.ko
+lib/vmware-tools/modules/drivers/vmhgfs.ko
+lib/vmware-tools/modules/drivers/vmmemctl.ko
+lib/vmware-tools/modules/drivers/vmxnet.ko
+include/vmGuestLib/includeCheck.h
+include/vmGuestLib/vmGuestLib.h
+include/vmGuestLib/vmSessionId.h
+include/vmGuestLib/vm_basic_types.h
+@exec mkdir -p %D/lib/vmware-tools/modules/input
+sbin/mount_vmhgfs
+%%X11%%bin/vmware-toolbox
+%%X11%%bin/vmware-user-suid-wrapper
+share/vmware-tools/poweroff-vm-default
+share/vmware-tools/poweron-vm-default
+share/vmware-tools/resume-vm-default
+share/vmware-tools/suspend-vm-default
+share/vmware-tools/vm-support
+share/open-vm-tools/messages/de/toolbox.vmsg
+share/open-vm-tools/messages/ja/toolbox.vmsg
+share/open-vm-tools/messages/zh_CN/toolbox.vmsg
+share/vmware-tools/statechange.subr
+share/vmware-tools/scripts/vmware/network
+@exec kldxref %D/lib/vmware-tools/modules/drivers 2>/dev/null || true
+@unexec if test -f %D/lib/vmware-tools/modules/drivers/linker.hints; then rm -f %D/lib/vmware-tools/modules/drivers/linker.hints; fi
+@unexec if test -f %D/share/vmware-tools/tools.conf; then rm -f %D/share/vmware-tools/tools.conf; fi
+@unexec if test -h %D/etc/vmware-tools/plugins; then rm -f %D/etc/vmware-tools/plugins; fi
+@dirrmtry lib/vmware-tools/modules/drivers
+@dirrmtry lib/vmware-tools/modules/input
+@dirrmtry lib/vmware-tools/modules
+@dirrmtry lib/vmware-tools
+@dirrmtry etc/vmware-tools
+@dirrmtry share/open-vm-tools/messages/de
+@dirrmtry share/open-vm-tools/messages/ja
+@dirrmtry share/open-vm-tools/messages/zh_CN
+@dirrmtry share/open-vm-tools/messages
+@dirrmtry share/open-vm-tools/scripts/vmware
+@dirrmtry share/open-vm-tools/scripts
+@dirrmtry share/open-vm-tools/tests
+@dirrmtry share/open-vm-tools
+@dirrmtry share/vmware-tools/scripts/vmware
+@dirrmtry share/vmware-tools/scripts
+@dirrmtry share/vmware-tools
+@dirrmtry libdata/pkgconfig
+%%X11%%@dirrmtry share/applications
+@dirrm lib/open-vm-tools/plugins/common
+@dirrm lib/open-vm-tools/plugins/vmsvc
+%%X11%%@dirrm lib/open-vm-tools/plugins/vmusr
+@dirrm lib/open-vm-tools/plugins
+@dirrm lib/open-vm-tools
+@dirrm include/vmGuestLib
View
198 build-files/ports-overlay/emulators/virtualbox-ose-additions/Makefile
@@ -0,0 +1,198 @@
+# Created by: Bernhard Froehlich <decke@bluelife.at>
+# $FreeBSD: emulators/virtualbox-ose-additions/Makefile 327721 2013-09-20 16:43:52Z bapt $
+
+PORTNAME= virtualbox-ose
+DISTVERSION= 4.2.18
+CATEGORIES= emulators kld
+MASTER_SITES= http://download.virtualbox.org/virtualbox/${DISTVERSION}/ \
+ http://tmp.chruetertee.ch/ \
+ http://disasterarea.chruetertee.ch/
+PKGNAMESUFFIX= -additions
+DISTNAME= VirtualBox-${DISTVERSION}
+
+MAINTAINER= vbox@FreeBSD.org
+COMMENT= VirtualBox additions for FreeBSD guests
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm \
+ as86:${PORTSDIR}/devel/dev86 \
+ kmk:${PORTSDIR}/devel/kBuild
+
+UNIQUENAME= ${PORTNAME}${PKGNAMESUFFIX}
+WRKSRC= ${WRKDIR}/VirtualBox-${PORTVERSION}
+USE_GCC= yes
+USE_RC_SUBR= vboxguest vboxservice
+USES= iconv
+ONLY_FOR_ARCHS= i386 amd64
+FETCH_ARGS= -pRr
+USE_BZIP2= yes
+MAKE_JOBS_UNSAFE= yes
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS+=--with-gcc="${CC}" --with-g++="${CXX}" --nofatal \
+ --disable-xpcom --disable-sdl-ttf --disable-pulse \
+ --disable-alsa --disable-dbus --disable-python
+
+CONFLICTS= bcc-[0-9]*
+CONFLICTS_INSTALL= virtualbox-ose-additions-devel-[3,4]* virtualbox-ose-[3,4]* virtualbox-ose-devel-[3,4]* virtualbox-ose-legacy-[3,4]*
+
+OPTIONS_DEFINE= DEBUG X11 OPENGL
+OPTIONS_DEFAULT= X11
+
+NO_STAGE= yes
+.include <bsd.port.options.mk>
+
+PLIST_SUB+= KMODDIR=${KMODDIR:C,^/,,}
+
+KMODDIR= /boot/modules
+SRC_BASE?= /usr/src
+VIDEODIR= ${PREFIX}/lib/xorg/modules/drivers
+INPUTDIR= ${PREFIX}/lib/xorg/modules/input
+
+VBOX_BIN= ${WRKSRC}/out/${KMK_ARCH}/${KMK_BUILDTYPE}/bin/additions
+
+KMK_BUILDTYPE= release
+KMK_CONFIG= VBOX_LIBPATH_X11=${LOCALBASE}
+KMK_FLAGS=
+
+MAKE_FLAGS= SYSDIR=${SRC_BASE}/sys
+
+.if ${PORT_OPTIONS:MDEBUG}
+KMK_FLAGS+= BUILD_TYPE=debug
+KMK_BUILDTYPE= debug
+MAKE_FLAGS+= DEBUG_FLAGS="-O1 -g"
+PLIST_SUB+= WITH_DEBUG=""
+.else
+PLIST_SUB+= WITH_DEBUG="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MX11}
+VBOX_WITH_X11= 1
+USE_XORG= xcursor xmu inputproto xorg-server xrandr
+PLIST_SUB+= X11=""
+.else
+VBOX_WITH_X11=
+PLIST_SUB+= X11="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MOPENGL}
+USE_XORG+= xcomposite xdamage xext xfixes
+USE_GL= gl
+PLIST_SUB+= OPENGL=""
+.else
+CONFIGURE_ARGS+=--disable-opengl
+PLIST_SUB+= OPENGL="@comment "
+.endif
+
+.if ${ARCH} == i386
+KMK_ARCH= freebsd.x86
+.else
+KMK_ARCH= freebsd.${ARCH}
+.endif
+
+XSERVER_ABI:= ${XSERVER_VER:S/.//:R}
+
+.if !exists(${SRC_BASE}/sys/kern/bus_if.m)
+IGNORE= requires kernel sources
+.endif
+
+.include <bsd.port.pre.mk>
+
+pre-everything::
+.if ${ARCH} == "amd64"
+.if !exists(/usr/lib32/libc.so)
+ @${ECHO} 'Requires 32-bit libraries installed under /usr/lib32.'
+ @${ECHO} 'Do: cd /usr/src; make build32 install32; ldconfig -v -m -R /usr/lib32'
+ @${FALSE}
+.endif
+.endif
+
+post-patch:
+ @${ECHO} 'VBOX_ONLY_ADDITIONS = 1' > ${WRKSRC}/LocalConfig.kmk
+ @${ECHO} 'VBOX_WITH_X11_ADDITIONS = ${VBOX_WITH_X11}' >> ${WRKSRC}/LocalConfig.kmk
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
+ ${WRKSRC}/Config.kmk \
+ ${WRKSRC}/configure \
+ ${WRKSRC}/kBuild/units/qt4.kmk \
+ ${WRKSRC}/kBuild/sdks/LIBSDL.kmk \
+ ${WRKSRC}/src/VBox/Additions/x11/Installer/98vboxadd-xclient \
+ ${WRKSRC}/src/VBox/Additions/x11/Installer/vboxclient.desktop
+ @${REINPLACE_CMD} -e 's|\$$KBUILDDIR_BIN/kmk_sed|${LOCALBASE}/bin/kmk_sed|g' ${WRKSRC}/configure
+.if empty(ICONV_LIB)
+ @${REINPLACE_CMD} -e 's|iconv||' ${WRKSRC}/Config.kmk ${WRKSRC}/src/VBox/Runtime/Makefile.kmk \
+ ${WRKSRC}/src/VBox/Additions/x11/VBoxClient/Makefile.kmk
+.endif
+
+pre-build:
+ @${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' \
+ ${WRKSRC}/env.sh \
+ ${WRKSRC}/src/VBox/Additions/freebsd/Installer/vboxguest.sh
+
+do-build:
+ cd ${WRKSRC} && ${SH} env.sh && ${KMK_CONFIG} ${LOCALBASE}/bin/kmk ${KMK_FLAGS}
+ cd ${VBOX_BIN}/src && make ${MAKE_FLAGS}
+
+do-install:
+ ${MKDIR} ${KMODDIR}
+ ${INSTALL_KLD} ${VBOX_BIN}/src/vboxguest/vboxguest.ko ${KMODDIR}
+.if ${PORT_OPTIONS:MDEBUG}
+ ${INSTALL_KLD} ${VBOX_BIN}/src/vboxguest/vboxguest.ko.symbols ${KMODDIR}
+.endif
+.if ${PORT_OPTIONS:MX11}
+ ${INSTALL_KLD} ${VBOX_BIN}/vboxvideo.ko ${KMODDIR}
+.if ${PORT_OPTIONS:MDEBUG}
+ ${INSTALL_KLD} ${VBOX_BIN}/vboxvideo.ko.symbols ${KMODDIR}
+.endif
+.endif
+ @/usr/sbin/kldxref ${KMODDIR}
+
+ ${MKDIR} ${PREFIX}/etc/rc.d/
+
+ ${MKDIR} ${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${VBOX_BIN}/VBoxControl ${PREFIX}/sbin/
+ ${INSTALL_PROGRAM} ${VBOX_BIN}/VBoxService ${PREFIX}/sbin/
+
+.if ${PORT_OPTIONS:MX11}
+ ${INSTALL_PROGRAM} ${VBOX_BIN}/VBoxClient ${PREFIX}/bin/
+
+ ${MKDIR} ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/src/VBox/Additions/x11/Installer/98vboxadd-xclient \
+ ${PREFIX}/bin/VBoxClient-all
+
+ # X11 autostart
+ ${MKDIR} ${PREFIX}/etc/xdg/autostart/
+ ${INSTALL_DATA} ${WRKSRC}/src/VBox/Additions/x11/Installer/vboxclient.desktop \
+ ${PREFIX}/etc/xdg/autostart/
+
+ # KDE autostart
+ ${MKDIR} ${PREFIX}/share/autostart/
+ ${INSTALL_DATA} ${WRKSRC}/src/VBox/Additions/x11/Installer/vboxclient.desktop \
+ ${PREFIX}/share/autostart/
+
+ ${MKDIR} ${VIDEODIR}
+ ${INSTALL_DATA} ${VBOX_BIN}/vboxvideo_drv_${XSERVER_ABI}.so ${VIDEODIR}/vboxvideo_drv.so
+
+ ${MKDIR} ${INPUTDIR}
+ ${INSTALL_DATA} ${VBOX_BIN}/vboxmouse_drv_${XSERVER_ABI}.so ${INPUTDIR}/vboxmouse_drv.so
+.endif
+
+.if ${PORT_OPTIONS:MOPENGL}
+ ${MKDIR} ${PREFIX}/lib
+ ${INSTALL_DATA} ${VBOX_BIN}/VBoxOGL.so ${PREFIX}/lib/
+ ${INSTALL_DATA} ${VBOX_BIN}/VBoxOGLarrayspu.so ${PREFIX}/lib/
+ ${INSTALL_DATA} ${VBOX_BIN}/VBoxOGLcrutil.so ${PREFIX}/lib/
+ ${INSTALL_DATA} ${VBOX_BIN}/VBoxOGLerrorspu.so ${PREFIX}/lib/
+ ${INSTALL_DATA} ${VBOX_BIN}/VBoxOGLfeedbackspu.so ${PREFIX}/lib/
+ ${INSTALL_DATA} ${VBOX_BIN}/VBoxOGLpackspu.so ${PREFIX}/lib/
+ ${INSTALL_DATA} ${VBOX_BIN}/VBoxOGLpassthroughspu.so ${PREFIX}/lib/
+
+ ${MKDIR} ${PREFIX}/lib/dri
+ ${LN} -sf ${PREFIX}/lib/VBoxOGL.so ${PREFIX}/lib/dri/vboxvideo_dri.so
+.endif
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
View
2  build-files/ports-overlay/emulators/virtualbox-ose-additions/distinfo
@@ -0,0 +1,2 @@
+SHA256 (VirtualBox-4.2.18.tar.bz2) = 9dbddf393b029c549249f627d12040c1d257972bc09292969b8819a31ab78d74
+SIZE (VirtualBox-4.2.18.tar.bz2) = 76893031
View
18 ...erlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Additions-common-VBoxGuestLib-Makefile.kmk
@@ -0,0 +1,18 @@
+--- src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk.orig 2010-10-07 11:37:10.000000000 +0200
++++ src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk 2010-10-07 11:36:16.000000000 +0200
+@@ -140,6 +140,7 @@
+ # the X server runtime instead of IPRT, for use with old servers where the
+ # C library is not available.
+ #
++ifdef VBOX_WITH_X11_ADDITIONS
+ VBoxGuestR3LibXFree86_TEMPLATE = VBOXGUESTR3XF86LIB
+ VBoxGuestR3LibXFree86_DEFS = \
+ VBOX_WITH_HGCM \
+@@ -163,6 +164,7 @@
+ $(VBOX_PATH_X11_XFREE_4_3)/exports/include/X11
+
+ VBoxGuestR3LibRuntimeXF86.cpp_CXXFLAGS = -Wno-shadow
++endif
+
+ include $(KBUILD_PATH)/subfooter.kmk
+
View
40 ...s-overlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Additions-common-crOpenGL-Makefile.kmk
@@ -0,0 +1,40 @@
+--- src/VBox/Additions/common/crOpenGL/Makefile.kmk.orig 2013-04-12 12:35:06.000000000 +0200
++++ src/VBox/Additions/common/crOpenGL/Makefile.kmk 2013-05-02 23:33:26.523212251 +0200
+@@ -42,7 +42,7 @@
+
+ if1of ($(KBUILD_TARGET), linux solaris freebsd)
+ #VBoxOGL_DRI = 1
+- ifn1of ($(KBUILD_TARGET),solaris freebsd) # No DRI on Solaris yet
++ ifn1of ($(KBUILD_TARGET),solaris) # No DRI on Solaris yet
+ VBoxOGL_FAKEDRI = 1
+ endif
+
+@@ -209,8 +209,13 @@
+ $(PATH_STAGE_LIB)/libXfixes.so \
+ $(PATH_STAGE_LIB)/libXext.so
+ ifdef VBoxOGL_FAKEDRI
+- VBoxOGL_LIBS += \
++ ifeq ($(KBUILD_TARGET), freebsd)
++ VBoxOGL_LIBS += \
++ elf
++ else
++ VBoxOGL_LIBS += \
+ dl
++ endif
+ endif
+ endif
+ ifdef VBOX_WITH_CRHGSMI
+@@ -368,6 +373,13 @@
+ | $$(dir $$@)
+ $(call MSG_GENERATE,python,$@,$<)
+ $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
++ else ifeq ($(KBUILD_TARGET),freebsd)
++$(VBOX_PATH_CROGL_GENFILES)/freebsd_exports.c: \
++ $(PATH_SUB_CURRENT)/FreeBSD_exports.py \
++ $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
++ | $$(dir $$@)
++ $(call MSG_GENERATE,python,$@,$<)
++ $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
+ else
+ $(VBOX_PATH_CROGL_GENFILES)/linux_exports.c: \
+ $(PATH_SUB_CURRENT)/Linux_exports.py \
View
120 ...-overlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Additions-common-crOpenGL-fakedri_drv.c
@@ -0,0 +1,120 @@
+--- src/VBox/Additions/common/crOpenGL/fakedri_drv.c.orig 2012-12-19 13:25:04.000000000 -0500
++++ src/VBox/Additions/common/crOpenGL/fakedri_drv.c 2013-01-27 17:57:04.000000000 -0500
+@@ -29,6 +29,15 @@
+ #include <dlfcn.h>
+ #include <elf.h>
+ #include <unistd.h>
++
++#include <sys/param.h>
++#if defined(BSD)
++#include <fcntl.h>
++#include <gelf.h>
++#include <libelf.h>
++#include <string.h>
++#endif
++
+ /** X server message type definitions. */
+ typedef enum {
+ X_PROBED, /* Value was probed */
+@@ -50,11 +59,11 @@
+
+ //@todo this could be different...
+ #ifdef RT_ARCH_AMD64
+-# define DRI_DEFAULT_DRIVER_DIR "/usr/lib64/dri:/usr/lib/dri:/usr/lib/x86_64-linux-gnu/dri"
+-# define DRI_XORG_DRV_DIR "/usr/lib/xorg/modules/drivers/"
++# define DRI_DEFAULT_DRIVER_DIR "/usr/local/lib/dri"
++# define DRI_XORG_DRV_DIR "/usr/local/lib/xorg/modules/drivers/"
+ #else
+-# define DRI_DEFAULT_DRIVER_DIR "/usr/lib/dri:/usr/lib/i386-linux-gnu/dri"
+-# define DRI_XORG_DRV_DIR "/usr/lib/xorg/modules/drivers/"
++# define DRI_DEFAULT_DRIVER_DIR "/usr/local/lib/dri"
++# define DRI_XORG_DRV_DIR "/usr/local/lib/xorg/modules/drivers/"
+ #endif
+
+ #ifdef DEBUG_DRI_CALLS
+@@ -209,6 +218,85 @@
+
+ #define FAKEDRI_JMP64_PATCH_SIZE 13
+
++#if defined(BSD)
++/* Provide basic dladdr1 flags */
++enum {
++ RTLD_DL_SYMENT = 1
++};
++
++/* Provide a minimal local version of dladdr1 */
++static int
++dladdr1(const void *address, Dl_info *dlip, void **info, int flags)
++{
++ static DRI_ELFSYM desym;
++ GElf_Sym sym;
++ GElf_Shdr shdr;
++ Elf *elf;
++ Elf_Scn *scn;
++ Elf_Data *data;
++ int ret, fd, count, i;
++
++ /* Initialize variables */
++ fd = -1;
++ elf = NULL;
++
++ /* Call dladdr first */
++ ret = dladdr(address, dlip);
++ if (ret == 0) goto err_exit;
++
++ /* Check for supported flags */
++ if (flags != RTLD_DL_SYMENT) return 1;
++
++ /* Open shared library's ELF file */
++ if (elf_version(EV_CURRENT) == EV_NONE) goto err_exit;
++ fd = open(dlip->dli_fname, O_RDONLY);
++ if (fd < 0) goto err_exit;
++ elf = elf_begin(fd, ELF_C_READ, NULL);
++ if (elf == NULL) goto err_exit;
++
++ /* Find the '.dynsym' section */
++ scn = elf_nextscn(elf, NULL);
++ while (scn != NULL) {
++ if (gelf_getshdr(scn, &shdr) == NULL) goto err_exit;
++ if (shdr.sh_type == SHT_DYNSYM) break;
++ scn = elf_nextscn(elf, scn);
++ }
++ if (scn == NULL) goto err_exit;
++
++ /* Search for the requested symbol by name and offset */
++ data = elf_getdata(scn, NULL);
<