Bug 187491 - shells/sash: Update to version 3.8
Summary: shells/sash: Update to version 3.8
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-12 18:40 UTC by tkato432
Modified: 2014-04-11 14:50 UTC (History)
0 users

See Also:


Attachments
file.diff (7.92 KB, patch)
2014-03-12 18:40 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2014-03-12 18:40:00 UTC
- Update to version 3.8

New file:
files/patch-sash.c
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-12 18:40:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-04-11 14:41:10 UTC
Author: miwi
Date: Fri Apr 11 13:41:06 2014
New Revision: 350947
URL: http://svnweb.freebsd.org/changeset/ports/350947
QAT: https://qat.redports.org/buildarchive/r350947/

Log:
  - Update to version 3.8
  
  PR:		187491
  Submitted by:	ports fury

Added:
  head/shells/sash/files/patch-sash.c   (contents, props changed)
Modified:
  head/shells/sash/Makefile
  head/shells/sash/distinfo
  head/shells/sash/files/patch-Makefile
  head/shells/sash/files/patch-cmds.c
  head/shells/sash/pkg-plist

Modified: head/shells/sash/Makefile
==============================================================================
--- head/shells/sash/Makefile	Fri Apr 11 13:31:32 2014	(r350946)
+++ head/shells/sash/Makefile	Fri Apr 11 13:41:06 2014	(r350947)
@@ -2,19 +2,11 @@
 # $FreeBSD$
 
 PORTNAME=	sash
-PORTVERSION=	3.7
+PORTVERSION=	3.8
 CATEGORIES=	shells
 MASTER_SITES=	http://members.tip.net.au/~dbell/programs/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Stand-Alone shell combining many common utilities
 
-.if !exists(/usr/include/fs/ntfs/ntfsmount.h)
-BROKEN=	Depends on fs/ntfs/ntfsmount.h
-.endif
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/sash ${STAGEDIR}${PREFIX}/bin/sash
-	${INSTALL_MAN} ${WRKSRC}/sash.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/sash.1
-
 .include <bsd.port.mk>

Modified: head/shells/sash/distinfo
==============================================================================
--- head/shells/sash/distinfo	Fri Apr 11 13:31:32 2014	(r350946)
+++ head/shells/sash/distinfo	Fri Apr 11 13:41:06 2014	(r350947)
@@ -1,2 +1,2 @@
-SHA256 (sash-3.7.tar.gz) = 352726adb9736ba5a9b459d5c8a7d7c3b2c36cc99363adccc25a8a991d719c7f
-SIZE (sash-3.7.tar.gz) = 50337
+SHA256 (sash-3.8.tar.gz) = 13c4f9a911526949096bf543c21a41149e6b037061193b15ba6b707eea7b6579
+SIZE (sash-3.8.tar.gz) = 53049

Modified: head/shells/sash/files/patch-Makefile
==============================================================================
--- head/shells/sash/files/patch-Makefile	Fri Apr 11 13:31:32 2014	(r350946)
+++ head/shells/sash/files/patch-Makefile	Fri Apr 11 13:41:06 2014	(r350947)
@@ -1,38 +1,61 @@
---- Makefile.orig	Mon Jul 22 01:24:47 2002
-+++ Makefile	Fri Sep  3 14:53:40 2004
-@@ -8,13 +8,13 @@
- # The MOUNT_TYPE definition sets the default file system type for -mount.
+--- Makefile.orig	2014-03-05 18:56:53.000000000 +0900
++++ Makefile	2014-03-13 03:27:58.000000000 +0900
+@@ -19,17 +19,17 @@
  #
+ 
  HAVE_GZIP		= 1
 -HAVE_LINUX_ATTR		= 1
+-HAVE_LINUX_CHROOT	= 1
+-HAVE_LINUX_LOSETUP	= 1
+-HAVE_LINUX_PIVOT	= 1
 -HAVE_LINUX_MOUNT	= 1
 -HAVE_BSD_MOUNT		= 0
 -MOUNT_TYPE		= '"ext3"'
 +HAVE_LINUX_ATTR		= 0
++HAVE_LINUX_CHROOT	= 0
++HAVE_LINUX_LOSETUP	= 0
++HAVE_LINUX_PIVOT	= 0
 +HAVE_LINUX_MOUNT	= 0
 +HAVE_BSD_MOUNT		= 1
 +MOUNT_TYPE		= '"ufs"'
  
+ OPT = -O3
  
