試したのはCentOS 5.7(64bit版)です。
1.必要なパッケージをインストールする
# yum -y install rpm-build gcc gdbm-devel zlib-devel avahi-compat-howl-devel avahi-compat-howl
2.必要なパッケージlibid3-tagをダウンロードし、インストールする
# wget http://pkgs.repoforge.org/libid3tag/libid3tag-0.15.1b-3.el5.rf.x86_64.rpm # rpm -ivh libid3tag-0.15.1b-3.el5.rf.x86_64.rpm
3.必要なパッケージlibid3tag-develをダウンロードしインストールする
# wget http://pkgs.repoforge.org/libid3tag/libid3tag-devel-0.15.1b-3.el5.rf.x86_64.rpm # rpm -ivh libid3tag-devel-0.15.1b-3.el5.rf.x86_64.rpm
4.mt-daapdのソースパッケージをダウンロードする
# wget http://sourceforge.net/projects/mt-daapd/files/mt-daapd/0.2.4/mt-daapd-0.2.4-1.src.rpm/download
3.ダウンロードしたソースパッケージをインストールする
# rpm -ivh mt-daapd-0.2.4-1.src.rpm
4./usr/src/redhat/SPECS/mt-daapd.specを修正する
変更点はこんな感じ
10行目:変更前 Requires: libid3tag gdbm howl 10行目:変更後 Requires: libid3tag gdbm avahi-compat-howl 11行目:変更前 BuildRequires: libid3tag-devel gdbm-devel howl-devel 11行目:変更後 BuildRequires: libid3tag-devel gdbm-devel avahi-compat-howl-devel 22行目:変更前 ./configure --prefix=$RPM_BUILD_ROOT/usr --enable-howl --with-howl-includes=/usr/include/howl-0.9.8 22行目:変更後 ./configure --prefix=$RPM_BUILD_ROOT/usr --enable-howl --with-howl-includes=/usr/include/avahi-compat-howl
修正後の/usr/src/redhat/SPECS/mt-daapd.specはこんな感じ
Summary: A multi-threaded implementation of Apple's DAAP server Name: mt-daapd Version: 0.2.4 Release: 1 License: GPL Group: Development/Networking URL: http://sourceforge.net/project/showfiles.php?group_id=98211 Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Requires: libid3tag gdbm avahi-compat-howl BuildRequires: libid3tag-devel gdbm-devel avahi-compat-howl-devel %description A multi-threaded implementation of Apple's DAAP server, mt-daapd allows a Linux machine to advertise MP3 files to to used by Windows or Mac iTunes clients. This version uses Apple's ASPL Rendezvous daemon. %prep %setup -q %build ./configure --prefix=$RPM_BUILD_ROOT/usr --enable-howl --with-howl-includes=/usr/include/avahi-compat-howl
5.ビルドとインストールを実行する
# rpmbuild -ba /usr/src/redhat/SPECS/mt-daapd.spec # rpm -ihv /usr/src/redhat/RPMS/x86_64/mt-daapd-0.2.4-1.x86_64.rpm
6.daapdの設定を行なう。/etc/mt-daapd.conf
admin_pw mt-daapd mp3_dir /mnt/mp3 servername mt-daapd
7.DAAPが使用するポート3689を開放する
# lokkit
8.mp3_dirで指定したディレクトリを作成する
# mkdir /mnt/mp3
9.サービスを開始する
# mt-daapd start
これでよかったはず。