aboutsummaryrefslogtreecommitdiff
path: root/japanese/font-mplus-bitmap/files/pkg-install.in
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/font-mplus-bitmap/files/pkg-install.in')
-rw-r--r--japanese/font-mplus-bitmap/files/pkg-install.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/japanese/font-mplus-bitmap/files/pkg-install.in b/japanese/font-mplus-bitmap/files/pkg-install.in
new file mode 100644
index 000000000000..fcfacd78440f
--- /dev/null
+++ b/japanese/font-mplus-bitmap/files/pkg-install.in
@@ -0,0 +1,22 @@
+#!/bin/sh
+# $FreeBSD$
+
+case "$2" in
+POST-INSTALL)
+ cd %%FONTSDIR%%
+ touch fonts.alias
+ grep -v -- "mplus[_-]" fonts.alias > fonts.alias.tmp
+ cat fonts.alias.tmp %%FONTSALIAS%% > fonts.alias
+ rm -f fonts.alias.tmp
+;;
+DEINSTALL)
+ cd %%FONTSDIR%%
+ touch fonts.alias
+ grep -v -- "mplus[_-]" fonts.alias > fonts.alias.tmp
+ if [ -s fonts.alias.tmp ]; then
+ mv fonts.alias.tmp fonts.alias
+ else
+ rm -f fonts.alias.tmp fonts.alias
+ fi
+;;
+esac