Browse code

Adding lsof and dependent packages

dthaluru authored on 2015/07/24 08:12:44
Showing 4 changed files
... ...
@@ -1,20 +1,21 @@
1 1
 Summary:	Programs for generating Makefiles
2 2
 Name:		automake
3
-Version:	1.14.1
4
-Release:	2%{?dist}
3
+Version:	1.15
4
+Release:	1%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		http://www.gnu.org/software/automake/
7 7
 Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10
-Source0:	http://ftp.gnu.org/gnu/automake/%{name}-%{version}.tar.xz
11
-%define sha1 automake=2ced676f6b792a95c5919243f81790b1172c7f5b
10
+Source0:	http://ftp.gnu.org/gnu/automake/%{name}-%{version}.tar.gz
11
+%define sha1 automake=b5a840c7ec4321e78fdc9472e476263fa6614ca1
12 12
 BuildRequires:	autoconf
13 13
 %description
14 14
 Contains programs for generating Makefiles for use with Autoconf.
15 15
 %prep
16 16
 %setup -q
17 17
 %build
18
+sed -i 's:/\\\${:/\\\$\\{:' bin/automake.in
18 19
 ./configure \
19 20
 	--prefix=%{_prefix} \
20 21
 	--docdir=%{_defaultdocdir}/%{name}-%{version} \
... ...
@@ -30,11 +31,13 @@ rm -rf %{buildroot}%{_infodir}
30 30
 %defattr(-,root,root)
31 31
 %{_bindir}/*
32 32
 %{_datarootdir}/aclocal/README
33
-%{_datarootdir}/%{name}-1.14/*
34
-%{_datarootdir}/aclocal-1.14/*
33
+%{_datarootdir}/%{name}-1.15/*
34
+%{_datarootdir}/aclocal-1.15/*
35 35
 %{_defaultdocdir}/%{name}-%{version}/*
36 36
 %{_mandir}/*/*
37 37
 %changelog
38
+*	Thu Jul 23 2015 Divya Thaluru <dthaluru@vmware.com> 1.15-1
39
+-	Updated to version 1.15
38 40
 *	Wed Jun 3 2015 Divya Thaluru <dthaluru@vmware.com> 1.14.1-2
39 41
 -	Adding autoconf package to build time requires packages
