Import Debian changes 3.64-ok1

mime-support (3.64-ok1) yangtze; urgency=low

  * Build for openKylin.
This commit is contained in:
openKylinBot 2022-04-25 22:03:04 +08:00
parent 7425848ffa
commit 174f307e29
12 changed files with 211 additions and 0 deletions

13
debian/bug-presubj vendored Normal file
View File

@ -0,0 +1,13 @@
Please consider registering MIME media types to the Internet Assigned Numbers
Authority (IANA) before requiring their inclusion in /etc/mime.types.
Simplified registration procedures for vendor and personal trees are being
implemented with the update of RFC 4288[1], that states: "it should rarely, if
ever, be necessary to use unregistered types. Therefore, use of types in the
'x.' tree is strongly discouraged." I have confirmed that the process is
fairly quick and painless by registering text/vnd.debian.copyright[2] for
machine-readable Debian copyright files.
[1] http://tools.ietf.org/html/draft-ietf-appsawg-media-type-regs-14
[2] http://www.iana.org/assignments/media-types/text/vnd.debian.copyright
-- Charles Plessy Tue, 08 Jan 2013 06:31:07 +0900

17
debian/cautious-launcher vendored Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# For use with .desktop files and MIME handlers so that the Ubuntu Policy
# can be followed: programs cannot be executed when they lack the execute bit.
# https://wiki.ubuntu.com/SecurityTeam/Policies#Execute-Permission%20Bit%20Required
exe="$1"
shift || true
if [ -n "$exe" ] && [ ! -x "$exe" ] && \
[ "${exe:0:5}" != "/usr/" ] && [ "${exe:0:5}" != "/opt/" ]
then
if [ -n "$DISPLAY" ] && [ -x /usr/bin/zenity ]; then
/usr/bin/zenity --error --title "Blocked: $*" --text "The file '$exe' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the <a href=\"https://wiki.ubuntu.com/Security/ExecutableBit\">executable bit</a>."
else
echo "$*: '$exe' is not executable. Aborting." >&2
fi
exit 1
fi
exec "$@" "$exe"

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
mime-support (3.64-ok1) yangtze; urgency=low
* Build for openKylin.
-- openKylinBot <openKylinBot@openkylin.com> Mon, 25 Apr 2022 22:03:04 +0800

2
debian/conffiles vendored Normal file
View File

@ -0,0 +1,2 @@
/etc/mime.types
/etc/mailcap.order

25
debian/control vendored Normal file
View File

@ -0,0 +1,25 @@
Source: mime-support
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
XSBC-Original-Maintainer: Mime-Support Packagers <team+debian-mimesupport-packagers@tracker.debian.org>
Uploaders: Charles Plessy <plessy@debian.org>
Section: net
Priority: standard
Standards-Version: 4.3.0
Vcs-Browser: https://salsa.debian.org/debian/mime-support
Vcs-Git: https://salsa.debian.org/debian/mime-support.git
Package: mime-support
Architecture: all
Multi-Arch: foreign
Recommends: bzip2, file, xz-utils
Description: MIME files 'mime.types' & 'mailcap', and support programs
As these files can be used by all MIME compliant programs, they
have been moved into their own package that others can depend upon.
.
Other packages add themselves as viewers/editors/composers/etc by
using the provided "update-mime" program.
.
In addition, the commands "see", "edit", "compose", and "print"
will display, alter, create, and print (respectively) any file using
a program determined from the entries in the mime.types and mailcap
files.

26
debian/copyright vendored Normal file
View File

@ -0,0 +1,26 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: git://anonscm.debian.org/collab-maint/mime-support.git
Files: *
Copyright: public-domain
License: ad-hoc
This package was written by Brian White <bcwhite@pobox.com> and others.
It contains public information compiled from around the 'net and many people.
.
The "update-mime" program was written by Brian White and has been
placed in the public domain.
Files: mailcap.man
Copyright: (c) 1991 Bell Communications Research, Inc. (Bellcore)
License: Bellcore
Permission to use, copy, modify, and distribute this material
for any purpose and without fee is hereby granted, provided
that the above copyright notice and this permission notice
appear in all copies, and that the name of Bellcore not be
used in advertising or publicity pertaining to this
material without the specific, prior written permission
of an authorized representative of Bellcore. BELLCORE
MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY
OF THIS MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS IS",
WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
Comment: Author: Nathaniel S. Borenstein

6
debian/gitlab-ci.yml vendored Normal file
View File

@ -0,0 +1,6 @@
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
variables:
RELEASE: 'unstable'

18
debian/postinst vendored Executable file
View File

@ -0,0 +1,18 @@
#! /bin/sh
set -e
# dpkg triggers support for update-mime
if [ "$1" = "triggered" ]; then
if which update-mime > /dev/null; then update-mime --triggered; fi
exit 0
fi
# Remove the old status directory (and any orphaned install-mime program)
rm -fr /var/lib/mime
rm -f /usr/sbin/install-mime
# Run the update program
if which update-mime > /dev/null; then update-mime --triggered; fi

9
debian/prerm vendored Normal file
View File

