aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Keywords/desktop-file-utils.ucl11
-rw-r--r--Keywords/shared-mime-info.ucl11
-rw-r--r--Mk/Uses/desktop-file-utils.mk8
-rw-r--r--Mk/Uses/shared-mime-info.mk8
4 files changed, 24 insertions, 14 deletions
diff --git a/Keywords/desktop-file-utils.ucl b/Keywords/desktop-file-utils.ucl
new file mode 100644
index 000000000000..c54a59b59fb8
--- /dev/null
+++ b/Keywords/desktop-file-utils.ucl
@@ -0,0 +1,11 @@
+# $FreeBSD$
+#
+# MAINTAINER: gnome@FreeBSD.org
+
+actions: []
+post-install: <<EOD
+ update-desktop-database -q > /dev/null || true
+EOD
+post-deinstall: <<EOD
+ update-desktop-database -q > /dev/null || true
+EOD
diff --git a/Keywords/shared-mime-info.ucl b/Keywords/shared-mime-info.ucl
new file mode 100644
index 000000000000..f507a4541b98
--- /dev/null
+++ b/Keywords/shared-mime-info.ucl
@@ -0,0 +1,11 @@
+# $FreeBSD$
+#
+# MAINTAINER: gnome@FreeBSD.org
+
+actions: []
+post-install: <<EOD
+ update-mime-database %D/%@ || true
+EOD
+post-deinstall: <<EOD
+ update-mime-database %D/%@ || true
+EOD
diff --git a/Mk/Uses/desktop-file-utils.mk b/Mk/Uses/desktop-file-utils.mk
index bf475020b157..95fe14af64b7 100644
--- a/Mk/Uses/desktop-file-utils.mk
+++ b/Mk/Uses/desktop-file-utils.mk
@@ -17,12 +17,6 @@ IGNORE= USES=desktop-file-utils does not require args
BUILD_DEPENDS+= update-desktop-database:${PORTSDIR}/devel/desktop-file-utils
RUN_DEPENDS+= update-desktop-database:${PORTSDIR}/devel/desktop-file-utils
-
-desktop-file-post-install:
-# plist entries for packages.
- @${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-desktop-database -q > /dev/null || /usr/bin/true" \
- >> ${TMPPLIST}; \
- ${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-desktop-database -q > /dev/null || /usr/bin/true" \
- >> ${TMPPLIST}
+PLIST_FILES+= "@desktop-file-utils"
.endif
diff --git a/Mk/Uses/shared-mime-info.mk b/Mk/Uses/shared-mime-info.mk
index d9ee3e1a915a..08770857574b 100644
--- a/Mk/Uses/shared-mime-info.mk
+++ b/Mk/Uses/shared-mime-info.mk
@@ -17,12 +17,6 @@ IGNORE= USES=shared-mime-info does not require args
BUILD_DEPENDS+= update-mime-database:${PORTSDIR}/misc/shared-mime-info
RUN_DEPENDS+= update-mime-database:${PORTSDIR}/misc/shared-mime-info
-
-shared-mime-post-install:
-# plist entries for packages.
- @${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-mime-database %D/share/mime" \
- >> ${TMPPLIST}; \
- ${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-mime-database %D/share/mime" \
- >> ${TMPPLIST}
+PLIST_FILES+= "@shared-mime-info share/mime"
.endif