aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/linux-afaapps/Makefile
blob: 6cdc7d9a0f9eac0d1a0fc1d9e9ef91b0e697e701 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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-${MACHINE_ARCH}

MAINTAINER=     ports@FreeBSD.org
COMMENT=        DELL PowerEdge Raid Controller 2 (apps)

BUILD_DEPENDS=      rpm:${PORTSDIR}/archivers/rpm
RUN_DEPENDS=        ${LINUXBASE}/usr/lib/libartsc.so.0:${PORTSDIR}/audio/linux-arts

RESTRICTED=     "binary redistribution license needs clarification"

NO_BUILD=       yes
NO_WRKSUBDIR=       yes

USE_LINUX=      yes
USE_LINUX_PREFIX=       yes
LDCONFIG_LINUX=     ${LINUXBASE}/sbin/ldconfig

ONLY_FOR_ARCHS=     i386
PLIST=          ${MASTERDIR}/pkg-plist.${MACHINE_ARCH}
MD5_FILE=       ${MASTERDIR}/distinfo.${MACHINE_ARCH}

RPMFILE=        ${PORTNAME}-${PORTVERSION}-2.${MACHINE_ARCH}.rpm

DBPATH=         /var/lib/rpm
RPMFLAGS=       --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
            --nodeps --replacepkgs --noscripts

do-install:
    @${LOCALBASE}/bin/rpm -U ${RPMFLAGS} ${WRKDIR}/${RPMFILE}
    @${RM} ${PREFIX}/usr/sbin/afacli
    @${MV} ${PREFIX}/usr/sbin/afacli.bin ${PREFIX}/usr/sbin/afacli
    @${BRANDELF} -t Linux ${PREFIX}/usr/sbin/afacli
    @${LDCONFIG_LINUX}

.include <bsd.port.mk>