diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-04-21 17:53:34 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-04-21 17:53:34 +0000 |
commit | 0840e7f325b53186e4351ed025b719556cd10828 (patch) | |
tree | f460902814fd3c89c0db957c7e94b18206206af4 /editors/2bsd-vi | |
parent | 24cb52ff99f66fbcfb1fa288817cbbb79d689d6a (diff) | |
download | ports-0840e7f325b53186e4351ed025b719556cd10828.tar.gz ports-0840e7f325b53186e4351ed025b719556cd10828.zip |
Notes
Diffstat (limited to 'editors/2bsd-vi')
-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 ccbb4d89eda8..b831db1feabd 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 0cb078e61ce0..33528be44006 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 96ef83a21fce..95cd530ab66b 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 |