Date: Fri, 14 Mar 2014 10:51:44 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r348208 - head/sysutils/acpi_call Message-ID: <201403141051.s2EApidj034661@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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@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%% -@cwd / -%%KMODDIR%%/%%PORTNAME%%.ko -@exec /usr/sbin/kldxref /%%KMODDIR%% -@unexec /usr/sbin/kldxref /%%KMODDIR%% +sbin/acpi_call +@cwd /%%KMODDIR%% +acpi_call.ko
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403141051.s2EApidj034661>