Browse code

Add extra perl packages to fix ddclient dependency

Add the following packages:
- perl-Data-Validate-IP
- perl-NetAddr-IP

Also, now that these packages fix the missing runtime dependency
for ddclient, add the latter back to the full iso install package
list.

Change-Id: Iffd1dfd3e52c1f2f586b358f9155e3ad9c90f036
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5821
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

Srivatsa S. Bhat authored on 2018/09/28 08:47:28
Showing 4 changed files
... ...
@@ -1,6 +1,6 @@
1 1
 Name:           ddclient
2 2
 Version:        3.9.0
3
-Release:        1%{?dist}
3
+Release:        2%{?dist}
4 4
 Url:            https://sourceforge.net/p/ddclient/wiki/Home/
5 5
 Summary:        Perl client used to update dynamic DNS entries for accounts on Dynamic DNS Network Service Provider
6 6
 License:        GPLv2
... ...
@@ -11,6 +11,7 @@ Source0:        http://downloads.sourceforge.net/project/ddclient/ddclient/ddcli
11 11
 Requires:       perl
12 12
 Requires:       perl-IO-Socket-SSL
13 13
 Requires:       perl-JSON-Any
14
+Requires:       perl-Data-Validate-IP
14 15
 
15 16
 %description
16 17
 DDclient is a Perl client used to update dynamic DNS entries for accounts on Dynamic DNS Network Service Provider. It was originally written by Paul Burry and is now mostly by wimpunk. It has the capability to update more than just dyndns and it can fetch your WAN-ipaddress in a few different ways.
... ...
@@ -52,6 +53,8 @@ EOF
52 52
 %dir /var/cache/ddclient
53 53
 
54 54
 %changelog
55
+* Thu Sep 27 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 3.9.0-2
56
+- Add perl-Data-Validate-IP as a runtime dependency.
55 57
 * Mon Sep 10 2018 Ajay Kaher <akaher@vmware.com> 3.9.0-1
56 58
 - Upgraded to version 3.9.0
57 59
 * Fri Oct 13 2017 Alexey Makhalov <amakhalov@vmware.com> 3.8.3-3
58 60
new file mode 100644
... ...
@@ -0,0 +1,44 @@
0
+Summary:        IPv4 and IPv6 validation methods
1
+Name:           perl-Data-Validate-IP
2
+Version:        0.27
3
+Release:        1%{?dist}
4
+License:        GPL+ or Artistic
5
+Group:          Development/Libraries
6
+URL:            https://metacpan.org/release/Data-Validate-IP
7
+Source0:        https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Data-Validate-IP-%{version}.tar.gz
8
+%define sha1    Data-Validate-IP=da24fd6404359e475f65d35cb4341db74c48f48a
9
+Vendor:         VMware, Inc.
10
+Distribution:   Photon
11
+BuildArch:      noarch
12
+BuildRequires:  perl
13
+Requires:       perl
14
+Requires:       perl-NetAddr-IP
15
+
16
+%description
17
+This module provides a number IP address validation subs that both
18
+validate and untaint their input. This includes both basic validation
19
+(is_ipv4() and is_ipv6()) and special cases like checking whether an
20
+address belongs to a specific network or whether an address is public
21
+or private (reserved).
22
+
23
+%prep
24
+%setup -q -n Data-Validate-IP-%{version}
25
+
26
+%build
27
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}"
28
+make %{?_smp_mflags}
29
+
30
+%install
31
+make install DESTDIR=%{buildroot}
32
+find %{buildroot} -name 'perllocal.pod' -delete
33
+
34
+%check
35
+make test
36
+
37
+%files
38
+%{perl_vendorlib}/*
39
+%{_mandir}/man3/*
40
+
41
+%changelog
42
+*   Thu Sep 27 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 0.27-1
43
+-   Initial version.
0 44
new file mode 100644
... ...
@@ -0,0 +1,39 @@
0
+Summary:        Manages IPv4 and IPv6 addresses and subnets
1
+Name:           perl-NetAddr-IP
2
+Version:        4.079
3
+Release:        1%{?dist}
4
+License:        GPLv2+ or Artistic
5
+Group:          Development/Libraries
6
+URL:            https://metacpan.org/release/NetAddr-IP
7
+Source0:        https://cpan.metacpan.org/authors/id/M/MI/MIKER/NetAddr-IP-%{version}.tar.gz
8
+%define sha1    NetAddr-IP=41f0048dccf016077e65b93a681e40b4f6b28336
9
+Vendor:         VMware, Inc.
10
+Distribution:   Photon
11
+BuildRequires:  perl
12
+Requires:       perl
13
+
14
+%description
15
+This module provides an object-oriented abstraction on top of IP
16
+addresses or IP subnets, that allows for easy manipulations.
17
+
18
+%prep
19
+%setup -q -n NetAddr-IP-%{version}
20
+
21
+%build
22
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}"
23
+make %{?_smp_mflags}
24
+
25
+%install
26
+make install DESTDIR=%{buildroot}
27
+find %{buildroot} -name 'perllocal.pod' -delete
28
+
29
+%check
30
+make test
31
+
32
+%files
33
+%{perl_vendorlib}/*
34
+%{_mandir}/man3/*
35
+
36
+%changelog
37
+*   Thu Sep 27 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 4.079-1
38
+-   Initial version.
... ...
@@ -178,6 +178,7 @@
178 178
         "cifs-utils",
179 179
         "c-ares",
180 180
         "dnsmasq",
181
+        "ddclient",
181 182
         "netmgmt",
182 183
         "motd"
183 184
     ]