2013-02-28 07:59:13 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= svnup
|
2014-02-25 03:40:47 +01:00
|
|
|
PORTVERSION= 1.03
|
2013-02-28 07:59:13 +01:00
|
|
|
CATEGORIES= net
|
2013-04-10 22:56:07 +02:00
|
|
|
MASTER_SITES= http://jcm.dsl.visi.com/freebsd/svnup/ \
|
2013-06-03 02:11:32 +02:00
|
|
|
LOCAL/jgh/net/${PORTNAME}/
|
2013-02-28 07:59:13 +01:00
|
|
|
|
|
|
|
MAINTAINER= jcm@visi.com
|
2013-06-03 02:11:32 +02:00
|
|
|
COMMENT= Lightweight program to pull source from an Apache Subversion server
|
2013-02-28 07:59:13 +01:00
|
|
|
|
2014-02-25 03:40:47 +01:00
|
|
|
LICENSE= BSD2CLAUSE
|
2013-02-28 07:59:13 +01:00
|
|
|
|
2013-04-17 00:00:28 +02:00
|
|
|
LDFLAGS+= -lmd -lssl
|
2013-02-28 07:59:13 +01:00
|
|
|
USE_XZ= yes
|
|
|
|
|
2013-04-17 00:00:28 +02:00
|
|
|
post-patch-script:
|
2013-12-22 07:02:39 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|\/stable\/8|\/stable\/${OSREL:R}|' ${WRKSRC}/svnup.conf
|
|
|
|
@${REINPLACE_CMD} -e 's|\/releng\/8.3|\/releng\/${OSREL}|' ${WRKSRC}/svnup.conf
|
2013-02-28 07:59:13 +01:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${CC} -o ${PORTNAME} ${CFLAGS} ${PORTNAME}.c ${LDFLAGS}
|
|
|
|
|
2013-04-17 00:00:28 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-02-28 07:59:13 +01:00
|
|
|
do-install:
|
2013-12-22 07:02:39 +01:00
|
|
|
${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
|
2013-04-17 00:00:28 +02:00
|
|
|
|
|
|
|
post-install:
|
2013-12-22 07:02:39 +01:00
|
|
|
@${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; \
|
2013-04-17 00:00:28 +02:00
|
|
|
else \
|
2013-12-22 07:02:39 +01:00
|
|
|
${ECHO_MSG} " Preserving local configuration file: ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf"; \
|
2013-04-17 00:00:28 +02:00
|
|
|
fi
|
2013-02-28 07:59:13 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|