Browse code

Add libnetfilter libraries and libnfnetlink

Change-Id: I535aeb3e25e7e51a90a1943b56f5f520b7e8a3e3
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2461
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Dheeraj S Shetty <dheerajs@vmware.com>

suezzelur authored on 2017/04/18 08:07:30
Showing 5 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,58 @@
0
+Summary:    Netfilter conntrack userspace library
1
+Name:       libnetfilter_conntrack
2
+Version:    1.0.6
3
+Release:    1%{?dist}
4
+License:    GPLv2+
5
+URL:        http://www.netfilter.org/projects/libnetfilter_conntrack/index.html
6
+Group:      System Environment/Libraries
7
+Vendor:     VMware, Inc.
8
+Distribution:   Photon
9
+Source0:    http://www.netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2
10
+%define sha1 libnetfilter_conntrack=015f985a8e171889a67769ba02d070eca53bac07
11
+
12
+BuildRequires:  libmnl-devel
13
+BuildRequires:  libnfnetlink-devel
14
+BuildRequires:  linux-api-headers
15
+
16
+%description
17
+libnetfilter_conntrack is a userspace library providing a programming interface (API) to the in-kernel connection tracking state table. The library libnetfilter_conntrack has been previously known as libnfnetlink_conntrack and libctnetlink. 
18
+%package        devel
19
+Summary:        Development files for %{name}
20
+Group:          Development/Libraries
21
+Requires:       %{name} = %{version}-%{release}
22
+Requires:       libnfnetlink-devel
23
+Requires:       linux-api-headers
24
+
25
+%description    devel
26
+The %{name}-devel package contains libraries and header files for
27
+developing applications that use %{name}.
28
+
29
+%prep
30
+%setup -q
31
+
32
+%build
33
+%configure --disable-static --disable-rpath
34
+make %{?_smp_mflags}
35
+
36
+%install
37
+%make_install
38
+find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
39
+
40
+%post -p /sbin/ldconfig
41
+%postun -p /sbin/ldconfig
42
+
43
+%files
44
+%doc COPYING README
45
+%{_libdir}/*.so.*
46
+
47
+%files devel
48
+%{_libdir}/pkgconfig/*.pc
49
+%dir %{_includedir}/libnetfilter_conntrack
50
+%{_includedir}/libnetfilter_conntrack/*.h
51
+%{_libdir}/*.so
52
+
53
+%changelog
54
+*   Wed Apr 05 2017 Anish Swaminathan <anishs@vmware.com> 1.0.6-1
55
+-   Initial packaging
56
+
57
+
0 58
new file mode 100644
... ...
@@ -0,0 +1,58 @@
0
+Summary:    User-space infrastructure for connection tracking helpers
1
+Name:       libnetfilter_cthelper
2
+Version:    1.0.0
3
+Release:    1%{?dist}
4
+License:    GPLv2
5
+URL:        http://www.netfilter.org/projects/libnetfilter_cthelper/index.html
6
+Group:      System Environment/Libraries
7
+Vendor:     VMware, Inc.
8
+Distribution:   Photon
9
+Source0:    http://www.netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2
10
+%define sha1 libnetfilter_cthelper=5d0a82794bd46aafde20c16800edca23d563de66
11
+
12
+BuildRequires:  libmnl-devel
13
+BuildRequires:  linux-api-headers
14
+
15
+%description
16
+libnetfilter_cthelper is the userspace library that provides the programming interface to the user-space helper infrastructure available since Linux kernel 3.6. With this library, you register, configure, enable and disable user-space helpers.
17
+
18
+%package        devel
19
+Summary:        Development files for %{name}
20
+Group:          Development/Libraries
21
+Requires:       %{name} = %{version}-%{release}
22
+Requires:       libmnl-devel
23
+Requires:       linux-api-headers
24
+
25
+%description    devel
26
+The %{name}-devel package contains libraries and header files for
27
+developing applications that use %{name}.
28
+
29
+%prep
30
+%setup -q
31
+
32
+%build
33
+%configure --disable-static
34
+make %{?_smp_mflags}
35
+
36
+%install
37
+%make_install
38
+find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
39
+
40
+%post -p /sbin/ldconfig
41
+%postun -p /sbin/ldconfig
42
+
43
+%files
44
+%doc COPYING README
45
+%{_libdir}/*.so.*
46
+
47
+%files devel
48
+%doc examples
49
+%{_libdir}/pkgconfig/*.pc
50
+%dir %{_includedir}/libnetfilter_cthelper
51
+%{_includedir}/libnetfilter_cthelper/*.h
52
+%{_libdir}/*.so
53
+
54
+%changelog
55
+*   Wed Apr 05 2017 Anish Swaminathan <anishs@vmware.com> 1.0.0-1
56
+-   Initial packaging
57
+
0 58
new file mode 100644
... ...
@@ -0,0 +1,58 @@
0
+Summary:    User-space infrastructure for connection tracking timeout
1
+Name:       libnetfilter_cttimeout
2
+Version:    1.0.0
3
+Release:    1%{?dist}
4
+License:    GPLv2+
5
+URL:        http://www.netfilter.org/projects/libnetfilter_cttimeout/index.html
6
+Group:      System Environment/Libraries
7
+Vendor:     VMware, Inc.
8
+Distribution:   Photon
9
+Source0:    http://www.netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2
10
+%define sha1 libnetfilter_cttimeout=24cba24b0371e80007be4ea0fa9d872df63b8a7a
11
+
12
+BuildRequires:  libmnl-devel
13
+BuildRequires:  linux-api-headers
14
+
15
+%description
16
+libnetfilter_cttimeout is the userspace library that provides the programming interface to the fine-grain connection tracking timeout infrastructure. With this library, you can create, update and delete timeout policies that can be attached to traffic flows.
17
+
18
+%package        devel
19
+Summary:        Development files for %{name}
20
+Group:          Development/Libraries
21
+Requires:       %{name} = %{version}-%{release}
22
+Requires:       libmnl-devel
23
+Requires:       linux-api-headers
24
+
25
+%description    devel
26
+The %{name}-devel package contains libraries and header files for
27
+developing applications that use %{name}.
28
+
29
+%prep
30
+%setup -q
31
+
32
+%build
33
+%configure --disable-static
34
+make %{?_smp_mflags}
35
+
36
+%install
37
+%make_install
38
+find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
39
+
40
+%post -p /sbin/ldconfig
41
+%postun -p /sbin/ldconfig
42
+
43
+%files
44
+%doc COPYING README
45
+%{_libdir}/*.so.*
46
+
47
+%files devel
48
+%{_libdir}/pkgconfig/*.pc
49
+%dir %{_includedir}/libnetfilter_cttimeout
50
+%{_includedir}/libnetfilter_cttimeout/*.h
51
+%{_libdir}/*.so
52
+
53
+%changelog
54
+*   Wed Apr 05 2017 Anish Swaminathan <anishs@vmware.com> 1.0.0-1
55
+-   Initial packaging
56
+
57
+
0 58
new file mode 100644
... ...
@@ -0,0 +1,60 @@
0
+Summary:    Provides API to packets queued by kernel packet filter
1
+Name:       libnetfilter_queue
2
+Version:    1.0.2
3
+Release:    1%{?dist}
4
+License:    GPLv2
5
+URL:        http://www.netfilter.org/projects/libnetfilter_queue/index.html
6
+Group:      System Environment/Libraries
7
+Vendor:     VMware, Inc.
8
+Distribution:   Photon
9
+Source0:    http://www.netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2
10
+%define sha1 libnetfilter_queue=8cc0b8ed33162281bc9fa8bcfa8c9dcb08848ff9
11
+
12
+BuildRequires:  libmnl-devel
13
+BuildRequires:  libnfnetlink-devel
14
+BuildRequires:  linux-api-headers
15
+
16
+%description
17
+libnetfilter_queue is a userspace library providing an API to packets that have been queued by the kernel packet filter. It is is part of a system that deprecates the old ip_queue / libipq mechanism.
18
+libnetfilter_queue has been previously known as libnfnetlink_queue.
19
+
20
+%package        devel
21
+Summary:        Development files for %{name}
22
+Group:          Development/Libraries
23
+Requires:       %{name} = %{version}-%{release}
24
+Requires:       libnfnetlink-devel
25
+Requires:       linux-api-headers
26
+
27
+%description    devel
28
+The %{name}-devel package contains libraries and header files for
29
+developing applications that use %{name}.
30
+
31
+%prep
32
+%setup -q
33
+
34
+%build
35
+%configure --disable-static 
36
+make %{?_smp_mflags}
37
+
38
+%install
39
+%make_install
40
+find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
41
+
42
+%post -p /sbin/ldconfig
43
+%postun -p /sbin/ldconfig
44
+
45
+%files
46
+%doc COPYING 
47
+%{_libdir}/*.so.*
48
+
49
+%files devel
50
+%{_libdir}/pkgconfig/*.pc
51
+%{_includedir}/*
52
+%{_libdir}/*.so
53
+
54
+%changelog
55
+*   Wed Apr 05 2017 Anish Swaminathan <anishs@vmware.com> 1.0.2-1
56
+-   Initial packaging
57
+
58
+
59
+
0 60
new file mode 100644
... ...
@@ -0,0 +1,55 @@
0
+Summary:    Library for netfilter related kernel/userspace communication
1
+Name:       libnfnetlink
2
+Version:    1.0.1
3
+Release:    1%{?dist}
4
+License:    GPLv2+
5
+URL:        http://www.netfilter.org/projects/libnfnetlink/index.html
6
+Group:      System Environment/Libraries
7
+Vendor:     VMware, Inc.
8
+Distribution:   Photon
9
+Source0:    http://www.netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2
10
+%define sha1 libnfnetlink=27ae2dfbd976e28cb7a417f9e946c901f512dd9a
11
+
12
+BuildRequires:  linux-api-headers
13
+
14
+%description
15
+libnfnetlink is the low-level library for netfilter related kernel/userspace communication. It provides a generic messaging infrastructure for in-kernel netfilter subsystems (such as nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their respective users and/or management tools in userspace.
16
+
17
+%package        devel
18
+Summary:        Development files for %{name}
19
+Group:          Development/Libraries
20
+Requires:       %{name} = %{version}-%{release}
21
+Requires:       linux-api-headers
22
+
23
+%description    devel
24
+The %{name}-devel package contains libraries and header files for
25
+developing applications that use %{name}.
26
+
27
+%prep
28
+%setup -q
29
+
30
+%build
31
+%configure --disable-static
32
+make %{?_smp_mflags}
33
+
34
+%install
35
+%make_install
36
+find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
37
+
38
+%post -p /sbin/ldconfig
39
+%postun -p /sbin/ldconfig
40
+
41
+%files
42
+%doc COPYING README
43
+%{_libdir}/*.so.*
44
+
45
+%files devel
46
+%{_libdir}/pkgconfig/*.pc
47
+%dir %{_includedir}/libnfnetlink
48
+%{_includedir}/libnfnetlink/*.h
49
+%{_libdir}/*.so
50
+
51
+%changelog
52
+*   Wed Apr 05 2017 Anish Swaminathan <anishs@vmware.com> 1.0.1-1
53
+-   Initial packaging
54
+