summaryrefslogtreecommitdiff
path: root/sysutils/storage-manager/Makefile
blob: 40508aaad99e226ce09ae58e936fd4ec88183a0d (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# $NetBSD: Makefile,v 1.2 2001/10/23 16:07:56 lukem Exp $

DISTNAME=		sm_linux_v314_install
PKGNAME=		storage-manager-3.14
WRKSRC=			${WRKDIR}/sm_linux_v314_install
CATEGORIES=		sysutils
MASTER_SITES=		# empty
EXTRACT_SUFX=		.rpm

MAINTAINER=		ad@netbsd.org
HOMEPAGE=		http://opensource.adaptec.com/
COMMENT=		Adaptec Storage Management software

DEPENDS+=		suse_compat>=6.1:../../emulators/suse_compat
DEPENDS+=		suse_x11>=6.1:../../emulators/suse_x11
BUILD_DEPENDS+=		rpm2pkg>=1.2:../../pkgtools/rpm2pkg

ONLY_FOR_PLATFORM=	NetBSD-*-i386

RESTRICTED=		"Redistribution not permitted"
NO_SRC_ON_FTP=		${RESTRICTED}
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

CHECK_SHLIBS=		NO
STRIPFLAG=		# defined
NO_CONFIGURE=		# defined
NO_BUILD=		# defined

DOWNLOAD=		http://www.adaptec.com/worldwide/support/driverdetail.html?cat=%2fOperating+System%2fLinux&filekey=sm_linux_v314_install.rpm

do-fetch:
	@if [ ! -f ${DISTDIR}/${DISTFILES} ]; then \
	    ${ECHO_MSG} "==============================================================="; \
	    ${ECHO_MSG} "  Adaptec Storage Manager 3.14 for RedHat Linux must be fetched"; \
	    ${ECHO_MSG} "  into ${DISTDIR} from"; \
	    ${ECHO_MSG} "  ${DOWNLOAD}."; \
	    ${ECHO_MSG} "==============================================================="; \
	    ${FALSE}; \
	fi

do-extract:
	${MKDIR} ${WRKSRC}
	cd ${WRKSRC}; rpm2cpio ${DISTDIR}/${DISTNAME}.rpm > ${DISTNAME}.cpio
	cd ${WRKSRC}; ${PAX} -rd -f ${DISTNAME}.cpio

do-patch:
	${SED}	-e "s,@PREFIX@,${PREFIX},g"			\
		${FILESDIR}/dptmgr.sh > ${WRKDIR}/dptmgr.sh
	${SED}	-e "s,@PREFIX@,${PREFIX},g"			\
		${FILESDIR}/dptsig.sh > ${WRKDIR}/dptsig.sh
	${SED}	-e "s,@PREFIX@,${PREFIX},g"			\
		${FILESDIR}/raidutil.sh > ${WRKDIR}/raidutil.sh
	${SED}	-e "s,@PREFIX@,${PREFIX},g"			\
		${FILESDIR}/dpteng > ${WRKDIR}/dpteng
	${SED}	-e "s,@PREFIX@,${PREFIX},g"			\
		${FILESDIR}/dptelog > ${WRKDIR}/dptelog

do-install:
	${INSTALL_PROGRAM_DIR} ${PREFIX}/lib/dpt
	${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/dptcom ${PREFIX}/lib/dpt
	${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/dptelog ${PREFIX}/lib/dpt
	${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/dpteng ${PREFIX}/lib/dpt
	${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/dptmgr ${PREFIX}/lib/dpt
	${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/dptscom ${PREFIX}/lib/dpt
	${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/dptsig ${PREFIX}/lib/dpt
	${INSTALL_PROGRAM} ${WRKSRC}/usr/dpt/raidutil ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/dpt/dptcom.chk ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/dpt/dptelog.ini ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/dpt/dptmgr.hlp ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/dpt/dptmgr.rsc ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/dpt/dptmgr.ini ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/dpt/read.me ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libMrm.la ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libMrm.so ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libMrm.so.1 ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libMrm.so.1.0.2 ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libXm.la ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libXm.so ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libXm.so.1 ${PREFIX}/lib/dpt
	${INSTALL_DATA} ${WRKSRC}/usr/local/LessTif/Motif1.2/lib/libXm.so.1.0.2 ${PREFIX}/lib/dpt
	${INSTALL_MAN} ${WRKSRC}/usr/local/man/man8/raidutil.8 ${PREFIX}/man/man8
	${INSTALL_SCRIPT} ${WRKDIR}/dptmgr.sh ${PREFIX}/sbin/dptmgr
	${INSTALL_SCRIPT} ${WRKDIR}/dptsig.sh ${PREFIX}/sbin/dptsig
	${INSTALL_SCRIPT} ${WRKDIR}/raidutil.sh ${PREFIX}/sbin/raidutil
	${INSTALL_SCRIPT} ${WRKDIR}/dpteng ${PREFIX}/etc/rc.d/dpteng
	${INSTALL_SCRIPT} ${WRKDIR}/dptelog ${PREFIX}/etc/rc.d/dptelog

.include "../../mk/bsd.pkg.mk"