pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add fuse-smbnetfs.



Module Name:	pkgsrc-wip
Committed By:	nia <nia%netbsd.org@localhost>
Pushed By:	nee
Date:		Sat Mar 6 22:46:13 2021 +0100
Changeset:	2498b63e36461491b96bfade78074466e2407e06

Modified Files:
	Makefile
Added Files:
	fuse-smbnetfs/DESCR
	fuse-smbnetfs/MESSAGE
	fuse-smbnetfs/Makefile
	fuse-smbnetfs/PLIST
	fuse-smbnetfs/TODO
	fuse-smbnetfs/distinfo

Log Message:
Add fuse-smbnetfs.

SMBNetFS is a userspace filesystem that allow you to use a Samba/Microsoft
network as a regular Unix filesystem.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2498b63e36461491b96bfade78074466e2407e06

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile               |  1 +
 fuse-smbnetfs/DESCR    |  2 ++
 fuse-smbnetfs/MESSAGE  | 20 ++++++++++++++++++++
 fuse-smbnetfs/Makefile | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 fuse-smbnetfs/PLIST    |  7 +++++++
 fuse-smbnetfs/TODO     |  2 ++
 fuse-smbnetfs/distinfo |  6 ++++++
 7 files changed, 87 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index f26afe08b2..84830a6621 100644
--- a/Makefile
+++ b/Makefile
@@ -909,6 +909,7 @@ SUBDIR+=	ftpsesame
 SUBDIR+=	fuse-cryfs
 SUBDIR+=	fuse-google-drive-git
 SUBDIR+=	fuse-mp3fs
+SUBDIR+=	fuse-smbnetfs
 SUBDIR+=	fuse-squashfuse
 SUBDIR+=	fuse-zip
 SUBDIR+=	fusefs-btfs
diff --git a/fuse-smbnetfs/DESCR b/fuse-smbnetfs/DESCR
new file mode 100644
index 0000000000..5c9123dcd8
--- /dev/null
+++ b/fuse-smbnetfs/DESCR
@@ -0,0 +1,2 @@
+SMBNetFS is a userspace filesystem that allow you to use a Samba/Microsoft
+network as a regular Unix filesystem.
diff --git a/fuse-smbnetfs/MESSAGE b/fuse-smbnetfs/MESSAGE
new file mode 100644
index 0000000000..c7476b68f5
--- /dev/null
+++ b/fuse-smbnetfs/MESSAGE
@@ -0,0 +1,20 @@
+===========================================================================
+$NetBSD$
+
+Before using smbnetfs, make a ~/.smb directory and copy the files it wants:
+
+$ mkdir ~/.smb
+$ cp ${PKG_SYSCONFDIR}/samba/smb.conf ~/.smb/smb.conf
+$ cp ${PREFIX}/share/examples/smbnetfs/smbnetfs.conf ~/.smb/smbnetfs.conf
+
+On NetBSD, make sure userspace mounting is enabled:
+
+# sysctl -w security.models.extensions.usermount=1
+
+After running smbnetfs with a mount point it will expose configured
+Samba shares:
+
+$ mkdir /mountpoint
+$ smbnetfs /mountpoint
+
+===========================================================================
diff --git a/fuse-smbnetfs/Makefile b/fuse-smbnetfs/Makefile
new file mode 100644
index 0000000000..700168cd4c
--- /dev/null
+++ b/fuse-smbnetfs/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD$
+
+DISTNAME=	smbnetfs-0.6.3
+PKGNAME=	fuse-${DISTNAME}
+CATEGORIES=	filesystems
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=smbnetfs/}
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://sourceforge.net/projects/smbnetfs
+COMMENT=	Mount a Samba/Microsoft share as a regular Unix filesystem
+LICENSE=	gnu-gpl-v2
+
+USE_TOOLS+=	pkg-config
+
+GNU_CONFIGURE=	yes
+
+SUBST_CLASSES+=		paths
+SUBST_STAGE.paths=	pre-configure
+SUBST_MESSAGE.paths=	Fixing config file paths.
+SUBST_FILES.paths=	*.FAQ
+SUBST_FILES.paths+=	doc/*.FAQ
+SUBST_FILES.paths+=	doc/INSTALL
+SUBST_FILES.paths+=	src/reconfigure.c
+SUBST_FILES.paths+=	debian/smbnetfs.1
+SUBST_SED.paths=	-e 's,/etc,${PKG_SYSCONFDIR},g'
+
+INSTALLATION_DIRS+=	${PKGMANDIR}/man1
+INSTALLATION_DIRS+=	share/examples/smbnetfs
+
+.include "../../mk/bsd.prefs.mk"
+
+# XXX: hack should probably be moved to fuse.buildlink3.mk
+pre-configure:
+.if ${OPSYS} == "NetBSD"
+	${MKDIR} ${BUILDLINK_DIR}/include/fuse
+	${CP} /usr/include/fuse*.h ${BUILDLINK_DIR}/include/fuse
+.endif
+
+post-install:
+	${INSTALL_MAN} ${WRKSRC}/debian/smbnetfs.1 \
+	    ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+	${MV} ${DESTDIR}${PREFIX}/share/doc/${PKGNAME_NOREV:S/fuse-//g}/smbnetfs.conf \
+	    ${DESTDIR}${PREFIX}/share/examples/smbnetfs/smbnetfs.conf
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../net/samba4/buildlink3.mk"
+.include "../../mk/fuse.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/fuse-smbnetfs/PLIST b/fuse-smbnetfs/PLIST
new file mode 100644
index 0000000000..4eaa820187
--- /dev/null
+++ b/fuse-smbnetfs/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+bin/smbnetfs
+man/man1/smbnetfs.1
+share/doc/smbnetfs-${PKGVERSION}/ENGLISH.FAQ
+share/doc/smbnetfs-${PKGVERSION}/INSTALL
+share/doc/smbnetfs-${PKGVERSION}/RUSSIAN.FAQ
+share/examples/smbnetfs/smbnetfs.conf
diff --git a/fuse-smbnetfs/TODO b/fuse-smbnetfs/TODO
new file mode 100644
index 0000000000..ce997c7a7c
--- /dev/null
+++ b/fuse-smbnetfs/TODO
@@ -0,0 +1,2 @@
+Needs testing with an actual samba share, and better documentation
+in MESSAGE since upstream's documentation is pretty bad.
diff --git a/fuse-smbnetfs/distinfo b/fuse-smbnetfs/distinfo
new file mode 100644
index 0000000000..99aaf6b2de
--- /dev/null
+++ b/fuse-smbnetfs/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (smbnetfs-0.6.3.tar.bz2) = 36d38459724fd51ebb11f95668cedde46af4f96b
+RMD160 (smbnetfs-0.6.3.tar.bz2) = 9f6af4660f37b5a6f21913ac2ff4222853d5a980
+SHA512 (smbnetfs-0.6.3.tar.bz2) = 19b1ec6a9cc9722e5e80c26ff4bd8b62dcdf7f3bb71a3c7b2a0b2b32af6902fd3fb95c27188a51b2a1f0df20fadad799ca685db28daba101f1e3b2c03ee295cc
+Size (smbnetfs-0.6.3.tar.bz2) = 187460 bytes


Home | Main Index | Thread Index | Old Index