ports/118569: [PATCH] sysutils/ntfsprogs: use @exec/@unexec to handle symlinks

Alejandro Pulver alepulver at FreeBSD.org
Wed Dec 12 07:00:06 UTC 2007


>Number:         118569
>Category:       ports
>Synopsis:       [PATCH] sysutils/ntfsprogs: use @exec/@unexec to handle symlinks
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 12 07:00:06 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Alejandro Pulver
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
>Environment:


System: FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007
    root at dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP



>Description:


Use @exec/@unexec to create/remove the symlink instead of directly archiving with tar(1) inside the package.

This seems to cause problems sometimes (my patch to fusefs-kmod was changed to operate this way, but it also had two files with the same name under different prefixes), but I think in general it's better this way.


>How-To-Repeat:





>Fix:


--- ntfsprogs.diff begins here ---
Index: ntfsprogs/Makefile
===================================================================
RCS file: /home/pcvs/ports/sysutils/ntfsprogs/Makefile,v
retrieving revision 1.31
diff -u -r1.31 Makefile
--- ntfsprogs/Makefile	30 Oct 2007 03:22:03 -0000	1.31
+++ ntfsprogs/Makefile	12 Dec 2007 06:26:15 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	ntfsprogs
 PORTVERSION=	1.13.1
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	sysutils
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	linux-ntfs
Index: ntfsprogs/pkg-plist
===================================================================
RCS file: /home/pcvs/ports/sysutils/ntfsprogs/pkg-plist,v
retrieving revision 1.12
diff -u -r1.12 pkg-plist
--- ntfsprogs/pkg-plist	30 Oct 2007 03:22:03 -0000	1.12
+++ ntfsprogs/pkg-plist	12 Dec 2007 06:26:15 -0000
@@ -5,6 +5,8 @@
 bin/ntfsinfo
 bin/ntfsls
 %%FUSE%%bin/ntfsmount
+%%FUSE%%@exec ln -fs %D/%F /usr/sbin/mount_ntfs-fuse
+%%FUSE%%@unexec rm -f /usr/sbin/mount_ntfs-fuse
 include/ntfs/attrib.h
 include/ntfs/attrlist.h
 include/ntfs/bitmap.h
@@ -56,5 +58,3 @@
 %%GNOMEVFS2%%lib/gnome-vfs-2.0/modules/libntfs-gnomevfs.la
 %%GNOMEVFS2%%lib/gnome-vfs-2.0/modules/libntfs-gnomevfs.so
 %%GNOMEVFS2%%lib/gnome-vfs-2.0/modules/libntfs-gnomevfs.so.1
- at cwd /usr
-%%FUSE%%sbin/mount_ntfs-fuse
--- ntfsprogs.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list