File nast-0.2.0-config.patch of Package nast

Index: Makefile.in
===================================================================
--- Makefile.in.orig
+++ Makefile.in
@@ -37,9 +37,10 @@ nast:	$(OBJS)
 	$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
 
 install:
-	chown root nast nast.8
-	cp -fR nast @bindir@
-	cp -fR nast.8 @mandir@/man8/
+	mkdir -p $(DESTDIR)@bindir@
+	mkdir -p $(DESTDIR)@mandir@/man8/
+	cp -fR nast $(DESTDIR)@bindir@
+	cp -fR nast.8 $(DESTDIR)@mandir@/man8/
 	@echo
 	@echo "Run with nast (-h for help), enjoy!"
 	@echo "Use -G flag to run in ncurses interface"
Index: configure
===================================================================
--- configure.orig
+++ configure
@@ -2337,8 +2337,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 #
 
 filechk="yes"
-echo "$as_me:$LINENO: checking for /usr/lib/libnet.a" >&5
-echo $ECHO_N "checking for /usr/lib/libnet.a... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking for $libdir/libnet.so" >&5
+echo $ECHO_N "checking for $libdir/libnet.so... $ECHO_C" >&6
 if test "${ac_cv_file__usr_lib_libnet_a+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
@@ -2346,7 +2346,7 @@ else
   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    { (exit 1); exit 1; }; }
-if test -r "/usr/lib/libnet.a"; then
+if test -r "$libdir/libnet.so"; then
   ac_cv_file__usr_lib_libnet_a=yes
 else
   ac_cv_file__usr_lib_libnet_a=no
@@ -2488,8 +2488,8 @@ fi
 #
 
 filechk="yes"
-echo "$as_me:$LINENO: checking for /usr/lib/libpcap.a" >&5
-echo $ECHO_N "checking for /usr/lib/libpcap.a... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking for $libdir/libpcap.so" >&5
+echo $ECHO_N "checking for $libdir/libpcap.so... $ECHO_C" >&6
 if test "${ac_cv_file__usr_lib_libpcap_a+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
@@ -2497,7 +2497,7 @@ else
   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    { (exit 1); exit 1; }; }
-if test -r "/usr/lib/libpcap.a"; then
+if test -r "$libdir/libpcap.so"; then
   ac_cv_file__usr_lib_libpcap_a=yes
 else
   ac_cv_file__usr_lib_libpcap_a=no
@@ -2638,8 +2638,8 @@ fi
 #
 
 filechk="yes"
-echo "$as_me:$LINENO: checking for /usr/lib/libncurses.a" >&5
-echo $ECHO_N "checking for /usr/lib/libncurses.a... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking for $libdir/libncurses.so" >&5
+echo $ECHO_N "checking for $libdir/libncurses.so... $ECHO_C" >&6
 if test "${ac_cv_file__usr_lib_libncurses_a+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
@@ -2647,7 +2647,7 @@ else
   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    { (exit 1); exit 1; }; }
-if test -r "/usr/lib/libncurses.a"; then
+if test -r "$libdir/libncurses.so"; then
   ac_cv_file__usr_lib_libncurses_a=yes
 else
   ac_cv_file__usr_lib_libncurses_a=no
@@ -2798,8 +2798,8 @@ fi
 #
 
 filechk="yes"
-echo "$as_me:$LINENO: checking for /usr/lib/libmenu.a" >&5
-echo $ECHO_N "checking for /usr/lib/libmenu.a... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking for $libdir/libmenu.so" >&5
+echo $ECHO_N "checking for $libdir/libmenu.so... $ECHO_C" >&6
 if test "${ac_cv_file__usr_lib_libmenu_a+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
@@ -2807,7 +2807,7 @@ else
   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    { (exit 1); exit 1; }; }
-if test -r "/usr/lib/libmenu.a"; then
+if test -r "$libdir/libmenu.so"; then
   ac_cv_file__usr_lib_libmenu_a=yes
 else
   ac_cv_file__usr_lib_libmenu_a=no
@@ -3042,8 +3042,6 @@ echo "$as_me: error:
    { (exit 1); exit 1; }; }
 fi
 
-
-	CFLAGS="-Wall -O2"
 	;;
 *bsd*)
 	CFLAGS="-Wall -O2 -pthread"
openSUSE Build Service is sponsored by