From owner-svn-ports-head@FreeBSD.ORG Sat May 10 23:00:25 2014 Return-Path: Delivered-To: svn-ports-head@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 33910CBB; Sat, 10 May 2014 23:00:25 +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 144D818B6; Sat, 10 May 2014 23:00:25 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4AN0Ok6092668; Sat, 10 May 2014 23:00:24 GMT (envelope-from rakuco@svn.freebsd.org) Received: (from rakuco@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4AN0OjO092666; Sat, 10 May 2014 23:00:24 GMT (envelope-from rakuco@svn.freebsd.org) Message-Id: <201405102300.s4AN0OjO092666@svn.freebsd.org> From: Raphael Kubo da Costa Date: Sat, 10 May 2014 23:00:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r353626 - head/security/yafic 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.18 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: Sat, 10 May 2014 23:00:25 -0000 Author: rakuco Date: Sat May 10 23:00:24 2014 New Revision: 353626 URL: http://svnweb.freebsd.org/changeset/ports/353626 QAT: https://qat.redports.org/buildarchive/r353626/ Log: Support staging. PR: ports/189616 Submitted by: Allan Saddi (maintainer) Modified: head/security/yafic/Makefile head/security/yafic/pkg-plist Modified: head/security/yafic/Makefile ============================================================================== --- head/security/yafic/Makefile Sat May 10 22:31:15 2014 (r353625) +++ head/security/yafic/Makefile Sat May 10 23:00:24 2014 (r353626) @@ -3,6 +3,7 @@ PORTNAME= yafic PORTVERSION= 1.2.2 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= SF @@ -10,7 +11,7 @@ MAINTAINER= allan@saddi.com COMMENT= Yet Another File Integrity Checker, similar to Tripwire GNU_CONFIGURE= yes -USE_GMAKE= yes +USES= gmake LDFLAGS+= -static .if defined(WITHOUT_OPENSSL) @@ -20,31 +21,27 @@ PLIST_SUB+= CRYPTO="@comment " PLIST_SUB+= CRYPTO="" .endif -MAN1= yafic.1 -.if !defined(WITHOUT_OPENSSL) -MAN1+= yafic-sign.1 -MLINKS= yafic-sign.1 yafic-check.1 -.endif -MAN5= yafic.conf.5 +PKGMESSAGE= ${WRKDIR}/pkg-message + +post-patch: + @${SED} -e "s;@@PREFIX@@;${PREFIX};g" \ + ${.CURDIR}/pkg-message > ${PKGMESSAGE} -NO_STAGE= yes do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/yafic ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/yafic ${STAGEDIR}${PREFIX}/bin .if !defined(WITHOUT_OPENSSL) - ${INSTALL_PROGRAM} ${WRKSRC}/yafic-sign ${PREFIX}/bin - ${LN} -f ${PREFIX}/bin/yafic-sign ${PREFIX}/bin/yafic-check + ${INSTALL_PROGRAM} ${WRKSRC}/yafic-sign ${STAGEDIR}${PREFIX}/bin + ${LN} -sf yafic-sign ${STAGEDIR}${PREFIX}/bin/yafic-check .endif - ${INSTALL_MAN} ${WRKSRC}/yafic.1 ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/yafic.1 ${STAGEDIR}${PREFIX}/man/man1 .if !defined(WITHOUT_OPENSSL) - ${INSTALL_MAN} ${WRKSRC}/yafic-sign.1 ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/yafic-sign.1 ${STAGEDIR}${PREFIX}/man/man1 + ${LN} -sf yafic-sign.1 ${STAGEDIR}${PREFIX}/man/man1/yafic-check.1 .endif - ${INSTALL_MAN} ${WRKSRC}/yafic.conf.5 ${PREFIX}/man/man5 + ${INSTALL_MAN} ${WRKSRC}/yafic.conf.5 ${STAGEDIR}${PREFIX}/man/man5 post-install: - @${MKDIR} ${PREFIX}/share/examples/yafic - @${CP} ${FILESDIR}/yafic.conf.sample ${EXAMPLESDIR} - @${ECHO} - @${SED} -e "s%@@PREFIX@@%${PREFIX}%g" ${PKGMESSAGE} - @${ECHO} + @${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/yafic + @${CP} ${FILESDIR}/yafic.conf.sample ${STAGEDIR}${EXAMPLESDIR} .include Modified: head/security/yafic/pkg-plist ============================================================================== --- head/security/yafic/pkg-plist Sat May 10 22:31:15 2014 (r353625) +++ head/security/yafic/pkg-plist Sat May 10 23:00:24 2014 (r353626) @@ -1,5 +1,9 @@ bin/yafic %%CRYPTO%%bin/yafic-sign %%CRYPTO%%bin/yafic-check +man/man1/yafic.1.gz +%%CRYPTO%%man/man1/yafic-check.1.gz +%%CRYPTO%%man/man1/yafic-sign.1.gz +man/man5/yafic.conf.5.gz %%EXAMPLESDIR%%/yafic.conf.sample @dirrm share/examples/yafic