BSD Ports

devel/py-magic 5.45_2 MidnightBSD

Python module for determining file type

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
22173208f1
License
bsd2
Categories
devel, python

Description

Python bindings for libmagic used to get a description of a file type, or a mime type for that file.

In the other systems

SystemPortVersion
MidnightBSDdevel/py-magic5.45_2
FreeBSDdevel/py-magic5.48
OpenBSDdevel/py-magic0.4.27p2v0
DragonFlydevel/py-magic5.45_1
HardenedBSDdevel/py-magic5.48
GhostBSDdevel/py-magic5.48

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}magic

From mports:

cd /usr/mports/devel/py-magic && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}magic>0:devel/py-magic

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
python cpe
Service scripts
none
Conflicts with
${PYTHON_PKGNAMEPREFIX}python-magic

Files

distinfo 1
FileSizeSHA256
file-5.45.tar.gz1.246503e+06fc97f51029bb0e2c9f4e3bffefdaf678f0e039ee872b9de5c002a6d09c784d82
Master sites 5
  • https://astron.com/pub/file/
  • ftp://ftp.astron.com/pub/file/
  • ftp://ftp.gw.com/mirrors/pub/unix/file/
  • ftp://ftp.fu-berlin.de/unix/tools/file/
  • https://www.mirrorservice.org/sites/distfiles.macports.org/file/

Commit history 1

DateCommitCreditsLog message
22173208f1 Lucas Holt */*: add CPE identifiers from the matching FreeBSD ports
mport audit matches installed packages against sec.midnightbsd.org by CPE, so a port without one is invisible to it regardless of how vulnerable it is. These 126 ports had no CPE while the corresponding FreeBSD port did, so the vendor and product were copied from there rather than guessed. Sampled against the audit API to confirm the identifiers resolve, e.g. cad/gtkwave tonybybell:gtkwave 82 CVEs archivers/libunrar rarlab:unrar 12 audio/espeak-ng espeak-ng:espeak-ng 5 archivers/minizip-ng zlib-ng:minizip-ng 3 audio/faust grame:faust 3 cad/admesh admesh_project:admesh 3 Three ports were deliberately skipped: archivers/p5-Archive-Tar, …