2004-01-15 20:58:07 +01:00
|
|
|
# $NetBSD: Makefile,v 1.2 2004/01/15 19:58:07 tron Exp $
|
2004-01-15 20:11:17 +01:00
|
|
|
|
|
|
|
DISTNAME= connect
|
|
|
|
PKGNAME= ${DISTNAME}-1.69
|
|
|
|
CATEGORIES= net security
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
EXTRACT_SUFX= .c
|
|
|
|
|
|
|
|
MAINTAINER= tron@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.imasy.or.jp/~gotoh/ssh/
|
|
|
|
COMMENT= Open a TCP connection using a SOCKS4/5 or HTTP proxy server
|
|
|
|
|
|
|
|
EXTRACT_ONLY= # empty
|
|
|
|
|
2004-01-15 20:58:07 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == Darwin
|
|
|
|
LIBS= -lresolv
|
|
|
|
.elif ${OPSYS} == SunOS
|
|
|
|
LIBS= -lsocket -lnsl
|
|
|
|
.else
|
|
|
|
LIBS=
|
|
|
|
.endif
|
|
|
|
|
2004-01-15 20:11:17 +01:00
|
|
|
do-build:
|
|
|
|
${MKDIR} ${WRKSRC}
|
2004-01-15 20:58:07 +01:00
|
|
|
${CC} ${DISTDIR}/${DISTFILES} ${CFLAGS} -o ${WRKSRC}/connect ${LIBS}
|
2004-01-15 20:11:17 +01:00
|
|
|
${EGREP} '^ \*(| .*)$$' ${DISTDIR}/${DISTFILES} | \
|
|
|
|
${CUT} -c 4- >${WRKSRC}/README
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/connect ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/connect
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/connect
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|