aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/arcconf/Makefile
blob: 6233e0019fb6134be9af93d68e0b0225cbc120b4 (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
49
50
51
52
53
# Created by: michael@fuckner.net
# $FreeBSD$

PORTNAME=   arcconf
DISTVERSION=    v1_6_21062
PORTEPOCH=  1
CATEGORIES= sysutils
MASTER_SITES=   http://download.adaptec.com/raid/storage_manager/
DISTNAME=   arcconf_${DISTVERSION}

MAINTAINER= michael@fuckner.net
COMMENT=    Adaptec SCSI/SAS RAID administration tool

ONLY_FOR_ARCHS= i386 amd64

USES=       zip

PERIODICSCRIPT= 410.status-aac-raid

SUB_FILES+= ${PERIODICSCRIPT}

RESTRICTED= May not be redistributed in binary form
NO_CDROM=   May not be redistributed in binary form

.include <bsd.port.pre.mk>

.if ${OPSYS} != FreeBSD
IGNORE=     installs incompatible binaries for FreeBSD
.endif

.if ${OSVERSION} >= 900000
DIST_OSVER= 9
.elif ${OSVERSION} >= 800000
DIST_OSVER= 8
.endif

.if ${ARCH} == amd64
DIST_EXT=   _x64
.endif

.if ! exists(/usr/lib/libstdc++.so.6)
RUN_DEPENDS+=   ${LOCALBASE}/lib/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x
.endif

NO_BUILD=   yes
NO_WRKSUBDIR=   yes

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/freebsd${DIST_OSVER}${DIST_EXT}/cmdline/arcconf ${STAGEDIR}${PREFIX}/sbin
    @${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
    ${INSTALL_SCRIPT} ${WRKDIR}/${PERIODICSCRIPT} ${STAGEDIR}${PREFIX}/etc/periodic/daily

.include <bsd.port.post.mk>