aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-07-03 00:31:33 +0800
committerdwcjr <dwcjr@FreeBSD.org>2002-07-03 00:31:33 +0800
commit8204663dd5a1baa64515dd22c2da1ed74a966bc7 (patch)
tree5f1e8b327f0b2cd6b4c7367a1d19acdb3116847f /comms
parent07df9656f54a1e967cf19963fa2ce7e7288fe045 (diff)
downloadfreebsd-ports-gnome-8204663dd5a1baa64515dd22c2da1ed74a966bc7.tar.gz
freebsd-ports-gnome-8204663dd5a1baa64515dd22c2da1ed74a966bc7.tar.zst
freebsd-ports-gnome-8204663dd5a1baa64515dd22c2da1ed74a966bc7.zip
Add missing startup script
Submitted by: author Approved by: maintainer
Diffstat (limited to 'comms')
-rw-r--r--comms/ltmdm/Makefile2
-rw-r--r--comms/ltmdm/files/ltmdm.sh61
2 files changed, 62 insertions, 1 deletions
diff --git a/comms/ltmdm/Makefile b/comms/ltmdm/Makefile
index a4cdd2fff1a4..4174e6311b46 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 000000000000..02cc84822766
--- /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
+================================================================
+
+--
+