2022-03-07 21:36:41 +00:00

38 lines
896 B
Makefile

COMMENT= script to update an OpenBSD CVS repository via rsync
DISTNAME= reposync-20211211
HOMEPAGE= https://github.com/sthen/reposync
MASTER_SITES= https://spacehopper.org/mirrors/
CATEGORIES= sysutils devel
PKG_ARCH= *
# ISC
PERMIT_PACKAGE= Yes
MAINTAINER= Stuart Henderson <stu.ports@spacehopper.org>
NO_BUILD= Yes
RUN_DEPENDS= net/rsync
TEST_DEPENDS= devel/shellcheck \
shells/bash
do-configure:
sed -i s,rundir=/var/db/reposync,rundir=${LOCALSTATEDIR}/db/reposync, \
${WRKSRC}/reposync{,.1}
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/reposync/
${INSTALL_SCRIPT} ${WRKSRC}/reposync ${PREFIX}/bin/reposync
${INSTALL_MAN} ${WRKSRC}/reposync.1 ${PREFIX}/man/man1/reposync.1
${INSTALL_DATA} ${WRKSRC}/ssh_known_hosts ${PREFIX}/share/reposync/
do-test:
ksh -n ${WRKSRC}/reposync
bash -n ${WRKSRC}/reposync
shellcheck --color ${WRKSRC}/reposync
.include <bsd.port.mk>