LoginSignup
3
3

More than 5 years have passed since last update.

CentOS7 で FDclone

Last updated at Posted at 2015-05-13

準備

sudo yum install wget
sudo yum install rpm-build

作業ディレクトリを作成し、移動する。

mkdir -p ~/src/FDclone
cd ~/src/FDclone

作者サイト から ソースをダウンロード

wget http://hp.vector.co.jp/authors/VA012337/soft/fd/FD-3.01b.tar.gz

ダウンロードしたファイルを展開する。

tar -xvzf FD-3.01b.tar.gz

rpm ファイルを作成する。

インストールする。

設定ファイルを変更する。


FDclone_install.sh
#!/bin/sh
# FDclone を CentOS 7 にインストール

# インストールに必要な各種ファイルのインストール

# wget:webサイトからファイルをダウンロードする。
# rpm-build:rpmファイルを作成する。
# gcc:C-コンパイラ
# ncurses-devel:FDcloneのコンパイルに必要なライブラリ
# nano:テキストエディタ:設定ファイル編集用
sudo yum install wget
sudo yum install rpm-build
sudo yum install gcc
sudo yum install ncurses-devel
sudo yum install nano

# ソースファイルの保存用フォルダを作成し、移動する。
mkdir -p ~/src/FDclone
cd ~/src/FDclone

# ソースファイルをダウンロードし、rpmファイルを作成する。
wget http://hp.vector.co.jp/authors/VA012337/soft/fd/FD-3.01b.tar.gz
rpmbuild -tb --clean FD-3.01b.tar.gz

# 作成した rpm ファイルを元にインストールする。
cd ~/rpmbuild/RPMS/x86_64/
sudo yum install FDclone-3.01b-1.x86_64.rpm

# 設定ファイルを編集する。
sudo nano -w /etc/fd2rc

fd2rc.patch
--- fd2rc.orig  2015-05-14 05:51:29.298738457 +0900
+++ fd2rc   2015-05-14 05:56:53.265719377 +0900
@@ -17,6 +17,7 @@
 #  200-213: preserve previous sort type also in the archive browser
 #      (the least 2 digits are effective just after initialize)
 #SORTTYPE=0
+SORTTYPE=1

 # default display mode
 #  0: normal (Default)
@@ -33,6 +34,7 @@
 #  0: not sort (Default)
 #  >= 1: sort according to SORTTYPE
 #SORTTREE=0
+SORTTREE=1

 # behavior about writing over directory on file system
 #  0: confirm to write or not, after directory arranged (Default)
@@ -184,6 +186,7 @@
 #  2: color & force background to blacken
 #  3: color & force foreground to blacken
 #ANSICOLOR=0
+ANSICOLOR=1

 # color palette in the ANSI color mode
 #  Default: none

こっちに Makefile とかを作ってみた。

参考サイト

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3