diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2000-04-14 20:13:55 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2000-04-14 20:13:55 +0000 |
commit | 688db8336398d4fb4c8c424602af10926082afb6 (patch) | |
tree | 02b3456454e232bef30ca4bc1c3ef31011464b39 /emulators/rtc | |
parent | /usr/compat -> /compat, peter's commit to osf1_base reminded me I had this. (diff) |
Move /dev/rtc to ${LINUX_DIR}/dev/rtc, since we don't need rtc except
for running Linux stuff.
Suggested by: Nick Sayer
Notes
Notes:
svn path=/head/; revision=27544
Diffstat (limited to 'emulators/rtc')
-rw-r--r-- | emulators/rtc/Makefile | 9 | ||||
-rw-r--r-- | emulators/rtc/pkg-plist | 7 |
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 |