読者です 読者をやめる 読者になる 読者になる

まず、noIPをportからインストールする。

#cd /usr/ports/dns/noip
#make install clean
===> License GPLv2 accepted by the user
=> noip-2.1.9.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://www.no-ip.com/client/linux/noip-2.1.9.tar.gz
noip-2.1.9.tar.gz 100% of 149 kB 208 kBps
===> Extracting for noip-2.1.9_2
=> SHA256 Checksum OK for noip-2.1.9.tar.gz.
===> Patching for noip-2.1.9_2
===> Applying FreeBSD patches for noip-2.1.9_2
===> Configuring for noip-2.1.9_2
===> Building for noip-2.1.9_2
cc -Dbsd_with_getifaddrs -DPREFIX=\"/usr/local\" noip2.c -o noip2
===> Installing for noip-2.1.9_2
===> Generating temporary packing list
===> Checking if dns/noip already installed
===> Creating users and/or groups.
Creating group `noip' with gid `939'.
Creating user `noip' with uid `939'.
install -s -o root -g wheel -m 555 /usr/ports/dns/noip/work/noip-2.1.9/noip2 /usr/local/bin
/bin/mkdir -p /usr/local/share/doc/noip
install -o root -g wheel -m 444 /usr/ports/dns/noip/work/noip-2.1.9/README.FIRST /usr/local/share/doc/noip
install -o root -g wheel -m 444 /usr/ports/dns/noip/work/noip-2.1.9/COPYING /usr/local/share/doc/noip
===> Installing rc.d startup script(s)
###########################################################
You need to generate the noip config file 'no-ip2.conf' in
/usr/local/etc/no-ip2.conf. To do this automatically, run:

make conf

You need to register with www.no-ip.com to use this port.

You also need to add the following line to your
/etc/rc.conf or /etc/rc.conf.local file:
noip_enable="YES"
###########################################################
===> Correct pkg-plist sequence to create group(s) and user(s)
===> Registering installation for noip-2.1.9_2
===> Cleaning for noip-2.1.9_2

だということなので、
root@hpbsd:/usr/ports/dns/noip #
root@hpbsd:/usr/ports/dns/noip # make conf
(cd /usr/local/etc && /usr/local/bin/noip2 -C)

Auto configuration for FreeBSD client of no-ip.com.

Multiple network devices have been detected.

Please select the Internet interface from this list.

By typing the number associated with it.
0 bge0
1 usbus0
2 usbus1
3 usbus2
4 usbus3
5 usbus4
6 usbus5
0
Please enter the login/email string for no-ip.com ^C
root@hpbsd:/usr/ports/dns/noip # make conf
(cd /usr/local/etc && /usr/local/bin/noip2 -C)

Auto configuration for FreeBSD client of no-ip.com.

Multiple network devices have been detected.

Please select the Internet interface from this list.

By typing the number associated with it.
0 bge0
1 usbus0
2 usbus1
3 usbus2
4 usbus3
5 usbus4
6 usbus5
0
Please enter the login/email string for no-ip.com abc@gmail.com
Please enter the password for user 'abc@gmail.com' *************************************

Only one host [ymlab.no-ip.biz] is registered to this account.
It will be used.
Please enter an update interval:[30] 10
Do you wish to run something at successful update?[N] (y/N) y
Please enter the script/program name

New configuration file '/usr/local/etc/no-ip2.conf' created.

/usr/sbin/chown noip:noip /usr/local/etc/no-ip2.conf
/bin/chmod 0600 /usr/local/etc/no-ip2.conf

というわけで、 /usr/local/etc/no-ip2.conf に設定ファイルが入る。ところが、これはvimでは編集できない。
したがって、設定を変えたい場合は、
#cd /usr/ports/dns/noip/make conf
とすればよい。


最後に、
make install が終わったあとで、
/etc/rc.conf or /etc/rc.conf.local file:
noip_enable="YES"
と書かれていた通り、
rc.confをいじくって終わり。