svn commit: r552868 - in head/www: . unit-ruby

Sergey A. Osokin osa at FreeBSD.org
Wed Oct 21 15:43:45 UTC 2020


Author: osa
Date: Wed Oct 21 15:43:44 2020
New Revision: 552868
URL: https://svnweb.freebsd.org/changeset/ports/552868

Log:
  Add ruby module for NGINX Unit.

Added:
  head/www/unit-ruby/
  head/www/unit-ruby/Makefile   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Wed Oct 21 13:59:07 2020	(r552867)
+++ head/www/Makefile	Wed Oct 21 15:43:44 2020	(r552868)
@@ -2257,6 +2257,7 @@
     SUBDIR += unit
     SUBDIR += unit-perl
     SUBDIR += unit-php
+    SUBDIR += unit-ruby
     SUBDIR += uwebsockets
     SUBDIR += uwsgi
     SUBDIR += uwsgitop

Added: head/www/unit-ruby/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/unit-ruby/Makefile	Wed Oct 21 15:43:44 2020	(r552868)
@@ -0,0 +1,25 @@
+# Created by: Sergey Osokin <osa at FreeBSD.org>
+# $FreeBSD$
+
+PKGNAMESUFFIX=	-ruby${RUBY_VER}
+
+COMMENT=	Ruby module for NGINX Unit
+
+PLIST_FILES=	libexec/unit/modules/ruby${RUBY_VER}.unit.so
+
+USE_RUBY=	yes
+
+USE_RC_SUBR?=	# reset to empty
+
+MASTERDIR=	${.CURDIR}/../unit
+
+post-configure:
+	cd ${CONFIGURE_WRKSRC} && \
+	./configure ruby --module=ruby${RUBY_VER}
+
+do-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules/
+	${INSTALL_LIB} ${WRKSRC}/build/ruby${RUBY_VER}.unit.so \
+		${STAGEDIR}${PREFIX}/libexec/unit/modules/
+
+.include "${MASTERDIR}/Makefile"


More information about the svn-ports-all mailing list