openvpnのビルド

# apt-cache search openvpn
openvpn - Virtual Private Network daemon

# apt-get install -s openvpn
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
openvpn: Depends: libssl0.9.6 but it is not going to be installed
E: Broken packages

パッケージはあるけど、依存関係でlibsslがバージョン違いのようだ。

# dpkg -l | grep libssl
ii libssl0.9.7 0.9.7e-3 SSL shared libraries

古すぎで問題になっているかと思えば、新らしすぎらしい。
いつものビルド環境ではなかったので、2.4.21-lantankなパッケージ作成環境Rapunzelにシフトする。

Build-Depends: debhelper (>= 4.1.16), libssl-dev (>> 0.9.6), liblzo-dev, libpam0g-dev

ビルドに必要な環境を整える。
んで、ビルド。
pthreadがnoばかりだな。
epollもサポートしているのか。Debian26だといい感じになりそうね。
特に問題もなくできた。
インストールする。
/dev/net/tunを作るかどうかの画面が出る。YESで作る。
アップグレードの前にセッションを切るかどうか聞いてきた。これもYESでいいかな。
openvpnを再起動して終了した。
でも、ps取っても動いている様子はない感じなんですが。待ちうけデーモンという感じの実装じゃないのかな。
エラーは特に吐いてない。
inetd.confから起動するように設定されたわけでもない。
バイスはちゃんと出来ているようだ。

# ls -al /dev/net/tun
crw-r--r-- 1 root root 10, 200 Oct 13 15:04 /dev/net/tun

/etc/openvpn/には何も入ってない。
とりあえず、これを参照していて接続先ホストの情報がないから止まっているということかな...

# cat /etc/default/openvpn

# This is the configuration file for /etc/init.d/openvpn

#
# Start only these VPNs automatically via init script.
# Allowed values are "all", "none" or space separated list of
# names of the VPNs. If empty, "all" is assumed.
#
#AUTOSTART="all"
#AUTOSTART="none"
#AUTOSTART="home office"
#
# Refresh interval (in seconds) of default status files
# located in /var/run/openvpn.$NAME.status
# Defaults to 10, 0 disables status file generation
#
#STATUSREFRESH=10
#STATUSREFRESH=0

とりあえず、パッケージはできたということで、設定などはまたの機会に。