aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2003-05-12 22:10:25 +0000
committerEric Anholt <anholt@FreeBSD.org>2003-05-12 22:10:25 +0000
commit3ba2ca235a21c3642346efd1c4dd66fecb643e32 (patch)
treeb53ab7b06188bb097a4d742680210ec80804b12d
parent90e35326c6f95decfd15dc9bbdd484b3834d8901 (diff)
downloadports-3ba2ca235a21c3642346efd1c4dd66fecb643e32.tar.gz
ports-3ba2ca235a21c3642346efd1c4dd66fecb643e32.zip
Fix with newer gcc by converting #if #endif around license statement to /* */
Also fix linking so that CFLAGS get respected.
Notes
Notes: svn path=/head/; revision=80858
-rw-r--r--security/gag/files/patch-Makefile11
-rw-r--r--security/gag/files/patch-gag.c22
2 files changed, 32 insertions, 1 deletions
diff --git a/security/gag/files/patch-Makefile b/security/gag/files/patch-Makefile
index fae7cfcbeb9d..e4bf647e6c48 100644
--- a/security/gag/files/patch-Makefile
+++ b/security/gag/files/patch-Makefile
@@ -1,5 +1,5 @@
--- Makefile.orig Mon Jan 10 13:13:12 2000
-+++ Makefile Sun Feb 13 17:41:35 2000
++++ Makefile Mon May 12 15:15:36 2003
@@ -1,7 +1,7 @@
-CFLAGS=
+#CFLAGS=
@@ -10,3 +10,12 @@
default:
@clear
+@@ -11,7 +11,7 @@
+ @echo "to suit your operating system, then use 'make gag'"
+
+ gag: gag.o
+- $(CC) -o gag gag.c $(LIBS)
++ $(CC) -o gag gag.o $(LIBS)
+
+ # This assumes the source is in a directory named "sickenscan".
+ tar: sickenscan.tar
diff --git a/security/gag/files/patch-gag.c b/security/gag/files/patch-gag.c
new file mode 100644
index 000000000000..ae425a84ee05
--- /dev/null
+++ b/security/gag/files/patch-gag.c
@@ -0,0 +1,22 @@
+--- gag.c.orig Mon May 12 15:15:07 2003
++++ gag.c Mon May 12 15:15:09 2003
+@@ -16,8 +16,7 @@
+ *
+ */
+
+-#if YOU_HAVE_NOT_READ_THIS_YET
+-
++/*
+ This software should only be used in compliance with all applicable laws and
+ the policies and preferences of the owners of any networks, systems, or hosts
+ scanned with the software
+@@ -34,8 +33,7 @@
+ DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, TORT (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING
+ OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+-
+-#endif
++*/
+
+ #define GAG "gesundheit!"
+ #define VERSION "$Revision: 2.9 $"