@ -0,0 +1,9 @@
#! /bin/sh
#
# prerm file for mime-support
set -e
if [ "$1" = "remove" ]; then
rm -f /etc/mailcap
fi

87
debian/rules vendored Executable file
View File

@ -0,0 +1,87 @@
#! /usr/bin/make -f
#
# Debian rules for building Mime-Support
#
package := mime-support
default:
@echo "Build 'binary' or 'clean'?"
@echo " "
clean:
test -f debian/rules
rm -f debian/substvars debian/files debian/debhelper.log build-stamp
-rm -rf debian/tmp debian/*~ *~
# Do nothing in build, build-arch and build-indep, but provide those targets.
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
touch build-stamp
binary-indep:
test -f debian/rules
test root = "`whoami`"
-rm -rf debian/tmp
mkdir -p debian/tmp/DEBIAN debian/tmp/etc debian/tmp/usr/lib/mime/packages
mkdir -p debian/tmp/usr/share/bug/$(package)
mkdir -p debian/tmp/usr/share/doc/$(package) debian/tmp/usr/sbin debian/tmp/usr/bin
mkdir -p debian/tmp/usr/share/man/man1 debian/tmp/usr/share/man/man5 debian/tmp/usr/share/man/man8
chmod -R 755 debian/tmp
install -m 644 mime.types debian/tmp/etc/
install -m 644 mailcap debian/tmp/usr/lib/mime/
install -m 644 mailcap.order debian/tmp/etc/
install -m 644 mailcap.man debian/tmp/usr/share/man/man5/mailcap.5
install -m 644 mailcap.order.man debian/tmp/usr/share/man/man5/mailcap.order.5
install -m 755 update-mime debian/tmp/usr/sbin/
install -m 644 update-mime.man debian/tmp/usr/share/man/man8/update-mime.8
install -m 755 run-mailcap debian/tmp/usr/bin/
install -m 644 run-mailcap.man debian/tmp/usr/share/man/man1/run-mailcap.1
install -m 755 debian/cautious-launcher debian/tmp/usr/bin/
install -m 644 debian/bug-presubj debian/tmp/usr/share/bug/$(package)/presubj
install -m 644 debian/changelog debian/tmp/usr/share/doc/$(package)/changelog
install -m 644 debian/copyright debian/tmp/usr/share/doc/$(package)/copyright
install -m 755 debian-view debian/tmp/usr/lib/mime/
# install -m 755 playaudio debian/tmp/usr/lib/mime/
# install -m 755 playdsp debian/tmp/usr/lib/mime/
install -m 644 mailcap.entries debian/tmp/usr/lib/mime/packages/mime-support
install -m 755 debian/postinst debian/tmp/DEBIAN/postinst
install -m 755 debian/prerm debian/tmp/DEBIAN/prerm
install -m 644 debian/conffiles debian/tmp/DEBIAN/conffiles
install -m 644 debian/triggers debian/tmp/DEBIAN/triggers
cd debian/tmp/usr/share/man; gzip --best --force --no-name --verbose */*
cd debian/tmp/usr/share/doc/$(package); gzip --best --no-name --verbose *
cd debian/tmp/usr/share/doc/$(package); gunzip copyright.gz
cd debian/tmp/usr/bin; ln -s run-mailcap see
cd debian/tmp/usr/bin; ln -s run-mailcap edit
cd debian/tmp/usr/bin; ln -s run-mailcap compose
cd debian/tmp/usr/bin; ln -s run-mailcap print
cd debian/tmp/usr/share/man/man1; ln -s run-mailcap.1.gz see.1.gz
cd debian/tmp/usr/share/man/man1; ln -s run-mailcap.1.gz edit.1.gz
cd debian/tmp/usr/share/man/man1; ln -s run-mailcap.1.gz compose.1.gz
cd debian/tmp/usr/share/man/man1; ln -s run-mailcap.1.gz print.1.gz
# Generate DEBIAN/md5sums, excluding conffiles. Code pasted from dh_md5sums.
(cd debian/tmp >/dev/null ; find . -type f ! -path "./etc/mime.types" ! -path "./etc/mailcap.order" ! -regex './DEBIAN/.*' -printf '%P\0' | LC_ALL=C sort -z | xargs -r0 md5sum > DEBIAN/md5sums) >/dev/null
chmod 644 debian/tmp/DEBIAN/md5sums
chown 0:0 debian/tmp/DEBIAN/md5sums
dpkg-gencontrol
chown -R root.root debian/tmp
chmod -R go=rX debian/tmp
find debian/tmp -newermt "@$$SOURCE_DATE_EPOCH" -print0 | \
xargs -0r touch --no-dereference --date="@$$SOURCE_DATE_EPOCH"
dpkg --build debian/tmp
dpkg-name -o -s .. debian/tmp.deb
binary-arch:
binary: binary-indep
@echo "Binaries made"
# local variables:
# tab-width: 8
# end:

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

2
debian/triggers vendored Normal file
View File

@ -0,0 +1,2 @@
interest-noawait /usr/lib/mime/packages
interest-noawait /usr/share/applications