1 diff -ur dbskkd-cdb-2.00.orig/Makefile dbskkd-cdb-2.00/Makefile
2 --- dbskkd-cdb-2.00.orig/Makefile 2009-02-06 11:56:47.000000000 +0900
3 +++ dbskkd-cdb-2.00/Makefile 2010-10-11 14:28:37.943333781 +0900
7 -CC = cc -Wall -O2 -g -I/usr/local/include
9 +CFLAGS += -Wall -O2 -g
11 -CDBLIB = /usr/local/lib/libcdb.a
12 -INSTALLDIR = /usr/local/libexec
13 +CDBLIB = /usr/lib/libcdb.a
14 +INSTALLDIR = /usr/lib/dbskkd-cdb
18 $(CC) $(COMPAT) $(PRIVATE) -c $*.c
20 dbskkd-cdb.o ${CDBLIB}
22 dbskkd-cdb.o: dbskkd-cdb.c
23 - $(CC) $(COMPAT) $(PRIVATE) -c dbskkd-cdb.c
24 + $(CC) $(CFLAGS) $(COMPAT) $(PRIVATE) -c dbskkd-cdb.c
26 error.o: error.c error.h
29 - cp dbskkd-cdb $(INSTALLDIR); chmod 755 $(INSTALLDIR)/dbskkd-cdb
30 + mkdir -p $(DESTDIR)$(INSTALLDIR)
31 + cp dbskkd-cdb $(DESTDIR)$(INSTALLDIR); chmod 755 $(DESTDIR)$(INSTALLDIR)/dbskkd-cdb
34 diff -ur dbskkd-cdb-2.00.orig/dbskkd-cdb.c dbskkd-cdb-2.00/dbskkd-cdb.c
35 --- dbskkd-cdb-2.00.orig/dbskkd-cdb.c 2009-02-06 11:56:47.000000000 +0900
36 +++ dbskkd-cdb-2.00/dbskkd-cdb.c 2010-10-11 14:29:32.376667114 +0900
38 * spelling changed from JISHO to JISYO
41 -#define JISYO_FILE "/usr/local/share/skk/SKK-JISYO.L.cdb"
42 +#define JISYO_FILE "/usr/share/skk/SKK-JISYO.L.cdb"
43 #endif /* JISYO_FILE */
45 #define BUFSIZE (1024) /* max size of a request */
47 unsigned int keylen, datalen;
49 /* open dictionary cdb file */
50 - if ((dicfd = open(JISYO_FILE, O_RDONLY, S_IRUSR)) < 0) {
51 + if ((dicfd = open(argc == 1 ? JISYO_FILE : argv[1], O_RDONLY, S_IRUSR)) < 0) {
52 diesys("cannot open() the dictionary file " JISYO_FILE);
55 diff -ur dbskkd-cdb-2.00.orig/makeskkcdb.sh dbskkd-cdb-2.00/makeskkcdb.sh
56 --- dbskkd-cdb-2.00.orig/makeskkcdb.sh 2009-02-06 11:56:47.000000000 +0900
57 +++ dbskkd-cdb-2.00/makeskkcdb.sh 2010-10-11 15:34:16.153333782 +0900
60 -./skktocdbm.sh < /usr/local/share/skk/SKK-JISYO.L | \
61 +./skktocdbm.sh < /usr/share/skk/SKK-JISYO.L | \
62 cdb -c -t - SKK-JISYO.L.cdb