diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2004-07-19 07:21:17 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2004-07-19 07:21:17 +0000 |
commit | 203cd8df0e4b10928bffc225e52dcef20aaeb08f (patch) | |
tree | b192e49fa9587d5621673264a256a3f8d42ee320 /misc | |
parent | 638b51642894db7e9d64aa62f8acda8956f59b2d (diff) | |
download | ports-203cd8df0e4b10928bffc225e52dcef20aaeb08f.tar.gz ports-203cd8df0e4b10928bffc225e52dcef20aaeb08f.zip |
Notes
Diffstat (limited to 'misc')
-rw-r--r-- | misc/screen/Makefile | 6 | ||||
-rw-r--r-- | misc/screen/pkg-plist | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/misc/screen/Makefile b/misc/screen/Makefile index 41e3eca0bc79..00e0c073286b 100644 --- a/misc/screen/Makefile +++ b/misc/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/misc/screen/pkg-plist b/misc/screen/pkg-plist index 5bb876cf63a9..32112173b2b7 100644 --- a/misc/screen/pkg-plist +++ b/misc/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%% |