File suck-4.3.0.dif of Package suck

--- Makefile.in
+++ Makefile.in
@@ -6,8 +6,8 @@
 ############################################################################
 
 # Step 1: Define ONE of the CHKHISTORY 
-CHKHISTORY=chkhistory.o		# use flat file history routine
-#CHKHISTORY=chkhistory_db.o	# use DB history routine, if you use 
+#CHKHISTORY=chkhistory.o		# use flat file history routine
+CHKHISTORY=chkhistory_db.o	# use DB history routine, if you use 
                                 # DBM, GDBM, NDBM, or DBZ
                                 # in order to use DBZ with INN you will need
                                 # the full compiled source code, especially
@@ -21,7 +21,7 @@
 #DB_TYPE=-DUSE_NDBM
 #DB_TYPE=-DUSE_DBZ	# for inn-1.X.X users
 #DB_TYPE=-DUSE_INN2	# for inn-2.1-2.X users
-#DB_TYPE=-DUSE_INN23	# for inn-2.3.X users
+DB_TYPE=-DUSE_INN23	# for inn-2.3.X users
 
 # Step 3: Define ONE Library that contains the functions
 # If you are using INN-2.X, and the compiler complains 
@@ -32,12 +32,12 @@
 #DB_LIB=-lndbm
 #DB_LIB=-ldbz
 #DB_LIB=-linn -lstorage	# see note above
-#DB_LIB=-linn		# INN puts DBZ code in here
+DB_LIB=-linn		# INN puts DBZ code in here
 
 # Step 4: IF your DB Library/Includes are in a non-standard place, 
 # define These
-#DB_INC_LOC=-I/usr/src/inn-2.3/include
-#DB_LIB_LOC=-L/usr/src/inn-2.3/lib
+DB_INC_LOC=-I/usr/lib/news/include
+DB_LIB_LOC=-L/usr/lib/news/lib
 
 # Step 5: If you want to use embedded PERL functions as kill routines
 # define these. 
@@ -49,11 +49,15 @@
 # add -lm to the PERL_LIB line.
 # The rest of these should be left alone (except to remove the #).
 # If you're using perl5.004 or older, add "-DOLD_PERL to PERL_DEFS
-#PERL_CORE=/usr/lib/perl5/5.00503/i686-linux/CORE
-#PERL_LIB=-lperl -lcrypt
-#PERL_DEFS=-DPERL_EMBED -Dbool=char -DHAS_BOOL
-#PERL_INC_LOC=-I$(PERL_CORE)
-#PERL_LIB_LOC=-L$(PERL_CORE)
+PERL_CORE=
+PERL_LIB=$(shell perl -MExtUtils::Embed -e ldopts)
+ifneq ($(findstring $(RPM_ARCH),ia64),)
+PERL_DEFS=-DPERL_EMBED -Dbool=long -DHAS_BOOL
+else
+PERL_DEFS=-DPERL_EMBED -Dbool=char -DHAS_BOOL
+endif
+PERL_INC_LOC=$(shell perl -MExtUtils::Embed -e ccopts)
+PERL_LIB_LOC=
 
 # Step 6: If compiling for OS/2 uncomment the following
 #OS2_LD=-Zexe
@@ -186,7 +190,6 @@
 
 install_bin: suck rpost testhost lmove
 	- mkdir -p $(bindir)
-	- strip -s suck rpost testhost lmove
 	$(INSTALL_PROGRAM) suck $(bindir)/suck
 	$(INSTALL_PROGRAM) rpost $(bindir)/rpost
 	$(INSTALL_PROGRAM) testhost $(bindir)/testhost
@@ -204,7 +207,6 @@
 #	$(MAKE) -C $(SMAN)
 
 install_lpost: lpost $(MAN)/lpost.1
-	- strip -s lpost
 	$(INSTALL_PROGRAM) lpost $(bindir)/lpost
 	$(INSTALL_DATA) $(MAN)/lpost.1 $(mandir)/lpost.$(manext)
 
--- README
+++ README
@@ -98,7 +98,7 @@
 ==========
 1.  run ./configure
 2.  If your history file is not a flat file, edit the top of the Makefile.
-    If your flatfile history file is not at /usr/news/db/history, 
+    If your flatfile history file is not at /var/lib/news/history, 
 	you'll need to use the -HF option, to tell suck where it is.
 3.  If you're using SSL edit the Makefile step #8.
 4.  Make it.  (make , make install)
--- chkhistory_db.c
+++ chkhistory_db.c
@@ -73,7 +73,7 @@
 
 #ifdef USE_INN2
 #include <sys/types.h>
-#include <configdata.h>
+/* #include <configdata.h> obsolete */
 #include <clibrary.h>
 #include <libinn.h>
 #include <dbz.h>
@@ -81,7 +81,7 @@
 #endif
 #ifdef USE_INN23
 #include <sys/types.h>
-#include <configdata.h>
+/* #include <configdata.h> obsolete */
 #include <libinn.h>
 #include <dbz.h>
 #define close_history() dbzclose()
--- lpost.c
+++ lpost.c
@@ -1,3 +1,5 @@
+#define _POSIX_SOURCE
+
 #include <config.h>
 
 #include <stdio.h>
--- man/suck.1
+++ man/suck.1
@@ -311,7 +311,7 @@
 
 \-HF history_file_name
 
-This option tells suck the location of the history file.  The default is at /usr/news/db/history.
+This option tells suck the location of the history file.  The default is at /var/lib/news/history.
 
 \-hl localhost
 
--- suck_config.h
+++ suck_config.h
@@ -94,8 +94,8 @@
 #define N_LMOVE_CONFIG  "lmove-config"          /* config file for lmove */
 #define N_XOVER         "suckxover"             /* parameter file for which articles NOT to download via xover */
 #define N_NODOWNLOAD    "sucknodownload"        /* file name for message-ids that I never download */
-#define N_PHRASES "/usr/local/lib/suck.phrases"	/* default location for phrase file */
-#define HISTORY_FILE "/usr/news/db/history"     /* default location for history file */
+#define N_PHRASES "/usr/lib/suck.phrases"	/* default location for phrase file */
+#define HISTORY_FILE "/var/lib/news/history"     /* default location for history file */
 
 /* TEMP FILES created */
 #define N_NEWRC "suck.newrc"
@@ -127,7 +127,7 @@
 #define RPOST_FAIL_EXT ".fail"
 
 /* RNEWS program called by lpost */
-#define RNEWS "/usr/lib/news/rnews"
+#define RNEWS "/usr/bin/rnews"
 
 /* character used as a comment in sucknewsrc */
 #define SUCKNEWSRC_COMMENT_CHAR '#'
openSUSE Build Service is sponsored by