unbound 使ってでびあんパケジの勉強
相変らず迷走してますな。tarfs はどこ行ったんだ、と。
とりあえず現時点で微妙なのが
- dh というコマンド
- debuild が具体的に何をしているのか
という事か。おそらく芋蔓方式でがんがん出てくるのかとは重いますが。
で、man dh 見てみたら dh - debhelper command sequencer との記述が出てきた。unbound-1.0.2-1 にある微妙な (?) debian/rules の以下な記述を確認できるかも。
#!/usr/bin/make -f #export DH_VERBOSE=1 %: dh $@ build: build-stamp build-stamp: dh build --before configure libtoolize --force aclocal autoheader autoconf dh_auto_configure -- \ --disable-rpath \ --with-chroot-dir=/var/lib/unbound \ --with-pidfile=/var/lib/unbound/unbound.pid dh_auto_build dh build --after test touch $@ clean: dh clean install: build dh install install -m 0644 doc/example.conf debian/unbound/etc/unbound/unbound.conf binary-arch: install dh binary-arch binary: binary-arch binary-indep
ええと man dh をざっくり確認してみます。
と言いつつ
よう分からんので DH_VERBOSE に 1 をナニして export してから debuild してみる事に。大体が
binary-arch: install dh binary-arch
みたいな記述は依存する install なソレをナニした後に再帰ループするように読めるのですが一体どーゆー事か、と。
# debuild >debuild.log 2>&1 &
してみてログを確認してみます。
で
出力されたログが 560 行。これを基に rules にあるナニのみを順にメモってみます。
dpkg-buildpackage -rfakeroot -D -us -uc (ry dh clean dh_testdir dh_auto_clean dh_clean dpkg-source -b unbound-1.0.2 (ry debian/rules build dh build --before configure dh_testdir libtoolize --force ( aclocal autoheader autoconf dh_auto_configure -- \ --disable-rpath \ --with-chroot-dir=/var/lib/unbound \ --with-pidfile=/var/lib/unbound/unbound.pid (ry dh_auto_build (ry dh build --after test touch build-stamp dh build fakeroot debian/rules binary dh build dh install dh_testroot dh_prep dh_installdirs dh_auto_install (ry install -m 0644 doc/example.conf debian/unbound/etc/unbound/unbound.conf dh binary-arch dh_strip -a dh_makeshlibs -a dh_shlibdeps -a (ry dh_installdeb -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a (ry dh binary-indep dh binary
どっかに書いてあったと思うのですが、debuild で
- clean
- build
- install
を順にナニ、とあったが記憶として微妙。
# binary はどこだよ、と ...
しかし
このあたりの根拠をきちんと確認した方が良さげ。余力があれば追記するかも。