summaryrefslogtreecommitdiffstats
path: root/emulators/rtc/Makefile
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-04-03 15:28:30 +0000
committerknu <knu@FreeBSD.org>2000-04-03 15:28:30 +0000
commit13685a15034ea64cf0c11eaddc050f77a7e3d0f2 (patch)
tree2167a4c7c9ba1064ad6a49e4d973e7a3e1adfadf /emulators/rtc/Makefile
parentd360ce6db45b36f8e42c1ec2f0470efb7853ec03 (diff)
downloadFreeBSD-ports-13685a15034ea64cf0c11eaddc050f77a7e3d0f2.zip
FreeBSD-ports-13685a15034ea64cf0c11eaddc050f77a7e3d0f2.tar.gz
This is rtc, a kernel module for /dev/rtc device support.
Some apps such as VMware for Linux would be happy with it. The code was originally written by Vladimir N. Silyaev. Note: It _includes_ Linux ioctl support, but basically it's FreeBSD native stuff. I'm importing this into emulators category for convevience' sake. Check it out.
Diffstat (limited to 'emulators/rtc/Makefile')
-rw-r--r--emulators/rtc/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/emulators/rtc/Makefile b/emulators/rtc/Makefile
new file mode 100644
index 0000000..c9ad042
--- /dev/null
+++ b/emulators/rtc/Makefile
@@ -0,0 +1,59 @@
+# New ports collection makefile for: rtc
+# Version required: 2000.03.28
+# Date created: 28 March 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+DISTNAME= rtc-2000.03.28
+CATEGORIES= emulators linux
+MASTER_SITES= # none
+DISTFILES= # none
+
+MAINTAINER= freebsd-emulation@FreeBSD.org
+
+WRKSRC= ${WRKDIR}/files
+
+LINUX_DIR= /compat/linux
+KMODDIR= ${PREFIX}/modules
+
+CDEV_MAJOR= 202
+DEVFILE= /dev/rtc
+
+STARTUP= rtc.sh
+MAKE_ARGS= KMODDIR="${KMODDIR}" CDEV_MAJOR="${CDEV_MAJOR}"
+PLIST_SUB= DEVFILE="${DEVFILE}" CDEV_MAJOR="${CDEV_MAJOR}" RTC_H_DIR="${RTC_H_DIR}"
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 400013
+BROKEN= "Systems prior to 400013 is out of support"
+.endif
+
+.if !exists(/sys/Makefile)
+BROKEN= "Kernel source files required"
+.endif
+
+do-fetch:
+ @${ECHO} "I don't fetch anything..."
+
+do-extract:
+ @${MKDIR} ${WRKSRC}
+ @${SED} -e 's,@@PREFIX@@,${PREFIX},' \
+ ${FILESDIR}/${STARTUP} > ${WRKDIR}/${STARTUP}
+ @cd ${FILESDIR} && ${CP} Makefile *.[ch] ${WRKSRC}/
+
+pre-install:
+ ${MKDIR} ${KMODDIR}
+
+post-install:
+ ${RM} -f ${DEVFILE}
+ mknod ${DEVFILE} c ${CDEV_MAJOR} 0
+ ${INSTALL_DATA} ${WRKSRC}/rtc.h ${PREFIX}/include/
+ ${MKDIR} ${PREFIX}/share/examples/rtc
+ ${INSTALL_DATA} ${WRKSRC}/test.c ${PREFIX}/share/examples/rtc/
+ @${ECHO} "Installing ${PREFIX}/etc/rc.d/${STARTUP} startup file.";
+ ${INSTALL_SCRIPT} ${WRKDIR}/${STARTUP} ${PREFIX}/etc/rc.d/
+
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud