[root@fedora ~]# yumdownloader --noplugins --source postgrey ← PostgreyのSRPMダウンロード
[root@fedora ~]# rpm -ivh postgrey-1.30-1.fc8.src.rpm ← PostgreyのSRPM展開
※ユーザ、グループが存在しない旨の警告メッセージが表示されるが問題ない
[root@fedora ~]# cd rpmbuild/SOURCES/ ← PostgreyのSRPM展開先ディレクトリへ移動※F10,F11,F12,F13,F14の場合
[root@fedora ~]# cd /usr/src/redhat/SOURCES/ ← PostgreyのSRPM展開先ディレクトリへ移動※F9の場合
[root@fedora SOURCES]# tar zxvf postgrey-1.30.tar.gz ← Postgreyソース展開
[root@fedora SOURCES]# cd postgrey-1.30 ← Postgreyソース展開先ディレクトリへ移動
[root@fedora postgrey-1.30]# wget http://k2net.hakuba.jp/pub/targrey-0.31-postgrey-1.30.patch ← targreyパッチダウンロード
※最新版のURLはダウンロードページで確認すること
[root@fedora postgrey-1.30]# patch -p0 < targrey-0.31-postgrey-1.30.patch ← targreyパッチ施行
patching file postgrey
[root@fedora postgrey-1.30]# cd .. ← 上位ディレクトリへ移動
[root@fedora SOURCES]# rm -f postgrey-1.30.tar.gz && tar czvf postgrey-1.30.tar.gz postgrey-1.30 ← Postgreyソース再アーカイブ
[root@fedora SOURCES]# rm -rf postgrey-1.30 ← Postgreyソース展開先ディレクトリ削除
[root@fedora SOURCES]# cd ← ホームディレクトリへ戻る
[root@fedora ~]# rpmbuild -bb --clean rpmbuild/SPECS/postgrey.spec ← PostgreyのRPM作成※F10,F11,F12,F13,F14の場合
[root@fedora ~]# rpmbuild -bb --clean /usr/src/redhat/SPECS/postgrey.spec ← PostgreyのRPM作成※F9の場合
※rpmbuildが「ビルド依存性の失敗」で異常終了した場合
[root@fedora ~]# yum -y install postgrey && rpm -e postgrey ← Postgrey依存パッケージインストール
[root@fedora ~]# rpm -ivh rpmbuild/RPMS/noarch/postgrey-1.31-1.fc10.noarch.rpm ← 作成したPostgreyのRPMインストール※F10,F11,F12,F13,F14の場合
[root@fedora ~]# rpm -ivh /usr/src/redhat/RPMS/noarch/postgrey-1.30-1.fc9.noarch.rpm ← 作成したPostgreyのRPMインストール※F9の場合
Preparing... ########################################### [100%]
1:postgrey ########################################### [100%]
[root@fedora ~]# rm -f rpmbuild/RPMS/noarch/postgrey-* ← 作成したRPMを削除※F10,F11,F12,F13,F14の場合
[root@fedora ~]# rm -f /usr/src/redhat/RPMS/noarch/postgrey-* ← 作成したRPMを削除※F9の場合
[root@fedora ~]# rpmbuild --rmsource --rmspec rpmbuild/SPECS/postgrey.spec ← RPM作成後始末※F10,F11,F12,F13,F14の場合
[root@fedora ~]# rpmbuild --rmsource --rmspec /usr/src/redhat/SPECS/postgrey.spec ← RPM作成後始末※F9の場合
[root@fedora ~]# rm -f postgrey-1.30-1.fc8.src.rpm ← ダウンロードしたSRPMを削除
|
|