From owner-svn-ports-all@FreeBSD.ORG Fri Mar 14 10:51:44 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9222B76; Fri, 14 Mar 2014 10:51:44 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 65B967F7; Fri, 14 Mar 2014 10:51:44 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2EApi80034663; Fri, 14 Mar 2014 10:51:44 GMT (envelope-from danfe@svn.freebsd.org) Received: (from danfe@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2EApidj034661; Fri, 14 Mar 2014 10:51:44 GMT (envelope-from danfe@svn.freebsd.org) Message-Id: <201403141051.s2EApidj034661@svn.freebsd.org> From: Alexey Dokuchaev Date: Fri, 14 Mar 2014 10:51:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r348208 - head/sysutils/acpi_call X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Mar 2014 10:51:44 -0000 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 # $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 - -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 +.include 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