freebsd-ports/sysutils/linux-afaapps/Makefile
Boris Samorodov 0263b9d868 Welcome to the new linux ports infrastructure which allows using
both current (fc4) and future linux (f8) distributions at one
ports tree.

The patch contains full changes to ports/Mk files and all ports involved.
But only infrastructure is changed. The resulting packages are the same as
before. Hence no need to bump PORTREVISIONs.

The idea was taken from bsd.gnome.mk and others.

More than 130 ports are switched to follow a new linux infrastructure
introduced by changes to bsd.port.mk, bsd.linux-rpm.mk and a new
bsd.linux-apps.mk.

Thanks for all who was involved and helped me with this work.
And help from Alexander Leidinger was incredible.

Other changes are coming. Stay tuned!

PR:		ports/132510
Submitted by:	bsam (me)
Exp-run by:	portmgr (pav)
2009-03-19 17:28:51 +00:00

44 lines
1.1 KiB
Makefile

# New ports collection makefile for: linux-afaapps
# Date created: 6 October 2003
# Whom: bms@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= afaapps
PORTVERSION= 2.7
PORTREVISION= 4
CATEGORIES= sysutils linux
MASTER_SITES= ftp://ftp.us.dell.com/scsi-raid/
PKGNAMEPREFIX= linux-
DISTNAME= aacraid-util-rh8.0-${LINUX_RPM_ARCH}
DIST_SUBDIR= rpm
MAINTAINER= ports@FreeBSD.org
COMMENT= DELL PowerEdge Raid Controller 2 (apps)
RESTRICTED= "binary redistribution license needs clarification"
USE_LINUX_RPM= yes
USE_LINUX_APPS= arts
ONLY_FOR_ARCHS= i386 amd64
BRANDELF_FILES= usr/sbin/afacli
SRC_DISTFILES= # empty, no sources available
EXTRACT_CMD= ${GZIP_CMD}
EXTRACT_BEFORE_ARGS= -dc
EXTRACT_AFTER_ARGS= | ${TAR} -xf -
EXTRACT_SUFX= .tar.gz
RPMFILE= ${PORTNAME}-${PORTVERSION}-2.${LINUX_RPM_ARCH}.rpm
.include <bsd.port.pre.mk>
post-extract:
@cd ${WRKDIR} && ${RPM2CPIO} ${RPMFILE} | ${CPIO} -id --quiet && \
${RM} ${RPMFILE} readme
${RM} -rf ${WRKDIR}/dev
${RM} ${WRKDIR}/usr/sbin/afacli
${MV} ${WRKDIR}/usr/sbin/afacli.bin ${WRKDIR}/usr/sbin/afacli
.include <bsd.port.post.mk>