ケイススタディ
入門 Debian パッケージのナニを試す。
$ LANG=C wget ftp://ftp.gnu.org/gnu/hello/hello-2.1.1.tar.gz --17:03:07-- ftp://ftp.gnu.org/gnu/hello/hello-2.1.1.tar.gz => `hello-2.1.1.tar.gz.1' Resolving ftp.gnu.org... 140.186.70.20 Connecting to ftp.gnu.org|140.186.70.20|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /gnu/hello ... done. ==> PASV ... done. ==> RETR hello-2.1.1.tar.gz ... done. Length: 389,363 (380K) (unauthoritative) 100%[=================================================================================================>] 389,363 178.63K/s 17:03:12 (178.30 KB/s) - `hello-2.1.1.tar.gz' saved [389363] $ tar zxvf hello-2.1.1.tar.gz (略 $ cd hello-2.1.1 $ dh_make --single --copyright gpl -createorig Maintainer name : rms Email-Address : rms@debian Date : Sun, 26 Oct 2008 17:07:54 +0900 Package Name : hello Version : 2.1.1 License : gpl Type of Package : Single Hit <enter> to confirm: Done. Please edit the files in the debian/ subdirectory now. hello uses a configure script, so you probably don't have to edit the Makefiles. $ ls .. hello-2.1.1 hello-2.1.1.orig hello-2.1.1.tar.gz $
debian ディレクトリの中身を見てみる。なんたら.ex という名前のファイルがいくつかありますな。
$ ls -l *.ex -rw-r--r-- 1 rms rms 79 2008-10-26 17:07 cron.d.ex -rw-r--r-- 1 rms rms 1226 2008-10-26 17:07 emacsen-install.ex -rw-r--r-- 1 rms rms 459 2008-10-26 17:07 emacsen-remove.ex -rw-r--r-- 1 rms rms 1121 2008-10-26 17:07 emacsen-startup.ex -rw-r--r-- 1 rms rms 229 2008-10-26 17:07 hello-default.ex -rw-r--r-- 1 rms rms 2112 2008-10-26 17:07 init.d.ex -rw-r--r-- 1 rms rms 1719 2008-10-26 17:07 manpage.1.ex -rw-r--r-- 1 rms rms 4624 2008-10-26 17:07 manpage.sgml.ex -rw-r--r-- 1 rms rms 4581 2008-10-26 17:07 manpage.xml.ex -rw-r--r-- 1 rms rms 112 2008-10-26 17:07 menu.ex -rw-r--r-- 1 rms rms 957 2008-10-26 17:07 postinst.ex -rw-r--r-- 1 rms rms 930 2008-10-26 17:07 postrm.ex -rw-r--r-- 1 rms rms 690 2008-10-26 17:07 preinst.ex -rw-r--r-- 1 rms rms 877 2008-10-26 17:07 prerm.ex -rw-r--r-- 1 rms rms 664 2008-10-26 17:07 watch.ex $
むむむ、とウナりつつ、以下なコンテンツも見つけています。
maint-guide-ja パケジで云々、とあるのでパケジも入れる。とりあえず色々試しつつ材料というか根拠を確認する必要あり。