aboutsummaryrefslogtreecommitdiff
path: root/sysutils/screen
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2004-07-19 07:21:17 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2004-07-19 07:21:17 +0000
commit203cd8df0e4b10928bffc225e52dcef20aaeb08f (patch)
treeb192e49fa9587d5621673264a256a3f8d42ee320 /sysutils/screen
parent638b51642894db7e9d64aa62f8acda8956f59b2d (diff)
downloadports-203cd8df0e4b10928bffc225e52dcef20aaeb08f.tar.gz
ports-203cd8df0e4b10928bffc225e52dcef20aaeb08f.zip
Notes
Diffstat (limited to 'sysutils/screen')
-rw-r--r--sysutils/screen/Makefile6
-rw-r--r--sysutils/screen/pkg-plist5
2 files changed, 7 insertions, 4 deletions
diff --git a/sysutils/screen/Makefile b/sysutils/screen/Makefile
index 41e3eca0bc79..00e0c073286b 100644
--- a/sysutils/screen/Makefile
+++ b/sysutils/screen/Makefile
@@ -7,6 +7,7 @@
PORTNAME= screen
PORTVERSION= 4.0.2
+PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
${MASTER_SITE_GNU}
@@ -31,9 +32,10 @@ post-patch:
@${RM} ${WRKSRC}/doc/screen.info*
post-install:
- @${CP} ${WRKSRC}/etc/etcscreenrc ${PREFIX}/etc/screenrc.sample
+ @${MKDIR} ${EXAMPLESDIR}
+ @${CP} ${WRKSRC}/etc/etcscreenrc ${EXAMPLESDIR}/screenrc
@if [ ! -f ${PREFIX}/etc/screenrc ]; then \
- ${CP} ${PREFIX}/etc/screenrc.sample ${PREFIX}/etc/screenrc ; \
+ ${CP} ${EXAMPLESDIR}/screenrc ${PREFIX}/etc/screenrc ; \
fi
.include <bsd.port.post.mk>
diff --git a/sysutils/screen/pkg-plist b/sysutils/screen/pkg-plist
index 5bb876cf63a9..32112173b2b7 100644
--- a/sysutils/screen/pkg-plist
+++ b/sysutils/screen/pkg-plist
@@ -16,8 +16,9 @@ bin/screen
%%DATADIR%%/utf8encodings/cc
%%DATADIR%%/utf8encodings/cd
%%DATADIR%%/utf8encodings/d6
-@unexec if cmp -s %D/etc/screenrc %D/etc/screenrc.sample; then rm -f %D/etc/screenrc; else echo If permanently deleting this package, %%PREFIX%%/etc/screenrc must be removed manually; fi
-etc/screenrc.sample
+@unexec if cmp -s %D/etc/screenrc %%EXAMPLESDIR%%/screenrc; then rm -f %D/etc/screenrc; else echo If permanently deleting this package, %%PREFIX%%/etc/screenrc must be removed manually; fi
+%%EXAMPLESDIR%%/screenrc
@exec [ -f %B/screenrc ] || cp %B/%f %B/screenrc
+@dirrm %%EXAMPLESDIR%%
@dirrm %%DATADIR%%/utf8encodings
@dirrm %%DATADIR%%