mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
9e0f0f60d6
- remove $/, $| it's artifacts from $rpm = <$f>; time. [this might help in low RAM situations] - change && to and - whitespace cosmetic. Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private email)
43 lines
926 B
Makefile
43 lines
926 B
Makefile
# New ports collection makefile for: rpm2cpio
|
|
# Date created: Sun Jul 18 21:51:23 MET DST 1999
|
|
# Whom: Juergen Lock <nox@jelal.kn-bremen.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= rpm2cpio
|
|
PORTVERSION= 1.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= # none
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= nox@FreeBSD.org
|
|
COMMENT= Convert .rpm files for extraction with /usr/bin/cpio, needs just perl
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
USE_PERL5= yes
|
|
NO_BUILD= yes
|
|
REINPLACE_ARGS=
|
|
|
|
PLIST_FILES= bin/rpm2cpio.pl
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ( (${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505 )
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/xz:${PORTSDIR}/archivers/xz
|
|
.endif
|
|
|
|
do-fetch:
|
|
@${DO_NADA}
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKSRC}
|
|
@${REINPLACE_CMD} -e 's|^#!/usr/bin/perl|#!${PERL}|' ${FILESDIR}/${PORTNAME} >${WRKDIR}/${PORTNAME}
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}.pl
|
|
|
|
.include <bsd.port.post.mk>
|