URL2PKG(8)

NAME
url2pkg - Automatic pkgsrc package generator

SYNOPSIS
url2pkg [-v|--verbose] URL

DESCRIPTION
url2pkg takes the URL to a package's distfile that should be turned into a package. It fetches the distfile, extracts it, and by looking at the extracted files, fills in some variables in the package Makefile.

url2pkg helps creating a package; it is not intended to fly on autopilot, though.

For Perl and Python packages, url2pkg runs the package's configure phase with custom replacements for Module::Build, ExtUtils::MakeMaker, distutils and setuptools. Error messages from these packages or modules should be reported back to the author, as they indicate incomplete support.

ENVIRONMENT

PKGMAINTAINER, REPLYTO
    Name used for the MAINTAINER field in the package Makefile.

EXAMPLES
The following command will generate a template pkgsrc package for the software that can be found at https://www.example.org/download/buz-19.3.tar.gz:

    url2pkg https://www.example.org/download/buz-19.3.tar.gz

SEE ALSO
pkgsrc(7)

AUTHORS
Roland Illig <rillig@NetBSD.org> wrote the current version. Hubert Feyrer <hubertf@NetBSD.org> wrote the initial version. Emmanuel Dreyfus <manu@NetBSD.org> initially wrote this man page.