diff options
author | antoine <antoine@FreeBSD.org> | 2014-10-13 01:05:11 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2014-10-13 01:05:11 +0800 |
commit | 4fb3a0ab4eba53fd2a016e6078b5d4cce654fe0b (patch) | |
tree | 4f5dc45d7bd7f21b8245ce457a47f2e70f676e16 /editors/2bsd-vi | |
parent | e5aa09ab1324b25c2e001d6805860ad8267a3d6a (diff) | |
download | freebsd-ports-gnome-4fb3a0ab4eba53fd2a016e6078b5d4cce654fe0b.tar.gz freebsd-ports-gnome-4fb3a0ab4eba53fd2a016e6078b5d4cce654fe0b.tar.zst freebsd-ports-gnome-4fb3a0ab4eba53fd2a016e6078b5d4cce654fe0b.zip |
Allow staging as a regular user
Diffstat (limited to 'editors/2bsd-vi')
-rw-r--r-- | editors/2bsd-vi/files/patch-Makefile | 20 | ||||
-rw-r--r-- | editors/2bsd-vi/pkg-plist | 3 |
2 files changed, 12 insertions, 11 deletions
diff --git a/editors/2bsd-vi/files/patch-Makefile b/editors/2bsd-vi/files/patch-Makefile index 8561e7d00db9..cbf2c5337856 100644 --- a/editors/2bsd-vi/files/patch-Makefile +++ b/editors/2bsd-vi/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.old Wed Jan 19 09:43:24 2005 -+++ Makefile Wed Jan 19 09:43:41 2005 +--- Makefile.orig 2005-03-24 23:50:09 UTC ++++ Makefile @@ -79,10 +79,9 @@ # Destinations for installation. $(PRESERVEDIR) is used for recovery files. # It will get mode 1777. @@ -21,7 +21,7 @@ # # Compiler and linker flags. -@@ -161,9 +161,7 @@ FEATURES = -DLISPCODE -DCHDIR -DFASTTAG +@@ -161,9 +160,7 @@ # (wchar.h, wctype.h, btowc() etc.) which is not provided by older # compilation environments. # @@ -32,7 +32,7 @@ # # VMUNIX should be correct for any modern Unix. -@@ -205,13 +204,13 @@ OSTYPE = -DVMUNIX +@@ -205,13 +202,13 @@ # # You may also get terminfo access by using the ncurses library. # @@ -48,7 +48,7 @@ # # Since ex uses sbrk() internally, a conflict with the libc's version of -@@ -240,7 +237,6 @@ RECOVER = -DEXRECOVER=\"$(LIBEXECDIR)/ex +@@ -240,7 +237,6 @@ -DEXPRESERVE=\"$(LIBEXECDIR)/expreserve\" CCFLAGS = $(CFLAGS) $(WARN) $(CPPFLAGS) $(FEATURES) $(CHARSET) $(OSTYPE) \ $(LARGEF) $(RECOVER) $(LANGMSG) $(REINC) $(RPMCFLAGS) @@ -56,7 +56,7 @@ INCLUDE = /usr/include OBJS = ex.o ex_addr.o ex_cmds.o ex_cmds2.o ex_cmdsub.o \ ex_data.o ex_extern.o ex_get.o ex_io.o ex_put.o ex_re.o \ -@@ -292,13 +291,6 @@ +@@ -296,13 +292,6 @@ # install in standard place install-man: @@ -70,7 +70,7 @@ $(INSTALL) -c -m 644 ex.1 $(DESTDIR)$(MANDIR)/man1/ex.1 $(INSTALL) -c -m 644 vi.1 $(DESTDIR)$(MANDIR)/man1/vi.1 ln -s ex.1 $(DESTDIR)$(MANDIR)/man1/edit.1 -@@ -306,10 +298,6 @@ +@@ -310,10 +299,6 @@ ln -s vi.1 $(DESTDIR)$(MANDIR)/man1/view.1 install: all install-man @@ -81,11 +81,13 @@ # special provisions for sticky install if test -f $(DESTDIR)$(BINDIR)/ex; \ then test -f $(DESTDIR)$(BINDIR)/ex.old.$$$$ && exit 1; \ -@@ -319,7 +307,6 @@ +@@ -322,8 +307,7 @@ + mv $(DESTDIR)$(BINDIR)/ex $(DESTDIR)$(BINDIR)/ex.old.$$$$; \ rm -f $(DESTDIR)$(BINDIR)/ex.old.$$$$; \ fi - $(INSTALL) -c $(STRIP) -m 1755 ex $(DESTDIR)$(BINDIR)/ex +- $(INSTALL) -c $(STRIP) -m 1755 ex $(DESTDIR)$(BINDIR)/ex - test -d $(DESTDIR)$(LIBEXECDIR) || mkdir -p $(DESTDIR)$(LIBEXECDIR) ++ $(INSTALL) -c $(STRIP) -m 755 ex $(DESTDIR)$(BINDIR)/ex $(INSTALL) -c $(STRIP) exrecover $(DESTDIR)$(LIBEXECDIR)/exrecover $(INSTALL) -c $(STRIP) expreserve $(DESTDIR)$(LIBEXECDIR)/expreserve ln -s ex $(DESTDIR)$(BINDIR)/edit diff --git a/editors/2bsd-vi/pkg-plist b/editors/2bsd-vi/pkg-plist index 48460ef9d8ad..6300a67c103d 100644 --- a/editors/2bsd-vi/pkg-plist +++ b/editors/2bsd-vi/pkg-plist @@ -10,5 +10,4 @@ man/man1/ex.1.gz man/man1/vedit.1.gz man/man1/vi.1.gz man/man1/view.1.gz -@exec install -d -m 1777 %%PRESERVEDIR%% -@unexec rmdir %%PRESERVEDIR%% 2> /dev/null || true +@dir(,,1777) %%PRESERVEDIR%% |