pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

www/unit: make "pkglint -Wall" happy.



Module Name:	pkgsrc-wip
Committed By:	Sergey A. Osokin <osa%FreeBSD.org@localhost>
Pushed By:	osa
Date:		Wed Nov 18 09:30:09 2020 -0500
Changeset:	fba4a081a0b78bcf11593f674c36ed604f8e3e08

Modified Files:
	unit/ext.mk

Log Message:
www/unit: make "pkglint -Wall" happy.

Suggested by:	Roland Illig <roland.illig%gmx.de@localhost>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=fba4a081a0b78bcf11593f674c36ed604f8e3e08

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 unit/ext.mk | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diffs:
diff --git a/unit/ext.mk b/unit/ext.mk
index f138dff69f..94cdbab637 100644
--- a/unit/ext.mk
+++ b/unit/ext.mk
@@ -6,7 +6,10 @@
 # add dependencies, and add the appropriate --with-configure-arg, then include
 # bsd.pkg.mk.
 #
-# Original idea comes from lang/php/ext.mk.
+# used by www/unit-perl/Makefile
+# used by www/unit-php/Makefile
+# used by www/unit-python/Makefile
+# used by www/unit-ruby/Makefile
 
 .if !defined(UNITEXT_MK)
 UNITEXT_MK=	defined
@@ -16,6 +19,12 @@ UNITEXT_MK=	defined
 DISTINFO_FILE=	${.CURDIR}/../../www/unit/distinfo
 PATCHDIR=	${.CURDIR}/../../www/unit/patches
 
+.include "../../mk/bsd.prefs.mk"
+
+.if !defined(MODNAME)
+PKG_FAIL_REASON+=	"MODNAME should be defined"
+.endif
+
 PKGMODNAME?=	${MODNAME}.unit
 
 PLIST_SUBST+=	PKGMODNAME=${MODNAME}.unit


Home | Main Index | Thread Index | Old Index