Browse code

Packages update: Linux-PAM,audit,efibootmgr,efivar

Change-Id: Id5f4dd4eea9ed8348140ed91703d2dcd68cb534f
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2449
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

Alexey Makhalov authored on 2017/04/16 20:16:46
Showing 5 changed files
... ...
@@ -1,14 +1,14 @@
1 1
 Summary:        Linux Pluggable Authentication Modules
2 2
 Name:           Linux-PAM
3
-Version:        1.2.1
4
-Release:        5%{?dist}
3
+Version:        1.3.0
4
+Release:        1%{?dist}
5 5
 License:        BSD and GPLv2+
6 6
 URL:            https://www.kernel.org/pub/linux/libs/pam/
7 7
 Group:          System Environment/Security
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        http://linux-pam.org/library/%{name}-%{version}.tar.bz2
11
-%define sha1    Linux-PAM=3620ab5f5e02272825c426622761a19a1a2facca
11
+%define sha1    Linux-PAM=e956252e81d824c35a60c9b50919ca0767f8a8ec
12 12
 BuildRequires:  cracklib-devel
13 13
 Requires:       cracklib
14 14
 %description
... ...
@@ -18,7 +18,7 @@ enable the local system administrator to choose how applications authenticate us
18 18
 %package lang
19 19
 Summary: Additional language files for Linux-PAM
20 20
 Group: System Environment/Base
21
-Requires: Linux-PAM >= 1.2.1
21
+Requires:       %{name} = %{version}-%{release}
22 22
 %description lang
23 23
 These are the additional language files of Linux-PAM.
24 24
 
... ...
@@ -81,7 +81,6 @@ rm -rf %{buildroot}/*
81 81
 %{_libdir}/*.so*
82 82
 %{_mandir}/man5/*
83 83
 %{_mandir}/man8/*
84
-%{_docdir}/%{name}-%{version}/*
85 84
 
86 85
 %files lang -f Linux-PAM.lang
87 86
 %defattr(-,root,root)
... ...
@@ -90,8 +89,11 @@ rm -rf %{buildroot}/*
90 90
 %defattr(-,root,root)
91 91
 %{_includedir}/*
92 92
 %{_mandir}/man3/*
93
+%{_docdir}/%{name}-%{version}/*
93 94
 
94 95
 %changelog
96
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 1.3.0-1
97
+-   Version update.
95 98
 *   Fri Feb 10 2017 Xiaolin Li <xiaolinl@vmware.com> 1.2.1-5
96 99
 -   Added pam_unix_auth.so, pam_unix_acct.so, pam_unix_passwd.so,
97 100
 -   and pam_unix_session.so.
... ...
@@ -1,9 +1,9 @@
1 1
 Summary:        Kernel Audit Tool
2 2
 Name:           audit
3
-Version:        2.5
4
-Release:        7%{?dist}
3
+Version:        2.7.5
4
+Release:        1%{?dist}
5 5
 Source0:        http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
6
-%define sha1    audit=b684a8dca31776a4184044733cd5fd4b1b652298
6
+%define sha1    audit=7aaae7ea80f2280b25f243916e8d18b7338b5f53
7 7
 License:        GPLv2+
8 8
 Group:          System Environment/Security
9 9
 URL:            http://people.redhat.com/sgrubb/audit/
... ...
@@ -57,7 +57,8 @@ The libraries and header files needed for audit development.
57 57
     --with-aarch64 \
58 58
         --enable-zos-remote \
59 59
     --with-golang \
60
-    --enable-systemd
60
+    --enable-systemd \
61
+    --disable-static
61 62
 
62 63
 make %{?_smp_mflags}
63 64
 
... ...
@@ -86,10 +87,7 @@ make %{?_smp_mflags} check
86 86
 %{_bindir}/*
87 87
 %{_sbindir}/*
88 88
 %{_libdir}/*.so.*
89
-%{_libdir}/*.a
90
-%{_libdir}/*.la
91 89
 %{_libdir}/python*/*
