summaryrefslogtreecommitdiff
path: root/misc/videotext/pkg-plist
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>2000-06-03 00:46:38 +0000
committerSatoshi Asami <asami@FreeBSD.org>2000-06-03 00:46:38 +0000
commit78c2ebd562944c029cb3c464aafe29b4244650fc (patch)
treee38d754c078b05b1c8ed85715721b4015843752a /misc/videotext/pkg-plist
parentAdd 'Novell' keyword. (diff)
Remove empty fonts.dir files. Use %D instead of hardcoded /usr/X11R6.
Found by: bento
Diffstat (limited to 'misc/videotext/pkg-plist')
-rw-r--r--misc/videotext/pkg-plist17
1 files changed, 9 insertions, 8 deletions
diff --git a/misc/videotext/pkg-plist b/misc/videotext/pkg-plist
index a50c7569124b..b77912099bfc 100644
--- a/misc/videotext/pkg-plist
+++ b/misc/videotext/pkg-plist
@@ -17,15 +17,16 @@ lib/X11/fonts/local/vtx10x12.pcf
lib/X11/fonts/local/vtx15x18.pcf
lib/X11/fonts/local/vtx20x24.pcf
-@exec /bin/chmod u+w /usr/X11R6/lib/X11/fonts/local /usr/X11R6/lib/X11/fonts/local/fonts.dir
-@exec /usr/X11R6/bin/mkfontdir /usr/X11R6/lib/X11/fonts/local
-@exec /bin/chmod u=rwx,go=rx /usr/X11R6/lib/X11/fonts/local
-@exec /bin/chmod a=r /usr/X11R6/lib/X11/fonts/local/fonts.dir
+@exec /bin/chmod u+w %D/lib/X11/fonts/local %D/lib/X11/fonts/local/fonts.dir
+@exec %D/bin/mkfontdir %D/lib/X11/fonts/local
+@exec /bin/chmod u=rwx,go=rx %D/lib/X11/fonts/local
+@exec /bin/chmod a=r %D/lib/X11/fonts/local/fonts.dir
-@unexec /bin/chmod u+w /usr/X11R6/lib/X11/fonts/local /usr/X11R6/lib/X11/fonts/local/fonts.dir
-@unexec /usr/X11R6/bin/mkfontdir /usr/X11R6/lib/X11/fonts/local
-@unexec /bin/chmod u=rwx,go=rx /usr/X11R6/lib/X11/fonts/local
-@unexec /bin/chmod a=r /usr/X11R6/lib/X11/fonts/local/fonts.dir
+@unexec /bin/chmod u+w %D/lib/X11/fonts/local %D/lib/X11/fonts/local/fonts.dir
+@unexec %D/bin/mkfontdir %D/lib/X11/fonts/local
+@unexec /bin/chmod u=rwx,go=rx %D/lib/X11/fonts/local
+@unexec /bin/chmod a=r %D/lib/X11/fonts/local/fonts.dir
+@unexec if [ `wc -c %D/lib/X11/fonts/local/fonts.dir | awk '{print $1}'` = 2 ]; then rm -f %D/lib/X11/fonts/local/fonts.dir; fi
@dirrm lib/X11/vtx