mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Unbreak port and make it a little bit more package friendly.
Approved by: portmgr (kris)
This commit is contained in:
parent
4d74136dd7
commit
0ac537d77c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156811
2 changed files with 13 additions and 6 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= rtc
|
||||
PORTVERSION= 2004.02.24.1
|
||||
PORTREVISION= 7
|
||||
PORTREVISION= 8
|
||||
CATEGORIES= emulators linux
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
@ -15,8 +15,6 @@ DISTFILES= # none
|
|||
MAINTAINER= freebsd-emulation@FreeBSD.org
|
||||
COMMENT= Kernel module which provides /dev/rtc device support
|
||||
|
||||
BROKEN= Incomplete pkg-plist
|
||||
|
||||
WRKSRC= ${WRKDIR}/files
|
||||
|
||||
NO_FETCH= yes
|
||||
|
@ -29,7 +27,8 @@ DEVDIR= ${LINUXBASE}/dev
|
|||
|
||||
STARTUP= rtc.sh
|
||||
MAKE_ARGS= KMODDIR="${KMODDIR}" CDEV_MAJOR="${CDEV_MAJOR}"
|
||||
PLIST_SUB= DEVDIR="${DEVDIR}" CDEV_MAJOR="${CDEV_MAJOR}" RTC_H_DIR="${RTC_H_DIR}"
|
||||
PLIST_SUB= DEVDIR="${DEVDIR}" CDEV_MAJOR="${CDEV_MAJOR}" \
|
||||
RTC_H_DIR="${RTC_H_DIR}"
|
||||
|
||||
SRC_BASE?= /usr/src
|
||||
|
||||
|
@ -39,6 +38,12 @@ SRC_BASE?= /usr/src
|
|||
IGNORE= needs a system more recent than 400013
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} < 500104
|
||||
PLIST_SUB+= MAKEDEV=""
|
||||
.else
|
||||
PLIST_SUB+= MAKEDEV="@comment "
|
||||
.endif
|
||||
|
||||
.if !exists(${SRC_BASE}/sys/Makefile)
|
||||
IGNORE= needs kernel source files
|
||||
.endif
|
||||
|
@ -53,8 +58,6 @@ pre-install:
|
|||
${MKDIR} ${KMODDIR}
|
||||
|
||||
post-install:
|
||||
${RM} -f ${DEVDIR}/rtc
|
||||
-mknod /dev/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/
|
||||
|
|
|
@ -2,6 +2,10 @@ etc/rc.d/rtc.sh
|
|||
include/rtc.h
|
||||
modules/rtc.ko
|
||||
%%EXAMPLESDIR%%/test.c
|
||||
%%MAKEDEV%%@exec mknod /dev/rtc c %%CDEV_MAJOR%% 0
|
||||
@exec rm -f %%DEVDIR%%/rtc
|
||||
@exec /usr/sbin/kldxref %D/modules
|
||||
@unexec /usr/sbin/kldxref %D/modules
|
||||
@dirrm %%EXAMPLESDIR%%
|
||||
@dirrmtry modules
|
||||
@unexec rm -f /dev/rtc
|
||||
|
|
Loading…
Add table
Reference in a new issue