mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-21 17:11:45 +00:00
Initial OpenSLP version
This commit is contained in:
parent
3bdc5b880a
commit
2deb027dfe
25
AIX/OpenSLP/openslp-aix.patch
Normal file
25
AIX/OpenSLP/openslp-aix.patch
Normal file
@ -0,0 +1,25 @@
|
||||
diff -uNr a/common/slp_dhcp.c b/common/slp_dhcp.c
|
||||
--- a/common/slp_dhcp.c 2008-07-30 10:55:45.095231168 -0400
|
||||
+++ b/common/slp_dhcp.c 2008-07-30 10:56:56.965305256 -0400
|
||||
@@ -65,6 +65,9 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/ioctl.h>
|
||||
+#ifdef AIX
|
||||
+#include <net/if.h>
|
||||
+#endif
|
||||
#include <net/if_arp.h>
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
diff -uNr a/common/slp_xcast.c b/common/slp_xcast.c
|
||||
--- a/common/slp_xcast.c 2008-07-30 10:55:49.928496400 -0400
|
||||
+++ b/common/slp_xcast.c 2008-07-30 10:56:31.621158152 -0400
|
||||
@@ -173,7 +173,7 @@
|
||||
int flags = 0;
|
||||
int xferbytes;
|
||||
struct in_addr saddr;
|
||||
- int optarg;
|
||||
+ unsigned char optarg;
|
||||
|
||||
|
||||
#if defined(MSG_NOSIGNAL)
|
51
AIX/OpenSLP/openslp.spec
Normal file
51
AIX/OpenSLP/openslp.spec
Normal file
@ -0,0 +1,51 @@
|
||||
%define pkg openslp
|
||||
%define ver 1.2.1
|
||||
|
||||
# what red hat (or other distibution) version are you running?
|
||||
%define distver 1
|
||||
|
||||
Summary: Open source implementation of Service Location Protocol V2
|
||||
Name: %{pkg}
|
||||
Version: %{ver}
|
||||
Release: %{distver}
|
||||
License: BSD
|
||||
Group: System/Utilities
|
||||
URL: http:/openslp.sourceforge.net
|
||||
Source: %{pkg}-%{ver}.tar.gz
|
||||
Patch0: openslp-conf.patch
|
||||
Patch1: openslp-attr.patch
|
||||
Patch2: openslp-aix.patch
|
||||
Patch3: openslp-network.patch
|
||||
BuildRoot: %{_tmppath}/%{pkg}-%{ver}-root
|
||||
Prefix: %{_prefix}
|
||||
|
||||
%description
|
||||
Open source implementation of Service Location Protocol V2
|
||||
|
||||
%prep
|
||||
# Set the path to pick up AIX toolbox patch program
|
||||
export PATH=/opt/freeware/bin:$PATH
|
||||
%{__rm} -rf %{buildroot}
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
%configure --enable-shared=no
|
||||
make
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/local/bin
|
||||
cp slptool/slptool $RPM_BUILD_ROOT/usr/local/bin
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/local/etc
|
||||
cp etc/slp.conf $RPM_BUILD_ROOT/usr/local/etc
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
/usr/local/bin/slptool
|
||||
/usr/local/etc/slp.conf
|
Loading…
Reference in New Issue
Block a user