aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/linux-afaapps/Makefile
blob: b8880dd222aba4fa496e3c1ae4fd931da6537d8c (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=       3
CATEGORIES=     sysutils linux
MASTER_SITES=       ftp://ftp.us.dell.com/scsi-raid/
PKGNAMEPREFIX=      linux-
DISTNAME=       aacraid-util-rh8.0-${MACHINE_ARCH}

MAINTAINER=     bms@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_PREFIX=   yes
NO_MTREE=       yes
LDCONFIG_LINUX=     ${LINUXBASE}/sbin/ldconfig

ONLY_FOR_ARCHS=     i386
NO_FILTER_SHLIBS=   yes
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} ${LINUXBASE}/usr/sbin/afacli
    @${MV} ${LINUXBASE}/usr/sbin/afacli.bin ${LINUXBASE}/usr/sbin/afacli
    @${LDCONFIG_LINUX}

.include <bsd.port.mk>