svn commit: r332626 - head/emulators/rtc
Rene Ladan
rene at FreeBSD.org
Sun Nov 3 16:46:22 UTC 2013
Author: rene
Date: Sun Nov 3 16:46:21 2013
New Revision: 332626
URL: http://svnweb.freebsd.org/changeset/ports/332626
Log:
Convert to USES=kmod
Modified:
head/emulators/rtc/Makefile
head/emulators/rtc/pkg-plist
Modified: head/emulators/rtc/Makefile
==============================================================================
--- head/emulators/rtc/Makefile Sun Nov 3 16:41:35 2013 (r332625)
+++ head/emulators/rtc/Makefile Sun Nov 3 16:46:21 2013 (r332626)
@@ -4,7 +4,7 @@
PORTNAME= rtc
PORTVERSION= 2004.02.24.1
PORTREVISION= 8
-CATEGORIES= emulators linux kld
+CATEGORIES= emulators linux
MASTER_SITES= # none
DISTFILES= # none
@@ -13,7 +13,6 @@ COMMENT= Kernel module which provides /d
WRKSRC= ${WRKDIR}/files
-SSP_UNSAFE= kernel module does not support ssp
NO_FETCH= yes
USE_LINUX= yes # because of ${DEVDIR}
@@ -28,13 +27,9 @@ PLIST_SUB= DEVDIR="${DEVDIR}" CDEV_MAJOR
RTC_H_DIR="${RTC_H_DIR}"
NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
-SRC_BASE?= /usr/src
-.if !exists(${SRC_BASE}/sys/Makefile)
-IGNORE= needs kernel source files
-.endif
+USES= kmod
+.include <bsd.port.pre.mk>
do-extract:
@${MKDIR} ${WRKSRC}
@@ -42,9 +37,6 @@ do-extract:
${FILESDIR}/${STARTUP} > ${WRKDIR}/${STARTUP}
@cd ${FILESDIR} && ${CP} Makefile *.[ch] ${WRKSRC}/
-pre-install:
- ${MKDIR} ${KMODDIR}
-
post-install:
${INSTALL_DATA} ${WRKSRC}/rtc.h ${PREFIX}/include/
${MKDIR} ${PREFIX}/share/examples/rtc
Modified: head/emulators/rtc/pkg-plist
==============================================================================
--- head/emulators/rtc/pkg-plist Sun Nov 3 16:41:35 2013 (r332625)
+++ head/emulators/rtc/pkg-plist Sun Nov 3 16:46:21 2013 (r332626)
@@ -3,8 +3,5 @@ include/rtc.h
modules/rtc.ko
%%EXAMPLESDIR%%/test.c
@exec rm -f %%DEVDIR%%/rtc
- at exec /usr/sbin/kldxref %D/modules
- at unexec /usr/sbin/kldxref %D/modules
@dirrm %%EXAMPLESDIR%%
- at dirrmtry modules
@unexec rm -f /dev/rtc
More information about the svn-ports-head
mailing list