diff options
author | agc <agc@pkgsrc.org> | 2005-04-20 09:36:00 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2005-04-20 09:36:00 +0000 |
commit | 3375751ac4d45a86aa41328b9f3db9a1483832ca (patch) | |
tree | 3490b2eeee6d0ac026bcdfea4bb65d285a8cd7a0 /pkgtools/genrpm/Makefile | |
parent | 81663f4f91940760f6e2461210416582cf7e173d (diff) | |
download | pkgsrc-3375751ac4d45a86aa41328b9f3db9a1483832ca.tar.gz |
Initial import of genrpm-1.0, a tool to generate rpm packages.
This package installs a script called genrpm, which is used to
generate a Redhat Package Manager (RPM) package from an installed
pkgsrc package. It does this by generating a spec file, and using
that to identify the components of the RPM and package them.
If a pkgsrc tree is present on the system, a source RPM (or srpm)
can also be generated. This will include the distfile, any pkgsrc
patches, and the files used to accomplish the pkgsrc packaging.
Diffstat (limited to 'pkgtools/genrpm/Makefile')
-rw-r--r-- | pkgtools/genrpm/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgtools/genrpm/Makefile b/pkgtools/genrpm/Makefile new file mode 100644 index 00000000000..7fdf215cbcb --- /dev/null +++ b/pkgtools/genrpm/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/04/20 09:36:00 agc Exp $ + +DISTNAME= genrpm-1.0 +CATEGORIES= pkgtools +MASTER_SITES= # empty +DISTFILES= # empty + +MAINTAINER= agc@NetBSD.org +HOMEPAGE= http://www.pkgsrc.org/ +COMMENT= Generate an RPM package from an installed pkgsrc package + +DEPENDS+= pkg_tarup-[0-9]*:../../pkgtools/pkg_tarup +DEPENDS+= rpm-[0-9]*:../../misc/rpm + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +WRKSRC= ${WRKDIR} +NO_CHECKSUM= yes + +INSTALLATION_DIRS= man/cat8 man/man8 sbin + +.include "../../mk/bsd.prefs.mk" + +do-build: + @for f in genrpm genrpm.8 genrpm.0; do \ + ${SED} -e 's|@PKGSRCDIR@|${PKGSRCDIR}|g' \ + -e 's|@SH@|${SH}|g' \ + ${FILESDIR}/$$f > ${WRKSRC}/$$f; \ + done +.if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX" + # pre-created man-pages are "mandoc" pages, these OS need "man", + # so regen the .0 page + nroff -man ${WRKSRC}/genrpm.8 >${WRKSRC}/genrpm.0 +.endif + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/genrpm ${PREFIX}/sbin + ${INSTALL_MAN} ${WRKSRC}/genrpm.0 ${PREFIX}/man/cat8 + ${INSTALL_MAN} ${WRKSRC}/genrpm.8 ${PREFIX}/man/man8 + +.include "../../mk/bsd.pkg.mk" |