debian/0000755000000000000000000000000011766764664007215 5ustar debian/yaskkserv_simple.10000644000000000000000000000467711646553545012677 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH YASKKSERV_SIMPLE 1 "January 17, 2008" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME yaskkserv_simple \- Yet Another SKK SERVer (simple version) .SH SYNOPSIS .B yaskkserv_simple [\fIOPTION\fR] \fIdictionary\fR .SH DESCRIPTION This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. .PP yaskkserv is a dictionary server for the SKK Japanese input method system. yaskkserv is written in C++ from scratch in consideration of embedded environment, but is compatible with skkserv on the protocol behavior. .PP yaskkserv_simple can handle only one dictionary. Many other features are also disabled, but it offers fast basic functions. .SH OPTIONS .TP \fB\-d\fR, \fB\-\-debug\fR enable debug mode (default disable) .TP \fB\-h\fR, \fB\-\-help\fR print this help and exit .TP \fB\-l\fR, \fB\-\-log\-level\fR=\fILEVEL\fR loglevel (range [0 \- 9] default 1) .TP \fB\-m\fR, \fB\-\-max\-connection\fR=\fIN\fR max connection (default 8) .TP \fB\-p\fR, \fB\-\-port\fR=\fIPORT\fR set port (default 1178) .TP \fB\-v\fR, \fB\-\-version\fR print version .TP \fB\-d\fR, \fB\-\-debug\fR enable debug mode (default disable) .TP \fB\-h\fR, \fB\-\-help\fR print this help and exit .TP \fB\-l\fR, \fB\-\-log\-level\fR=\fILEVEL\fR loglevel (range [0 \- 9] default 1) .TP \fB\-m\fR, \fB\-\-max\-connection\fR=\fIN\fR max connection (default 8) .TP \fB\-p\fR, \fB\-\-port\fR=\fIPORT\fR set port (default 1178) .TP \fB\-v\fR, \fB\-\-version\fR print version .SH COPYRIGHT Copyright \(co 2005, 2006, 2007, 2008 Tadashi Watanabe. .SH SEE ALSO .BR yaskkserv_hairy (1), .BR yaskkserv_normal (1), .BR yaskkserv_make_dictionary (1). .br .SH AUTHOR yaskkserv was written by Tadashi Watanabe . .PP This manual page was written by KURASHIKI Satoru , for the Debian project (but may be used by others). debian/yaskkserv_normal.10000644000000000000000000000510611646553545012662 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH YASKKSERV_NORMAL 1 "January 17, 2008" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME yaskkserv_normal \- Yet Another SKK SERVer (generic version) .SH SYNOPSIS .B yaskkserv_normal [\fIOPTION\fR] \fIdictionary \fR[\fIdictionary\fR...] .SH DESCRIPTION This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. .PP yaskkserv is a dictionary server for the SKK Japanese input method system. yaskkserv is written in C++ from scratch in consideration of embedded environment, but is compatible with skkserv on the protocol behavior. .PP yaskkserv_normal supports multiple dictionaries and auto-reload feature. .SH OPTIONS .TP \fB\-c\fR, \fB\-\-check\-update\fR check update dictionary (default disable) .TP \fB\-d\fR, \fB\-\-debug\fR enable debug mode (default disable) .TP \fB\-h\fR, \fB\-\-help\fR print this help and exit .TP \fB\-l\fR, \fB\-\-log\-level\fR=\fILEVEL\fR loglevel (range [0 \- 9] default 1) .TP \fB\-m\fR, \fB\-\-max\-connection\fR=\fIN\fR max connection (default 8) .TP \fB\-p\fR, \fB\-\-port\fR=\fIPORT\fR set port (default 1178) .TP \fB\-v\fR, \fB\-\-version\fR print version .TP \fB\-c\fR, \fB\-\-check\-update\fR check update dictionary (default disable) .TP \fB\-d\fR, \fB\-\-debug\fR enable debug mode (default disable) .TP \fB\-h\fR, \fB\-\-help\fR print this help and exit .TP \fB\-l\fR, \fB\-\-log\-level\fR=\fILEVEL\fR loglevel (range [0 \- 9] default 1) .TP \fB\-m\fR, \fB\-\-max\-connection\fR=\fIN\fR max connection (default 8) .TP \fB\-p\fR, \fB\-\-port\fR=\fIPORT\fR set port (default 1178) .TP \fB\-v\fR, \fB\-\-version\fR print version .SH COPYRIGHT Copyright \(co 2005, 2006, 2007, 2008 Tadashi Watanabe. .SH SEE ALSO .BR yaskkserv_normal (1), .BR yaskkserv_simple (1), .BR yaskkserv_make_dictionary (1). .br .SH AUTHOR yaskkserv was written by Tadashi Watanabe . .PP This manual page was written by KURASHIKI Satoru , for the Debian project (but may be used by others). debian/yaskkserv_make_dictionary.10000644000000000000000000000475411646553545014544 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH YASKKSERV_MAKE_DICTIONARY 1 "January 17, 2008" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME yaskkserv_make_dictionary \- dictionary converter for yaskkserv .SH SYNOPSIS .B yaskkserv_make_dictionary [\fIOPTION\fR] \fIskk-dictionary output-dictionary\fR .SH DESCRIPTION This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. .PP yaskkserv is a dictionary server for the SKK Japanese input method system. yaskkserv is written in C++ from scratch in consideration of embedded environment, but is compatible with skkserv on the protocol behavior. .PP yaskkserv_make_dictionary converts dictionary file of original format into that of yaskkserv format. .SH OPTIONS .TP \fB\-a\fR, \fB\-\-alignment\fR enable alignment (default disable) .TP \fB\-b\fR, \fB\-\-block\-size\fR=\fISIZE\fR set block size (default 8192) .TP \fB\-d\fR, \fB\-\-debug\fR print debug information .TP \fB\-h\fR, \fB\-\-help\fR print this help and exit .TP \fB\-s\fR, \fB\-\-short\-block\fR enable short block (must set \fB\-\-alignment\fR) (default disable) .TP \fB\-v\fR, \fB\-\-version\fR print version .TP \fB\-a\fR, \fB\-\-alignment\fR enable alignment (default disable) .TP \fB\-b\fR, \fB\-\-block\-size\fR=\fISIZE\fR set block size (default 8192) .TP \fB\-d\fR, \fB\-\-debug\fR print debug information .TP \fB\-h\fR, \fB\-\-help\fR print this help and exit .TP \fB\-s\fR, \fB\-\-short\-block\fR enable short block (must set \fB\-\-alignment\fR) (default disable) .TP \fB\-v\fR, \fB\-\-version\fR print version .SH COPYRIGHT Copyright \(co 2005, 2006, 2007, 2008 Tadashi Watanabe. .SH SEE ALSO .BR yaskkserv_hairy (1), .BR yaskkserv_normal (1), .BR yaskkserv_simple (1). .br .SH AUTHOR yaskkserv was written by Tadashi Watanabe . .PP This manual page was written by KURASHIKI Satoru , for the Debian project (but may be used by others). debian/yaskkserv_hairy.10000644000000000000000000000475611646553545012520 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH YASKKSERV_HAIRY 1 "January 17, 2008" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME yaskkserv_hairy \- Yet Another SKK SERVer (feature-rich version) .SH SYNOPSIS .B yaskkserv_hairy [\fIOPTION\fR] \fIdictionary \fR[\fIdictionary\fR...] .SH DESCRIPTION This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. .PP yaskkserv is a dictionary server for the SKK Japanese input method system. yaskkserv is written in C++ from scratch in consideration of embedded environment, but is compatible with skkserv on the protocol behavior. .PP yaskkserv_hairy supports server completion function in addition to features of yaskkserv_normal. .SH OPTIONS .TP \fB\-c\fR, \fB\-\-check\-update\fR check update dictionary (default disable) .TP \fB\-d\fR, \fB\-\-debug\fR enable debug mode (default disable) .TP \fB\-h\fR, \fB\-\-help\fR print this help and exit .TP \fB\-l\fR, \fB\-\-log\-level\fR=\fILEVEL\fR loglevel (range [0 \- 9] default 1) .TP \fB\-m\fR, \fB\-\-max\-connection\fR=\fIN\fR max connection (default 8) .TP \fB\-p\fR, \fB\-\-port\fR=\fIPORT\fR set port (default 1178) .TP \fB\-\-server\-completion\-midasi\-length\fR=\fILENGTH\fR set midasi length (range [256 \- 32768] default 2048) .TP \fB\-\-server\-completion\-midasi\-string\-size\fR=\fISIZE\fR set midasi string size (range [16384 \- 1048576] default 262144) .TP \fB\-\-server\-completion\-test\fR=\fItype\fR 1:default 2:ignore slash 3:space 4:space and protocol 'c' .TP \fB\-v\fR, \fB\-\-version\fR print version .SH COPYRIGHT Copyright \(co 2005, 2006, 2007, 2008 Tadashi Watanabe. .SH SEE ALSO .BR yaskkserv_normal (1), .BR yaskkserv_simple (1), .BR yaskkserv_make_dictionary (1). .br .SH AUTHOR yaskkserv was written by Tadashi Watanabe . .PP This manual page was written by KURASHIKI Satoru , for the Debian project (but may be used by others). debian/yaskkserv.init0000644000000000000000000002203211646553545012112 0ustar #!/bin/sh # # Example init.d script with LSB support. # # Please read this init.d carefully and modify the sections to # adjust it to the program you want to run. # # Copyright (c) 2007 Javier Fernandez-Sanguino # # This is free software; you may redistribute it and/or modify # it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2, # or (at your option) any later version. # # This is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License with # the Debian operating system, in /usr/share/common-licenses/GPL; if # not, write to the Free Software Foundation, Inc., 59 Temple Place, # Suite 330, Boston, MA 02111-1307 USA # ### BEGIN INIT INFO # Provides: yaskkserv # Required-Start: $network $syslog $remote_fs # Required-Stop: $network $syslog $remote_fs # Should-Start: $named # Should-Stop: $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: small and fast SKK dictionary server # Description: yaskkserv is a dictionary server for the SKK Japanese # input method system. yaskkserv is written in C++ from # scratch in consideration of embedded environment, but # is compatible with skkserv on the protocol behavior. # yaskkserv can use multiple dictionaries and also # supports server completion. ### END INIT INFO set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin NAME=yaskkserv # Introduce the short server's name here DESC=yaskkserv # Introduce a short description here LOGDIR=/var/log/yaskkserv # Log directory to use #PIDFILE=/var/run/$NAME.pid # Default options, these can be overriden by the information # at /etc/default/$NAME YASKKSERV_BIN="yaskkserv_hairy" DAEMON_OPTS="" # Additional options given to the server DICS="SKK-JISYO.L" # Dictionaries DODTIME=10 # Time to wait for the server to die, in seconds # If this value is set too low you might not # let some servers to die gracefully and # 'restart' will not work LOGFILE=$LOGDIR/$NAME.log # Server logfile #DAEMONUSER=yaskkserv # Users to run the daemons as. If this value # is set start-stop-daemon will chuid the server # Include defaults if available if [ -f /etc/default/$NAME ] ; then . /etc/default/$NAME fi DAEMON=/usr/sbin/${YASKKSERV_BIN} # Introduce the server's location here test -x $DAEMON || exit 0 test -x $DAEMON_WRAPPER || exit 0 for DIC in $DICS do DICBN=`basename $DIC` DIC_LIST="${DIC_LIST} /usr/share/yaskkserv/${DICBN}.yaskkserv" done . /lib/lsb/init-functions # Use this if you want the user to explicitly set 'RUN' in # /etc/default/ #if [ "x$RUN" != "xyes" ] ; then # log_failure_msg "$NAME disabled, please adjust the configuration to your needs " # log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it." # exit 1 #fi # Check that the user exists (if we set a user) # Does the user exist? if [ -n "$DAEMONUSER" ] ; then if getent passwd | grep -q "^$DAEMONUSER:"; then # Obtain the uid and gid DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'` DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'` else log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist." exit 1 fi fi running_pid() { # Check if a given process pid's cmdline matches a given name pid=$1 name=$2 [ -z "$pid" ] && return 1 [ ! -d /proc/$pid ] && return 1 cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1` # Is this the expected server [ "$cmd" != "$name" ] && return 1 return 0 } running() { # Check if the process is running looking at /proc # (works for all users) # No pidfile, probably no daemon present # [ ! -f "$PIDFILE" ] && return 1 # pid=`cat $PIDFILE` pid=`pidof $YASKKSERV_BIN` running_pid $pid $DAEMON || return 1 return 0 } start_server() { # Start the process using the wrapper # if [ -z "$DAEMONUSER" ] ; then # start-stop-daemon --start --quiet \ # --exec $DAEMON -- $DAEMON_OPTS $DIC_LIST $DAEMON $DAEMON_OPTS $DIC_LIST errcode=$? # else # if we are using a daemonuser then change the user id # start-stop-daemon --start --quiet \ # --chuid $DAEMONUSER \ # --exec $DAEMON -- $DAEMON_OPTS $DIC_LIST # errcode=$? # fi return $errcode } stop_server() { # Stop the process using the wrapper # if [ -z "$DAEMONUSER" ] ; then # start-stop-daemon --stop --quiet --pidfile $PIDFILE \ # --exec $DAEMON kill `pidof $YASKKSERV_BIN` errcode=$? # else # if we are using a daemonuser then look for process that match # start-stop-daemon --stop --quiet --pidfile $PIDFILE \ # --user $DAEMONUSER \ # --exec $DAEMON # errcode=$ # fi return $errcode } reload_server() { # [ ! -f "$PIDFILE" ] && return 1 # pid=`cat $PIDFILE` # This is the daemon's pid pid=`pidof $YASKKSERV_BIN` # Send a SIGHUP kill -1 $pid return $? } force_stop() { # Force the process to die killing it manually # [ ! -e "$PIDFILE" ] && return if running ; then kill -15 $pid # Is it really dead? sleep "$DIETIME"s if running ; then kill -9 $pid sleep "$DIETIME"s if running ; then echo "Cannot kill $NAME (pid=$pid)!" exit 1 fi fi fi # rm -f $PIDFILE } case "$1" in start) log_daemon_msg "Starting $DESC " "$NAME" # Check if it's running first if running ; then log_progress_msg "apparently already running" log_end_msg 0 exit 0 fi if start_server && running ; then # It's ok, the server started and is running log_end_msg 0 else # Either we could not start it or it is not running # after we did # NOTE: Some servers might die some time after they start, # this code does not try to detect this and might give # a false positive (use 'status' for that) log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" if running ; then # Only stop the server if we see it running stop_server log_end_msg $? else # If it's not running don't do anything log_progress_msg "apparently not running" log_end_msg 0 exit 0 fi ;; force-stop) # First try to stop gracefully the program $0 stop if running; then # If it's still running try to kill it more forcefully log_daemon_msg "Stopping (force) $DESC" "$NAME" force_stop log_end_msg $? fi ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" $0 stop # Wait some sensible amount, some server need this [ -n "$DIETIME" ] && sleep $DIETIME start_server running log_end_msg $? ;; status) log_daemon_msg "Checking status of $DESC" "$NAME" if running ; then log_progress_msg "running" log_end_msg 0 else log_progress_msg "apparently not running" log_end_msg 1 exit 1 fi ;; # Use this if the daemon cannot reload reload) log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon" log_warning_msg "cannot re-read the config file (use restart)." ;; # And this if it cann #reload) # # If the daemon can reload its config files on the fly # for example by sending it SIGHUP, do it here. # # If the daemon responds to changes in its config file # directly anyway, make this a do-nothing entry. # # log_daemon_msg "Reloading $DESC configuration files" "$NAME" # if running ; then # reload_server # if ! running ; then # Process died after we tried to reload # log_progress_msg "died on reload" # log_end_msg 1 # exit 1 # fi # else # log_progress_msg "server is not running" # log_end_msg 1 # exit 1 # fi #;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 exit 1 ;; esac exit 0 debian/yaskkserv.doc-base0000644000000000000000000000044611646553545012631 0ustar Document: yaskkserv Title: Debian yaskkserv Manual Author: Tadashi Watanabe Abstract: This manual describes what yaskkserv is and how it can be used. Section: Help/HOWTO Format: HTML Index: /usr/share/doc/yaskkserv/documentation/index.html Files: /usr/share/doc/yaskkserv/documentation/*.html debian/yaskkserv.default0000644000000000000000000000361211662150340012556 0ustar # Defaults for yaskkserv initscript # sourced by /etc/init.d/yaskkserv # installed at /etc/default/yaskkserv by the maintainer scripts # # This is a POSIX shell fragment # # YASKKSERV_BIN is type of the daemon binary YASKKSERV_BIN="yaskkserv_hairy" #YASKKSERV_BIN="yaskkserv_normal" #YASKKSERV_BIN="yaskkserv_simple" ########## SERVER SETTINGS ################################# # Note: These are default settings (options are not needed). # After you change these, uncomment one of DAEMON_OPTS # and restart server. # for SIMPLE #SIMPLE_OPTS="--log-level=1 --max-connection=8 --port=1178" # for NORMAL #NORMAL_OPTS="${SIMPLE_OPTS}" # for HAIRY #HAIRY_OPTS="${NORMAL_OPTS} --server-completion-midasi-length=2048 --server-completion-midasi-string-size=262144 --server-completion-test=1 --google-japanese-input=disable --google-japanese-input-timeout=2.5" DAEMON_OPTS="${HAIRY_OPTS}" #DAEMON_OPTS="${NORMAL_OPTS}" #DAEMON_OPTS="${SIMPLE_OPTS}" ########## DICTIONARY SETTINGS ######################################## ## Dictionaries from site local files # Note: If you want to use your custom dictionary, put full path to them. # LOCAL_DICS="\ " #/path/to/dic \ ## Dictionaries from skkdic* packages # Note: uncomment the dictionary which you want to use and sort their order. PKG_DICS="/etc/alternatives/SKK-JISYO \ " #SKK-JISYO.L \ #SKK-JISYO.zipcode \ #SKK-JISYO.station \ #SKK-JISYO.requested \ #SKK-JISYO.pubdic+ \ #SKK-JISYO.propernoun \ #SKK-JISYO.okinawa \ #SKK-JISYO.office.zipcode \ #SKK-JISYO.notes \ #SKK-JISYO.not_wrong \ #SKK-JISYO.noregist \ #SKK-JISYO.mazegaki \ #SKK-JISYO.law \ #SKK-JISYO.jinmei \ #SKK-JISYO.itaiji.JIS3_4 \ #SKK-JISYO.itaiji \ #SKK-JISYO.hukugougo \ #SKK-JISYO.geo \ #SKK-JISYO.fullname \ #SKK-JISYO.china_taiwan \ #SKK-JISYO.assoc \ #SKK-JISYO.S \ #SKK-JISYO.ML \ #SKK-JISYO.M \ #SKK-JISYO.JIS3_4 \ #SKK-JISYO.JIS2004 \ #SKK-JISYO.JIS2 \ DICS="${LOCAL_DICS} ${PKG_DICS}" debian/watch0000644000000000000000000000026611647410661010231 0ustar # Compulsory line, this is a version 3 file version=3 opts="uversionmangle=s/beta/~beta/;s/.beta/~beta/;s/_SKK/~SKK/" \ http://umiushi.org/~wac/yaskkserv/ yaskkserv-(.*)\.tar\.bz2 debian/update-skkdic-yaskkserv.10000644000000000000000000000214411646553545014037 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH UPDATE-SKKDIC-YASKKSERV 1 "March 25, 2008" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME update-skkdic-yaskkserv \- create yaskkserv dictionaries on Debian .SH SYNOPSIS .B update-skkdic-yaskkserv .SH DESCRIPTION .B update-skkdic-yaskkserv is a program that creates yaskkserv format dictionary files from skkdic and/or skkdic-extra packages. .SH SEE ALSO .BR yaskkserv_make_dictionary (1). .br .SH AUTHOR This manual page was written by KURASHIKI Satoru , for the Debian project. debian/update-skkdic-yaskkserv0000644000000000000000000000111011647023226013655 0ustar #!/bin/sh # dictionary update script for yaskkserv # set -e [ -f /etc/default/yaskkserv ] && . /etc/default/yaskkserv _convert () { DICFP=$1 DICBN=`basename ${DICFP}` echo -n "generating: ${DICBN}.yaskkserv ... " yaskkserv_make_dictionary $DICFP /usr/share/yaskkserv/${DICBN}.yaskkserv && echo "done." } ### update local dictionaries. for dic in ${LOCAL_DICS} do _convert $dic done ### update system dictionaries. for dic in /usr/share/skk/SKK-JISYO `dpkg -L skkdic skkdic-extra 2>/dev/null | grep /usr/share/skk/SKK-JISYO` do _convert $dic done exit 0 debian/source/0000755000000000000000000000000011646553545010504 5ustar debian/source/format0000644000000000000000000000001511646553545011713 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000512411766764664010277 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 export DEB_LDFLAGS_MAINT_APPEND = -defs # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 #export DH_COMPAT=4 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) #DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) #DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) Makefile.config: dh_testdir ./configure --prefix=$(CURDIR)/debian/yaskkserv/usr --gplusplus=g++ --enable-google-japanese-input build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp: Makefile.config dh_testdir # Add here commands to compile the package. $(MAKE) #docbook-to-man debian/yaskkserv.sgml > yaskkserv.1 touch $@ clean: clean1 rm -rf var/ clean1: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ ! -f Makefile.config ] || $(MAKE) clean rm -rf Makefile.config dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/yaskkserv. $(MAKE) install_all #clean # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs README.TXT cp -R documentation $(CURDIR)/debian/yaskkserv/usr/share/doc/yaskkserv/ dh_installexamples dh_install debian/update-skkdic-yaskkserv usr/sbin # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_python dh_installinit # dh_installcron # dh_installinfo dh_installman debian/yaskkserv_make_dictionary.1 dh_installman debian/yaskkserv_hairy.1 dh_installman debian/yaskkserv_normal.1 dh_installman debian/yaskkserv_simple.1 dh_installman debian/update-skkdic-yaskkserv.1 dh_link dh_strip dh_compress dh_fixperms # dh_perl # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install build-arch build-indep debian/prerm0000644000000000000000000000164011646553545010255 0ustar #!/bin/sh # prerm script for yaskkserv # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove) rm -f /usr/share/yaskkserv/*.yaskkserv ;; upgrade|deconfigure|failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/postrm0000644000000000000000000000164611646553545010462 0ustar #!/bin/sh # postrm script for yaskkserv # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/postinst0000644000000000000000000000200311646553545011005 0ustar #!/bin/sh # postinst script for yaskkserv # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) mkdir -p /usr/share/yaskkserv update-skkdic-yaskkserv ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/patches/0000755000000000000000000000000011766764664010644 5ustar debian/patches/series0000644000000000000000000000010011766764664012050 0ustar disable-optimization as-needed hurd-build hardening-build-flags debian/patches/hurd-build0000644000000000000000000000132011766764664012622 0ustar Description: make Hurd buildable. Origin: vendor Author: Barry deFreese Index: yaskkserv-0.5.2/configure =================================================================== --- yaskkserv-0.5.2.orig/configure 2012-05-28 22:59:53.000000000 +0000 +++ yaskkserv-0.5.2/configure 2012-05-28 23:03:36.000000000 +0000 @@ -160,7 +160,7 @@ { $_ = `uname 2>&1`; - if (/bsd/i or /darwin/i or /cygwin/i or /linux/i) { + if (/bsd/i or /darwin/i or /cygwin/i or /linux/i or /GNU/i) { $global{'architecture'} = 'BSD_CYGWIN_LINUX_GCC'; $global{'CXXFLAGS_ARCHITECTURE'} = "-D $global{'project_identifier'}_ARCHITECTURE_BSD_CYGWIN_LINUX_GCC"; $global{'LDFLAGS_ARCHITECTURE'} = '-lrt'; debian/patches/hardening-build-flags0000644000000000000000000000361311766764664014720 0ustar Description: apply hardening-build flags. Origin: vendor Author: KURASHIKI Satoru Index: yaskkserv/source/Makefile.bsd_cygwin_linux_gcc.common =================================================================== --- yaskkserv.orig/source/Makefile.bsd_cygwin_linux_gcc.common 2012-06-16 01:17:25.000000000 +0000 +++ yaskkserv/source/Makefile.bsd_cygwin_linux_gcc.common 2012-06-16 01:46:27.000000000 +0000 @@ -18,11 +18,11 @@ INCLUDE_FLAGS = -I . -I $(VAR_PATH) -I $(PROJECT_ROOT)/source/skk -I $(PROJECT_ROOT)/source/skk/architecture -I $(PROJECT_ROOT)/source/skk/architecture/$(ARCHITECTURE_LOWER_CASE) LIBRARY_FLAGS = -L/usr/lib -CPPFLAGS = $(DEBUG_FLAGS) $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(CXXFLAGS_DEFINE) -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\" +CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) $(DEBUG_FLAGS) $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(CXXFLAGS_DEFINE) -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\" -CXXFLAGS = $(DEBUG_FLAGS) $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(OPTIMIZE_FLAGS) $(CXXFLAGS_WARNING) -fno-exceptions -fno-rtti -fmessage-length=0 -pipe -fPIC -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\" +CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS) $(DEBUG_FLAGS) -D_FORTIFY_SOURCE=2 $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(OPTIMIZE_FLAGS) $(CXXFLAGS_WARNING) -fno-exceptions -fno-rtti -fmessage-length=0 -pipe -fPIC -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\" -LDFLAGS = $(DEBUG_FLAGS) $(OPTIMIZE_FLAGS) -pipe $(LIBRARY_FLAGS) -fPIC +LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) $(DEBUG_FLAGS) $(OPTIMIZE_FLAGS) -pipe $(LIBRARY_FLAGS) -fPIC LIBS = $(LDFLAGS_ARCHITECTURE) -lm CXX = $(CCACHE) $(GPLUSPLUS) debian/patches/disable-optimization0000644000000000000000000000123511766373427014710 0ustar Description: Origin: vendor Bug-Debian: http://bugs.debian.org/645712 Forwarded: not-needed Author: Nobuhiro Iwamatsu KURASHIKI Satoru Index: yaskkserv/configure =================================================================== --- yaskkserv.orig/configure 2012-05-29 14:53:41.000000000 +0900 +++ yaskkserv/configure 2012-05-29 14:54:36.000000000 +0900 @@ -283,9 +283,6 @@ { my $common = ''; - if (GccCheck('', '', '-march=native')) { - $common .= '-march=native'; - } my $o3_or_o1 = ''; if (GccIsSupport($global{'gcc_version'}, 4, 0, 0)) { $o3_or_o1 .= '-O3'; debian/patches/as-needed0000644000000000000000000000241111662147454012375 0ustar Description: fix FTBFS with --as-needed linker option Libraries should be put after object files on the command line. Author: Ilya Barygin --- yaskkserv-0.5.2.orig/source/Makefile.bsd_cygwin_linux_gcc.common +++ yaskkserv-0.5.2/source/Makefile.bsd_cygwin_linux_gcc.common @@ -22,7 +22,8 @@ CPPFLAGS = $(DEBUG_FLAGS) $(CXXFLAGS_AR CXXFLAGS = $(DEBUG_FLAGS) $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(OPTIMIZE_FLAGS) $(CXXFLAGS_WARNING) -fno-exceptions -fno-rtti -fmessage-length=0 -pipe -fPIC -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\" -LDFLAGS = $(DEBUG_FLAGS) $(LDFLAGS_ARCHITECTURE) $(OPTIMIZE_FLAGS) -pipe -lm $(LIBRARY_FLAGS) -fPIC +LDFLAGS = $(DEBUG_FLAGS) $(OPTIMIZE_FLAGS) -pipe $(LIBRARY_FLAGS) -fPIC +LIBS = $(LDFLAGS_ARCHITECTURE) -lm CXX = $(CCACHE) $(GPLUSPLUS) LD = $(GPLUSPLUS) --- yaskkserv-0.5.2.orig/source/yaskkserv_hairy/Makefile.bsd_cygwin_linux_gcc +++ yaskkserv-0.5.2/source/yaskkserv_hairy/Makefile.bsd_cygwin_linux_gcc @@ -24,7 +24,7 @@ TARGET = $(VAR_PATH)/$(TARGET_BASE)/$( all : $(TARGET) $(TARGET) : $(OBJECTS_SKK) $(OBJECTS) - $(LD) $(LDFLAGS) -o $@ $^ + $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) ifndef DEBUG $(STRIP) $@$(EXECUTE_FILE_SUFFIX) endif debian/dirs0000644000000000000000000000007011646553545010065 0ustar usr/bin usr/sbin usr/share/man/man1 usr/share/yaskkserv debian/copyright0000644000000000000000000000370711766373427011150 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: yaskkserv Source: http://umiushi.org/~wac/yaskkserv/ Files: * Copyright: Copyright (C) 2005-2011 by Tadashi Watanabe License: GPL-2.0+ License: GPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: 2008-2011 KURASHIKI Satoru 2011, Tatsuya Kinoshita License: GPL-3.0+ License: GPL-3.0+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". debian/control0000644000000000000000000000201211766373427010604 0ustar Source: yaskkserv Section: utils Priority: extra Maintainer: KURASHIKI Satoru Uploaders: Tatsuya Kinoshita DM-Upload-Allowed: yes Homepage: http://umiushi.org/~wac/yaskkserv/ Build-Depends: debhelper (>= 5), g++ (>= 4:4.3) Standards-Version: 3.9.3 Vcs-Git: git://anonscm.debian.org/collab-maint/yaskkserv.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/yaskkserv.git;a=summary Package: yaskkserv Architecture: any Provides: skkserv Conflicts: skkserv, skkinput Replaces: skkserv Depends: skkdic, ${shlibs:Depends}, ${misc:Depends} Recommends: skkdic-extra Enhances: ddskk, uim-skk, scim-skk, ibus-skk Description: small and fast SKK dictionary server intended for embedded use yaskkserv is a dictionary server for the SKK Japanese input method system. yaskkserv is written in C++ from scratch in consideration of embedded environment, but is compatible with skkserv on the protocol behavior. . yaskkserv can use multiple dictionaries and also supports server completion. debian/compat0000644000000000000000000000000211646553545010402 0ustar 5 debian/changelog0000644000000000000000000001266211766764664011076 0ustar yaskkserv (0.5.2-3) unstable; urgency=low * New Standards-Version: 3.9.3 * apply patch to build on hurd. (Closes: #674979) * enable hardening build flags. -- KURASHIKI Satoru Tue, 16 Jun 2012 11:02:45 +0900 yaskkserv (0.5.2-2) unstable; urgency=low * apply as-needed patch. (Closes: #649236) * fix wrong init option. (Closes: #647353) -- KURASHIKI Satoru Sun, 20 Nov 2011 18:59:12 +0900 yaskkserv (0.5.2-1) unstable; urgency=low * New upstream release. -- KURASHIKI Satoru Tue, 01 Nov 2011 20:51:04 +0900 yaskkserv (0.5.1-1) unstable; urgency=low * New upstream release. * debian/copyright: switch to dep-5 format. (Closes: #645633) * debian/watch: fix option to deal with beta versioning. (Closes: #645634) * New patch: disable-optimization. (Closes: #645712, #645635) -- KURASHIKI Satoru Wed, 19 Oct 2011 08:52:01 +0900 yaskkserv (0.5.0-2) unstable; urgency=low * debian/update-skkdic-yaskkserv: Don't fail when generating SKK-JISYO.yaskkserv. -- Tatsuya Kinoshita Mon, 17 Oct 2011 22:01:33 +0900 yaskkserv (0.5.0-1) unstable; urgency=low * New upstream release. * Enhances ibus-skk. (Closes: #638140) * re-close a bug which should be closed at 0.4.0-6. (Closes: #624583) * update-skkdic-yaskkserv: cares user settings when it converts skkdics. (Closes: #638139) -- KURASHIKI Satoru Sun, 25 Sep 2011 19:59:45 +0900 yaskkserv (0.4.0-6) unstable; urgency=low * New Standards-Version: 3.9.2 * support SKK-JISYO alternatives. (Closees: #624583) * move Vcs-* locations. * users can add customized dictionary in /etc/default/yaskkserv -- KURASHIKI Satoru Wed, 06 Jul 2011 00:29:33 +0900 yaskkserv (0.4.0-5) unstable; urgency=low * New Standards-Version: 3.9.1 * Make lintian clean (for copyright issues). * Fix init script to restart correctly. * DM-Upload-Allowed. -- KURASHIKI Satoru Tue, 29 Mar 2011 08:46:33 +0900 yaskkserv (0.4.0-4) unstable; urgency=low * Source format 3.0 (quilt) * New Standards-Version: 3.8.4 * Fix document installation. -- KURASHIKI Satoru Wed, 19 May 2010 21:36:18 +0900 yaskkserv (0.4.0-3) unstable; urgency=low * fix build dependency. (Closes: #533815) -- KURASHIKI Satoru Mon, 14 Sep 2009 02:35:05 +0900 yaskkserv (0.4.0-2) unstable; urgency=low * Fix dependencies (Conflicts and Enhances). (Closes: #526510) -- KURASHIKI Satoru Sun, 17 May 2009 00:20:31 +0900 yaskkserv (0.4.0-1) unstable; urgency=low * New upstream release. -- KURASHIKI Satoru Wed, 30 Apr 2008 16:22:02 +0900 yaskkserv (0.3.9-1) unstable; urgency=low * New upstream release. - workaround for gcc-4.3 (Closes: #474880, #475815) - many code cleanup (Closes: #475687) * Remove debian patches because of fixed in upstream. * Now depends on gcc-4.3, requirement for lenny release. -- KURASHIKI Satoru Tue, 29 Apr 2008 15:59:56 +0900 yaskkserv (0.3.8-5) unstable; urgency=low * complete LSB header for the init.d script. (Closes: #476776) * remove incorrect Build-Depends. (Closes: #476778) * fixup lintian warnings: (Closes: #475686) - debian/changelog: shorten line length of 0.3.8-4. - debian/preinst: remove. * configure: - replace LANG with LC_ALL, and change default from en_US to C. (Closes: #475687) - remove g++ version checking, leaving it to dpkg. (Closes: #474880, #475815) * source/unit_test_benchmark/unit_test_benchmark.cpp: - remove storage specifier. (for porting to gcc-4.3). -- KURASHIKI Satoru Sun, 20 Apr 2008 12:01:00 +0900 yaskkserv (0.3.8-4) unstable; urgency=low * apply patch to fix a formatting mistake in manpage. (Closes: #472950) * debian/*: fixup lintian warnings: - change doc-base section from unknown to Help/HOWTO. - move usr/share/yaskkserv from dirs file to maintainer script. * configure: change g++ version check string to deal with gcc-4.3. (Closes: #474880) -- KURASHIKI Satoru Sat, 12 Apr 2008 11:09:54 +0900 yaskkserv (0.3.8-3) unstable; urgency=low * fix time stamp of changelog (0.3.8-1). (Closes: #465223) * clean up *.diff.gz. (Closes: #465224) * add dictionary update script. (Closes: #464809) -- KURASHIKI Satoru Tue, 25 Mar 2008 17:58:04 +0900 yaskkserv (0.3.8-2) unstable; urgency=low * fix init script to run without /etc/default/yaskkserv. (Closes: #465138) * change default configuration of DICS: (Closes: #464811, #464812, #464810) - debian/yaskkserv.init: fix syntax of if clause. - debian/yaskkserv.default: only "SKK-JISYO.L" is enabled. -- KURASHIKI Satoru Mon, 11 Feb 2008 12:22:50 +0900 yaskkserv (0.3.8-1) unstable; urgency=low * New upstream release (Closes: #461887) * configure: use mkstemps to treat tmpfile carefully. * skk_gcc.cpp: change debug log file location from /tmp to /var/log/yaskkserv. * debian/*: fix some packaging error pointed out by mentor. -- KURASHIKI Satoru Wed, 30 Jan 2008 23:14:56 +0900 yaskkserv (0.3.7-1) unstable; urgency=low * New upstream release -- KURASHIKI Satoru Thu, 17 Jan 2008 10:19:37 +0900 yaskkserv (0.3.6-1) unstable; urgency=low * Initial release -- KURASHIKI Satoru Fri, 11 Jan 2008 09:52:01 +0900 debian/README.Debian-source0000644000000000000000000000031411646553545012541 0ustar yaskkserv ========= The upstream source tarball is repackaged by Debian yaskkserv package maintainer simply because it's bzipped. -- KURASHIKI Satoru Wed, 30 Jan 2008 14:06:23 +0900 debian/README.Debian0000644000000000000000000000055311646553545011250 0ustar yaskkserv for Debian -------------------- Three daemon binaries are installed. By default, hairy is selected. If you want to change this, please edit /etc/default/yaskkserv. Dictionaries are generated at /usr/share/yaskkserv/*.yaskkserv from skkdic and skkdic-extra (if exists) package. -- KURASHIKI Satoru Fri, 11 Jan 2008 09:52:01 +0900