diff options
author | Martin Matuska <mm@FreeBSD.org> | 2009-12-02 18:50:38 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2009-12-02 18:50:38 +0000 |
commit | a4b5f09a0fae7409e7b9f734365fd2687ce6401b (patch) | |
tree | d172f8bcd6a52b35866286a85517ce4c01140e72 /comms | |
parent | 0196b197b8892e23087eb90718eb8a5a89852b07 (diff) | |
download | ports-a4b5f09a0fae7409e7b9f734365fd2687ce6401b.tar.gz ports-a4b5f09a0fae7409e7b9f734365fd2687ce6401b.zip |
Notes
Diffstat (limited to 'comms')
-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 |