From owner-svn-ports-head@FreeBSD.ORG Mon May 27 10:23:46 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3819C65E; Mon, 27 May 2013 10:23:46 +0000 (UTC) (envelope-from bsam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 1A277254; Mon, 27 May 2013 10:23:46 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4RANjXU042500; Mon, 27 May 2013 10:23:45 GMT (envelope-from bsam@svn.freebsd.org) Received: (from bsam@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4RANjck042492; Mon, 27 May 2013 10:23:45 GMT (envelope-from bsam@svn.freebsd.org) Message-Id: <201305271023.r4RANjck042492@svn.freebsd.org> From: Boris Samorodov Date: Mon, 27 May 2013 10:23:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r319204 - in head/sysutils/jailuser: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 May 2013 10:23:46 -0000 Author: bsam Date: Mon May 27 10:23:45 2013 New Revision: 319204 URL: http://svnweb.freebsd.org/changeset/ports/319204 Log: . add LICENSE=GPLv2; . bump PORTREVISION; . trim Makefile headers; . use one command REINPLACE_CMD instead of two commands SED and MV; . do not hard code gcc at the source Makefile, build with the default compiler and allow a compiler to be redefined; . NOPORTDOCS -> PORT_OPTIONS:MDOCS; . use ${PORTDOCS:S,^,${WRKDOC}/,} trick to install PORTDOCS; . convert pkg-message to use SUB_FILES; . fix the directory of additional documentation at pkg-message. Added: head/sysutils/jailuser/files/pkg-message.in - copied, changed from r319031, head/sysutils/jailuser/pkg-message Deleted: head/sysutils/jailuser/pkg-message Modified: head/sysutils/jailuser/Makefile head/sysutils/jailuser/pkg-plist Modified: head/sysutils/jailuser/Makefile ============================================================================== --- head/sysutils/jailuser/Makefile Mon May 27 10:23:39 2013 (r319203) +++ head/sysutils/jailuser/Makefile Mon May 27 10:23:45 2013 (r319204) @@ -1,13 +1,9 @@ -# New ports collection makefile for: jailuser -# Date created: 10 Jun 2004 -# Whom: Vaida Bogdan -# +# Created by: Vaida Bogdan # $FreeBSD$ -# PORTNAME= jailuser PORTVERSION= 1.9 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= SF/jail/jail/version%20${PORTVERSION} DISTNAME= jail_${PORTVERSION} @@ -15,26 +11,29 @@ DISTNAME= jail_${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Builds a chrooted environment +LICENSE= GPLv2 + WRKSRC= ${WRKDIR}/jail_1-9_stable/src +WRKDOC= ${WRKDIR}/jail_1-9_stable/doc USE_PERL5= yes +OPTIONS_DEFINE= DOCS +PORTDOCS= CHANGELOG INSTALL README SECURITY VERSION \ + download features intro + +SUB_FILES= pkg-message + post-patch: - @${SED} -e 's!/usr/bin/perl!${PERL}!g' ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.tmp - @${MV} ${WRKSRC}/Makefile.tmp ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's!/usr/bin/perl!${PERL}!' \ + -e 's!gcc!$(CC)!' ${WRKSRC}/Makefile + +.include post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/../doc/CHANGELOG ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/../doc/INSTALL ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/../doc/README ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/../doc/SECURITY ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/../doc/VERSION ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/../doc/download ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/../doc/features ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/../doc/intro ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKDOC}/,} ${DOCSDIR} .endif - - @${SED} -e 's!PREFIX!${PREFIX}!g' ${.CURDIR}/pkg-message + @${ECHO_MSG} ; ${CAT} ${PKGMESSAGE} ; ${ECHO_MSG} .include Copied and modified: head/sysutils/jailuser/files/pkg-message.in (from r319031, head/sysutils/jailuser/pkg-message) ============================================================================== --- head/sysutils/jailuser/pkg-message Sat May 25 07:46:10 2013 (r319031, copy source) +++ head/sysutils/jailuser/files/pkg-message.in Mon May 27 10:23:45 2013 (r319204) @@ -1,5 +1,5 @@ ############################################################################# - Installed additional documentation in: PREFIX/share/doc/jail - Copy PREFIX/etc/jail.conf.sample to PREFIX/etc/jail.conf + Installed additional documentation in: %%PREFIX%%/share/doc/jailuser + Copy %%PREFIX%%/etc/jail.conf.sample to %%PREFIX%%/etc/jail.conf ############################################################################# Modified: head/sysutils/jailuser/pkg-plist ============================================================================== --- head/sysutils/jailuser/pkg-plist Mon May 27 10:23:39 2013 (r319203) +++ head/sysutils/jailuser/pkg-plist Mon May 27 10:23:45 2013 (r319204) @@ -20,12 +20,3 @@ lib/arch/solaris/functions @dirrm lib/arch/irix @dirrm lib/arch/solaris @dirrm lib/arch -%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG -%%PORTDOCS%%%%DOCSDIR%%/INSTALL -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/SECURITY -%%PORTDOCS%%%%DOCSDIR%%/VERSION -%%PORTDOCS%%%%DOCSDIR%%/download -%%PORTDOCS%%%%DOCSDIR%%/features -%%PORTDOCS%%%%DOCSDIR%%/intro -%%PORTDOCS%%@dirrm %%DOCSDIR%%