From owner-svn-ports-head@FreeBSD.ORG Fri Apr 4 12:54:25 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F9E2E41; Fri, 4 Apr 2014 12:54: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 22BFFABC; Fri, 4 Apr 2014 12:54: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 s34CsPkl087394; Fri, 4 Apr 2014 12:54:25 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s34CsOan087393; Fri, 4 Apr 2014 12:54:24 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201404041254.s34CsOan087393@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 4 Apr 2014 12:54:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r350105 - head/net/svnup 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.17 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: Fri, 04 Apr 2014 12:54:25 -0000 Author: bapt Date: Fri Apr 4 12:54:24 2014 New Revision: 350105 URL: http://svnweb.freebsd.org/changeset/ports/350105 QAT: https://qat.redports.org/buildarchive/r350105/ Log: Simplify and modernize the port a bit Modified: head/net/svnup/Makefile Modified: head/net/svnup/Makefile ============================================================================== --- head/net/svnup/Makefile Fri Apr 4 12:50:10 2014 (r350104) +++ head/net/svnup/Makefile Fri Apr 4 12:54:24 2014 (r350105) @@ -9,35 +9,29 @@ MASTER_SITES= http://jcm.dsl.visi.com/fr MAINTAINER= jcm@visi.com COMMENT= Lightweight program to pull source from an Apache Subversion server +OPTIONS_DEFINE= docs + LICENSE= BSD2CLAUSE LDFLAGS+= -lmd -lssl -USE_XZ= yes +USES= tar:xz +PORTDOCS= ChangeLog -post-patch-script: - @${REINPLACE_CMD} -e 's|\/stable\/8|\/stable\/${OSREL:R}|' ${WRKSRC}/svnup.conf - @${REINPLACE_CMD} -e 's|\/releng\/8.3|\/releng\/${OSREL}|' ${WRKSRC}/svnup.conf +post-patch: + @${REINPLACE_CMD} -e 's|\/stable\/8|\/stable\/${OSREL:R}| ; \ + s|\/releng\/8.3|\/releng\/${OSREL}|' \ + ${WRKSRC}/svnup.conf do-build: cd ${WRKSRC} && \ ${CC} -o ${PORTNAME} ${CFLAGS} ${PORTNAME}.c ${LDFLAGS} -.include - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.conf.5 ${STAGEDIR}${MAN5PREFIX}/man/man5 - -post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample - @if [ ! -e "${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf" ]; then \ - ${ECHO_MSG} " Installing local configuration file: ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf"; \ - ${CP} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf; \ - else \ - ${ECHO_MSG} " Preserving local configuration file: ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf"; \ - fi + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample .include