pkgsrc/pkgtools/genpkgng/Makefile
agc e629c60d76 Initial import of genpkgng, a utility which will convert a pkgsrc
binary package to a FreeBSD binary pkg.  pkgsrc binary packages keep
more metadata, and do Dewey matching on package version numbers, so
it's not possible to convert in the other direction.

The DESCR says:

	This is a small utility to generate a FreeBSD pkg binary package
	from a pkgsrc binary package. It is invoked simply, using a
	command like:

		genpkgng ssam-1.9nb1.tgz

	and it will convert the pkgsrc binary package to a pkg one:

		% ./genpkgng.sh perl-5.18.1nb2.tgz
		Converting perl-5.18.1nb2.tgz
		-rw-r--r--  1 agc  users  16597860 Apr 24 19:01 perl-5.18.1nb2.txz
		%
2014-04-27 00:10:34 +00:00

29 lines
832 B
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2014/04/27 00:10:34 agc Exp $
DISTNAME= genpkgng-20140425
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= agc@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/
COMMENT= Convert a pkgsrc binary package to a FreeBSD pkg
LICENSE= modified-bsd
AUTO_MKDIRS= yes
SUBST_CLASSES+= mtree
SUBST_STAGE.mtree= pre-configure
SUBST_MESSAGE.mtree= Fix location of MTREE_DIRS file
SUBST_FILES.mtree= genpkgng.sh
SUBST_SED.mtree= -e 's|@MTREE_DIR_DIR@|${PREFIX}/libdata/genpkgng|'
do-extract:
${CP} -R ${FILESDIR} ${WRKSRC}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/genpkgng ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/MTREE_DIRS ${DESTDIR}${PREFIX}/libdata/genpkgng/
${INSTALL_MAN} ${WRKSRC}/genpkgng.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
.include "../../mk/bsd.pkg.mk"