diff options
-rw-r--r-- | comms/ltmdm/Makefile | 2 | ||||
-rw-r--r-- | comms/ltmdm/files/ltmdm.sh | 61 |
2 files changed, 62 insertions, 1 deletions
diff --git a/comms/ltmdm/Makefile b/comms/ltmdm/Makefile index a4cdd2fff1a..4174e6311b4 100644 --- a/comms/ltmdm/Makefile +++ b/comms/ltmdm/Makefile @@ -7,7 +7,7 @@ PORTNAME= ltmdm PORTVERSION= 1.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= comms MASTER_SITES= http://www.dons.net.au/~darius/ \ http://www.csociety.org/~will/ \ diff --git a/comms/ltmdm/files/ltmdm.sh b/comms/ltmdm/files/ltmdm.sh new file mode 100644 index 00000000000..02cc8482276 --- /dev/null +++ b/comms/ltmdm/files/ltmdm.sh @@ -0,0 +1,61 @@ +On Tue, 25 Jun 2002 21:16:44 -0500, "David W. Chapman Jr." wrote: +> > On Tue, 25 Jun 2002 20:07:37 -0500, "David W. Chapman Jr." wrote: +> > > +> > > > ================================================================ +> > > > ===> Installing for ltmdm-1.4_2 +> > > > cannot open /usr/ports/comms/ltmdm/files/ltmdm.sh: no such file +> +> This error is because ltmdm.sh isn't in files/ but work/ltmdm.sh +> +> The maintainer is working on a fix for this. I remember now why I +> didn't add ltmdm.sh as it is included in the source tarball. +> + +Please commit files/ltmdm.sh which I sent on 26 Jun 2002 10:32:04 +0900. + +I talked with the maintainer about this problem. + + + +ports/comms/ltmdm/files/ltmdm.sh (new) +================================================================ +#!/bin/sh + +PREFIX=%%PREFIX%% +MAJOR=%%MAJOR%% + +if mount -p | awk '{print $3}'| grep -q devfs ; then + HAVEDEVFS=YES +else + HAVEDEVFS=NO +fi + +case "$1" in + stop) + if [ "${HAVEDEVFS}" = "NO" ]; then + rm -f /dev/cual0 /dev/cuail0 /dev/cuall0 /dev/ttyl0 /dev/ttyil0 /dev/ttyll0 + fi + kldstat -n ltmdm 2>/dev/null >/dev/null && kldunload ltmdm + ;; + start|restart) + $0 stop + sleep 1 + if [ "${HAVEDEVFS}" = "NO" ]; then + umask 7 + mknod /dev/cual0 c ${MAJOR} 128 uucp:dialer + mknod /dev/cuail0 c ${MAJOR} 160 uucp:dialer + mknod /dev/cuall0 c ${MAJOR} 192 uucp:dialer + umask 77 + mknod /dev/ttyl0 c ${MAJOR} 0 root:wheel + mknod /dev/ttyil0 c ${MAJOR} 32 root:wheel + mknod /dev/ttyll0 c ${MAJOR} 64 root:wheel + fi + + kldload ${PREFIX}/share/ltmdm/ltmdm.ko + echo -n ' ltmdm' + ;; +esac +================================================================ + +-- + |