aboutsummaryrefslogtreecommitdiff
path: root/sysutils/screen/pkg-plist
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/pkg-plist
parent638b51642894db7e9d64aa62f8acda8956f59b2d (diff)
downloadports-203cd8df0e4b10928bffc225e52dcef20aaeb08f.tar.gz
ports-203cd8df0e4b10928bffc225e52dcef20aaeb08f.zip
[PATCH] misc/screen: Utilize EXAMPLESDIR
Utilize EXAMPLESDIR to improves layout; i.e., configuration file -> ${PREFIX}/etc sample configuration file -> ${PREFIX}/share/examples/${PORTNAME} This change helps if many configuration files and sample ones exist. PR: ports/58385 Submitted by: Hideyuki KURASHINA <rushani@FreeBSD.org> Approved by: maintainer timeout
Notes
Notes: svn path=/head/; revision=113963
Diffstat (limited to 'sysutils/screen/pkg-plist')
-rw-r--r--sysutils/screen/pkg-plist5
1 files changed, 3 insertions, 2 deletions
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%%