svn commit: r348208 - head/sysutils/acpi_call

Alexey Dokuchaev danfe at FreeBSD.org
Fri Mar 14 10:51:44 UTC 2014


Author: danfe
Date: Fri Mar 14 10:51:43 2014
New Revision: 348208
URL: http://svnweb.freebsd.org/changeset/ports/348208
QAT: https://qat.redports.org/buildarchive/r348208/

Log:
  - Do not assume that /sys always points to SYSDIR
  - Set LICENSE to a more specific BSD2CLAUSE
  - Standardize Makefile header; generally clean up the port
  - Convert to USES=kmod and stagify the port while here

Modified:
  head/sysutils/acpi_call/Makefile
  head/sysutils/acpi_call/pkg-plist

Modified: head/sysutils/acpi_call/Makefile
==============================================================================
--- head/sysutils/acpi_call/Makefile	Fri Mar 14 10:43:09 2014	(r348207)
+++ head/sysutils/acpi_call/Makefile	Fri Mar 14 10:51:43 2014	(r348208)
@@ -1,38 +1,30 @@
-# Created by: Maxim Ignatenko
+# Created by: Maxim Ignatenko <gelraen.ua at gmail.com>
 # $FreeBSD$
 
 PORTNAME=	acpi_call
 PORTVERSION=	1.0.1
-CATEGORIES=	sysutils kld
+CATEGORIES=	sysutils
 MASTER_SITES=	http://projects.ukrweb.net/files/ \
 		http://imax.in.ua/files/
 
 MAINTAINER=	gelraen.ua at gmail.com
 COMMENT=	Kernel module for calling ACPI methods from userspace
 
-LICENSE=	BSD
-
-SSP_UNSAFE=	kernel module does not support ssp
-
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
-KMODDIR?=	/boot/modules
-PLIST_SUB+=	KMODDIR=${KMODDIR} \
-		PORTNAME=${PORTNAME}
-
-.if !exists(${SRC_BASE}/sys/sys/module.h)
-IGNORE=		requires kernel source files
-.endif
+LICENSE=	BSD2CLAUSE
 
 ONLY_FOR_ARCHS=	amd64 i386 ia64
 ONLY_FOR_ARCHS_REASON=	not relevant for non-x86-derived architectures
 
+USES=		kmod
+
+post-patch:
+	@${REINPLACE_CMD} -e 's,/sys,$${SYSDIR},' ${WRKSRC}/Makefile
+
 post-build:
-	@cd ${WRKSRC} && ${MAKE} util
+	@${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC} util
 
 do-install:
-	@${INSTALL_KLD} ${WRKSRC}/${PORTNAME}.ko ${KMODDIR}
-	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
+	${INSTALL_KLD} ${WRKSRC}/${PORTNAME}.ko ${STAGEDIR}${KMODDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/sysutils/acpi_call/pkg-plist
==============================================================================
--- head/sysutils/acpi_call/pkg-plist	Fri Mar 14 10:43:09 2014	(r348207)
+++ head/sysutils/acpi_call/pkg-plist	Fri Mar 14 10:51:43 2014	(r348208)
@@ -1,5 +1,3 @@
-sbin/%%PORTNAME%%
- at cwd /
-%%KMODDIR%%/%%PORTNAME%%.ko
- at exec /usr/sbin/kldxref /%%KMODDIR%%
- at unexec /usr/sbin/kldxref /%%KMODDIR%%
+sbin/acpi_call
+ at cwd /%%KMODDIR%%
+acpi_call.ko


More information about the svn-ports-head mailing list