--CFLAGS = -O3 -Wall -Wmissing-prototypes \
+-CFLAGS = $(OPT) -Wall -Wmissing-prototypes \
 +CFLAGS += -Wall -Wmissing-prototypes \
  	-DHAVE_GZIP=$(HAVE_GZIP) \
  	-DHAVE_LINUX_ATTR=$(HAVE_LINUX_ATTR) \
- 	-DHAVE_LINUX_MOUNT=$(HAVE_LINUX_MOUNT) \
-@@ -25,13 +25,14 @@
+  	-DHAVE_LINUX_CHROOT=$(HAVE_LINUX_CHROOT) \
+@@ -43,24 +43,26 @@
  LIBS = -lz
  
  
+-DESTDIR =
 -BINDIR = /bin
--MANDIR = /usr/man/man1
+-MANDIR = /usr/man
++#DESTDIR =
++PREFIX ?= /usr/local
++MANPREFIX ?= $(PREFIX)
 +BINDIR = $(PREFIX)/bin
-+MANDIR = $(MANPREFIX)/man/man1
++MANDIR = $(MANPREFIX)/man
  
  
  OBJS = sash.o cmds.o cmd_dd.o cmd_ed.o cmd_grep.o cmd_ls.o cmd_tar.o \
  	cmd_gzip.o cmd_find.o cmd_file.o cmd_chattr.o cmd_ar.o utils.o
  
-+all: sash
++all:	sash
  
  sash:	$(OBJS)
  	$(CC) $(LDFLAGS) -o sash $(OBJS) $(LIBS)
+-	strip sash
+ 
+ clean:
+ 	rm -f $(OBJS) sash
+ 
+ install: sash
+-	cp sash $(DESTDIR)/$(BINDIR)/sash
+-	cp sash.1 $(DESTDIR)/$(MANDIR)/man1/sash.1
++	${BSD_INSTALL_PROGRAM} sash $(DESTDIR)$(BINDIR)/sash
++	${BSD_INSTALL_MAN} sash.1 $(DESTDIR)$(MANDIR)/man1/sash.1
+ 
+ $(OBJS):	sash.h

Modified: head/shells/sash/files/patch-cmds.c
==============================================================================
--- head/shells/sash/files/patch-cmds.c	Fri Apr 11 13:31:32 2014	(r350946)
+++ head/shells/sash/files/patch-cmds.c	Fri Apr 11 13:41:06 2014	(r350947)
@@ -1,25 +1,34 @@
 --- cmds.c.orig	Mon Jul 22 00:28:19 2002
 +++ cmds.c	Fri Sep  3 16:35:01 2004
-@@ -17,6 +17,18 @@
+@@ -17,9 +17,18 @@
  #include <utime.h>
  #include <errno.h>
  
 +#if __FreeBSD__
 +#include <ufs/ufs/ufsmount.h>
 +#include <isofs/cd9660/cd9660_mount.h>
-+#if __FreeBSD_version >= 500019
 +#include <fs/msdosfs/msdosfsmount.h>
++#if __FreeBSD_version < 1000000
 +#include <fs/ntfs/ntfsmount.h>
-+#else
-+#include <msdosfs/msdosfsmount.h>
-+#include <ntfs/ntfsmount.h>
++#define HAVE_BSD_NTFSMOUNT
 +#endif
 +#endif
 +
  #if	HAVE_LINUX_MOUNT
  #include <linux/fs.h>
- #endif
-@@ -564,6 +576,10 @@
+-#endif
+ 
+ /* Need to tell loop.h what the actual dev_t type is. */
+ #undef dev_t
+@@ -32,6 +41,7 @@
+ #undef dev_t
+ #define dev_t dev_t
+ 
++#endif
+ 
+ int
+ do_echo(int argc, const char ** argv)
+@@ -716,6 +726,10 @@
  				flags |= MNT_RDONLY;
  				break;
  
@@ -30,7 +39,7 @@
  			case 's':
  				flags |= MNT_NOSUID;
  				break;
-@@ -594,35 +610,47 @@
+@@ -748,46 +762,58 @@
  #elif	HAVE_BSD_MOUNT
  	{
  		struct	    ufs_args ufs;
@@ -38,30 +47,37 @@
  		struct	    iso_args iso;
 -		struct	    mfs_args mfs;
  		struct	    msdosfs_args msdosfs;
++#ifdef	HAVE_BSD_NTFSMOUNT
 +		struct	    ntfs_args ntfs;
++#endif
  		void *	    args;
  
- 		if(!strcmp(type, "ffs") || !strcmp(type, "ufs")) {
+ 		if (!strcmp(type, "ffs") || !strcmp(type, "ufs"))
+ 		{
 +			memset(&ufs, 0, sizeof(ufs));
  			ufs.fspec = (char*) argv[0];
  			args = &ufs;
--		} else if(!strcmp(type, "adosfs")) {
+ 		}
+-		else if (!strcmp(type, "adosfs"))
+-		{
 -			adosfs.fspec = (char*) argv[0];
 -			adosfs.uid = 0;
 -			adosfs.gid = 0;
 -			args = &adosfs;
- 		} else if(!strcmp(type, "cd9660")) {
+-		}
+ 		else if (!strcmp(type, "cd9660"))
+ 		{
 +			memset(&iso, 0, sizeof(iso));
  			iso.fspec = (char*) argv[0];
  			args = &iso;
--		} else if(!strcmp(type, "mfs")) {
+ 		}
+-		else if (!strcmp(type, "mfs"))
+-		{
 -			mfs.fspec = (char*) argv[0];
 -			args = &mfs;
-+		} else if(!strcmp(type, "ext2fs")) {
-+			memset(&ufs, 0, sizeof(ufs));
-+			ufs.fspec = (char*) argv[0];
-+			args = &ufs;
- 		} else if(!strcmp(type, "msdos")) {
+-		}
+ 		else if (!strcmp(type, "msdos"))
+ 		{
 +			memset(&msdosfs, 0, sizeof(msdosfs));
  			msdosfs.fspec = (char*) argv[0];
 -			msdosfs.uid = 0;
@@ -73,6 +89,7 @@
 +				msdosfs.mask = msdosfs.dirmask = 7555;
 +			}
  			args = &msdosfs;
++#ifdef	HAVE_BSD_NTFSMOUNT
 +		} else if(!strcmp(type, "ntfs")) {
 +			memset(&ntfs, 0, sizeof(ntfs));
 +			ntfs.fspec = (char*) argv[0];
@@ -83,11 +100,18 @@
 +				ntfs.mode = 0755;
 +			}
 +			args = &ntfs;
- 		} else {
++#endif
+ 		}
+ 		else
+ 		{
  			fprintf(stderr, "Unknown filesystem type: %s", type);
  			fprintf(stderr,
 -			    "Supported: ffs ufs adosfs cd9660 mfs msdos\n");
++#ifdef	HAVE_BSD_NTFSMOUNT
 +			    "Supported: ffs ufs cd9660 ext2fs msdos ntfs\n");
- 			return;
- 		}
++#else
++			    "Supported: ffs ufs cd9660 ext2fs msdos\n");
++#endif
  
+ 			return 1;
+ 		}

Added: head/shells/sash/files/patch-sash.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/sash/files/patch-sash.c	Fri Apr 11 13:41:06 2014	(r350947)
@@ -0,0 +1,29 @@
+--- sash.c.orig
++++ sash.c
+@@ -107,7 +107,7 @@
+ 		"srcName ... destName"
+ 	},
+ 
+-#ifdef	HAVE_LINUX_CHROOT
++#if	HAVE_LINUX_CHROOT
+ 	{
+ 		"-chroot",	do_chroot,	2,	2,
+ 		"change root file system",
+@@ -189,7 +189,7 @@
+ 		"[-sig] pid ..."
+ 	},
+ 
+-#ifdef	HAVE_LINUX_LOSETUP
++#if	HAVE_LINUX_LOSETUP
+ 	{
+ 		"-losetup",	do_losetup,	3,	3,
+ 		"Associate a loopback device with a file",
+@@ -253,7 +253,7 @@
+ 		"srcName ... destName"
+ 	},
+ 
+-#ifdef	HAVE_LINUX_PIVOT
++#if	HAVE_LINUX_PIVOT
+ 	{
+ 		"-pivot_root",	do_pivot_root,	3,	3,
+ 		"pivot the root file system",

Modified: head/shells/sash/pkg-plist
==============================================================================
--- head/shells/sash/pkg-plist	Fri Apr 11 13:31:32 2014	(r350946)
+++ head/shells/sash/pkg-plist	Fri Apr 11 13:41:06 2014	(r350947)
@@ -1,4 +1,4 @@
 bin/sash
+@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells ; rm -f /etc/shells.bak
+@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells ; rm -f /etc/shells.bak
 man/man1/sash.1.gz
-@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
-@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2014-04-11 14:41:17 UTC
State Changed
From-To: open->closed

Committed. Thanks!