diff options
author | mm <mm@FreeBSD.org> | 2009-12-03 02:50:38 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2009-12-03 02:50:38 +0800 |
commit | e4056f22148d7051e5976a62d0a685845e290de1 (patch) | |
tree | 59e3260efc91b329ddb0889ba4d9c0d676b83dac /comms/smstools3 | |
parent | 7aaeeacc5016a917b40fe24b445d7c0e8d215c20 (diff) | |
download | freebsd-ports-gnome-e4056f22148d7051e5976a62d0a685845e290de1.tar.gz freebsd-ports-gnome-e4056f22148d7051e5976a62d0a685845e290de1.tar.zst freebsd-ports-gnome-e4056f22148d7051e5976a62d0a685845e290de1.zip |
- Use /dev/cuau0 as default COM port in FreeBSD 8 and higher
- Bump PORTREVISION
PR: ports/140914
Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru>
Diffstat (limited to 'comms/smstools3')
-rw-r--r-- | comms/smstools3/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/comms/smstools3/Makefile b/comms/smstools3/Makefile index 38366e81da46..03747dc4f7f3 100644 --- a/comms/smstools3/Makefile +++ b/comms/smstools3/Makefile @@ -7,6 +7,7 @@ PORTNAME= smstools PORTVERSION= 3.1.5 +PORTREVISION= 1 CATEGORIES= comms MASTER_SITES= http://smstools3.kekekasvi.com/packages/ DISTNAME= smstools3-${PORTVERSION} @@ -62,11 +63,16 @@ CFLAGS+= -I${LOCALBASE}/include .else CFLAGS+= -DNOSTATS .endif +.if ${OSVERSION} < 800045 +SMSTOOLS_DEFAULT_COMPORT?= /dev/cuad0 +.else +SMSTOOLS_DEFAULT_COMPORT?= /dev/cuau0 +.endif post-patch: @${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile \ ${WRKSRC}/install.sh ${WRKSRC}/src/smsd_cfg.c - @${REINPLACE_CMD} 's|/dev/ttyS0|/dev/cuad0|g' \ + @${REINPLACE_CMD} 's|/dev/ttyS0|${SMSTOOLS_DEFAULT_COMPORT}|g' \ ${WRKSRC}/examples/smsd.conf.easy \ ${WRKSRC}/examples/smsd.conf.full \ ${WRKSRC}/examples/smsd.conf.non-root |