aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/rtc
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-04-15 04:13:55 +0800
committerknu <knu@FreeBSD.org>2000-04-15 04:13:55 +0800
commitbffa9a3fe5b2ad02d493cb2b885f79f5c0be6457 (patch)
tree2958b5366dc034238303bb52a6fe13817136f068 /emulators/rtc
parent5d17a9d8581b4b89c4dff9d8c3c118beca50a823 (diff)
downloadfreebsd-ports-gnome-bffa9a3fe5b2ad02d493cb2b885f79f5c0be6457.tar.gz
freebsd-ports-gnome-bffa9a3fe5b2ad02d493cb2b885f79f5c0be6457.tar.zst
freebsd-ports-gnome-bffa9a3fe5b2ad02d493cb2b885f79f5c0be6457.zip
Move /dev/rtc to ${LINUX_DIR}/dev/rtc, since we don't need rtc except
for running Linux stuff. Suggested by: Nick Sayer
Diffstat (limited to 'emulators/rtc')
-rw-r--r--emulators/rtc/Makefile9
-rw-r--r--emulators/rtc/pkg-plist7
2 files changed, 9 insertions, 7 deletions
diff --git a/emulators/rtc/Makefile b/emulators/rtc/Makefile
index b23a8edc7f76..07c8364ef2b4 100644
--- a/emulators/rtc/Makefile
+++ b/emulators/rtc/Makefile
@@ -19,11 +19,11 @@ LINUX_DIR= /compat/linux
KMODDIR= ${PREFIX}/modules
CDEV_MAJOR= 202
-DEVFILE= /dev/rtc
+DEVDIR= ${LINUX_DIR}/dev
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}"
+PLIST_SUB= DEVDIR="${DEVDIR}" CDEV_MAJOR="${CDEV_MAJOR}" RTC_H_DIR="${RTC_H_DIR}"
.include <bsd.port.pre.mk>
@@ -46,10 +46,11 @@ do-extract:
pre-install:
${MKDIR} ${KMODDIR}
+ ${MKDIR} ${DEVDIR}
post-install:
- ${RM} -f ${DEVFILE}
- mknod ${DEVFILE} c ${CDEV_MAJOR} 0
+ ${RM} -f ${DEVDIR}/rtc
+ mknod ${DEVDIR}/rtc 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/
diff --git a/emulators/rtc/pkg-plist b/emulators/rtc/pkg-plist
index 819306fab478..6c6db94444a0 100644
--- a/emulators/rtc/pkg-plist
+++ b/emulators/rtc/pkg-plist
@@ -3,6 +3,7 @@ include/rtc.h
modules/rtc.ko
share/examples/rtc/test.c
@dirrm share/examples/rtc
-@exec rm -f %%DEVFILE%%
-@exec mknod %%DEVFILE%% c %%CDEV_MAJOR%% 0
-@unexec rm -f %%DEVFILE%%
+@exec rm -f %%DEVDIR%%/rtc
+@exec mkdir -p %%DEVDIR%%
+@exec mknod %%DEVDIR%%/rtc c %%CDEV_MAJOR%% 0
+@unexec rm -f %%DEVDIR%%/rtc