From owner-svn-ports-all@FreeBSD.ORG Mon Apr 28 09:57:03 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C7F65479; Mon, 28 Apr 2014 09:57:03 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9BE4613C6; Mon, 28 Apr 2014 09:57:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3S9v3km061001; Mon, 28 Apr 2014 09:57:03 GMT (envelope-from ohauer@svn.freebsd.org) Received: (from ohauer@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3S9v3Xn060998; Mon, 28 Apr 2014 09:57:03 GMT (envelope-from ohauer@svn.freebsd.org) Message-Id: <201404280957.s3S9v3Xn060998@svn.freebsd.org> From: Olli Hauer Date: Mon, 28 Apr 2014 09:57:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r352478 - head/www/mod_encoding X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2014 09:57:03 -0000 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 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"