Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Apr 2017 15:37:21 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r437664 - in head/sysutils/fusefs-sshfs: . files
Message-ID:  <201704031537.v33FbLp0050638@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Mon Apr  3 15:37:21 2017
New Revision: 437664
URL: https://svnweb.freebsd.org/changeset/ports/437664

Log:
  - Use posix_openpt(2) instead of opening /dev/ptmx which requires
    loading an extra kernel module on FreeBSD 10.0+
  - Add LICENSE_FILE
  - Remove the unnecessary KMODDIR knob
  
  PR:		217880
  Approved by:	mat (mentor), maintainer timeout (2 weeks+)
  Differential Revision:	https://reviews.freebsd.org/D10243

Added:
  head/sysutils/fusefs-sshfs/files/
  head/sysutils/fusefs-sshfs/files/patch-sshfs.c   (contents, props changed)
Modified:
  head/sysutils/fusefs-sshfs/Makefile
  head/sysutils/fusefs-sshfs/pkg-message

Modified: head/sysutils/fusefs-sshfs/Makefile
==============================================================================
--- head/sysutils/fusefs-sshfs/Makefile	Mon Apr  3 15:11:06 2017	(r437663)
+++ head/sysutils/fusefs-sshfs/Makefile	Mon Apr  3 15:37:21 2017	(r437664)
@@ -4,6 +4,7 @@
 PORTNAME=	sshfs
 PORTVERSION=	2.8
 DISTVERSIONPREFIX=	${PORTNAME}_
+PORTREVISION=	1
 CATEGORIES=	sysutils
 PKGNAMEPREFIX=	fusefs-
 
@@ -11,8 +12,7 @@ MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	Mount remote directories over ssh
 
 LICENSE=	GPLv2
-
-KMODDIR?=	${LOCALBASE}/modules
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	libfuse

Added: head/sysutils/fusefs-sshfs/files/patch-sshfs.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fusefs-sshfs/files/patch-sshfs.c	Mon Apr  3 15:37:21 2017	(r437664)
@@ -0,0 +1,11 @@
+--- sshfs.c.orig	2017-03-17 21:07:50 UTC
++++ sshfs.c
+@@ -1027,7 +1027,7 @@ static int pty_master(char **name)
+ {
+ 	int mfd;
+ 
+-	mfd = open("/dev/ptmx", O_RDWR | O_NOCTTY);
++	mfd = posix_openpt(O_RDWR | O_NOCTTY);
+ 	if (mfd == -1) {
+ 		perror("failed to open pty");
+ 		return -1;

Modified: head/sysutils/fusefs-sshfs/pkg-message
==============================================================================
--- head/sysutils/fusefs-sshfs/pkg-message	Mon Apr  3 15:11:06 2017	(r437663)
+++ head/sysutils/fusefs-sshfs/pkg-message	Mon Apr  3 15:37:21 2017	(r437664)
@@ -1,13 +1,6 @@
 Basic Instructions:
 There are three ways to do this:
 
-From version 2.7 it makes use of the legacy /dev/ptmx. For version 10.0+
-please load the kernel module pty:
-
-% kldload pty
-
-Daemon initiated
-
 1)
 % sshfs -o idmap=user username@example.org: /path/to/mount/point
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704031537.v33FbLp0050638>