Apple Support Communities にポストされていたらしい。
まだ試してないが、gpgの作成がめんどくさい。
11/4作成(本当に必要だったか疑問)
sparrow,swallow共に変更
構築時は以下の様なエラーがでる。
dpkg-deb: `../mt-daapd_0.9~r1696.dfsg-15build2_amd64.deb' にパッケージ `mt-daapd' を構築しています。
dpkg-genchanges >../mt-daapd_0.9~r1696.dfsg-15build2_amd64.changes
dpkg-genchanges: not including original source code in upload
dpkg-buildpackage: binary and diff upload (original source NOT included)
Now running lintian...
W: mt-daapd source: missing-debian-source-format
W: mt-daapd source: patch-system-but-no-source-readme
W: mt-daapd source: out-of-date-standards-version 3.8.3 (current is 3.8.4)
N: 2 tags overridden (2 warnings)
Finished running lintian.
Now signing changes and any dsc files...
signfile mt-daapd_0.9~r1696.dfsg-15build2.dsc Akira Tsuruta <kei@dhc119.in.craine.ne.jp>
gpg: “Akira Tsuruta <kei@dhc119.in.craine.ne.jp>”をとばします: 秘密鍵が得られません
gpg: /tmp/debsign.eQyGT8ug/mt-daapd_0.9~r1696.dfsg-15build2.dsc: clearsign failed: 秘密鍵が得られません
debsign: gpg error occurred! Aborting....
debuild: fatal error at line 1261:
running debsign failed
I'm running FireFly on an Ubuntu box and have entered the following commands applying the patch:
1. Install the required packages
$ sudo aptitude install gpa devscripts debhelper dpatch libflac-dev libvorbis-dev libmpcdec-dev libavcodec-dev libavformat-dev libid3tag0-dev libtagc0-dev libavahi-client-dev libsqlite3-dev libjs-prototype libjs-scriptaculous avahi-daemon
2. If an old version of the server is running stop it first
$ sudo /etc/init.d/mt-daapd stop
3. Create a temporary directory for the MT-daapd source files
$ mkdir ~/mt-daapd
$ cd ~/mt-daapd
$ sudo apt-get source mt-daapd
4. Download the Patch in the Patch directory
$ cd ~/mt-daapd/mt-daapd-0.9~r1696.dfsg/debian/patches/
$ echo 21_itunes10.5.dpatch >> 00list
$ cd ../..
5. Before continueing building the package, you will need to be able to sign it :
$ gpg --gen-key
Use the default steps but enter the following names, and remember the passphrase:
Real name: %user_currently_logged_on%
Email address: %user_currently_logged_on%@%hostname%
Where
%user_currently_logged_on% = current user that runs the build scipt in step 6
%hostname% = the hostname of your ubuntu box
It could take a while before the key gets generated. (it's normal that you get the message
"Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need 279 more bytes)"
After generating the key you can run the following command
$ gpg --list-secret-keys
The UID should have the following format :
%user_currently_logged_on% <%user_currently_logged_on%@%hostname%>
6. Build the package (no "sudo" needed in front of commands)
$ dch -i "Fix for iTunes 10"
$ debuild -us -us
PS. You will need the passphrase from step 5 to unlock the secret key for siging the package.
ここで失敗しているみたいだがdebはできてる。
7. Install and run mt-daapd
sudo dpkg -i mt-daapd_0.9~r1696.dfsg-15build2_amd64.deb