aboutsummaryrefslogtreecommitdiff
path: root/emulators/rtc
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-04-14 20:13:55 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-04-14 20:13:55 +0000
commit688db8336398d4fb4c8c424602af10926082afb6 (patch)
tree02b3456454e232bef30ca4bc1c3ef31011464b39 /emulators/rtc
parentaa16e93c2ab8764323dda6d1cafaf1b265bf2acf (diff)
downloadports-688db8336398d4fb4c8c424602af10926082afb6.tar.gz
ports-688db8336398d4fb4c8c424602af10926082afb6.zip
Notes
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