Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 12:54:24 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350105 - head/net/svnup
Message-ID:  <201404041254.s34CsOan087393@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.options.mk>
-
 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 <bsd.port.mk>



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