aboutsummaryrefslogtreecommitdiffstats
path: root/net/aoe/Makefile
blob: 29da5efad00bc0cac85c3405d405875751eca1a7 (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
# Ports collection makefile for:    aoe (ATA Over Ethernet) driver
# Date created:             22 May 2006
# Whom:                 Stacey D. Son <sds@son.org>
#
# $FreeBSD$
#

PORTNAME=   aoe
PORTVERSION=    1.2.0
CATEGORIES= net
MASTER_SITES=   http://www.son.org/download/
DISTNAME=   ${PORTNAME}-freebsd-${PORTVERSION}

MAINTAINER= fjoe@FreeBSD.org
COMMENT=    FreeBSD driver for ATA over Ethernet (AoE)

NO_PACKAGE= Should be in sync with the kernel to work correctly

WRKSRC=     ${WRKDIR}/dev/aoe
MAN4=       aoe.4
USE_RC_SUBR=    aoe

pre-everything::
    @if [ ! -f /usr/src/sys/Makefile ]; then \
        ${ECHO_MSG} ">> The AoE port needs FreeBSD kernel source code to compile."; \
        ${ECHO_MSG} ">> Please install FreeBSD kernel source code in /usr/src/sys."; \
        ${FALSE}; \
    fi

do-install:
    ${MKDIR} ${PREFIX}/lib/aoe
    ${INSTALL_KLD} ${WRKSRC}/aoe.ko ${PREFIX}/lib/aoe
    ${INSTALL_MAN} ${WRKDIR}/aoe.4 ${PREFIX}/man/man4
    ${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>