]> git.pld-linux.org Git - packages/hostname.git/blob - hostname-rh.patch
- updated to 3.12
[packages/hostname.git] / hostname-rh.patch
1 --- hostname/hostname.1.orig    2012-12-06 16:18:46.000000000 +0100
2 +++ hostname/hostname.1 2012-12-09 11:54:21.413750393 +0100
3 @@ -84,6 +84,33 @@
4  .B "THE FQDN"
5  below).
6  
7 +.LP
8 +The function 
9 +.BR gethostname(2)
10 +is used to get the hostname.  When the 
11 +.BR "hostname \-a, \-d, \-f or \-i" 
12 +is called will 
13 +.BR gethostbyname(3)
14 +be called.  The difference in 
15 +.BR gethostname(2)
16 +and
17 +.BR gethostbyname(3)
18 +is that
19 +.BR gethostbyname(3)
20 +is network aware, so it consults 
21 +.IR /etc/nsswitch.conf
22 +and
23 +.IR /etc/host.conf
24 +to decide whether to read information in
25 +.IR /etc/sysconfig/network
26 +or
27 +.IR /etc/hosts
28 +
29 +To add another dimension to this,
30 +the 
31 +.B hostname 
32 +is also set when the network interface is brought up.
33 +
34  .SS "SET NAME"
35  When called with one argument or with the
36  .B \-\-file
37 @@ -99,7 +126,7 @@
38  use
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. 
43  .LP
44  Note, that only the super-user can change the names.
45  .LP
46 @@ -110,10 +137,10 @@
47  below).
48  .LP
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
53  the host name, e.g.
54 -.IR /etc/hostname ).
55 +.IR /etc/sysconfig/network ).
56  
57  .SS THE FQDN
58  The FQDN (Fully Qualified Domain Name) of the system is the name that the
59 @@ -225,7 +252,7 @@
60  Display the short host name. This is the host name cut at the first dot.
61  .TP
62  .I "\-v, \-\-verbose"
63 -Be verbose and tell what's going on.
64 +Verbose output was removed.
65  .TP
66  .I "\-V, \-\-version"
67  Print version information on standard output and exit successfully.
68 @@ -248,7 +275,7 @@
69  option in
70  .BR /etc/resolv.conf .
71  .SH FILES
72 -.B /etc/hostname
73 +.B /etc/sysconfig/network
74  Historically this file was supposed to only contain the hostname and not the
75  full canonical FQDN. Nowadays most software is able to cope with a full FQDN
76  here. This file is read at boot time by the system initialization scripts to
77 --- hostname/Makefile.orig      2012-02-16 16:00:52.000000000 +0100
78 +++ hostname/Makefile   2012-02-27 19:50:50.216326829 +0100
79 @@ -7,22 +7,23 @@
80  
81  hostname: $(OBJS)
82         $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) -lnsl
83 -       ln -fs hostname dnsdomainname
84 -       ln -fs hostname domainname
85 -       ln -fs hostname ypdomainname
86 -       ln -fs hostname nisdomainname
87  
88  install: hostname
89         install -d ${BASEDIR}/usr/share/man/man1
90 -       install -o root -g root -m 0644 hostname.1 ${BASEDIR}/usr/share/man/man1
91 +       install -m 0644 hostname.1 ${BASEDIR}/usr/share/man/man1
92         ln -fs hostname.1 ${BASEDIR}/usr/share/man/man1/dnsdomainname.1
93         ln -fs hostname.1 ${BASEDIR}/usr/share/man/man1/domainname.1
94         ln -fs hostname.1 ${BASEDIR}/usr/share/man/man1/ypdomainname.1
95         ln -fs hostname.1 ${BASEDIR}/usr/share/man/man1/nisdomainname.1
96 -       #install -o root -g root -m 0644 hostname.1.fr ${BASEDIR}/usr/share/man/fr/man1/hostname.1
97 +       install -d ${BASEDIR}/usr/share/man/fr/man1
98 +       install -m 0644 hostname.1.fr ${BASEDIR}/usr/share/man/fr/man1/hostname.1
99 +       ln -fs hostname.1 ${BASEDIR}/usr/share/man/fr/man1/dnsdomainname.1
100 +       ln -fs hostname.1 ${BASEDIR}/usr/share/man/fr/man1/domainname.1
101 +       ln -fs hostname.1 ${BASEDIR}/usr/share/man/fr/man1/ypdomainname.1
102 +       ln -fs hostname.1 ${BASEDIR}/usr/share/man/fr/man1/nisdomainname.1
103  
104         install -d ${BASEDIR}/bin
105 -       install -o root -g root -m 0755 hostname ${BASEDIR}/bin
106 +       install -m 0755 hostname ${BASEDIR}/bin
107         ln -f hostname ${BASEDIR}/bin/dnsdomainname
108         ln -f hostname ${BASEDIR}/bin/domainname
109         ln -f hostname ${BASEDIR}/bin/nisdomainname
This page took 0.076744 seconds and 3 git commands to generate.