summaryrefslogtreecommitdiff
path: root/net/proxytunnel/Makefile
blob: 35ff11ff41c086830557f5f879eee7eda59f65ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $NetBSD: Makefile,v 1.6 2014/02/12 23:18:25 tron Exp $
#

DISTNAME=	proxytunnel-1.9.0
PKGREVISION=	3
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=proxytunnel/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://proxytunnel.sourceforge.net/
COMMENT=	Connect stdin/stdout to a remote host through a standard HTTPS proxy

.include "../../mk/bsd.prefs.mk"

USE_TOOLS+=	gmake
BUILD_TARGET=	proxytunnel
INSTALLATION_DIRS+=	${PKGMANDIR}/man1 bin

SUBST_CLASSES+=			fix-paths
SUBST_STAGE.fix-paths=		post-patch
SUBST_MESSAGE.fix-paths=	Fixing absolute paths.
SUBST_FILES.fix-paths=		proxytunnel.1
SUBST_SED.fix-paths=		-e 's,/usr,${PREFIX},g'

LDFLAGS.SunOS+=	-lsocket -lnsl

do-install:
	${INSTALL} ${WRKSRC}/proxytunnel ${DESTDIR}${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/proxytunnel.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/

.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"