Date: Sun, 9 Jan 2000 23:24:15 +0900 (JST) From: sanpei@sanpei.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/16006: new port: x11/xkbctrl (display and manipulate XKB keyboard controls from commandline) Message-ID: <200001091424.XAA25397@lavender.yy.cs.keio.ac.jp>
next in thread | raw e-mail | index | archive | help
>Number: 16006 >Category: ports >Synopsis: new port: x11/xkbctrl (display and manipulate XKB keyboard controls from commandline) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jan 9 06:30:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: MIHIRA Yoshiro >Release: FreeBSD 4.0-CURRENT i386 >Organization: Keio Univ. >Environment: >Description: Hi. I ported x11/xkbctrl (display and manipulate XKB keyboard controls from command line). It can set keyboard delay and repeat rates with XKB/X enviroment: Thank you. >How-To-Repeat: >Fix: #!/bin/sh # This is a shell archive (produced by GNU sharutils 4.2). # To extract the files from this archive, save it to some FILE, remove # everything before the `!/bin/sh' line above, then type `sh FILE'. # # Made on 2000-01-09 23:23 JST by <sanpei@lavender.yy.cs.keio.ac.jp>. # Source directory was `/tmp/ports/ports/x11'. # # Existing files will *not* be overwritten unless `-c' is specified. # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 63 -rw-r--r-- xkbctrl/pkg/COMMENT # 225 -rw-r--r-- xkbctrl/pkg/DESCR # 12 -rw-r--r-- xkbctrl/pkg/PLIST # 723 -rw-r--r-- xkbctrl/Makefile # 102 -rw-r--r-- xkbctrl/files/md5 # 2328 -rw-r--r-- xkbctrl/patches/patch-aa # 250 -rw-r--r-- xkbctrl/patches/patch-ab # save_IFS="${IFS}" IFS="${IFS}:" gettext_dir=FAILED locale_dir=FAILED first_param="$1" for dir in $PATH do if test "$gettext_dir" = FAILED && test -f $dir/gettext \ && ($dir/gettext --version >/dev/null 2>&1) then set `$dir/gettext --version 2>&1` if test "$3" = GNU then gettext_dir=$dir fi fi if test "$locale_dir" = FAILED && test -f $dir/shar \ && ($dir/shar --print-text-domain-dir >/dev/null 2>&1) then locale_dir=`$dir/shar --print-text-domain-dir` fi done IFS="$save_IFS" if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED then echo=echo else TEXTDOMAINDIR=$locale_dir export TEXTDOMAINDIR TEXTDOMAIN=sharutils export TEXTDOMAIN echo="$gettext_dir/gettext -s" fi touch -am 1231235999 $$.touch >/dev/null 2>&1 if test ! -f 1231235999 && test -f $$.touch; then shar_touch=touch else shar_touch=: echo $echo 'WARNING: not restoring timestamps. Consider getting and' $echo "installing GNU \`touch', distributed in GNU File Utilities..." echo fi rm -f 1231235999 $$.touch # if mkdir _sh25216; then $echo 'x -' 'creating lock directory' else $echo 'failed to create lock directory' exit 1 fi # ============= xkbctrl/pkg/COMMENT ============== if test ! -d 'xkbctrl'; then $echo 'x -' 'creating directory' 'xkbctrl' mkdir 'xkbctrl' fi if test ! -d 'xkbctrl/pkg'; then $echo 'x -' 'creating directory' 'xkbctrl/pkg' mkdir 'xkbctrl/pkg' fi if test -f 'xkbctrl/pkg/COMMENT' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'xkbctrl/pkg/COMMENT' '(file already exists)' else $echo 'x -' extracting 'xkbctrl/pkg/COMMENT' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'xkbctrl/pkg/COMMENT' && display and manipulate XKB keyboard controls from command line SHAR_EOF $shar_touch -am 01092322100 'xkbctrl/pkg/COMMENT' && chmod 0644 'xkbctrl/pkg/COMMENT' || $echo 'restore of' 'xkbctrl/pkg/COMMENT' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'xkbctrl/pkg/COMMENT:' 'MD5 check failed' 9584cbd118e29d51f03f46a7ae65ed98 xkbctrl/pkg/COMMENT SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'xkbctrl/pkg/COMMENT'`" test 63 -eq "$shar_count" || $echo 'xkbctrl/pkg/COMMENT:' 'original size' '63,' 'current size' "$shar_count!" fi fi # ============= xkbctrl/pkg/DESCR ============== if test -f 'xkbctrl/pkg/DESCR' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'xkbctrl/pkg/DESCR' '(file already exists)' else $echo 'x -' extracting 'xkbctrl/pkg/DESCR' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'xkbctrl/pkg/DESCR' && display and manipulate XKB keyboard controls from command-line X You can set keyboard delay and repeat rates with XKB/X enviroment: X % xkbctrl +repeat 200 20 X command help: X % xkbctrl -help X MIHIRA Yoshiro <sanpei@sanpei.org> SHAR_EOF $shar_touch -am 01092322100 'xkbctrl/pkg/DESCR' && chmod 0644 'xkbctrl/pkg/DESCR' || $echo 'restore of' 'xkbctrl/pkg/DESCR' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'xkbctrl/pkg/DESCR:' 'MD5 check failed' 8399090e3a656bdd327cc58ef4a6b60f xkbctrl/pkg/DESCR SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'xkbctrl/pkg/DESCR'`" test 225 -eq "$shar_count" || $echo 'xkbctrl/pkg/DESCR:' 'original size' '225,' 'current size' "$shar_count!" fi fi # ============= xkbctrl/pkg/PLIST ============== if test -f 'xkbctrl/pkg/PLIST' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'xkbctrl/pkg/PLIST' '(file already exists)' else $echo 'x -' extracting 'xkbctrl/pkg/PLIST' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'xkbctrl/pkg/PLIST' && bin/xkbctrl SHAR_EOF $shar_touch -am 01092306100 'xkbctrl/pkg/PLIST' && chmod 0644 'xkbctrl/pkg/PLIST' || $echo 'restore of' 'xkbctrl/pkg/PLIST' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'xkbctrl/pkg/PLIST:' 'MD5 check failed' 13c94d419decf45b28e1ce067f81d1f6 xkbctrl/pkg/PLIST SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'xkbctrl/pkg/PLIST'`" test 12 -eq "$shar_count" || $echo 'xkbctrl/pkg/PLIST:' 'original size' '12,' 'current size' "$shar_count!" fi fi # ============= xkbctrl/Makefile ============== if test -f 'xkbctrl/Makefile' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'xkbctrl/Makefile' '(file already exists)' else $echo 'x -' extracting 'xkbctrl/Makefile' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'xkbctrl/Makefile' && # New ports collection makefile for: xkbctrl # Version required: 1.0 # Date created: 9 January 2000 # Whom: Yoshiro MIHIRA <sanpei@sanpei.org> # # $FreeBSD$ # X DISTNAME= xkbctrl PKGNAME= xkbctrl-1.0 CATEGORIES= x11 MASTER_SITES= ftp://core.ring.gr.jp/pub/X/opengroup/unsupported/test/Xkb/programs/ \ X ftp://ring.nacsis.ac.jp/pub/X/opengroup/unsupported/test/Xkb/programs/ DISTFILES= Imakefile xkbctrl.c X MAINTAINER= sanpei@sanpei.org X USE_IMAKE= yes NO_WRKSUBDIR= yes X do-extract: X @${RM} -rf ${WRKDIR} X @${MKDIR} ${WRKDIR} X @for file in ${DISTFILES}; do \ X ${CP} ${DISTDIR}/${DIST_SUBDIR}/$${file} ${WRKSRC}; \ X done X do-install: X @${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME} ${PREFIX}/bin X X.include <bsd.port.mk> SHAR_EOF $shar_touch -am 01092306100 'xkbctrl/Makefile' && chmod 0644 'xkbctrl/Makefile' || $echo 'restore of' 'xkbctrl/Makefile' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'xkbctrl/Makefile:' 'MD5 check failed' 1562c0f373034bb30386e3f4bc7d66de xkbctrl/Makefile SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'xkbctrl/Makefile'`" test 723 -eq "$shar_count" || $echo 'xkbctrl/Makefile:' 'original size' '723,' 'current size' "$shar_count!" fi fi # ============= xkbctrl/files/md5 ============== if test ! -d 'xkbctrl/files'; then $echo 'x -' 'creating directory' 'xkbctrl/files' mkdir 'xkbctrl/files' fi if test -f 'xkbctrl/files/md5' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'xkbctrl/files/md5' '(file already exists)' else $echo 'x -' extracting 'xkbctrl/files/md5' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'xkbctrl/files/md5' && MD5 (Imakefile) = 12125739f5bbbaaa43bcecd161fe580d MD5 (xkbctrl.c) = 7db64f67827adf216ed7fe8b29a66101 SHAR_EOF $shar_touch -am 01092306100 'xkbctrl/files/md5' && chmod 0644 'xkbctrl/files/md5' || $echo 'restore of' 'xkbctrl/files/md5' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'xkbctrl/files/md5:' 'MD5 check failed' 0204ba5a3d88e3e413c1a6c6bef982a7 xkbctrl/files/md5 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'xkbctrl/files/md5'`" test 102 -eq "$shar_count" || $echo 'xkbctrl/files/md5:' 'original size' '102,' 'current size' "$shar_count!" fi fi # ============= xkbctrl/patches/patch-aa ============== if test ! -d 'xkbctrl/patches'; then $echo 'x -' 'creating directory' 'xkbctrl/patches' mkdir 'xkbctrl/patches' fi if test -f 'xkbctrl/patches/patch-aa' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'xkbctrl/patches/patch-aa' '(file already exists)' else $echo 'x -' extracting 'xkbctrl/patches/patch-aa' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'xkbctrl/patches/patch-aa' && --- Imakefile.org Sun Jan 9 22:48:52 2000 +++ Imakefile Sun Jan 9 22:49:13 2000 @@ -7,35 +7,9 @@ X DEPLIBS = $(DEPXKBFILELIB) $(DEPXONLYLIB) X XTLOCLIBS = $(XTOOLLIB) $(XONLYLIB) X XTDEPLIBS = $(DEPXTOOLLIB) $(DEPXONLYLIB) - SRCS = xkbver.c xkbev.c xkbshow.c xkblock.c xkbctrl.c xkbsetmasks.c \ - xkbwatch.c xkbdebug.c xkbleds.c xkbrefresh.c xkbcompat.c xkbget.c \ - xkbtest.c xkbcfgtest.c xkbwrbynames.c xkbextdev.c xkblist.c \ - xkbmaptest.c testmaprules.c xkbsetgeom.c + SRCS = xkbctrl.c X -all: xkbver xkbev xkbshow xkblock xkbctrl xkbsetmasks xkbwatch \ - xkbdebug xkbleds xkbrefresh xkbcompat xkbget xkbtest \ - xkbcfgtest xkbwrbynames xkbextdev xkblist \ - xkbmaptest testmaprules xkbsetgeom +all:: xkbctrl X -NormalProgramTarget(xkbver,xkbver.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbev,xkbev.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbshow,xkbshow.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkblock,xkblock.o,$(DEPLIBS),$(LOCLIBS),NullParameter) X NormalProgramTarget(xkbctrl,xkbctrl.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbsetmasks,xkbsetmasks.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbwatch,xkbwatch.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbdebug,xkbdebug.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbleds,xkbleds.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbrefresh,xkbrefresh.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbcompat,xkbcompat.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbget,xkbget.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbtest,xkbtest.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbcfgtest,xkbcfgtest.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbwrbynames,xkbwrbynames.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbextdev,xkbextdev.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkblist,xkblist.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbmaptest,xkbmaptest.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(testmaprules,testmaprules.o,$(DEPLIBS),$(LOCLIBS),NullParameter) -NormalProgramTarget(xkbsetgeom,xkbsetgeom.o,$(DEPLIBS),$(LOCLIBS),NullParameter) - X DependTarget() SHAR_EOF $shar_touch -am 01092306100 'xkbctrl/patches/patch-aa' && chmod 0644 'xkbctrl/patches/patch-aa' || $echo 'restore of' 'xkbctrl/patches/patch-aa' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'xkbctrl/patches/patch-aa:' 'MD5 check failed' f5deb80626ee956bcc8d144091916b02 xkbctrl/patches/patch-aa SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'xkbctrl/patches/patch-aa'`" test 2328 -eq "$shar_count" || $echo 'xkbctrl/patches/patch-aa:' 'original size' '2328,' 'current size' "$shar_count!" fi fi # ============= xkbctrl/patches/patch-ab ============== if test -f 'xkbctrl/patches/patch-ab' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'xkbctrl/patches/patch-ab' '(file already exists)' else $echo 'x -' extracting 'xkbctrl/patches/patch-ab' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'xkbctrl/patches/patch-ab' && --- xkbctrl.c.org Sun Jan 9 22:51:02 2000 +++ xkbctrl.c Sun Jan 9 22:51:21 2000 @@ -27,7 +27,7 @@ X X #include <stdio.h> X #include <stdlib.h> -#include <values.h> +#include <limits.h> X #include <ctype.h> X #include <X11/Xos.h> X #include <X11/Xlib.h> SHAR_EOF $shar_touch -am 01092306100 'xkbctrl/patches/patch-ab' && chmod 0644 'xkbctrl/patches/patch-ab' || $echo 'restore of' 'xkbctrl/patches/patch-ab' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'xkbctrl/patches/patch-ab:' 'MD5 check failed' 127b0924bcca4c5f7f0f0e3efa7a770a xkbctrl/patches/patch-ab SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'xkbctrl/patches/patch-ab'`" test 250 -eq "$shar_count" || $echo 'xkbctrl/patches/patch-ab:' 'original size' '250,' 'current size' "$shar_count!" fi fi rm -fr _sh25216 exit 0 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001091424.XAA25397>