diff options
author | danfe <danfe@FreeBSD.org> | 2014-03-14 18:51:43 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2014-03-14 18:51:43 +0800 |
commit | 397ec058a967106658dd77e58d1ab93a9f70e399 (patch) | |
tree | 0719c4bc98dad1f3867b4c2e16d64bc61dd62a26 /sysutils | |
parent | a0bbbbfc9305ef74b848a4f3a21632cc599f80bc (diff) | |
download | freebsd-ports-gnome-397ec058a967106658dd77e58d1ab93a9f70e399.tar.gz freebsd-ports-gnome-397ec058a967106658dd77e58d1ab93a9f70e399.tar.zst freebsd-ports-gnome-397ec058a967106658dd77e58d1ab93a9f70e399.zip |
- 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
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/acpi_call/Makefile | 32 | ||||
-rw-r--r-- | sysutils/acpi_call/pkg-plist | 8 |
2 files changed, 15 insertions, 25 deletions
diff --git a/sysutils/acpi_call/Makefile b/sysutils/acpi_call/Makefile index c5c6b114a6d0..f61b1a92bb01 100644 --- a/sysutils/acpi_call/Makefile +++ b/sysutils/acpi_call/Makefile @@ -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> diff --git a/sysutils/acpi_call/pkg-plist b/sysutils/acpi_call/pkg-plist index 64a84507aa60..587fefd3862c 100644 --- a/sysutils/acpi_call/pkg-plist +++ b/sysutils/acpi_call/pkg-plist @@ -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 |