aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-18 18:03:23 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-18 18:03:23 +0000
commita8342d0543e60c6663dd04bfd8370c0ee40e0c98 (patch)
tree40ca23bf1cf5f56c5d9ce5fea45bb31699612e17
parent8983594246000021023ebf39e4ef9223dd804f7c (diff)
downloadrpmdrake-a8342d0543e60c6663dd04bfd8370c0ee40e0c98.tar
rpmdrake-a8342d0543e60c6663dd04bfd8370c0ee40e0c98.tar.gz
rpmdrake-a8342d0543e60c6663dd04bfd8370c0ee40e0c98.tar.bz2
rpmdrake-a8342d0543e60c6663dd04bfd8370c0ee40e0c98.tar.xz
rpmdrake-a8342d0543e60c6663dd04bfd8370c0ee40e0c98.zip
register application/x-urpmi-media MIME type again (#33436)
-rw-r--r--mime/Makefile23
-rw-r--r--mime/gurpmi.addmedia.desktop.in9
-rw-r--r--mime/urpmi-media.xml6
-rw-r--r--mime/x-urpmi-media.desktop.in4
4 files changed, 42 insertions, 0 deletions
diff --git a/mime/Makefile b/mime/Makefile
new file mode 100644
index 00000000..9329d9e8
--- /dev/null
+++ b/mime/Makefile
@@ -0,0 +1,23 @@
+PREFIX = /usr/local
+DATADIR = $(PREFIX)/share
+MIMEDIR = $(DATADIR)/mime/packages/
+MIMELNKDIR= $(DATADIR)/mimelnk/application/
+APPDIR = $(DATADIR)/applications/
+
+DESKTOP_IN := $(wildcard *.desktop.in)
+DESKTOP = $(DESKTOP_IN:.desktop.in=.desktop)
+
+all: $(DESKTOP)
+
+clean:
+ rm -f $(DESKTOP)
+
+install: all
+ install -d $(MIMEDIR) $(MIMELNKDIR) $(APPDIR)
+ install -m644 gurpmi.addmedia.desktop $(APPDIR)/
+ install -m644 x-urpmi-media.desktop $(MIMELNKDIR)/
+ install -m644 urpmi-media.xml $(MIMEDIR)/
+
+%.desktop: %.desktop.in
+ ../po/intltool-merge --utf8 ../po $< $@ -d -u -c ../po/.intltool-merge-cache
+
diff --git a/mime/gurpmi.addmedia.desktop.in b/mime/gurpmi.addmedia.desktop.in
new file mode 100644
index 00000000..0ea7300e
--- /dev/null
+++ b/mime/gurpmi.addmedia.desktop.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+_Name=Add urpmi media
+Exec=gurpmi.addmedia %u
+MimeType=application/x-urpmi-media;
+NoDisplay=true
+Categories=GTK;System;PackageManager;
+NoDisplay=true
+
diff --git a/mime/urpmi-media.xml b/mime/urpmi-media.xml
new file mode 100644
index 00000000..ba42954c
--- /dev/null
+++ b/mime/urpmi-media.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-urpmi-media">
+ <comment>urpmi medium info</comment>
+ </mime-type>
+</mime-info>
diff --git a/mime/x-urpmi-media.desktop.in b/mime/x-urpmi-media.desktop.in
new file mode 100644
index 00000000..11f26640
--- /dev/null
+++ b/mime/x-urpmi-media.desktop.in
@@ -0,0 +1,4 @@
+[Desktop Entry]
+Type=MimeType
+_Comment=Urpmi medium info
+MimeType=application/x-urpmi-media