diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/svnup/Makefile | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/net/svnup/Makefile b/net/svnup/Makefile index 9191d371f931..71785e420ee9 100644 --- a/net/svnup/Makefile +++ b/net/svnup/Makefile @@ -9,35 +9,29 @@ MASTER_SITES= http://jcm.dsl.visi.com/freebsd/svnup/ \ 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> |