■Debian v7 でCommuniGateProのdebパッケージを調べる
CommuniGate Proのdebパッケージが非公式ながら作成されていたので、どんな構成になっているのか調べてみたメモ。ちなみにCommuniGate ProとしてはLinuxではrpmでパッケージされたものが公式ということらしい。
■パッケージ情報を取得
- # dpkg-deb --info cgatepro-linux_6.0-5a_i386.deb
- 新形式 debian パッケージ、バージョン 2.0。
- サイズ 51972190 バイト: コントロールアーカイブ = 709 バイト。
- 24 バイト、 1 行 conffiles
- 293 バイト、 9 行 control
- 511 バイト、 22 行 * postinst #!/bin/sh
- 77 バイト、 5 行 * postrm #!/bin/sh
- 156 バイト、 7 行 * prerm #!/bin/sh
- Package:cgatepro-linux
- Version: 6.0-5a
- Priority: optional
- Architecture: i386
- Depends:
- Section: non-free/comm
- Maintainer: CommuniGate Systems <support@communigate.com>
- Description: THE Integrated Communication Server.
- SIP, XMPP, ESMTP, POP3, IMAP4, MAPI, List, Web Email, poppwd, LDAP, ACAP.
■パッケージ内のdata部分を表示
- # dpkg-deb -c cgatepro-linux_6.0-5a_i386.deb
- drwxr-xr-x root/root 0 2013-04-05 21:54 ./
- drwxr-xr-x root/root 0 2013-04-05 21:54 ./etc/
- drwxr-xr-x root/root 0 2013-04-05 21:54 ./etc/init.d/
- -rwxr-xr-x root/root 2806 2013-04-05 21:54 ./etc/init.d/CommuniGate
- drwxr-xr-x root/root 0 2013-04-05 21:54 ./usr/
- drwxr-xr-x root/root 0 2013-04-05 21:54 ./usr/share/
- drwxr-xr-x root/root 0 2013-04-05 21:54 ./usr/share/doc/
- drwxr-xr-x root/root 0 2013-04-05 21:54 ./usr/share/doc/cgatepro-linux/
- -rw-r--r-- root/root 2738 2013-04-05 21:54 ./usr/share/doc/cgatepro-linux/copyright
- drwxr-xr-x root/root 0 2013-04-05 21:54 ./opt/
- drwxr-xr-x root/root 0 2013-04-05 21:54 ./opt/CommuniGate/
- ...以下略
■パッケージのコントロール情報を展開して中身を確認する
- # dpkg-deb -e cgatepro-linux_6.0-5a_i386.deb
- # cd DEBIAN (DEBIANというディレクトリが生成される)
- # ls -al
- 合計 28
- drwxr-xr-x 2 root root 4096 4月 5 21:54 .
- drwx------ 5 root root 4096 5月 22 14:12 ..
- -rw-r--r-- 1 root root 24 4月 5 21:54 conffiles
- -rw-r--r-- 1 root root 293 4月 5 21:54 control
- -rwxr-xr-x 1 root root 511 4月 5 21:54 postinst
- -rwxr-xr-x 1 root root 77 4月 5 21:54 postrm
- -rwxr-xr-x 1 root root 156 4月 5 21:54 prerm
- # less でそれぞれ確認
■パッケージ内のdata部分を展開して確認する
- # mkdir test
- # dpkg-deb --extract cgatepro-linux_6.0-5a_i386.deb test
- # cd test
- # ls -al (などして確認)