差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
os:freebsd:ports:start [2010/04/18 00:46]
yuki
os:freebsd:ports:start [2011/11/04 05:41] (現在)
yuki
ライン 1: ライン 1:
 ====== ports ====== ====== ports ======
-FreeBSDのportsはaptとかyumとは少し趣が違って、\\ +FreeBSDのportsはaptとかyumとは少し趣が違って、ソースを落として自分でコンパイルする仕組み(だといいなぁ)。\\
-ソースを落として自分でコンパイルする仕組み(だといいなぁ)。\\+
 FreeBSDを導入時によく使うのでメモ程度に。 FreeBSDを導入時によく使うのでメモ程度に。
  
ライン 7: ライン 6:
 portsシステムにおけるソフトウェアの一覧。 portsシステムにおけるソフトウェアの一覧。
  
-日本語環境でハンガリー語とかベトナム語使う人は少ないので、\\ +日本語環境でハンガリー語とかベトナム語使ないから最初に削ってお
-そういった部分は最初に削っておきます+
 <​code>​ <​code>​
-cat "​REFUSE arabic chinese french german hebrew hungarian"​ >> /​etc/​portsnap.conf +# echo "​REFUSE arabic chinese french german hebrew hungarian"​ >> /​etc/​portsnap.conf 
-cat "​REFUSE korean polish portuguese russian ukrainian vietnamese"​ >> /​etc/​portsnap.conf+# echo "​REFUSE korean polish portuguese russian ukrainian vietnamese"​ >> /​etc/​portsnap.conf
 </​code>​ </​code>​
  
 初回はportsツリーが無いので一から作成。 初回はportsツリーが無いので一から作成。
 <​code>​ <​code>​
-portsnap fetch extract +portsnap fetch extract 
-</code+</code>
 2回目以降は差分だけアップデート 2回目以降は差分だけアップデート
 <​code>​ <​code>​
-portsnap fetch update+portsnap fetch update
 </​code>​ </​code>​
  
 ===== 普段の使い方 ===== ===== 普段の使い方 =====
-openssh-portableをインストールする際のプロセス。 
  
   - 目的のportsを探す。   - 目的のportsを探す。
   - ディレクトリ移動   - ディレクトリ移動
   - make install clean   - make install clean
 +    * make config-recursiveを先に使用することで、依存関係先のmakeコンフィグも一括で先に設定できる。お茶でも飲もう。
  
-例:+例:openssh-portable
 <​code>​ <​code>​
 # whereis openssh-portable # whereis openssh-portable
ライン 37: ライン 35:
 # make install clean # make install clean
 </​code>​ </​code>​
-基本的にディレクトリを探しているだけなので、\\ + 
-Linuxでは確かこんな名前だったなぁ、で探した後にwhereisしてもいいと(俺は)思う。+ 
 +基本的にディレクトリを探しているだけなので、Linuxでは確かこんな名前だったなぁ。\\ 
 +とか言いながら探した後にwhereisしてもいいと(俺は)思う。\\ 
 +この辺はapt-cacheを使うのと似てる。(原始的という意見もある。) 
 + 
 +例:squidの場合
 <​code>​ <​code>​
 # ls /​usr/​ports/​* | grep squid # ls /​usr/​ports/​* | grep squid
ライン 53: ライン 56:
 squidview squidview
 # whereis squid31 # whereis squid31
 +squid31: /​usr/​ports/​www/​squid31
 +# cd /​usr/​ports/​www/​squid31
 +# make install clean
 </​code>​ </​code>​
 +
 +===== パッチがbrokenになったとき =====
 +例えば、以下のようなメッセージが出力された場合
 +<​code>#​ pkg_replace openssh-portable
 +---> ​ Replacing '​openssh-portable-5.2.p1_3,​1'​ with '​openssh-portable-5.8.p2,​1'​
 +---> ​ Building '/​usr/​ports/​security/​openssh-portable'​
 +===> ​ openssh-portable-5.8.p2,​1 is marked as broken: latest upstream sftp file control public key patch is not up to date for OpenSSH 5.8p2.
 +*** Error code 1</​code>​
 +make configを行い、(broken)と付いたパッチのチェックを外して([X] -> [ ])、再度makeしてみること。
 +
 +
 +{{tag>​freebsd ports}}
 +
 +
  
os/freebsd/ports/start.1271519194.txt.gz · 最終更新: 2010/05/22 17:40 (外部編集)
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0