aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>2000-04-05 16:51:22 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>2000-04-05 16:51:22 +0000
commit7ca39f41581ff1911fd5c0831801c864a2cbf538 (patch)
tree957e92f39b17b2d2e2f925402f4ed90387ca5514
parent37edf305e4fdee1546be7c2066550eddf365d696 (diff)
downloadnumlock-7ca39f41581ff1911fd5c0831801c864a2cbf538.tar
numlock-7ca39f41581ff1911fd5c0831801c864a2cbf538.tar.gz
numlock-7ca39f41581ff1911fd5c0831801c864a2cbf538.tar.bz2
numlock-7ca39f41581ff1911fd5c0831801c864a2cbf538.tar.xz
numlock-7ca39f41581ff1911fd5c0831801c864a2cbf538.zip
"Seethechangelog"
-rw-r--r--.cvsignore1
-rw-r--r--Makefile4
-rw-r--r--enable_X11_numlock.113
-rwxr-xr-xnumlock62
-rw-r--r--numlock.spec12
5 files changed, 25 insertions, 67 deletions
diff --git a/.cvsignore b/.cvsignore
new file mode 100644
index 0000000..88da587
--- /dev/null
+++ b/.cvsignore
@@ -0,0 +1 @@
+enable_X11_numlock
diff --git a/Makefile b/Makefile
index a919495..9b138e0 100644
--- a/Makefile
+++ b/Makefile
@@ -15,10 +15,12 @@ clean:
rm -f enable_X11_numlock core *.o
install: all
- install -d $(TOP)/usr/X11R6/bin/
+ install -d $(TOP)/usr/X11R6/{bin,man/man1}/
install -d $(TOP)/etc/{profile.d,rc.d/init.d}/
install -m755 enable_X11_numlock $(TOP)/usr/X11R6/bin
+ install -m755 enable_X11_numlock.1 $(TOP)/usr/X11R6/man/man1/
+
install -m755 numlock $(TOP)/etc/rc.d/init.d/
install -m755 numlock.sh $(TOP)/etc/profile.d/
dis:
diff --git a/enable_X11_numlock.1 b/enable_X11_numlock.1
new file mode 100644
index 0000000..5db11d8
--- /dev/null
+++ b/enable_X11_numlock.1
@@ -0,0 +1,13 @@
+.TH Enable_X11_Numlock "5 April 2000" "Linux Mandrake Manual"
+.SH NAME
+enable_X11_numlock \- Enable X11 numlock
+.SH SYNOPSIS
+.BI enable_X11_numlock
+.SH DESCRIPTION
+The command
+.B enable_X11_numlock
+makes active the numlock of X, that is no more no less :).
+
+.SH "SEE ALSO"
+
+.BR X (1).
diff --git a/numlock b/numlock
deleted file mode 100755
index f196ff0..0000000
--- a/numlock
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/sh
-#
-# Startup script for NumLock
-#
-# description: Locks NumLock key at init runlevel change
-# chkconfig: 345 85 15
-
-# Source function library.
-. /etc/rc.d/init.d/functions
-
-# The following file make bash to relock the numlock key when logging
-# since login unlock it.
-#SYSCONF_FILE=/var/lock/subsys/NumLock
-SYSCONF_FILE=/etc/sysconfig/NumLock
-
-# See how we were called.
-case "$1" in
- start)
- echo -n "Starting NumLock: "
- echo_success
- echo
- touch $SYSCONF_FILE
-
- for tty in /dev/tty[1-8]; do
- setleds -D +num < $tty
- done
-
- ;;
- stop)
- echo -n "Disabling NumLocks on ttys: "
- for tty in /dev/tty[1-8]; do
- setleds -D -num < $tty
- done
- echo_success
- echo
- rm -f $SYSCONF_FILE
- ;;
- status)
-# status NumLock
-# echo "dead status as reported is normal since NumLock doesn't need to daemonize"
- if [ -f $SYSCONF_FILE ]
- then
- echo "NumLock is enabled"
- else
- echo "NumLock is disabled"
- fi
- ;;
- restart)
- $0 stop
- $0 start
- ;;
- reload)
- echo -n "Reloading NumLock: "
- $0 start
- echo
- ;;
- *)
- echo "Usage: $0 {start|stop|restart|reload|status}"
- exit 1
-esac
-
-exit 0
diff --git a/numlock.spec b/numlock.spec
index e3e1140..340fb4e 100644
--- a/numlock.spec
+++ b/numlock.spec
@@ -13,8 +13,6 @@ Group: System/Configuration/Boot and Init
# http://www.linuxmandrake.com/en/cvs.php3)
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-buildroot
-BuildArchitectures: noarch
-Prefix: /
Requires: fileutils console-tools
Obsoletes: NumLock
@@ -48,11 +46,17 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(755,root,root)
-/etc/rc.d/init.d/%{name}
-/etc/profile.d/%{name}.sh
+%config /etc/rc.d/init.d/%{name}
+%config /etc/profile.d/%{name}.sh
/usr/X11R6/bin/*
+/usr/X11R6/man/*/*
%changelog
+* Wed Apr 5 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.0-6mdk
+- Remove the norach since now we have enable_X11_numlock.
+- Cvs import.
+- Add enable_X11_numlock program (thanks gégé).
+
* Fri Mar 31 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0-5mdk
- new groups