diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/2bsd-vi/Makefile | 8 | ||||
-rw-r--r-- | editors/2bsd-vi/distinfo | 4 | ||||
-rw-r--r-- | editors/2bsd-vi/pkg-plist | 2 |
3 files changed, 11 insertions, 3 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> diff --git a/editors/2bsd-vi/distinfo b/editors/2bsd-vi/distinfo index 0cb078e61ce..33528be4400 100644 --- a/editors/2bsd-vi/distinfo +++ b/editors/2bsd-vi/distinfo @@ -1,2 +1,2 @@ -MD5 (ex-050225.tar.bz2) = 8f99254500b7b57dff1ab1d46b1dea67 -SIZE (ex-050225.tar.bz2) = 215315 +MD5 (ex-050325.tar.bz2) = e668595254233e4d96811083a3e4e2f3 +SIZE (ex-050325.tar.bz2) = 215411 diff --git a/editors/2bsd-vi/pkg-plist b/editors/2bsd-vi/pkg-plist index 96ef83a21fc..95cd530ab66 100644 --- a/editors/2bsd-vi/pkg-plist +++ b/editors/2bsd-vi/pkg-plist @@ -5,3 +5,5 @@ bin/vi bin/view libexec/exrecover libexec/expreserve +@exec install -d -m 1777 %%PRESERVEDIR%% +@unexec rmdir %%PRESERVEDIR%% 2> /dev/null || true |