URL2PKG(8)

NAME
url2pkg - Automatic pkgsrc package generator

SYNOPSIS
url2pkg [URL]

DESCRIPTION
url2pkg takes the URL to a package's distfile that should be turned into a package. The generated package includes a Makefile and a basic set of files to get the package going. Any customisations to get the package going need to be adjusted manually after url2pkg has finished its job.

url2pkg is intended to help starting to create a package; it is not intended to fly on autopilot, though.

The Makefile contains all the required variables, such as DISTNAME or MASTER_SITES, but some of them cannot be automatically set. Hence, the user's usual editor is invoked to edit the Makefile.

After the Makefile is completed, url2pkg fetches the archive, and computes its checksum via the make makesum target. Then, archive extraction is done, via the make extract target, and finally, url2pkg attempts to detect if the software uses a configure script, and if it's from GNU autoconf.

If the user does not supply the URL on the command line, then url2pkg will prompt for it.

ENVIRONMENT

PKGEDITOR, EDITOR
    Editor used for Makefile edition.

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 http://www.example.com/bar/buz.tgz:

    url2pkg http://www.example.com/bar/buz.tgz

SEE ALSO
pkgsrc(7)

AUTHORS
url2pkg was written by Roland Illig <rillig@NetBSD.org>, enhancing the previous version by Hubert Feyrer <hubertf@NetBSD.org>. This man page was written by Emmanuel Dreyfus <manu@NetBSD.org>.