summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/iplist/files/iplist-0.28-Makefile.diff')
-rw-r--r--net-misc/iplist/files/iplist-0.28-Makefile.diff35
1 files changed, 35 insertions, 0 deletions
diff --git a/net-misc/iplist/files/iplist-0.28-Makefile.diff b/net-misc/iplist/files/iplist-0.28-Makefile.diff
new file mode 100644
index 0000000..9b9af4a
--- /dev/null
+++ b/net-misc/iplist/files/iplist-0.28-Makefile.diff
@@ -0,0 +1,35 @@
+--- Makefile 2010-03-03 13:41:28.000000000 -0500
++++ /root/Makefile 2010-07-02 14:06:02.000000000 -0400
+@@ -18,11 +18,11 @@
+ # 02110-1301, USA
+ #
+
+-CPP = g++
+-FLAGS= -Wall -Wextra -std=c++98 -D_REENTRANT
++CPP = ${CXX}
++#FLAGS= -Wall -Wextra -std=c++98 -D_REENTRANT
+ #CPPFLAGS = ${FLAGS} -g -DDEBUG
+ #CPPFLAGS = ${FLAGS} -g -pg -DDEBUG
+-CPPFLAGS = -O2 ${FLAGS} -DNDEBUG
++CPPFLAGS = ${CXXFLAGS}
+
+ HEADERDIR = include
+ SRCDIR = src
+@@ -39,8 +39,7 @@
+ all: $(FILENAME)
+
+ $(FILENAME): $(OBJECTS)
+- $(CPP) $(CPPFLAGS) $(INCLUDE) $(LIBS) ${OBJECTS} -o $(FILENAME)
+- strip $@
++ $(CPP) $(LDFLAGS) $(INCLUDE) $(LIBS) ${OBJECTS} -o $(FILENAME)
+
+ %.o: %.cc
+ $(CPP) $(CPPFLAGS) $(INCLUDE) -c $<
+@@ -55,7 +54,6 @@
+ install:
+ install -D -p -m 755 $(FILENAME) $(DESTDIR)/usr/sbin/${FILENAME}
+ install -D -p -m 755 ipblock $(DESTDIR)/usr/sbin/ipblock
+- install -D -p -m 644 ipblockUI.jar $(DESTDIR)/usr/share/java/ipblockUI.jar
+
+ deb:
+ dpkg-buildpackage -rfakeroot -tc -D -us -uc