View | Details | Raw Unified | Return to bug 27829 | Differences between
and this patch

Collapse All | Expand All

(-)a/branches/ucs-3.0/ucs/services/univention-dhcp/debian/changelog (+6 lines)
 Lines 1-3    Link Here 
1
univention-dhcp (6.0.23-1) unstable; urgency=low
2
3
  * Fix file permission (Bug #25377)
4
5
 -- Philipp Hahn <hahn@univention.de>  Fri, 09 Dec 2011 17:47:26 +0100
6
1
univention-dhcp (6.0.22-1) unstable; urgency=low
7
univention-dhcp (6.0.22-1) unstable; urgency=low
2
8
3
  * fixed typo in UCR template; Bug #26838
9
  * fixed typo in UCR template; Bug #26838
(-)a/branches/ucs-3.0/ucs/services/univention-dhcp/debian/univention-dhcp.univention-config-registry (-2 / +1 lines)
 Lines 13-18   Variables: domainname Link Here 
13
13
14
Type: file
14
Type: file
15
File: etc/init.d/isc-dhcp-server
15
File: etc/init.d/isc-dhcp-server
16
Mode: 0755
16
17
17
Type: file
18
Type: file
18
File: etc/logrotate.d/univention-dhcp
19
File: etc/logrotate.d/univention-dhcp
19
- 
20
--
21
.../conffiles/etc/init.d/isc-dhcp-server           |    2 ++
20
.../conffiles/etc/init.d/isc-dhcp-server           |    2 ++
22
.../ucs/services/univention-dhcp/debian/changelog  |    1 +
21
.../ucs/services/univention-dhcp/debian/changelog  |    1 +
23
2 files changed, 3 insertions(+), 0 deletions(-)
22
2 files changed, 3 insertions(+), 0 deletions(-)
(-)a/branches/ucs-3.0/ucs/services/univention-dhcp/conffiles/etc/init.d/isc-dhcp-server (+2 lines)
 Lines 40-43    Link Here 
40
# Description:       Dynamic Host Configuration Protocol Server
40
# Description:       Dynamic Host Configuration Protocol Server
41
### END INIT INFO
41
### END INIT INFO
42
42
43
. /lib/lsb/init-functions
44
log_action_msg "This script is disabled, use /etc/init.d/univention-dhcp."
43
exit 0
45
exit 0
(-)a/branches/ucs-3.0/ucs/services/univention-dhcp/debian/changelog (-2 / +1 lines)
 Lines 1-6    Link Here 
1
univention-dhcp (6.0.23-1) unstable; urgency=low
1
univention-dhcp (6.0.23-1) unstable; urgency=low
2
2
3
  * Fix file permission (Bug #25377)
3
  * Fix file permission (Bug #25377)
4
  * Reference /etc/init.d/univention-dhcp (Bug #17802)
4
5
5
 -- Philipp Hahn <hahn@univention.de>  Fri, 09 Dec 2011 17:47:26 +0100
6
 -- Philipp Hahn <hahn@univention.de>  Fri, 09 Dec 2011 17:47:26 +0100
6
7
7
- 
8
--
9
.../univention-network-manager/debian/changelog    |    6 +++
8
.../univention-network-manager/debian/changelog    |    6 +++
10
.../base/univention-network-manager/debian/control |    2 +
9
.../base/univention-network-manager/debian/control |    2 +
11
.../base/univention-network-manager/debian/rules   |    3 +-
10
.../base/univention-network-manager/debian/rules   |    3 +-
12
.../debian/univention-ifplugd.install              |    5 ---
11
.../debian/univention-ifplugd.install              |    5 ---
13
.../univention-ifplugd.univention-config-registry  |   11 ------
12
.../univention-ifplugd.univention-config-registry  |   11 ------
14
...on-ifplugd.univention-config-registry-variables |   18 ----------
13
...on-ifplugd.univention-config-registry-variables |   18 ----------
15
.../debian/univention-network-common.install       |    5 +++
14
.../debian/univention-network-common.install       |    5 +++
16
...ntion-network-common.univention-config-registry |   10 +++++
15
...ntion-network-common.univention-config-registry |   10 +++++
17
...ork-common.univention-config-registry-variables |   35 +++++++++++++++++++
16
...ork-common.univention-config-registry-variables |   35 +++++++++++++++++++
18
.../debian/univention-network-manager.install      |    4 --
17
.../debian/univention-network-manager.install      |    4 --
19
...tion-network-manager.univention-config-registry |   11 ------
18
...tion-network-manager.univention-config-registry |   11 ------
20
...rk-manager.univention-config-registry-variables |   36 --------------------
19
...rk-manager.univention-config-registry-variables |   36 --------------------
21
.../univention-dhcp/debian/univention-dhcp.preinst |    4 +-
20
.../univention-dhcp/debian/univention-dhcp.preinst |    4 +-
22
13 files changed, 61 insertions(+), 89 deletions(-)
21
13 files changed, 61 insertions(+), 89 deletions(-)
23
create mode 100644 branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-network-common.univention-config-registry
22
create mode 100644 branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-network-common.univention-config-registry
24
create mode 100644 branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-network-common.univention-config-registry-variables
23
create mode 100644 branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-network-common.univention-config-registry-variables
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/changelog (+6 lines)
 Lines 1-3    Link Here 
1
univention-network-manager (3.0.23-1) unstable; urgency=low
2
3
  * Move common data to univention-network-common (Bug #24282)
4
5
 -- Philipp Hahn <hahn@univention.de>  Wed, 04 Jul 2012 20:29:33 +0200
6
1
univention-network-manager (3.0.22-1) unstable; urgency=low
7
univention-network-manager (3.0.22-1) unstable; urgency=low
2
8
3
  * added file /etc/dhpc/dhclient.local.conf (Bug #24282)
9
  * added file /etc/dhpc/dhclient.local.conf (Bug #24282)
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/control (+2 lines)
 Lines 43-48   Architecture: all Link Here 
43
Depends: ${misc:Depends},
43
Depends: ${misc:Depends},
44
 univention-management-console-server,
44
 univention-management-console-server,
45
 python-netifaces
45
 python-netifaces
46
Replaces: univention-network-manager,
47
 univention-ifplugd
46
Description: UCS - Network tools for ifplugd and network-manager (common)
48
Description: UCS - Network tools for ifplugd and network-manager (common)
47
 This package installs tools required by univention-ifplugd and
49
 This package installs tools required by univention-ifplugd and
48
 univention-network-manager.
50
 univention-network-manager.
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/rules (-2 / +1 lines)
 Lines 37-44   override_dh_auto_test: Link Here 
37
override_dh_fixperms:
37
override_dh_fixperms:
38
	dh_fixperms
38
	dh_fixperms
39
	chmod 755 debian/univention-network-manager/usr/lib/NetworkManager/nm-dhcp-client.action
39
	chmod 755 debian/univention-network-manager/usr/lib/NetworkManager/nm-dhcp-client.action
40
	chmod 755 debian/univention-network-manager/etc/network/if-pre-up.d/10_dhclientconf
40
	chmod 755 debian/univention-network-common/etc/network/if-pre-up.d/10_dhclientconf
41
	chmod 755 debian/univention-ifplugd/etc/network/if-pre-up.d/10_dhclientconf
42
	chmod 755 debian/univention-ifplugd/etc/dhcp3/dhclient-enter-hooks.d/univention-ifplugd-enter-hook
41
	chmod 755 debian/univention-ifplugd/etc/dhcp3/dhclient-enter-hooks.d/univention-ifplugd-enter-hook
43
42
44
override_dh_installinit:
43
override_dh_installinit:
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-ifplugd.install (-5 lines)
 Lines 1-6    Link Here 
1
etc/network/ucs-network-tools etc/network/
2
etc/network/if-up.d/[0-9]* etc/network/if-up.d/
3
etc/network/if-down.d/[0-9]* etc/network/if-down.d/
4
etc/network/if-pre-up.d/[0-9]* etc/network/if-pre-up.d/
5
etc/dhcp/* etc/dhcp/
6
univention-ifplugd-enter-hook etc/dhcp3/dhclient-enter-hooks.d/
1
univention-ifplugd-enter-hook etc/dhcp3/dhclient-enter-hooks.d/
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-ifplugd.univention-config-registry (-11 lines)
 Lines 1-14    Link Here 
1
Type: file
1
Type: file
2
File: etc/dhcp/dhclient.conf
3
Variables: dhclient/options/timeout
4
Variables: dhclient/options/retry
5
Variables: dhclient/options/ddns
6
Variables: dhclient/options/ddns/zone
7
Variables: dhclient/options/ddns/serverupdate
8
Variables: dhclient/linklocal/fallback
9
Variables: hostname
10
Variables: domainname
11
12
Type: file
13
File: etc/default/ifplugd
2
File: etc/default/ifplugd
14
Variables: interfaces/.*
3
Variables: interfaces/.*
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-ifplugd.univention-config-registry-variables (-18 lines)
 Lines 9-29   Description[de]=Ist diese Variable gesetzt, dann wird versucht die Heimatverzeic Link Here 
9
Description[en]=If this variable is set the home directory share will be mounted via NFS if possible
9
Description[en]=If this variable is set the home directory share will be mounted via NFS if possible
10
Type=bool
10
Type=bool
11
Categories=system-base
11
Categories=system-base
12
13
[dhclient/options/timeout]
14
Description[de]=Definiert die Zeit in Sekunden, die der DHCP-Client versucht eine IP-Konfiguration zu beziehen
15
Description[en]=Defines the amount of time in seconds that the DHCP clients tries to get an IP configuration
16
Type=int
17
Categories=system-base
18
19
[dhclient/options/retry]
20
Description[de]=Definiert die Zeit in Sekunden, die der DHCP-Client vor einem erneuten Versuch wartet
21
Description[en]=Defines the amount of time in seconds that the DHCP clients waits before trying again
22
Type=int
23
Categories=system-base
24
25
[dhclient/linklocal/fallback]
26
Description[de]=Definiert ob eine Link Local IP Adresse konfiguriert wird, wenn per DHCP keine IP Adresse bezogen werden konnte (Default: true)
27
Description[en]=Defines whether a link local IP address is configured if no IP address could be obtained via DHCP (default: true)
28
Type=str
29
Categories=system-base
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-network-common.install (+5 lines)
Line 1    Link Here 
1
etc/network/ucs-network-tools etc/network/
2
etc/network/if-up.d/[0-9]* etc/network/if-up.d/
3
etc/network/if-down.d/[0-9]* etc/network/if-down.d/
4
etc/network/if-pre-up.d/[0-9]* etc/network/if-pre-up.d/
5
etc/dhcp/* etc/dhcp/
1
univention-register-network-address usr/sbin
6
univention-register-network-address usr/sbin
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-network-common.univention-config-registry (+10 lines)
Line 0    Link Here 
1
Type: file
2
File: etc/dhcp/dhclient.conf
3
Variables: dhclient/options/timeout
4
Variables: dhclient/options/retry
5
Variables: dhclient/options/ddns
6
Variables: dhclient/options/ddns/zone
7
Variables: dhclient/options/ddns/serverupdate
8
Variables: dhclient/linklocal/fallback
9
Variables: hostname
10
Variables: domainname
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-network-common.univention-config-registry-variables (+35 lines)
Line 0    Link Here 
1
[dhclient/options/timeout]
2
Description[de]=Definiert die Zeit in Sekunden, die der DHCP-Client versucht eine IP-Konfiguration zu beziehen
3
Description[en]=Defines the amount of time in seconds that the DHCP clients tries to get an IP configuration
4
Type=int
5
Categories=system-base
6
7
[dhclient/options/retry]
8
Description[de]=Definiert die Zeit in Sekunden, die der DHCP-Client vor einem erneuten Versuch wartet
9
Description[en]=Defines the amount of time in seconds that the DHCP clients waits before trying again
10
Type=int
11
Categories=system-base
12
13
[dhclient/linklocal/fallback]
14
Description[de]=Definiert ob eine Link Local IP Adresse konfiguriert wird, wenn per DHCP keine IP Adresse bezogen werden konnte (Default: true)
15
Description[en]=Defines whether a link local IP address is configured if no IP address could be obtained via DHCP (default: true)
16
Type=str
17
Categories=system-base
18
19
[dhclient/options/ddns]
20
Description[de]=Aktiviert DDNS per DHCP für externe DNS-Dienste [disabled]
21
Description[en]=Activates DDNS via DHCP for external DNS-Services [disabled]
22
Type=bool
23
Categories=system-base
24
25
[dhclient/options/ddns/zone]
26
Description[de]=Definiert die DNS Zone, die bei aktiviertem DDNS per DHCP verwendet werden soll [domainname]
27
Description[en]=Defines the DNS Zone which will be updated when DDNS via DHCP is enabled [domainname]
28
Type=str
29
Categories=system-base
30
31
[dhclient/options/ddns/serverupdate]
32
Description[de]=Ersucht den DHCP-Server den A-Record in der Forward-Zone zu aktualisieren (Standard: yes)
33
Description[en]=Request DHCP server to update the A record in the forward zone (default: yes)
34
Type=bool
35
Categories=system-base
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-network-manager.install (-4 lines)
 Lines 1-5    Link Here 
1
etc/network/ucs-network-tools etc/network/
2
etc/network/if-up.d/[0-9]* etc/network/if-up.d/
3
etc/network/if-down.d/[0-9]* etc/network/if-down.d/
4
etc/network/if-pre-up.d/[0-9]* etc/network/if-pre-up.d/
5
nm-dhcp-client.action usr/lib/NetworkManager/
1
nm-dhcp-client.action usr/lib/NetworkManager/
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-network-manager.univention-config-registry (-11 lines)
 Lines 3-18   File: etc/dbus-1/system.d/ucs-networkmanager.conf Link Here 
3
Variables: networkmanager/group
3
Variables: networkmanager/group
4
4
5
Type: file
5
Type: file
6
File: etc/dhcp/dhclient.conf
7
Variables: dhclient/options/timeout
8
Variables: dhclient/options/retry
9
Variables: dhclient/options/ddns
10
Variables: dhclient/options/ddns/zone
11
Variables: dhclient/options/ddns/serverupdate
12
Variables: dhclient/linklocal/fallback
13
Variables: hostname
14
Variables: domainname
15
16
Type: file
17
File: etc/NetworkManager/nm-system-settings.conf
6
File: etc/NetworkManager/nm-system-settings.conf
18
Variables: networkmanager/all_interfaces
7
Variables: networkmanager/all_interfaces
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-network-manager.univention-config-registry-variables (-36 lines)
 Lines 15-53   Description[de]=Ist diese Variable gesetzt, dann wird versucht die Heimatverzeic Link Here 
15
Description[en]=If this variable is set the home directory share will be mounted via NFS if possible
15
Description[en]=If this variable is set the home directory share will be mounted via NFS if possible
16
Type=bool
16
Type=bool
17
Categories=system-base
17
Categories=system-base
18
19
[dhclient/options/timeout]
20
Description[de]=Definiert die Zeit in Sekunden, die der DHCP-Client versucht eine IP-Konfiguration zu beziehen
21
Description[en]=Defines the amount of time in seconds that the DHCP clients tries to get an IP configuration
22
Type=int
23
Categories=system-base
24
25
[dhclient/options/retry]
26
Description[de]=Definiert die Zeit in Sekunden, die der DHCP-Client vor einem erneuten Versuch wartet
27
Description[en]=Defines the amount of time in seconds that the DHCP clients waits before trying again
28
Type=int
29
Categories=system-base
30
31
[dhclient/linklocal/fallback]
32
Description[de]=Definiert ob eine Link Local IP Adresse konfiguriert wird, wenn per DHCP keine IP Adresse bezogen werden konnte (Default: true)
33
Description[en]=Defines whether a link local IP address is configured if no IP address could be obtained via DHCP (default: true)
34
Type=str
35
Categories=system-base
36
37
[dhclient/options/ddns]
38
Description[de]=Aktiviert DDNS per DHCP für externe DNS-Dienste [disabled]
39
Description[en]=Activates DDNS via DHCP for external DNS-Services [disabled]
40
Type=bool
41
Categories=system-base
42
43
[dhclient/options/ddns/zone]
44
Description[de]=Definiert die DNS Zone, die bei aktiviertem DDNS per DHCP verwendet werden soll [domainname]
45
Description[en]=Defines the DNS Zone which will be updated when DDNS via DHCP is enabled [domainname]
46
Type=str
47
Categories=system-base
48
49
[dhclient/options/ddns/serverupdate]
50
Description[de]=Ersucht den DHCP-Server den A-Record in der Forward-Zone zu aktualisieren (Standard: yes)
51
Description[en]=Request DHCP server to update the A record in the forward zone (default: yes)
52
Type=bool
53
Categories=system-base
(-)a/branches/ucs-3.0/ucs/services/univention-dhcp/debian/univention-dhcp.preinst (-4 / +2 lines)
 Lines 1-9    Link Here 
1
#! /bin/sh
1
#! /bin/sh
2
#
2
#
3
# Univention DHCP
3
# Univention DHCP
4
#  ppreinst script
4
#  preinst script
5
#
5
#
6
# Copyright 2004-2011 Univention GmbH
6
# Copyright 2004-2012 Univention GmbH
7
#
7
#
8
# http://www.univention.de/
8
# http://www.univention.de/
9
#
9
#
10
- 
11
--
12
.../univention-network-manager/debian/changelog    |    1 +
10
.../univention-network-manager/debian/changelog    |    1 +
13
.../base/univention-network-manager/debian/control |    1 +
11
.../base/univention-network-manager/debian/control |    1 +
14
.../base/univention-network-manager/debian/rules   |    2 +-
12
.../base/univention-network-manager/debian/rules   |    2 +-
15
.../debian/univention-ifplugd.dirs                 |    8 ++--
13
.../debian/univention-ifplugd.dirs                 |    8 ++--
16
.../debian/univention-ifplugd.install              |    2 +-
14
.../debian/univention-ifplugd.install              |    2 +-
17
.../debian/univention-ifplugd.postinst             |   13 ++++++
15
.../debian/univention-ifplugd.postinst             |   13 ++++++
18
.../debian/univention-ifplugd.preinst              |   45 ++++++++++++++++++++
16
.../debian/univention-ifplugd.preinst              |   45 ++++++++++++++++++++
19
.../univention-ifplugd-enter-hook                  |    2 +-
17
.../univention-ifplugd-enter-hook                  |    2 +-
20
8 files changed, 67 insertions(+), 7 deletions(-)
18
8 files changed, 67 insertions(+), 7 deletions(-)
21
create mode 100644 branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-ifplugd.preinst
19
create mode 100644 branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-ifplugd.preinst
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/changelog (+1 lines)
 Lines 1-6    Link Here 
1
univention-network-manager (3.0.23-1) unstable; urgency=low
1
univention-network-manager (3.0.23-1) unstable; urgency=low
2
2
3
  * Move common data to univention-network-common (Bug #24282)
3
  * Move common data to univention-network-common (Bug #24282)
4
  * Transition from /etc/dhcp3/ to /etc/dhcp/ (Bug #27829)
4
5
5
 -- Philipp Hahn <hahn@univention.de>  Wed, 04 Jul 2012 20:29:33 +0200
6
 -- Philipp Hahn <hahn@univention.de>  Wed, 04 Jul 2012 20:29:33 +0200
6
7
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/control (+1 lines)
 Lines 26-31   Package: univention-ifplugd Link Here 
26
Architecture: all
26
Architecture: all
27
Conflicts: network-manager,
27
Conflicts: network-manager,
28
 univention-network-manager
28
 univention-network-manager
29
Pre-Depends: dpkg (>= 1.15.7.2)
29
Depends: ${misc:Depends},
30
Depends: ${misc:Depends},
30
 univention-network-common,
31
 univention-network-common,
31
 ifplugd,
32
 ifplugd,
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/rules (-1 / +1 lines)
 Lines 38-44   override_dh_fixperms: Link Here 
38
	dh_fixperms
38
	dh_fixperms
39
	chmod 755 debian/univention-network-manager/usr/lib/NetworkManager/nm-dhcp-client.action
39
	chmod 755 debian/univention-network-manager/usr/lib/NetworkManager/nm-dhcp-client.action
40
	chmod 755 debian/univention-network-common/etc/network/if-pre-up.d/10_dhclientconf
40
	chmod 755 debian/univention-network-common/etc/network/if-pre-up.d/10_dhclientconf
41
	chmod 755 debian/univention-ifplugd/etc/dhcp3/dhclient-enter-hooks.d/univention-ifplugd-enter-hook
41
	chmod 755 debian/univention-ifplugd/etc/dhcp/dhclient-enter-hooks.d/univention-ifplugd-enter-hook
42
42
43
override_dh_installinit:
43
override_dh_installinit:
44
	dh_installinit -punivention-network-common --no-start -u"defaults 99"
44
	dh_installinit -punivention-network-common --no-start -u"defaults 99"
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-ifplugd.dirs (-4 / +4 lines)
 Lines 1-4    Link Here 
1
etc/network/if-up.d/
1
etc/network/if-up.d
2
etc/network/if-down.d/
2
etc/network/if-down.d
3
etc/dhcp3/dhclient-enter-hooks.d
3
etc/dhcp/dhclient-enter-hooks.d
4
etc/dhcp3/dhclient-enter-hooks.univention.d
4
etc/dhcp/dhclient-enter-hooks.univention.d
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-ifplugd.install (-1 / +1 lines)
Line 1    Link Here 
1
univention-ifplugd-enter-hook etc/dhcp3/dhclient-enter-hooks.d/
1
univention-ifplugd-enter-hook etc/dhcp/dhclient-enter-hooks.d/
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-ifplugd.postinst (+13 lines)
 Lines 67-70   if [ "$1" = "configure" -a -n "$2" ] && dpkg --compare-versions "$2" lt 3.0.18-1 Link Here 
67
	fi
67
	fi
68
fi
68
fi
69
69
70
# Transition from /etc/dhcp3/ to /etc/dhcp/
71
dpkg-maintscript-helper mv_conffile \
72
    "/etc/dhcp3/dhclient-enter-hooks.d/univention-ifplugd-enter-hook" \
73
    "/etc/dhcp/dhclient-enter-hooks.d/univention-ifplugd-enter-hook" \
74
    3.0.23~ univention-ifplugd -- "$@"
75
dpkg-maintscript-helper rm_conffile \
76
    "/etc/dhcp3/dhclient-enter-hooks.univention.d/00_fallback.py" \
77
    3.0.23~ univention-ifplugd -- "$@"
78
if [ "$1" = "configure" -a -n "$2" ] && dpkg --compare-versions "$2" lt 3.0.23~;
79
then
80
    rmdir -p /etc/dhcp3/dhclient-enter-hooks.d /etc/dhcp3/dhclient-enter-hooks.univention.d 2>/dev/null || true
81
fi
82
70
exit 0
83
exit 0
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-ifplugd.preinst (+45 lines)
Line 0    Link Here 
1
#! /bin/sh
2
#
3
# Univention Network ifplugd
4
#  preinst script
5
#
6
# Copyright 2004-2012 Univention GmbH
7
#
8
# http://www.univention.de/
9
#
10
# All rights reserved.
11
#
12
# The source code of this program is made available
13
# under the terms of the GNU Affero General Public License version 3
14
# (GNU AGPL V3) as published by the Free Software Foundation.
15
#
16
# Binary versions of this program provided by Univention to you as
17
# well as other copyrighted, protected or trademarked materials like
18
# Logos, graphics, fonts, specific documentations and configurations,
19
# cryptographic keys etc. are subject to a license agreement between
20
# you and Univention and not subject to the GNU AGPL V3.
21
#
22
# In the case you use this program under the terms of the GNU AGPL V3,
23
# the program is provided in the hope that it will be useful,
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
# GNU Affero General Public License for more details.
27
#
28
# You should have received a copy of the GNU Affero General Public
29
# License with the Debian GNU/Linux or Univention distribution in file
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
32
33
set -e
34
35
#DEBHELPER#
36
37
dpkg-maintscript-helper mv_conffile \
38
    "/etc/dhcp3/dhclient-enter-hooks.d/univention-ifplugd-enter-hook" \
39
    "/etc/dhcp/dhclient-enter-hooks.d/univention-ifplugd-enter-hook" \
40
    3.0.23~ univention-ifplugd -- "$@"
41
dpkg-maintscript-helper rm_conffile \
42
    "/etc/dhcp3/dhclient-enter-hooks.univention.d/00_fallback.py" \
43
    3.0.23~ univention-ifplugd -- "$@"
44
45
exit 0
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/univention-ifplugd-enter-hook (-3 / +1 lines)
 Lines 30-36    Link Here 
30
# /usr/share/common-licenses/AGPL-3; if not, see
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
31
# <http://www.gnu.org/licenses/>.
32
32
33
HOOKS_DIR=/etc/dhcp3/dhclient-enter-hooks.univention.d/
33
HOOKS_DIR=/etc/dhcp/dhclient-enter-hooks.univention.d/
34
34
35
# debugging
35
# debugging
36
set | egrep '(new_|old_|reason)' > /tmp/ifplugd-env-old
36
set | egrep '(new_|old_|reason)' > /tmp/ifplugd-env-old
37
- 
38
--
39
.../conffiles/etc/dhcp/dhclient.conf               |    7 +++++--
37
.../conffiles/etc/dhcp/dhclient.conf               |    7 +++++--
40
.../univention-network-manager/debian/changelog    |    1 +
38
.../univention-network-manager/debian/changelog    |    1 +
41
2 files changed, 6 insertions(+), 2 deletions(-)
39
2 files changed, 6 insertions(+), 2 deletions(-)
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/conffiles/etc/dhcp/dhclient.conf (-2 / +5 lines)
 Lines 13-18    Link Here 
13
#	few changes must be made to this file, if any.
13
#	few changes must be made to this file, if any.
14
#
14
#
15
15
16
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
17
16
@!@
18
@!@
17
if configRegistry.is_true('dhclient/options/ddns', False):
19
if configRegistry.is_true('dhclient/options/ddns', False):
18
    print 'send host-name "%s";' % configRegistry.get('hostname', '')
20
    print 'send host-name "%s";' % configRegistry.get('hostname', '')
 Lines 32-39   if configRegistry.is_true('dhclient/options/ddns', False): Link Here 
32
#supersede domain-name "fugue.com home.vix.com";
34
#supersede domain-name "fugue.com home.vix.com";
33
#prepend domain-name-servers 127.0.0.1;
35
#prepend domain-name-servers 127.0.0.1;
34
request subnet-mask, broadcast-address, time-offset, routers,
36
request subnet-mask, broadcast-address, time-offset, routers,
35
	domain-name, domain-name-servers, host-name,
37
	domain-name, domain-name-servers, domain-search, host-name,
36
	netbios-name-servers, netbios-scope, interface-mtu;
38
	netbios-name-servers, netbios-scope, interface-mtu,
39
	rfc3442-classless-static-routes, ntp-servers;
37
#require subnet-mask, domain-name-servers;
40
#require subnet-mask, domain-name-servers;
38
@!@
41
@!@
39
print 'timeout %s;' % configRegistry.get( 'dhclient/options/timeout', '30' )
42
print 'timeout %s;' % configRegistry.get( 'dhclient/options/timeout', '30' )
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/changelog (-2 / +1 lines)
 Lines 2-7   univention-network-manager (3.0.23-1) unstable; urgency=low Link Here 
2
2
3
  * Move common data to univention-network-common (Bug #24282)
3
  * Move common data to univention-network-common (Bug #24282)
4
  * Transition from /etc/dhcp3/ to /etc/dhcp/ (Bug #27829)
4
  * Transition from /etc/dhcp3/ to /etc/dhcp/ (Bug #27829)
5
  * Update /etc/dhcp/dhclient.conf template from lates Debian file.
5
6
6
 -- Philipp Hahn <hahn@univention.de>  Wed, 04 Jul 2012 20:29:33 +0200
7
 -- Philipp Hahn <hahn@univention.de>  Wed, 04 Jul 2012 20:29:33 +0200
7
8
8
- 
9
--
10
.../univention-network-manager/debian/changelog    |    1 +
9
.../univention-network-manager/debian/changelog    |    1 +
11
.../nm-dhcp-client.action                          |    6 ++----
10
.../nm-dhcp-client.action                          |    6 ++----
12
.../univention-ifplugd-enter-hook                  |    4 ++--
11
.../univention-ifplugd-enter-hook                  |    4 ++--
13
3 files changed, 5 insertions(+), 6 deletions(-)
12
3 files changed, 5 insertions(+), 6 deletions(-)
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/changelog (+1 lines)
 Lines 3-8   univention-network-manager (3.0.23-1) unstable; urgency=low Link Here 
3
  * Move common data to univention-network-common (Bug #24282)
3
  * Move common data to univention-network-common (Bug #24282)
4
  * Transition from /etc/dhcp3/ to /etc/dhcp/ (Bug #27829)
4
  * Transition from /etc/dhcp3/ to /etc/dhcp/ (Bug #27829)
5
  * Update /etc/dhcp/dhclient.conf template from lates Debian file.
5
  * Update /etc/dhcp/dhclient.conf template from lates Debian file.
6
  * Move debug files to /var/run/ to prevent symlink attack.
6
7
7
 -- Philipp Hahn <hahn@univention.de>  Wed, 04 Jul 2012 20:29:33 +0200
8
 -- Philipp Hahn <hahn@univention.de>  Wed, 04 Jul 2012 20:29:33 +0200
8
9
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/nm-dhcp-client.action (-4 / +2 lines)
 Lines 42-51   for script in $(find ${HOOKS_DIR} -type f -name "*.py" -o -name "*.sh"); do Link Here 
42
done
42
done
43
43
44
# debugging
44
# debugging
45
set | egrep '(new_|old_|reason)' > /tmp/nm-env
45
env | egrep '(new_|old_|reason)' > /var/run/nm-env
46
 
46
47
/usr/lib/NetworkManager/nm-dhcp-client.action.real
47
/usr/lib/NetworkManager/nm-dhcp-client.action.real
48
48
49
exit 0
49
exit 0
50
51
	
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/univention-ifplugd-enter-hook (-4 / +2 lines)
 Lines 33-39    Link Here 
33
HOOKS_DIR=/etc/dhcp/dhclient-enter-hooks.univention.d/
33
HOOKS_DIR=/etc/dhcp/dhclient-enter-hooks.univention.d/
34
34
35
# debugging
35
# debugging
36
set | egrep '(new_|old_|reason)' > /tmp/ifplugd-env-old
36
env | egrep '(new_|old_|reason)' > /var/run/ifplugd-env-old
37
37
38
# call hooks: each hook script might write shell script to standard output to change environment variables
38
# call hooks: each hook script might write shell script to standard output to change environment variables
39
for script in $(find ${HOOKS_DIR} -type f -name "*.py" -o -name "*.sh"); do
39
for script in $(find ${HOOKS_DIR} -type f -name "*.py" -o -name "*.sh"); do
 Lines 41-44   for script in $(find ${HOOKS_DIR} -type f -name "*.py" -o -name "*.sh"); do Link Here 
41
done
41
done
42
42
43
# debugging
43
# debugging
44
set | egrep '(new_|old_|reason)' > /tmp/ifplugd-env-new
44
env | egrep '(new_|old_|reason)' > /var/run/ifplugd-env-new
45
- 
46
--
47
.../conffiles/etc/dhcp/dhclient.conf               |    8 ++++----
45
.../conffiles/etc/dhcp/dhclient.conf               |    8 ++++----
48
.../base/univention-network-manager/debian/control |    1 +
46
.../base/univention-network-manager/debian/control |    1 +
49
.../debian/univention-ifplugd.postinst             |   15 +++++++--------
47
.../debian/univention-ifplugd.postinst             |   15 +++++++--------
50
.../univention-register-network-address            |    2 +-
48
.../univention-register-network-address            |    2 +-
51
4 files changed, 13 insertions(+), 13 deletions(-)
49
4 files changed, 13 insertions(+), 13 deletions(-)
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/conffiles/etc/dhcp/dhclient.conf (-4 / +4 lines)
 Lines 23-31   if configRegistry.is_true('dhclient/options/ddns', False): Link Here 
23
    else:
23
    else:
24
        print 'send fqdn.fqdn "%s.%s";' % (configRegistry.get('hostname', ''), configRegistry.get('domainname', ''))
24
        print 'send fqdn.fqdn "%s.%s";' % (configRegistry.get('hostname', ''), configRegistry.get('domainname', ''))
25
    if configRegistry.is_true('dhclient/options/ddns/serverupdate', True):
25
    if configRegistry.is_true('dhclient/options/ddns/serverupdate', True):
26
    	print 'send fqdn.server-update on;'
26
        print 'send fqdn.server-update on;'
27
    else:
27
    else:
28
    	print 'send fqdn.server-update off;'
28
        print 'send fqdn.server-update off;'
29
    print 'send fqdn.encoded on;'
29
    print 'send fqdn.encoded on;'
30
@!@
30
@!@
31
#send host-name "andare.fugue.com";
31
#send host-name "andare.fugue.com";
 Lines 43-49   print 'timeout %s;' % configRegistry.get( 'dhclient/options/timeout', '30' ) Link Here 
43
print 'retry %s;' % configRegistry.get( 'dhclient/options/retry', '60' )
43
print 'retry %s;' % configRegistry.get( 'dhclient/options/retry', '60' )
44
@!@
44
@!@
45
# reboot + timout should be below the 45 secs that NetworkManager waits before terminating dhclient, otherwise fallback script is not run
45
# reboot + timout should be below the 45 secs that NetworkManager waits before terminating dhclient, otherwise fallback script is not run
46
reboot 5;	
46
reboot 5;
47
#select-timeout 5;
47
#select-timeout 5;
48
#initial-interval 2;
48
#initial-interval 2;
49
#script "/etc/dhcp3/dhclient-script";
49
#script "/etc/dhcp3/dhclient-script";
 Lines 81-87   if configRegistry.is_true('dhclient/linklocal/fallback', True): Link Here 
81
			iface = k.split('/')[1]
81
			iface = k.split('/')[1]
82
			r1 = random.randrange(0, 255) # 0 to 254
82
			r1 = random.randrange(0, 255) # 0 to 254
83
			r2 = random.randrange(0, 255) # 0 to 254
83
			r2 = random.randrange(0, 255) # 0 to 254
84
		
84
85
			d = datetime.fromtimestamp(time.time() + (6*3600)) # expire in six hours
85
			d = datetime.fromtimestamp(time.time() + (6*3600)) # expire in six hours
86
86
87
			print 'lease {'
87
			print 'lease {'
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/control (+1 lines)
 Lines 42-47   Description: UCS - Support for ifplugd Link Here 
42
Package: univention-network-common
42
Package: univention-network-common
43
Architecture: all
43
Architecture: all
44
Depends: ${misc:Depends},
44
Depends: ${misc:Depends},
45
 ${python:Depends},
45
 univention-management-console-server,
46
 univention-management-console-server,
46
 python-netifaces
47
 python-netifaces
47
Replaces: univention-network-manager,
48
Replaces: univention-network-manager,
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/debian/univention-ifplugd.postinst (-8 / +7 lines)
 Lines 35-51    Link Here 
35
eval "$(univention-config-registry shell)"
35
eval "$(univention-config-registry shell)"
36
36
37
if [ -z "$ifplugd_action_mount" ]; then
37
if [ -z "$ifplugd_action_mount" ]; then
38
	   ifplugd_action_mount="yes"
38
	ifplugd_action_mount="yes"
39
fi
39
fi
40
40
41
# set "interfaces/handler" in any case to "ifplugd"
41
# set "interfaces/handler" in any case to "ifplugd"
42
univention-config-registry set interfaces/handler=ifplugd
42
univention-config-registry set \
43
43
	interfaces/handler=ifplugd \
44
univention-config-registry set networkmanager/action/mount?"no"
44
	networkmanager/action/mount?"no" \
45
univention-config-registry set networkmanager/dhcp/options/fallback?"no"
45
	networkmanager/dhcp/options/fallback?"no" \
46
46
	dhclient/options/timeout?"40" \
47
univention-config-registry set dhclient/options/timeout?"40"
47
	dhclient/options/retry?"60"
48
univention-config-registry set dhclient/options/retry?"60"
49
48
50
for i in $(seq 0 10); do
49
for i in $(seq 0 10); do
51
	var="interfaces_eth${i}_networkmanager"
50
	var="interfaces_eth${i}_networkmanager"
(-)a/branches/ucs-3.0/ucs/base/univention-network-manager/univention-register-network-address (-2 / +1 lines)
 Lines 91-95   if __name__ == '__main__': Link Here 
91
				retcode += 1
91
				retcode += 1
92
		elif options.verbose:
92
		elif options.verbose:
93
			print 'INFO: %s is not configured as dhcp device.' % iface
93
			print 'INFO: %s is not configured as dhcp device.' % iface
94
		
94
95
	sys.exit(retcode)
95
	sys.exit(retcode)
96
- 

Return to bug 27829