pkgsrc/pkgtools/genrpm/Makefile
2012-09-11 23:19:33 +00:00

34 lines
852 B
Makefile

# $NetBSD: Makefile,v 1.9 2012/09/11 23:19:34 asau Exp $
DISTNAME= genrpm-1.2
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}
INSTALLATION_DIRS= ${PKGMANDIR}/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
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/genrpm ${DESTDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/genrpm.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
.include "../../mk/bsd.pkg.mk"