Browse Source

Appended patch for Solaris 2.6

master
Peter Smej 23 years ago committed by Ralf S. Engelschall
parent
commit
ef36766f9b
  1. 22
      apg/apg.patch
  2. 14
      apg/apg.spec

22
apg/apg.patch

@ -0,0 +1,22 @@
--- apg.c.org Tue Feb 11 15:11:31 2003
+++ apg.c Tue Feb 11 15:10:52 2003
@@ -132,7 +132,7 @@
#endif /* APG_USE_CRYPT */
#endif /* CLISERV */
#ifdef CLISERV
-#ifdef sgi /* Thanks to Andrew J. Caird */
+#ifdef NEED_SOCKLEN_T /* Thanks to Andrew J. Caird */
typedef unsigned int socklen_t;
#endif
socklen_t len;
--- Makefile.org Tue Feb 11 15:32:34 2003
+++ Makefile Tue Feb 11 15:32:50 2003
@@ -6,7 +6,7 @@
##################################################################
# Compilation flags
# You should comment the line below for AIX+native cc
-FLAGS = -Wall
+FLAGS = -Wall ${CFLAGS}
##################################################################
# Libraries

14
apg/apg.spec

@ -37,6 +37,7 @@ Release: 20020916
# list of sources
Source0: http://www.adel.nursat.kz/apg/download/apg-%{version}.tar.gz
Patch0: apg.patch
# build information
Prefix: %{l_prefix}
@ -56,16 +57,21 @@ AutoReqProv: no
%prep
%setup -q
%patch -p0
%build
libs=""
defs=""
case "%{l_target}" in
*-freebsd* ) libs="" ;;
*-linux* ) libs="-lnsl" ;;
*-solaris* ) libs="-lnsl -lsocket" ;;
*-freebsd* ) libs="" ;;
*-linux* ) libs="-lnsl" ;;
*-solaris2.6* ) libs="-lnsl -lsocket" ; defs="-DNEED_SOCKLEN_T" ;;
*-solaris* ) libs="-lnsl -lsocket" ;;
*-irix* ) libs="-lnsl -lsocket" ; defs="-DNEED_SOCKLEN_T";;
esac
%{l_make} %{l_mflags -O} \
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
CFLAGS="%{l_cflags -O} $defs" \
CS_LIBS="$libs"
%install

Loading…
Cancel
Save