40 42
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 1.14.1-1
41 43
new file mode 100644
... ...
@@ -0,0 +1,95 @@
0
+Submitted By: Douglas R. Reno <renodr2002@gmail.com>
1
+Date: 2015-06-24
2
+Initial Package Version: 0.3.2
3
+Origin: BLFS Ticket #6616, Armin K.
4
+Upstream Status: Applied
5
+Description: Restore some old API functions that were taken out. Thanks goes to Armin K. for the patch.
6
+
7
+diff -Naur a/src/Makefile.am b/src/Makefile.am
8
+--- a/src/Makefile.am	2015-06-16 17:35:08.000000000 +0200
9
+@@ -69,7 +69,7 @@
10
+ endif
11
+ 
12
+ libtirpc_la_SOURCES += key_call.c key_prot_xdr.c getpublickey.c
13
+-libtirpc_la_SOURCES += netname.c netnamer.c rtime.c
14
++libtirpc_la_SOURCES += netname.c netnamer.c rpcdname.c rtime.c
15
+ 
16
+ CLEANFILES	       = cscope.* *~
17
+ DISTCLEANFILES	       = Makefile.in
18
+diff -Naur a/src/rpcdname.c b/src/rpcdname.c
19
+--- a/src/rpcdname.c	1970-01-01 01:00:00.000000000 +0100
20
+@@ -0,0 +1,72 @@
21
++/*
22
++ * Copyright (c) 2009, Sun Microsystems, Inc.
23
++ * All rights reserved.
24
++ *
25
++ * Redistribution and use in source and binary forms, with or without
26
++ * modification, are permitted provided that the following conditions are met:
27
++ * - Redistributions of source code must retain the above copyright notice,
28
++ *   this list of conditions and the following disclaimer.
29
++ * - Redistributions in binary form must reproduce the above copyright notice,
30
++ *   this list of conditions and the following disclaimer in the documentation
31
++ *   and/or other materials provided with the distribution.
32
++ * - Neither the name of Sun Microsystems, Inc. nor the names of its
33
++ *   contributors may be used to endorse or promote products derived
34
++ *   from this software without specific prior written permission.
35
++ *
36
++ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
37
++ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
38
++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
39
++ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
40
++ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
41
++ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
42
++ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
43
++ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
44
++ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
45
++ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
46
++ * POSSIBILITY OF SUCH DAMAGE.
47
++ */
48
++
49
++/*
50
++ * rpcdname.c
51
++ * Gets the default domain name
52
++ */
53
++
54
++#include <stdlib.h>
55
++#include <unistd.h>
56
++#include <string.h>
57
++
58
++static char *default_domain = 0;
59
++
60
++static char *
61
++get_default_domain()
62
++{
63
++	char temp[256];
64
++
65
++	if (default_domain)
66
++		return (default_domain);
67
++	if (getdomainname(temp, sizeof(temp)) < 0)
68
++		return (0);
69
++	if ((int) strlen(temp) > 0) {
70
++		default_domain = (char *)malloc((strlen(temp)+(unsigned)1));
71
++		if (default_domain == 0)
72
++			return (0);
73
++		(void) strcpy(default_domain, temp);
74
++		return (default_domain);
75
++	}
76
++	return (0);
77
++}
78
++
79
++/*
80
++ * This is a wrapper for the system call getdomainname which returns a
81
++ * ypclnt.h error code in the failure case.  It also checks to see that
82
++ * the domain name is non-null, knowing that the null string is going to
83
++ * get rejected elsewhere in the NIS client package.
84
++ */
85
++int
86
++__rpc_get_default_domain(domain)
87
++	char **domain;
88
++{
89
++	if ((*domain = get_default_domain()) != 0)
90
++		return (0);
91
++	return (-1);
92
++}
0 93
new file mode 100644
... ...
@@ -0,0 +1,70 @@
0
+Summary:	Libraries for Transport Independent RPC
1
+Name:		libtirpc
2
+Version:	0.3.2
3
+Release:	1%{?dist}
4
+Source0:	http://downloads.sourceforge.net/project/libtirpc/libtirpc/0.3.2/%{name}-%{version}.tar.bz2
5
+%define sha1 libtirpc=af9b74d0c4d1499a7b1a43e396e5b7d62180ea65
6
+Patch0:		http://www.linuxfromscratch.org/patches/blfs/svn/libtirpc-0.3.2-api_fixes-1.patch
7
+License:	BSD
8
+Group:		System Environment/Libraries
9
+URL:		http://nfsv4.bullopensource.org/
10
+Vendor:		VMware, Inc.
11
+Distribution:	Photon
12
+BuildRequires:	krb5
13
+BuildRequires:	automake
14
+Requires:	krb5
15
+
16
+%description
17
+This package contains SunLib's implementation of transport-independent
18
+RPC (TI-RPC) documentation.  This library forms a piece of the base of Open Network
19
+Computing (ONC), and is derived directly from the Solaris 2.3 source.
20
+
21
+TI-RPC is an enhanced version of TS-RPC that requires the UNIX System V
22
+Transport Layer Interface (TLI) or an equivalent X/Open Transport Interface
23
+(XTI).  TI-RPC is on-the-wire compatible with the TS-RPC, which is supported
24
+by almost 70 vendors on all major operating systems.  TS-RPC source code
25
+(RPCSRC 4.0) remains available from several internet sites.
26
+
27
+%package	devel
28
+Summary:	Development files for the libtirpc library
29
+Group:		Development/Libraries
30
+Requires:	libtirpc
31
+
32
+%description 	devel
33
+This package includes header files and libraries necessary for developing programs which use the tirpc library.
34
+
35
+%prep
36
+%setup -q
37
+%patch0 -p1
38
+
39
+%build
40
+./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir}
41
+
42
+make %{?_smp_mflags}
43
+
44
+%install
45
+make install DESTDIR=%{buildroot}
46
+
47
+%post
48
+/sbin/ldconfig
49
+
50
+%postun
51
+/sbin/ldconfig
52
+
53
+%files
54
+%{_sysconfdir}/netconfig
55
+%{_mandir}/man3/*
56
+%{_mandir}/man5/*
57
+%{_libdir}/*.so.*
58
+%{_libdir}/*.a
59
+%{_libdir}/*.la
60
+
61
+%files devel
62
+%{_libdir}/*.so
63
+%{_libdir}/pkgconfig/*.pc
64
+%{_includedir}/tirpc/*
65
+   
66
+
67
+%changelog
68
+* Thu Jul 23 2015 Divya Thaluru <dthaluru@vmware.com> 0.3.2-1
69
+- Initial version
0 70
new file mode 100644
... ...
@@ -0,0 +1,36 @@
0
+Summary:	List Open Files
1
+Name:		lsof
2
+Version:	4.89
3
+Release:	1%{?dist}
4
+License:	BSD
5
+URL:		https://people.freebsd.org/~abe/
6
+Group:		System Environment/Tools
7
+Vendor:		VMware, Inc.
8
+Distribution: 	Photon
9
+Source0:	http://fossies.org/linux/misc/%{name}_%{version}.tar.gz
10
+%define sha1 lsof=e2fee8dfae031b736660b029a4d9a808bc599c2f
11
+BuildRequires:	libtirpc-devel
12
+Requires:	libtirpc
13
+
14
+%description
15
+Contains programs for generating Makefiles for use with Autoconf.
16
+%prep
17
+%setup -q -n %{name}_%{version} 
18
+tar -xf lsof_4.89_src.tar
19
+%build
20
+cd lsof_4.89_src
21
+./Configure -n linux
22
+make CFGL="-L./lib -ltirpc" %{?_smp_mflags}
23
+%install
24
+cd lsof_4.89_src
25
+mkdir -p %{buildroot}%{_sbindir}
26
+install -v -m 0755 lsof %{buildroot}%{_sbindir}
27
+mkdir -p %{buildroot}%{_mandir}/man8
28
+install -v -m 0644 lsof.8 %{buildroot}%{_mandir}/man8
29
+%files
30
+%defattr(-,root,root)
31
+%{_sbindir}/*
32
+%{_mandir}/man8/*
33
+%changelog
34
+*	Thu Jul 23 2015 Divya Thaluru <dthaluru@vmware.com> 4.89-1
35
+-	Initial build.