Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Apr 2014 15:40:31 +0000 (UTC)
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r352434 - in head/www: mod_asn mod_clamav
Message-ID:  <201404271540.s3RFeVMv008123@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ohauer
Date: Sun Apr 27 15:40:31 2014
New Revision: 352434
URL: http://svnweb.freebsd.org/changeset/ports/352434
QAT: https://qat.redports.org/buildarchive/r352434/

Log:
  - add stage support
  - add LICENSE
  - use new LIB_DEPENDS notation

Modified:
  head/www/mod_asn/Makefile
  head/www/mod_clamav/Makefile

Modified: head/www/mod_asn/Makefile
==============================================================================
--- head/www/mod_asn/Makefile	Sun Apr 27 15:32:07 2014	(r352433)
+++ head/www/mod_asn/Makefile	Sun Apr 27 15:40:31 2014	(r352434)
@@ -11,23 +11,24 @@ MASTER_SITE_SUBDIR=	kuriyama
 MAINTAINER=	kuriyama@FreeBSD.org
 COMMENT=	Look up the AS and network prefix of IP address
 
-LIB_DEPENDS=	apr-1:${PORTSDIR}/devel/apr1
+LICENSE=	APACHE20
+
+LIB_DEPENDS=	libapr-1.so:${PORTSDIR}/devel/apr1
 
 USE_APACHE=	22
 AP_FAST_BUILD=	yes
 MANUAL_PACKAGE_BUILD=	devel/apr1 with pgsql option required
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
 pre-build:
 	@[ -r ${PREFIX}/lib/apr-util-1/apr_dbd_pgsql.so ] || (${ECHO_MSG} "APR util with PostgreSQL required."; ${FALSE})
 
 post-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/asn_import.py ${PREFIX}/bin/asn_import
-	${INSTALL_SCRIPT} ${WRKSRC}/asn_get_routeviews.py ${PREFIX}/bin/asn_get_routeviews
-	${MKDIR} ${DATADIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/asn.sql ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/mod_asn.conf ${EXAMPLESDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/asn_import.py ${STAGEDIR}${PREFIX}/bin/asn_import
+	${INSTALL_SCRIPT} ${WRKSRC}/asn_get_routeviews.py ${STAGEDIR}${PREFIX}/bin/asn_get_routeviews
+	${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/asn.sql ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/mod_asn.conf ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.post.mk>

Modified: head/www/mod_clamav/Makefile
==============================================================================
--- head/www/mod_clamav/Makefile	Sun Apr 27 15:32:07 2014	(r352433)
+++ head/www/mod_clamav/Makefile	Sun Apr 27 15:40:31 2014	(r352434)
@@ -12,6 +12,7 @@ PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}
 MAINTAINER=	tmueko@kommunity.net
 COMMENT=	Scans content delivered by the Apache20 proxy module for viruses
 
+LICENSE=	GPLv2
 
 USE_AUTOTOOLS=	libtool
 USE_APACHE=	22
@@ -20,14 +21,13 @@ GNU_CONFIGURE=	yes
 OPTIONS_DEFINE=		CLAMAVDEVEL
 CLAMAVDEVEL_DESC=	development version of CLAMAV
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MCLAMAVDEVEL}
-LIB_DEPENDS+=	clamav.7:${PORTSDIR}/security/clamav-devel
+LIB_DEPENDS+=	libclamav.so:${PORTSDIR}/security/clamav-devel
 .else
 CLAMAV_PORT=	security/clamav
-LIB_DEPENDS+=	clamav.7:${PORTSDIR}/security/clamav
+LIB_DEPENDS+=	libclamav.so:${PORTSDIR}/security/clamav
 .endif
 
 CONFIGURE_ARGS=	--with-apxs=${APXS} \
@@ -43,7 +43,10 @@ post-patch:
 	@${REINPLACE_CMD} -e '/^AC_CHECK_HEADERS/ s,regex.h ,,g' \
 		${WRKSRC}/configure.in
 
-post-install:
-	@${CAT} ${PKGMESSAGE}
+do-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
+	$(APXS) -S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR} \
+		-i -n 'clamav' ${WRKSRC}/.libs/mod_clamav.so
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404271540.s3RFeVMv008123>