aboutsummaryrefslogtreecommitdiffstats
path: root/shells/sash
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2014-04-11 21:41:06 +0800
committermiwi <miwi@FreeBSD.org>2014-04-11 21:41:06 +0800
commit7142cfbb19662fc308e1ea3a791d38b174290ea8 (patch)
tree4904cbb5ab419169f5cb067edce169540eaf0bd5 /shells/sash
parent4d4841ddf4fc0e5abaf3e8dd94aa0babbca2acc3 (diff)
downloadfreebsd-ports-gnome-7142cfbb19662fc308e1ea3a791d38b174290ea8.tar.gz
freebsd-ports-gnome-7142cfbb19662fc308e1ea3a791d38b174290ea8.tar.zst
freebsd-ports-gnome-7142cfbb19662fc308e1ea3a791d38b174290ea8.zip
- Update to version 3.8
PR: 187491 Submitted by: ports fury
Diffstat (limited to 'shells/sash')
-rw-r--r--shells/sash/Makefile10
-rw-r--r--shells/sash/distinfo4
-rw-r--r--shells/sash/files/patch-Makefile43
-rw-r--r--shells/sash/files/patch-cmds.c64
-rw-r--r--shells/sash/files/patch-sash.c29
-rw-r--r--shells/sash/pkg-plist4
6 files changed, 111 insertions, 43 deletions
diff --git a/shells/sash/Makefile b/shells/sash/Makefile
index b87278464c23..ea787e3ba4da 100644
--- a/shells/sash/Makefile
+++ b/shells/sash/Makefile
@@ -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>
diff --git a/shells/sash/distinfo b/shells/sash/distinfo
index 376b8ba76cdc..2543fba70d2d 100644
--- a/shells/sash/distinfo
+++ b/shells/sash/distinfo
@@ -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
diff --git a/shells/sash/files/patch-Makefile b/shells/sash/files/patch-Makefile
index 6c4067133819..d87e5f4675d5 100644
--- a/shells/sash/files/patch-Makefile
+++ b/shells/sash/files/patch-Makefile
@@ -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
diff --git a/shells/sash/files/patch-cmds.c b/shells/sash/files/patch-cmds.c
index dd4d50092d8f..2ca9130950b5 100644
--- a/shells/sash/files/patch-cmds.c
+++ b/shells/sash/files/patch-cmds.c
@@ -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;
+ }
diff --git a/shells/sash/files/patch-sash.c b/shells/sash/files/patch-sash.c
new file mode 100644
index 000000000000..cd9abe053e84
--- /dev/null
+++ b/shells/sash/files/patch-sash.c
@@ -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",
diff --git a/shells/sash/pkg-plist b/shells/sash/pkg-plist
index 1272cbfc967e..355e8cfb338b 100644
--- a/shells/sash/pkg-plist
+++ b/shells/sash/pkg-plist
@@ -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