Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Oct 2014 15:45:42 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r369832 - head/net/aoe
Message-ID:  <201410021545.s92FjgmN047846@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Oct  2 15:45:42 2014
New Revision: 369832
URL: https://svnweb.freebsd.org/changeset/ports/369832
QAT: https://qat.redports.org/buildarchive/r369832/

Log:
  Make sure the package respect SRC_BASE
  Use the kmod framework
  Cleanup the plist
  
  Reported by:	glebius

Modified:
  head/net/aoe/Makefile
  head/net/aoe/pkg-plist

Modified: head/net/aoe/Makefile
==============================================================================
--- head/net/aoe/Makefile	Thu Oct  2 15:44:03 2014	(r369831)
+++ head/net/aoe/Makefile	Thu Oct  2 15:45:42 2014	(r369832)
@@ -3,6 +3,7 @@
 
 PORTNAME=	aoe
 PORTVERSION=	1.2.0
+PORTREVISION=	1
 CATEGORIES=	net kld
 MASTER_SITES=	http://www.son.org/download/
 DISTNAME=	${PORTNAME}-freebsd-${PORTVERSION}
@@ -10,22 +11,17 @@ DISTNAME=	${PORTNAME}-freebsd-${PORTVERS
 MAINTAINER=	fjoe@FreeBSD.org
 COMMENT=	FreeBSD driver for ATA over Ethernet (AoE)
 
-NO_PACKAGE=	Should be in sync with the kernel to work correctly
 SSP_UNSAFE=	kernel module does not support ssp
 
+USES=	kmod
+
 WRKSRC=		${WRKDIR}/dev/aoe
-USE_RC_SUBR=	aoe
+KMODDIR=	${PREFIX}/lib/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
+USE_RC_SUBR=	aoe
 
 do-install:
-	${MKDIR} ${STAGEDIR}${PREFIX}/lib/aoe
 	${INSTALL_KLD} ${WRKSRC}/aoe.ko ${STAGEDIR}${PREFIX}/lib/aoe
-	${INSTALL_MAN} ${WRKDIR}/aoe.4 ${STAGEDIR}${PREFIX}/man/man4
+	${INSTALL_MAN} ${WRKDIR}/aoe.4 ${STAGEDIR}${PREFIX}/man/man4/
 
 .include <bsd.port.mk>

Modified: head/net/aoe/pkg-plist
==============================================================================
--- head/net/aoe/pkg-plist	Thu Oct  2 15:44:03 2014	(r369831)
+++ head/net/aoe/pkg-plist	Thu Oct  2 15:45:42 2014	(r369832)
@@ -1,3 +1,2 @@
 lib/aoe/aoe.ko
 man/man4/aoe.4.gz
-@dirrm lib/aoe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410021545.s92FjgmN047846>