まずはパッケージを探す
$ port search wget
gwget @1.0.4 (gnome, net)
Gwget is a Download Manager for Gnome 2. It uses wget as a backend.
wget @1.12 (net, www)
internet file retriever
wgetpro @0.1.3 (net, www)
advanced internet file retriever
wput @0.6.2 (net)
wput is like wget but is for uploading files to ftp-servers
Found 4 ports.
次にオプションの確認。
$ port variants wget
wget has the variants:
no_ssl: Build without SSL support
* conflicts with ssl
[+]ssl: Build with SSL support
* conflicts with no_ssl
test
universal: Build for multiple architectures
何も考えずそのままオプション無しでインストールしてOKぽい。
なのですぐにインストール。
$ sudo port install wget
---> Computing dependencies for wget
---> Fetching wget
---> Attempting to fetch wget-1.12.tar.gz from ftp://ftp.dti.ad.jp/pub/GNU/wget
---> Verifying checksum(s) for wget
---> Extracting wget
---> Applying patches to wget
---> Configuring wget
---> Building wget
---> Staging wget into destroot
---> Installing wget @1.12_3+ssl
---> Activating wget @1.12_3+ssl
To customize wget, you can copy wgetrc.sample to wgetrc
in /opt/local/etc and then make changes.
---> Cleaning wget
wgetrcの設定内容を変えればカスタマイズ出来るよ的なメッセージが出てきたが、デフォルトで困ることも無さそうなので無視。
以上でインストールは完了。
念のためテスト
$ wget http://google.com
カレントディレクトリにHTMLファイルが作られたことを確認してテスト完了。
0 件のコメント:
コメントを投稿