I made scim-hangul 0.2.1-1ubuntu1 deb with the patches above and installed it.
But, it doesn't update /etc/alternatives/xinput-ko_KR with scim if I already have nabi installed, got to remove nabi then it's fine as below.
atie@matrix:~/download/mypackage/scim-test$ sudo dpkg -i scim*.deb
Password:
(Reading database ... 216394 files and directories currently installed.)
Preparing to replace scim-hangul 0.2.1-1ubuntu1 (using scim-hangul_0.2.1-1ubuntu1_i386.deb) ...
Unpacking replacement scim-hangul ...
Setting up scim-hangul (0.2.1-1ubuntu1) ...
atie@matrix:~/download/mypackage/scim-test$ dpkg -L scim-hangul
/.
/usr
/usr/lib
/usr/lib/scim-1.0
/usr/lib/scim-1.0/1.4.0
/usr/lib/scim-1.0/1.4.0/IMEngine
/usr/lib/scim-1.0/1.4.0/IMEngine/hangul.so
/usr/lib/scim-1.0/1.4.0/SetupUI
/usr/lib/scim-1.0/1.4.0/SetupUI/hangul-imengine-setup.so
/usr/share
/usr/share/locale
/usr/share/locale/de
/usr/share/locale/de/LC_MESSAGES
/usr/share/locale/de/LC_MESSAGES/scim-hangul.mo
/usr/share/locale/fr
/usr/share/locale/fr/LC_MESSAGES
/usr/share/locale/fr/LC_MESSAGES/scim-hangul.mo
/usr/share/locale/ja
/usr/share/locale/ja/LC_MESSAGES
/usr/share/locale/ja/LC_MESSAGES/scim-hangul.mo
/usr/share/locale/ko
/usr/share/locale/ko/LC_MESSAGES
/usr/share/locale/ko/LC_MESSAGES/scim-hangul.mo
/usr/share/locale/zh_CN
/usr/share/locale/zh_CN/LC_MESSAGES
/usr/share/locale/zh_CN/LC_MESSAGES/scim-hangul.mo
/usr/share/scim
/usr/share/scim/icons
/usr/share/scim/icons/scim-hangul.png
/usr/share/doc
/usr/share/doc/scim-hangul
/usr/share/doc/scim-hangul/changelog.gz
/usr/share/doc/scim-hangul/NEWS.gz
/usr/share/doc/scim-hangul/README
/usr/share/doc/scim-hangul/TODO.Debian
/usr/share/doc/scim-hangul/copyright
/usr/share/doc/scim-hangul/changelog.Debian.gz
/etc
/etc/X11
/etc/X11/xinit
/etc/X11/xinit/xinput.d
/etc/X11/xinit/xinput.d/scim-hangul_xim
/etc/X11/xinit/xinput.d/scim-hangul_scim
atie@matrix:~/download/mypackage/scim-test$ ls -l /etc/X11/xinit/xinput.d
total 20
lrwxrwxrwx 1 root root 30 2006-02-04 09:32 ja_JP -> /etc/alternatives/xinput-ja_JP
lrwxrwxrwx 1 root root 30 2005-12-29 11:39 ko_KR -> /etc/alternatives/xinput-ko_KR
-rw-r--r-- 1 root root 65 2006-01-23 10:25 nabi
-rw-r--r-- 1 root root 52 2005-10-27 21:49 none
-rw-r--r-- 1 root root 117 2006-02-02 10:55 scim
-rw-r--r-- 1 root root 437 2006-03-05 04:26 scim-hangul_scim
-rw-r--r-- 1 root root 361 2006-03-05 04:26 scim-hangul_xim
atie@matrix:~/download/mypackage/scim-test$ ls -l /etc/alternatives/xinput-ko_KR
lrwxrwxrwx 1 root root 28 2006-03-05 04:58 /etc/alternatives/xinput-ko_KR -> /etc/X11/xinit/xinput.d/nabi
atie@matrix:~/download/mypackage/scim-test$ sudo apt-get remove --purge nabi
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
nabi*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 1032kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 216393 files and directories currently installed.)
Removing nabi ...
Purging configuration files for nabi ...
atie@matrix:~/download/mypackage/scim-test$ ls -l /etc/alternatives/xinput-ko_KR
lrwxrwxrwx 1 root root 40 2006-03-05 05:12 /etc/alternatives/xinput-ko_KR -> /etc/X11/xinit/xinput.d/scim-hangul_scim
I made scim-hangul 0.2.1-1ubuntu1 deb with the patches above and installed it. es/xinput- ko_KR with scim if I already have nabi installed, got to remove nabi then it's fine as below.
But, it doesn't update /etc/alternativ
atie@matrix: ~/download/ mypackage/ scim-test$ sudo dpkg -i scim*.deb 0.2.1-1ubuntu1_ i386.deb) ...
Password:
(Reading database ... 216394 files and directories currently installed.)
Preparing to replace scim-hangul 0.2.1-1ubuntu1 (using scim-hangul_
Unpacking replacement scim-hangul ...
Setting up scim-hangul (0.2.1-1ubuntu1) ...
atie@matrix: ~/download/ mypackage/ scim-test$ dpkg -L scim-hangul scim-1. 0/1.4.0 scim-1. 0/1.4.0/ IMEngine scim-1. 0/1.4.0/ IMEngine/ hangul. so scim-1. 0/1.4.0/ SetupUI scim-1. 0/1.4.0/ SetupUI/ hangul- imengine- setup.so locale/ de locale/ de/LC_MESSAGES locale/ de/LC_MESSAGES/ scim-hangul. mo locale/ fr locale/ fr/LC_MESSAGES locale/ fr/LC_MESSAGES/ scim-hangul. mo locale/ ja locale/ ja/LC_MESSAGES locale/ ja/LC_MESSAGES/ scim-hangul. mo locale/ ko locale/ ko/LC_MESSAGES locale/ ko/LC_MESSAGES/ scim-hangul. mo locale/ zh_CN locale/ zh_CN/LC_ MESSAGES locale/ zh_CN/LC_ MESSAGES/ scim-hangul. mo scim/icons scim/icons/ scim-hangul. png doc/scim- hangul doc/scim- hangul/ changelog. gz doc/scim- hangul/ NEWS.gz doc/scim- hangul/ README doc/scim- hangul/ TODO.Debian doc/scim- hangul/ copyright doc/scim- hangul/ changelog. Debian. gz xinit/xinput. d xinit/xinput. d/scim- hangul_ xim xinit/xinput. d/scim- hangul_ scim ~/download/ mypackage/ scim-test$ ls -l /etc/X11/ xinit/xinput. d es/xinput- ja_JP es/xinput- ko_KR ~/download/ mypackage/ scim-test$ ls -l /etc/alternativ es/xinput- ko_KR es/xinput- ko_KR -> /etc/X11/ xinit/xinput. d/nabi ~/download/ mypackage/ scim-test$ sudo apt-get remove --purge nabi ~/download/ mypackage/ scim-test$ ls -l /etc/alternativ es/xinput- ko_KR es/xinput- ko_KR -> /etc/X11/ xinit/xinput. d/scim- hangul_ scim
/.
/usr
/usr/lib
/usr/lib/scim-1.0
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/share
/usr/share/locale
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/scim
/usr/share/
/usr/share/
/usr/share/doc
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/etc
/etc/X11
/etc/X11/xinit
/etc/X11/
/etc/X11/
/etc/X11/
atie@matrix:
total 20
lrwxrwxrwx 1 root root 30 2006-02-04 09:32 ja_JP -> /etc/alternativ
lrwxrwxrwx 1 root root 30 2005-12-29 11:39 ko_KR -> /etc/alternativ
-rw-r--r-- 1 root root 65 2006-01-23 10:25 nabi
-rw-r--r-- 1 root root 52 2005-10-27 21:49 none
-rw-r--r-- 1 root root 117 2006-02-02 10:55 scim
-rw-r--r-- 1 root root 437 2006-03-05 04:26 scim-hangul_scim
-rw-r--r-- 1 root root 361 2006-03-05 04:26 scim-hangul_xim
atie@matrix:
lrwxrwxrwx 1 root root 28 2006-03-05 04:58 /etc/alternativ
atie@matrix:
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
nabi*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 1032kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 216393 files and directories currently installed.)
Removing nabi ...
Purging configuration files for nabi ...
atie@matrix:
lrwxrwxrwx 1 root root 40 2006-03-05 05:12 /etc/alternativ