diff --git a/AIX/OpenSLP/openslp-aix.patch b/AIX/OpenSLP/openslp-aix.patch new file mode 100644 index 0000000..e4f8fe9 --- /dev/null +++ b/AIX/OpenSLP/openslp-aix.patch @@ -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 + #include + #include ++#ifdef AIX ++#include ++#endif + #include + #include + #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) diff --git a/AIX/OpenSLP/openslp.spec b/AIX/OpenSLP/openslp.spec new file mode 100644 index 0000000..77a0d96 --- /dev/null +++ b/AIX/OpenSLP/openslp.spec @@ -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