aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorsada <sada@FreeBSD.org>1998-12-28 02:04:33 +0800
committersada <sada@FreeBSD.org>1998-12-28 02:04:33 +0800
commit82ac023306de718da9c077e5e54157749da7ba94 (patch)
tree8062d456dbdfe1db7d9e2b5f79fa432c38e5dea6 /sysutils
parentcd4c73a2b75e006d0d2416830a10919a707fd9e4 (diff)
downloadfreebsd-ports-gnome-82ac023306de718da9c077e5e54157749da7ba94.tar.gz
freebsd-ports-gnome-82ac023306de718da9c077e5e54157749da7ba94.tar.zst
freebsd-ports-gnome-82ac023306de718da9c077e5e54157749da7ba94.zip
Moved from `misc' category.
-- This package will setup your PC to use serial port COM1 as its console device. Note that this is a special package and you should pkg_add this on a newly installed system. This is intended to install from installer floppy disk on a system without its own display nor keyboard.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/comconsole/Makefile22
-rw-r--r--sysutils/comconsole/distinfo1
-rw-r--r--sysutils/comconsole/pkg-comment1
-rw-r--r--sysutils/comconsole/pkg-deinstall29
-rw-r--r--sysutils/comconsole/pkg-descr8
-rw-r--r--sysutils/comconsole/pkg-install29
-rw-r--r--sysutils/comconsole/pkg-plist1
7 files changed, 91 insertions, 0 deletions
diff --git a/sysutils/comconsole/Makefile b/sysutils/comconsole/Makefile
new file mode 100644
index 000000000000..f67048133523
--- /dev/null
+++ b/sysutils/comconsole/Makefile
@@ -0,0 +1,22 @@
+# New ports collection makefile for: comconsole
+# Version required: 0.1
+# Date created: 27 Dec 1998
+# Whom: SADA Kenji <sada@FreeBSD.ORG>
+#
+# $Id: Makefile,v 1.1.1.1 1998/12/26 17:16:47 sada Exp $
+#
+
+DISTNAME= comconsole-0.1
+CATEGORIES= sysutils
+MASTER_SITES= #
+DISTFILES=
+
+MAINTAINER= sada@FreeBSD.ORG
+
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+
+do-install:
+ @${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>
diff --git a/sysutils/comconsole/distinfo b/sysutils/comconsole/distinfo
new file mode 100644
index 000000000000..792d6005489e
--- /dev/null
+++ b/sysutils/comconsole/distinfo
@@ -0,0 +1 @@
+#
diff --git a/sysutils/comconsole/pkg-comment b/sysutils/comconsole/pkg-comment
new file mode 100644
index 000000000000..c89c16b88188
--- /dev/null
+++ b/sysutils/comconsole/pkg-comment
@@ -0,0 +1 @@
+Setup your PC to use serial port COM1 as its console device.
diff --git a/sysutils/comconsole/pkg-deinstall b/sysutils/comconsole/pkg-deinstall
new file mode 100644
index 000000000000..c8e021d4a689
--- /dev/null
+++ b/sysutils/comconsole/pkg-deinstall
@@ -0,0 +1,29 @@
+#!/bin/sh
+[ "x$1" = "x" ] && exit 1
+if [ "x$2" = "xPOST-INSTALL" ]; then
+ cat <<'EOF' >/boot.config
+-P
+EOF
+ mv -f /etc/ttys /etc/ttys.last
+ awk -f - /etc/ttys.last <<'EOF' >/etc/ttys
+/^console/ {
+ print "console \"/usr/libexec/getty std.9600\" vt100 on secure"
+ next
+}
+{
+ print
+}
+EOF
+fi
+if [ "x$2" = "xDEINSTALL" ]; then
+ mv -f /etc/ttys /etc/ttys.last
+ awk -f - /etc/ttys.last <<'EOF' >/etc/ttys
+/^console/ {
+ print "console none unknown off secure"
+ next
+}
+{
+ print
+}
+EOF
+fi
diff --git a/sysutils/comconsole/pkg-descr b/sysutils/comconsole/pkg-descr
new file mode 100644
index 000000000000..ba7ee41f24c7
--- /dev/null
+++ b/sysutils/comconsole/pkg-descr
@@ -0,0 +1,8 @@
+This package will setup your PC to use serial port COM1 as its console
+device.
+Note that this is a special package and you should pkg_add this on a newly
+installed system. This is intended to install from installer floppy disk
+on a system without its own display nor keyboard.
+
+- SADA Kenji
+sada@FreeBSD.ORG
diff --git a/sysutils/comconsole/pkg-install b/sysutils/comconsole/pkg-install
new file mode 100644
index 000000000000..c8e021d4a689
--- /dev/null
+++ b/sysutils/comconsole/pkg-install
@@ -0,0 +1,29 @@
+#!/bin/sh
+[ "x$1" = "x" ] && exit 1
+if [ "x$2" = "xPOST-INSTALL" ]; then
+ cat <<'EOF' >/boot.config
+-P
+EOF
+ mv -f /etc/ttys /etc/ttys.last
+ awk -f - /etc/ttys.last <<'EOF' >/etc/ttys
+/^console/ {
+ print "console \"/usr/libexec/getty std.9600\" vt100 on secure"
+ next
+}
+{
+ print
+}
+EOF
+fi
+if [ "x$2" = "xDEINSTALL" ]; then
+ mv -f /etc/ttys /etc/ttys.last
+ awk -f - /etc/ttys.last <<'EOF' >/etc/ttys
+/^console/ {
+ print "console none unknown off secure"
+ next
+}
+{
+ print
+}
+EOF
+fi
diff --git a/sysutils/comconsole/pkg-plist b/sysutils/comconsole/pkg-plist
new file mode 100644
index 000000000000..b3058eb760a2
--- /dev/null
+++ b/sysutils/comconsole/pkg-plist
@@ -0,0 +1 @@
+@comment We've nothing to do here.