92
-%{_libdir}/golang/*
93 90
 %{_libdir}/systemd/system/auditd.service
94 91
 %{_libexecdir}/*
95 92
 %{_mandir}/man5/*
... ...
@@ -104,6 +102,7 @@ make %{?_smp_mflags} check
104 104
 %config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/auditd.conf
105 105
 %ghost %config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/rules.d/audit.rules
106 106
 %ghost %config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/audit.rules
107
+%ghost %config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/audit-stop.rules
107 108
 %config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/audispd.conf
108 109
 %config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/af_unix.conf
109 110
 %config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/syslog.conf
... ...
@@ -112,16 +111,20 @@ make %{?_smp_mflags} check
112 112
 %config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/audisp-remote.conf
113 113
 %config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/au-remote.conf
114 114
 %config(noreplace) %attr(640,root,root) %{_sysconfdir}/libaudit.conf
115
-/usr/share/aclocal/audit.m4
116 115
 
117 116
 %files devel
118 117
 %defattr(-,root,root)
119 118
 %{_libdir}/*.so
119
+%{_libdir}/*.la
120 120
 %{_libdir}/pkgconfig/*.pc
121
+%{_libdir}/golang/*
121 122
 %{_includedir}/*.h
122 123
 %{_mandir}/man3/*
124
+/usr/share/aclocal/audit.m4
123 125
 
124 126
 %changelog
127
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 2.7.5-1
128
+-   Version update.
125 129
 *   Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 2.5-7
126 130
 -   Moved man3 to devel subpackage.
127 131
 *   Thu Nov 24 2016 Alexey Makhalov <amakhalov@vmware.com> 2.5-6
... ...
@@ -1,40 +1,43 @@
1 1
 Summary:	Tools and libraries to manipulate EFI variables
2 2
 Name:		efibootmgr
3
-Version:	0.12
4
-Release:	2%{?dist}
3
+Version:	15
4
+Release:	1%{?dist}
5 5
 License:	GPLv2
6 6
 URL:		https://github.com/rhinstaller/efibootmgr/
7 7
 Group:		System Environment/System Utilities
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	https://github.com/rhinstaller/efibootmgr/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
11
-%define sha1 efibootmgr=eecdacb6eca67bbc318dd03e496f1854214aa79c
12
-BuildRequires: efivar
11
+%define sha1 efibootmgr=9dc7ca7b14a47fc178a5bb7b9c0a79cc05e2b272
12
+BuildRequires: efivar-devel
13 13
 BuildRequires: pciutils
14 14
 BuildRequires: zlib
15 15
 %description
16
-efivar provides a simle CLI to the UEFI variable facility
16
+efibootmgr is a userspace application used to modify the Intel Extensible Firmware Interface (EFI) Boot Manager. This application can create and destroy boot entries, change the boot order, change the next running boot option, and more.
17 17
 %prep
18 18
 %setup -q
19 19
 %build
20
-make %{?_smp_mflags} PREFIX=%{_prefix} \
20
+make %{?_smp_mflags} PREFIX=%{_prefix} EFIDIR=BOOT EFI_LOADER=grubx64.efi \
21 21
     libdir=%{_libdir} \
22 22
     bindir=%{_bindir}
23 23
 %install
24 24
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
25
-mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_mandir}/man8
26
-install -p --mode 755 src/%{name}/%{name} %{buildroot}%{_sbindir}
27
-gzip -9 -c src/man/man8/%{name}.8 > src/man/man8/%{name}.8.gz
28
-touch -r src/man/man8/%{name}.8 src/man/man8/%{name}.8.gz
29
-install -p --mode 644 src/man/man8/%{name}.8.gz %{buildroot}%{_mandir}/man8
25
+make DESTDIR=%{buildroot} \
26
+    PREFIX=%{_prefix} EFIDIR=BOOT EFI_LOADER=grubx64.efi \
27
+    install
28
+gzip -9 %{buildroot}%{_mandir}/man8/%{name}.8
29
+gzip -9 %{buildroot}%{_mandir}/man8/efibootdump.8
30
+
30 31
 %clean
31 32
 rm -rf %{buildroot}/*
32 33
 %files 
33 34
 %defattr(-,root,root)
34
-%{_sbindir}/%{name}
35
-%{_mandir}/man8/%{name}.8.gz
35
+%{_sbindir}/*
36
+%{_mandir}/man8/*
36 37
 %changelog
37
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.12-2
38
--	GA - Bump release of all rpms
39
-*	Mon Jul 6 2015 Sharath George <sharathg@vmware.com> 0.12-1
40
--	Initial build.	First version. Install steps from spec file in source.
38
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 15-1
39
+-   Version update.
40
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.12-2
41
+-   GA - Bump release of all rpms
42
+*   Mon Jul 6 2015 Sharath George <sharathg@vmware.com> 0.12-1
43
+-   Initial build. First version. Install steps from spec file in source.
... ...
@@ -1,21 +1,26 @@
1 1
 Summary:	Tools and libraries to manipulate EFI variables
2 2
 Name:		efivar
3
-Version:	0.20
4
-Release:	3%{?dist}
3
+Version:	31
4
+Release:	1%{?dist}
5 5
 License:	GPLv2
6 6
 URL:		https://github.com/rhinstaller/efivar/
7 7
 Group:		System Environment/System Utilities
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	https://github.com/rhinstaller/efivar/releases/download/%{version}/%{name}-%{version}.tar.bz2
11
-%define sha1 efivar=a66a6d00b59bffe07cbdfc98c727d749157d4140
12
-Patch0:     workaround-rename-of-linux-nvme.h.patch
11
+%define sha1 efivar=ae5b4c3aeb29fe0ef5212142b0a21d6f003dd266
13 12
 BuildRequires: popt-devel
14 13
 %description
15 14
 efivar provides a simle CLI to the UEFI variable facility
15
+
16
+%package    devel
17
+Summary:    Header and development files for efivar
18
+Requires:   %{name} = %{version}-%{release}
19
+%description    devel
20
+It contains the libraries and header files to create applications
21
+
16 22
 %prep
17 23
 %setup -q
18
-%patch0 -p1
19 24
 %build
20 25
 make %{?_smp_mflags} PREFIX=%{_prefix} \
21 26
     libdir=%{_libdir} \
... ...
@@ -31,16 +36,26 @@ make %{?_smp_mflags} test
31 31
 
32 32
 %clean
33 33
 rm -rf %{buildroot}/*
34
+
34 35
 %files 
35 36
 %defattr(-,root,root)
36 37
 %{_bindir}/*
37
-%{_lib64dir}/*
38
+%{_lib64dir}/*.so.*
39
+%{_mandir}/man1/*
40
+
41
+%files devel
42
+%defattr(-,root,root)
38 43
 %{_includedir}/*
39
-%{_datadir}/*
44
+%{_lib64dir}/*.so
45
+%{_lib64dir}/pkgconfig/*
46
+%{_mandir}/man3/*
47
+
40 48
 %changelog
41
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.20-3
42
--	GA - Bump release of all rpms
43
-*	Thu Apr 28 2016 Xiaolin Li <xiaolinl@vmware.com> 0.20-2
44
--	Fix build for linux 4.4.
45
-*	Mon Jul 6 2015 Sharath George <sharathg@vmware.com> 0.20-1
46
--	Initial build.	First version
49
+*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 31-1
50
+-   Version update. Added -devel subpackage.
51
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.20-3
52
+-   GA - Bump release of all rpms
53
+*   Thu Apr 28 2016 Xiaolin Li <xiaolinl@vmware.com> 0.20-2
54
+-   Fix build for linux 4.4.
55
+*   Mon Jul 6 2015 Sharath George <sharathg@vmware.com> 0.20-1
56
+-   Initial build.	First version
47 57
deleted file mode 100644
... ...
@@ -1,17 +0,0 @@
1
-diff --git a/src/a/linux.c b/src/b/linux.c
2
-index 1231ecf..eb63e22 100644
3
-+++ b/src/linux.c
4
-@@ -22,7 +22,12 @@
5
- #include <inttypes.h>
6
- #include <limits.h>
7
- #include <linux/ethtool.h>
8
-+#include <linux/version.h>
9
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
10
-+#include <linux/nvme_ioctl.h>
11
-+#else
12
- #include <linux/nvme.h>
13
-+#endif
14
- #include <linux/sockios.h>
15
- #include <net/if.h>
16
- #include <scsi/scsi.h>