Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2014 09:57:03 +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: r352478 - head/www/mod_encoding
Message-ID:  <201404280957.s3S9v3Xn060998@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ohauer
Date: Mon Apr 28 09:57:02 2014
New Revision: 352478
URL: http://svnweb.freebsd.org/changeset/ports/352478
QAT: https://qat.redports.org/buildarchive/r352478/

Log:
  - add stage support
  - use pkg-plist

Added:
  head/www/mod_encoding/pkg-plist   (contents, props changed)
Modified:
  head/www/mod_encoding/Makefile

Modified: head/www/mod_encoding/Makefile
==============================================================================
--- head/www/mod_encoding/Makefile	Mon Apr 28 09:34:39 2014	(r352477)
+++ head/www/mod_encoding/Makefile	Mon Apr 28 09:57:02 2014	(r352478)
@@ -3,7 +3,7 @@
 
 PORTNAME=	mod_encoding
 PORTVERSION=	20021209
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	www
 MASTER_SITES=	http://webdav.todo.gr.jp/download/
 PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}
@@ -11,10 +11,7 @@ PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}
 MAINTAINER=	apache@FreeBSD.org
 COMMENT=	Apache module for non-ASCII filename interoperability
 
-
-# This port will work with the following version of Apache and anything newer.
-# Mostly because of the dependency of mod_dav.
-#APACHE_VERSION=	1.3.6
+LICENSE=	APACHE11
 
 USE_APACHE=	22+
 USES=		iconv gmake
@@ -32,8 +29,6 @@ CONFIGURE_ENV=	LIBS='-L${LOCALBASE}/lib'
 		PATH="${PREFIX}/bin:${PREFIX}/sbin:${PATH}"
 CPPFLAGS+=	-I${APACHEINCLUDEDIR} -I${LOCALBASE}/include
 
-PLIST_FILES=	${APACHEMODDIR}/mod_encoding.so
-
 EXTRA_PATCHES=	${PATCHDIR}/apache22_patch
 
 .if !defined(WITHOUT_ICONV_FIX)
@@ -44,5 +39,10 @@ EXTRA_PATCHES+=	${PATCHDIR}/iconv_hook-2
 EXTRA_PATCHES+=	${PATCHDIR}/queryfix-patch22
 .endif
 
-NO_STAGE=	yes
+do-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
+	$(APXS) -S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR} \
+		-i -n ${MODULENAME} ${WRKSRC}/${MODULENAME}.la
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so
+
 .include <bsd.port.mk>

Added: head/www/mod_encoding/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/mod_encoding/pkg-plist	Mon Apr 28 09:57:02 2014	(r352478)
@@ -0,0 +1,4 @@
+@unexec /usr/bin/sed -i '' -E '/LoadModule[[:blank:]]+%%AP_NAME%%_module/d' %D/%%APACHEETCDIR%%/httpd.conf
+%%APACHEMODDIR%%/%%AP_MODULE%%
+@exec %D/sbin/apxs -e %%AP_MOD_EN%% -n %%AP_NAME%% %D/%F
+@unexec echo "Don't forget to remove all mod_encoding-related directives in your httpd.conf"



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