Import mime-data 1.0.1

mime-data contains the base MIME and Application database for GNOME.
It is meant to be accessed through the MIME functions in GnomeVFS.
This commit is contained in:
nino 2002-02-15 19:12:21 +00:00
parent ce57f5804b
commit 7bd24aa45e
6 changed files with 153 additions and 0 deletions

View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2002/02/15 19:12:21 nino Exp $
COMMENT= "MIME and Application database for GNOME"
DISTNAME= gnome-mime-data-1.0.1
CATEGORIES= x11 x11/gnome
NEED_VERSION= 1.504
HOMEPAGE= http://www.gnome.org/
MAINTAINER= Nils Nordman <nino@nforced.com>
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/gnome-mime-data
EXTRACT_SUFX= .tar.bz2
CONFIGURE_STYLE= gnu
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnome-mime-data; \
cp -Rp ${WRKINST}/${SYSCONFDIR}/* ${PREFIX}/share/examples/gnome-mime-data/
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (gnome-mime-data-1.0.1.tar.bz2) = 7c1ef3533d634ee6ecd6440f09005999
RMD160 (gnome-mime-data-1.0.1.tar.bz2) = 3604da541e0ecdf87a517a14fbb488c1c6dac653
SHA1 (gnome-mime-data-1.0.1.tar.bz2) = e98c2c9a3e66913894cd45d28c96ed250f2e8ab6

View File

@ -0,0 +1,27 @@
#!/bin/sh
#
# $OpenBSD: DEINSTALL,v 1.1.1.1 2002/02/15 19:12:21 nino Exp $
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
FILES='
gnome-vfs-mime-magic
'
echo
echo "+--------------- $1"
echo "| To really remove $1 from your system you should also"
echo "| remove the configuration files from the ${SYSCONFDIR} directory."
echo "| If you are planning on installing $1 again in the future"
echo "| you can leave it as it is."
echo "|"
echo "| FYI, the following configuration files belongs to this package:"
echo "|"
for f in ${FILES}; do
echo "| ${SYSCONFDIR}/$f"
done
echo "+--------------- $1"
echo
exit 0

View File

@ -0,0 +1,6 @@
This module contains the base MIME and Application database for GNOME.
It is meant to be accessed through the MIME functions in GnomeVFS.
For more information about the GNOME project, visit:
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,83 @@
#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.1.1.1 2002/02/15 19:12:21 nino Exp $
set -e
PREFIX=${PKG_PREFIX:-/usr/local}
PATH=/bin:/usr/bin:/sbin:/usr/sbin
P_NAME=gnome-mime-data
DEST_PFX=${SYSCONFDIR}
SOURCE_PFX=${PREFIX}/share/examples/${P_NAME}
FILES='
gnome-vfs-mime-magic
'
do_post() {
echo
echo "+--------------- ${P_NAME}"
# install or take note of existing config files
for f in ${FILES}; do
if [ -f "${DEST_PFX}/$f" ]; then
OLD_CONFS="${OLD_CONFS} $f"
else
if ! install -m 644 ${SOURCE_PFX}/$f ${DEST_PFX}/$f; then
echo "| ERROR: The following file could not be installed, exiting: ${DEST_PFX}/$f"
exit 1
fi
NEW_CONFS="${NEW_CONFS} $f"
fi
done
# print status report
if [ -n "${NEW_CONFS}" ]; then
echo "| The following NEW configuration files have been installed:"
echo "|"
for f in ${NEW_CONFS}; do
echo "| ${DEST_PFX}/$f"
done
fi
if [ -n "${OLD_CONFS}" ]; then
if [ -n "${NEW_CONFS}" ]; then
echo "|"
fi
echo "| The following OLD configuration files was found and have NOT been overwritten:"
echo "| You should however manually compare them to their equivalents in "
echo "|"
echo "| ${SOURCE_PFX}"
echo "|"
echo "| and update your configuration if needed."
echo "|"
for f in ${OLD_CONFS}; do
echo "| ${DEST_PFX}/$f"
done
fi
echo "+--------------- ${P_NAME}"
echo
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
do_post
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2002/02/15 19:12:21 nino Exp $
lib/pkgconfig/gnome-mime-data-2.0.pc
share/application-registry/gnome-vfs.applications
share/examples/gnome-mime-data/gnome-vfs-mime-magic
share/mime-info/gnome-vfs.keys
share/mime-info/gnome-vfs.mime
@dirrm share/examples/gnome-mime-data