aboutsummaryrefslogtreecommitdiffstats
path: root/editors/2bsd-vi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/2bsd-vi/Makefile')
-rw-r--r--editors/2bsd-vi/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/editors/2bsd-vi/Makefile b/editors/2bsd-vi/Makefile
index ccbb4d89eda..b831db1feab 100644
--- a/editors/2bsd-vi/Makefile
+++ b/editors/2bsd-vi/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= vi
-PORTVERSION= 050225
+PORTVERSION= 050325
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ex-vi
@@ -19,6 +19,9 @@ COMMENT= The original vi editor, updated to run on modern OSes
USE_BZIP2= yes
USE_REINPLACE= yes
+PRESERVEDIR= /var/preserve/${UNIQUENAME}
+PLIST_SUB= PRESERVEDIR="${PRESERVEDIR}"
+
MAN1= ex.1 vi.1
MLINKS= ex.1 edit.1 vi.1 vedit.1 vi.1 view.1
@@ -32,5 +35,8 @@ post-patch:
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|-DMB||g' ${WRKSRC}/Makefile
.endif
+.for f in Makefile ex.1 expreserve.c exrecover.c vi.1
+ @${REINPLACE_CMD} -e 's|/var/preserve|${PRESERVEDIR}|' ${WRKSRC}/${f}
+.endfor
.include <bsd.port.post.mk>