This makes security/arirang use the default ruby version instead of ruby
1.8.
Briefly tested on amd64.
OKs?
Thanks,
Jeremy
Index: Makefile
===================================================================
RCS file: /cvs/ports/security/arirang/Makefile,v
retrieving revision 1.31
diff -u -p -r1.31 Makefile
--- Makefile 25 Aug 2015 00:50:39 -0000 1.31
+++ Makefile 28 Aug 2017 00:21:37 -0000
@@ -5,7 +5,7 @@ COMMENT = powerful webserver security sc
DISTNAME = arirang-2.03
PKGNAME = ruby-${DISTNAME}
CATEGORIES = security
-REVISION = 0
+REVISION = 1
MASTER_SITES = http://monkey.org/~pilot/arirang/ \
${MASTER_SITE_PACKETSTORM:=UNIX/cgi-scanners/}
@@ -18,7 +18,6 @@ MAINTAINER = Jung Lee <[email protected]
PERMIT_PACKAGE_CDROM= Yes
MODRUBY_HANDLE_FLAVORS = No
-MODRUBY_REV = 1.8
CONFIGURE_STYLE = ruby extconf
MODULES = lang/ruby
Index: patches/patch-extconf_rb
===================================================================
RCS file: patches/patch-extconf_rb
diff -N patches/patch-extconf_rb
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-extconf_rb 28 Aug 2017 00:16:10 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Support ruby 2.0+.
+
+Index: extconf.rb
+--- extconf.rb.orig
++++ extconf.rb
+@@ -23,7 +23,7 @@ makefile += "OBJS= $(SRCS:.c=.o)\n\n"
+
+ makefile += ".c.o:\n"
+
+-if RUBY_VERSION =~ /1.9/ then
++if RUBY_VERSION !~ /1.8/ then
+ makefile += " $(CC) $(CFLAGS) -c $< -I #{$topdir} -I
#{$topdir}/#{RUBY_PLATFORM} -DRUBY_19\n\n"
+ else
+ makefile += " $(CC) $(CFLAGS) -c $< -I #{$topdir} \n\n"