1 --- hostname/hostname.1.orig 2011-12-23 11:06:18.000000000 +0100
2 +++ hostname/hostname.1 2011-12-26 13:51:57.685537617 +0100
10 +is used to get the hostname. When the
11 +.BR "hostname \-a, \-d, \-f or \-i"
14 +be called. The difference in
20 +is network aware, so it consults
21 +.IR /etc/nsswitch.conf
24 +to decide whether to read information in
25 +.IR /etc/sysconfig/network
29 +To add another dimension to this,
32 +is also set when the network interface is brought up.
35 When called with one argument or with the
39 .BR setdomainname (2).
40 Note, that this is effective only until the next reboot.
41 -Edit /etc/hostname for permanent change.
42 +After reboot original names from \fI/etc/hosts\fR are used again.
44 Note, that only the super-user can change the names.
49 The host name is usually set once at system startup in
50 -.I /etc/init.d/hostname.sh
51 +.I /etc/rc.d/rc.sysinit
52 (normally by reading the contents of a file which contains
55 +.IR /etc/sysconfig/network ).
58 You can't change the FQDN (as returned by
60 Print version information on standard output and exit successfully.
63 -Be verbose and tell what's going on.
64 +Verbose output was removed.
66 .I "\-y, \-\-yp, \-\-nis"
67 Display the NIS domain name. If a parameter is given (or
73 -Historically this file was supposed to only contain the hostname and not the
74 -full canonical FQDN. Nowadays most software is able to cope with a full FQDN here.
75 +.B /etc/sysconfig/network
77 Peter Tobias, <tobias@et-inf.fho-emden.de>
79 --- hostname/Makefile.orig 2012-02-16 16:00:52.000000000 +0100
80 +++ hostname/Makefile 2012-02-27 19:50:50.216326829 +0100
84 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) -lnsl
85 - ln -fs hostname dnsdomainname
86 - ln -fs hostname domainname
87 - ln -fs hostname ypdomainname
88 - ln -fs hostname nisdomainname
91 install -d ${BASEDIR}/usr/share/man/man1
92 - install -o root -g root -m 0644 hostname.1 ${BASEDIR}/usr/share/man/man1
93 + install -m 0644 hostname.1 ${BASEDIR}/usr/share/man/man1
94 ln -fs hostname.1 ${BASEDIR}/usr/share/man/man1/dnsdomainname.1
95 ln -fs hostname.1 ${BASEDIR}/usr/share/man/man1/domainname.1
96 ln -fs hostname.1 ${BASEDIR}/usr/share/man/man1/ypdomainname.1
97 ln -fs hostname.1 ${BASEDIR}/usr/share/man/man1/nisdomainname.1
98 - #install -o root -g root -m 0644 hostname.1.fr ${BASEDIR}/usr/share/man/fr/man1/hostname.1
99 + install -d ${BASEDIR}/usr/share/man/fr/man1
100 + install -m 0644 hostname.1.fr ${BASEDIR}/usr/share/man/fr/man1/hostname.1
101 + ln -fs hostname.1 ${BASEDIR}/usr/share/man/fr/man1/dnsdomainname.1
102 + ln -fs hostname.1 ${BASEDIR}/usr/share/man/fr/man1/domainname.1
103 + ln -fs hostname.1 ${BASEDIR}/usr/share/man/fr/man1/ypdomainname.1
104 + ln -fs hostname.1 ${BASEDIR}/usr/share/man/fr/man1/nisdomainname.1
106 install -d ${BASEDIR}/bin
107 - install -o root -g root -m 0755 hostname ${BASEDIR}/bin
108 + install -m 0755 hostname ${BASEDIR}/bin
109 ln -f hostname ${BASEDIR}/bin/dnsdomainname
110 ln -f hostname ${BASEDIR}/bin/domainname
111 ln -f hostname ${BASEDIR}/bin/nisdomainname