diff options
-rw-r--r-- | www/unit-perl/Makefile | 12 | ||||
-rw-r--r-- | www/unit-php/Makefile | 10 | ||||
-rw-r--r-- | www/unit-python/Makefile | 12 | ||||
-rw-r--r-- | www/unit-ruby/Makefile | 12 |
4 files changed, 27 insertions, 19 deletions
diff --git a/www/unit-perl/Makefile b/www/unit-perl/Makefile index 0e12b01abd91..3b3e08f9b473 100644 --- a/www/unit-perl/Makefile +++ b/www/unit-perl/Makefile @@ -2,11 +2,13 @@ # $FreeBSD$ PORTREVISION= 2 -PKGNAMESUFFIX= -perl${PERL_VER} +PKGNAMESUFFIX= -${UNIT_MODNAME} + +UNIT_MODNAME= perl${PERL_VER} COMMENT= Perl module for NGINX Unit -PLIST_FILES= libexec/unit/modules/perl${PERL_VER}.unit.so +PLIST_FILES= libexec/unit/modules/${UNIT_MODNAME}.unit.so RUN_DEPENDS= unitd:www/unit @@ -18,14 +20,14 @@ MASTERDIR= ${.CURDIR}/../unit post-configure: cd ${CONFIGURE_WRKSRC} && \ - ./configure perl --module=perl${PERL_VER} + ./configure perl --module=${UNIT_MODNAME} do-build: - cd ${CONFIGURE_WRKSRC} && ${MAKE} perl${PERL_VER} + cd ${CONFIGURE_WRKSRC} && ${MAKE} ${UNIT_MODNAME} do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules/ - ${INSTALL_LIB} ${WRKSRC}/build/perl${PERL_VER}.unit.so \ + ${INSTALL_LIB} ${WRKSRC}/build/${UNIT_MODNAME}.unit.so \ ${STAGEDIR}${PREFIX}/libexec/unit/modules/ .include "${MASTERDIR}/Makefile" diff --git a/www/unit-php/Makefile b/www/unit-php/Makefile index 626fbf41b63f..c96672e3d340 100644 --- a/www/unit-php/Makefile +++ b/www/unit-php/Makefile @@ -4,9 +4,11 @@ PORTREVISION= 2 PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} +UNIT_MODNAME= php${PHP_VER} + COMMENT= PHP module for NGINX Unit -PLIST_FILES= libexec/unit/modules/php${PHP_VER}.unit.so +PLIST_FILES= libexec/unit/modules/${UNIT_MODNAME}.unit.so RUN_DEPENDS= unitd:www/unit @@ -19,14 +21,14 @@ MASTERDIR= ${.CURDIR}/../unit post-configure: cd ${CONFIGURE_WRKSRC} && \ ./configure php --lib-path=${LOCALBASE}/lib \ - --module=php${PHP_VER} + --module=${UNIT_MODNAME} do-build: - cd ${CONFIGURE_WRKSRC} && ${MAKE} php${PHP_VER} + cd ${CONFIGURE_WRKSRC} && ${MAKE} ${UNIT_MODNAME} do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules/ - ${INSTALL_LIB} ${WRKSRC}/build/php${PHP_VER}.unit.so \ + ${INSTALL_LIB} ${WRKSRC}/build/${UNIT_MODNAME}.unit.so \ ${STAGEDIR}${PREFIX}/libexec/unit/modules/ .include "${MASTERDIR}/Makefile" diff --git a/www/unit-python/Makefile b/www/unit-python/Makefile index ece5b92ebe9c..d72215b981e7 100644 --- a/www/unit-python/Makefile +++ b/www/unit-python/Makefile @@ -2,14 +2,16 @@ # $FreeBSD$ PORTREVISION= 2 -PKGNAMESUFFIX= -python${PYTHON_SUFFIX} +PKGNAMESUFFIX= -${UNIT_MODNAME} + +UNIT_MODNAME= python${PYTHON_SUFFIX} COMMENT= Python module for NGINX Unit USES= python gettext-runtime USE_PYTHON= flavors -PLIST_FILES= libexec/unit/modules/python${PYTHON_SUFFIX}.unit.so +PLIST_FILES= libexec/unit/modules/${UNIT_MODNAME}.unit.so RUN_DEPENDS= unitd:www/unit @@ -19,15 +21,15 @@ MASTERDIR= ${.CURDIR}/../unit post-configure: cd ${CONFIGURE_WRKSRC} && \ - ./configure python --module=python${PYTHON_SUFFIX} \ + ./configure python --module=${UNIT_MODNAME} \ --config=${PYTHON_CMD}-config do-build: - cd ${CONFIGURE_WRKSRC} && ${MAKE} python${PYTHON_SUFFIX} + cd ${CONFIGURE_WRKSRC} && ${MAKE} ${UNIT_MODNAME} do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules/ - ${INSTALL_LIB} ${WRKSRC}/build/python${PYTHON_SUFFIX}.unit.so \ + ${INSTALL_LIB} ${WRKSRC}/build/${UNIT_MODNAME}.unit.so \ ${STAGEDIR}${PREFIX}/libexec/unit/modules/ .include "${MASTERDIR}/Makefile" diff --git a/www/unit-ruby/Makefile b/www/unit-ruby/Makefile index fcea0dd05a07..23228d2bfcf4 100644 --- a/www/unit-ruby/Makefile +++ b/www/unit-ruby/Makefile @@ -2,14 +2,16 @@ # $FreeBSD$ PORTREVISION= 3 -PKGNAMESUFFIX= -ruby${RUBY_VER} +PKGNAMESUFFIX= -${UNIT_MODNAME} + +UNIT_MODNAME= ruby${RUBY_VER} COMMENT= Ruby module for NGINX Unit RUN_DEPENDS= rackup:www/rubygem-rack \ unitd:www/unit -PLIST_FILES= libexec/unit/modules/ruby${RUBY_VER}.unit.so +PLIST_FILES= libexec/unit/modules/${UNIT_MODNAME}.unit.so USE_RUBY= yes @@ -19,14 +21,14 @@ MASTERDIR= ${.CURDIR}/../unit post-configure: cd ${CONFIGURE_WRKSRC} && \ - ./configure ruby --module=ruby${RUBY_VER} + ./configure ruby --module=${UNIT_MODNAME} do-build: - cd ${CONFIGURE_WRKSRC} && ${MAKE} ruby${RUBY_VER} + cd ${CONFIGURE_WRKSRC} && ${MAKE} ${UNIT_MODNAME} do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules/ - ${INSTALL_LIB} ${WRKSRC}/build/ruby${RUBY_VER}.unit.so \ + ${INSTALL_LIB} ${WRKSRC}/build/${UNIT_MODNAME}.unit.so \ ${STAGEDIR}${PREFIX}/libexec/unit/modules/ .include "${MASTERDIR}/Makefile" |