35a29a40e6
-- autossh is a program to start a copy of SSH and monitor it, restarting it as necessary should it die or stop passing traffic. The idea and the mechanism are from rstunnel (Reliable SSH Tunnel), but implemented in C. ok and review from brad@
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2002/11/21 00:17:58 margarida Exp $
|
|
|
|
COMMENT= "SSH monitoring"
|
|
|
|
VERSION= 1.2a
|
|
DISTNAME= autossh-${VERSION}
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
HOMEPAGE= http://www.harding.motd.ca/autossh/
|
|
|
|
MAINTAINER= Margarida Sequeira <margarida@openbsd.org>
|
|
|
|
# BSD license
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
DEFS= -D"SSH_PATH=\"/usr/bin/ssh\"" -D"VER=\"${VERSION}\""
|
|
|
|
DOCS= README
|
|
EXAMPLES= autossh.host rscreen
|
|
|
|
do-build:
|
|
cd ${WRKBUILD}; \
|
|
${CC} ${CFLAGS} ${DEFS} -c ${WRKSRC}/autossh.c -o autossh.o; \
|
|
${CC} -o autossh autossh.o
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/autossh
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/autossh
|
|
cd ${WRKBUILD} && ${INSTALL_PROGRAM} autossh ${PREFIX}/bin
|
|
cd ${WRKSRC} && ${INSTALL_MAN} autossh.1 ${PREFIX}/man/man1
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/autossh
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} \
|
|
${PREFIX}/share/examples/autossh
|
|
|
|
.include <bsd.port.mk>
|