summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-09-14 17:03:27 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-09-14 17:03:27 +0000
commitb5e5d7565afe17a23cd4a6dff236ca59fe9be913 (patch)
treea28ecaa37a91888ca953fa376d92b1d67936e716 /sys-freebsd
parentRemoved ~x86-fbsd, which doesn't exist in perl-core/File-Temp-0.17 (diff)
downloadgentoo-2-b5e5d7565afe17a23cd4a6dff236ca59fe9be913.tar.gz
gentoo-2-b5e5d7565afe17a23cd4a6dff236ca59fe9be913.tar.bz2
gentoo-2-b5e5d7565afe17a23cd4a6dff236ca59fe9be913.zip
Move syscons script and configuration out of baselayout and in here.
(Portage version: 2.1.1)
Diffstat (limited to 'sys-freebsd')
-rw-r--r--sys-freebsd/freebsd-usbin/ChangeLog6
-rw-r--r--sys-freebsd/freebsd-usbin/files/syscons.confd14
-rwxr-xr-xsys-freebsd/freebsd-usbin/files/syscons.initd62
-rw-r--r--sys-freebsd/freebsd-usbin/freebsd-usbin-6.1-r1.ebuild5
4 files changed, 84 insertions, 3 deletions
diff --git a/sys-freebsd/freebsd-usbin/ChangeLog b/sys-freebsd/freebsd-usbin/ChangeLog
index 459017ac232f..297f6475d45f 100644
--- a/sys-freebsd/freebsd-usbin/ChangeLog
+++ b/sys-freebsd/freebsd-usbin/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-freebsd/freebsd-usbin
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.14 2006/07/27 01:31:47 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.15 2006/09/14 17:03:27 flameeyes Exp $
+
+ 14 Sep 2006; Diego Pettenò <flameeyes@gentoo.org> +files/syscons.confd,
+ +files/syscons.initd, freebsd-usbin-6.1-r1.ebuild:
+ Move syscons script and configuration out of baselayout and in here.
27 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
-freebsd-usbin-6.0-r3.ebuild:
diff --git a/sys-freebsd/freebsd-usbin/files/syscons.confd b/sys-freebsd/freebsd-usbin/files/syscons.confd
new file mode 100644
index 000000000000..a6d7cd4ef839
--- /dev/null
+++ b/sys-freebsd/freebsd-usbin/files/syscons.confd
@@ -0,0 +1,14 @@
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/syscons.confd,v 1.1 2006/09/14 17:03:27 flameeyes Exp $
+# Example syscons config file. This is the place to set things like keymap, etc.
+
+# Set the keymap to "uk.iso".
+#KEYMAP="uk.iso"
+
+# Set the keyboard rate to 250ms delay, and 34 repeat rate.
+#KEYRATE="250.34"
+
+# Change the behaviour of F-unction keys (see kbdcontrol(1)).
+#KEYCHANGE="10 'ssh myhost'"
+
+# See vidcontrol(1) -t
+#BLANKTIME="off"
diff --git a/sys-freebsd/freebsd-usbin/files/syscons.initd b/sys-freebsd/freebsd-usbin/files/syscons.initd
new file mode 100755
index 000000000000..2ac87695d263
--- /dev/null
+++ b/sys-freebsd/freebsd-usbin/files/syscons.initd
@@ -0,0 +1,62 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/syscons.initd,v 1.1 2006/09/14 17:03:27 flameeyes Exp $
+
+start() {
+ ebegin "Configuring system console"
+
+ # XXX: This should handle serial consoles.
+
+ # Set the keymap.
+ if [ -n "${KEYMAP}" ]; then
+ einfo "Setting keymap to ${KEYMAP}"
+ kbdcontrol -l ${KEYMAP}
+ fi
+
+ if [ -n "${KEYRATE}" ]; then
+ einfo "Setting keyrate to ${KEYRATE}"
+ kbdcontrol -r ${KEYRATE}
+ fi
+
+ if [ -n "${KEYCHANGE}" ]; then
+ einfo "Changing function keys..."
+ while read $a $b; do
+ kbdcontrol -f "$a" "$b"
+ done <<< ${KEYCHANGE}
+ fi
+
+ if [ -n "${CURSOR}" ]; then
+ einfo "Setting cursor"
+ vidcontrol -c ${CURSOR}
+ fi
+
+ einfo "Setting custom fonts..."
+ # Nothing to see here, move along...
+ for v in FONT8x{16,14,8}; do
+ if [ -n "${!v}" ]; then
+ vidcontrol -f ${v##FONT} ${!v}
+ fi
+ done
+
+ if [ -n "${BLANKTIME}" ]; then
+ einfo "Setting blanktime"
+ vidcontrol -t ${BLANKTIME}
+ fi
+
+ if [ -n "${SAVER}" ]; then
+ for i in `kldstat | awk '$5 ~ "^splash_.*$" { print $5 }'`; do
+ kldunload ${i}
+ done
+ kldstat -v | grep -q _saver || kldload ${SAVER}_saver
+ fi
+
+ if [ -n "${KBDFLAGS}" ]; then
+ einfo "Setting keyboard flags for all screens"
+ for ttyv in /dev/ttyv*; do
+ kbdcontrol ${KBDFLAGS} <${ttyv} &>${ttyv}
+ done
+ fi
+
+ eend
+}
diff --git a/sys-freebsd/freebsd-usbin/freebsd-usbin-6.1-r1.ebuild b/sys-freebsd/freebsd-usbin/freebsd-usbin-6.1-r1.ebuild
index 01e43b74f1b2..9beedc63542f 100644
--- a/sys-freebsd/freebsd-usbin/freebsd-usbin-6.1-r1.ebuild
+++ b/sys-freebsd/freebsd-usbin/freebsd-usbin-6.1-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-6.1-r1.ebuild,v 1.1 2006/06/01 11:29:32 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-6.1-r1.ebuild,v 1.2 2006/09/14 17:03:27 flameeyes Exp $
inherit bsdmk freebsd flag-o-matic eutils
@@ -81,6 +81,7 @@ REMOVE_SUBDIRS="
src_unpack() {
freebsd_src_unpack
+
ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
ln -s "/usr/include" "${WORKDIR}/include"
}
@@ -97,7 +98,7 @@ src_install() {
# in the wrong place, just put it in the doc directory.
mkinstall DOCDIR=/usr/share/doc/${PF} || die "Install failed"
- for util in nfs nfsmount rpcbind syslogd moused powerd; do
+ for util in nfs nfsmount rpcbind syslogd moused powerd syscons; do
newinitd ${FILESDIR}/${util}.initd ${util}
[[ -e ${FILESDIR}/${util}.confd ]] && \
newconfd ${FILESDIR}/${util}.confd ${util}