summaryrefslogtreecommitdiff
path: root/net/cntlm/Makefile
blob: 836767838d683fab5d5059fe872609fdce053f5e (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
34
35
36
37
38
39
40
41
42
43
44
45
# $NetBSD: Makefile,v 1.4 2013/07/12 10:44:59 jperkin Exp $
#

DISTNAME=	cntlm-0.35.1
PKGREVISION=	1
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=cntlm/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://cntlm.sourceforge.net/
COMMENT=	NTLM/NTLMv2 authenticating HTTP proxy
LICENSE=	gnu-gpl-v2

HAS_CONFIGURE=	yes

CNTLM_USER?=	cntlm
CNTLM_GROUP?=	cntlm
CNTLM_CONFDIR=	${PKG_SYSCONFDIR}
PKG_USERS=	${CNTLM_USER}:${CNTLM_GROUP}
PKG_GROUPS=	${CNTLM_GROUP}

BUILD_MAKE_FLAGS+=	SYSCONFDIR=${CNTLM_CONFDIR:Q}
BUILD_TARGET=		cntlm

FILES_SUBST+=	CNTLM_USER=${CNTLM_USER:Q}
FILES_SUBST+=	PREFIX=${PREFIX:Q}
FILES_SUBST+=	PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}

EGDIR=		${PREFIX}/share/examples/${PKGBASE}
RCD_SCRIPTS+=	cntlm

CONF_FILES_PERMS+=	${EGDIR}/cntlm.conf ${PKG_SYSCONFDIR}/cntlm.conf \
				${CNTLM_USER} ${CNTLM_GROUP} 0600
INSTALLATION_DIRS+=	${EGDIR} ${PKGMANDIR}/man1 bin

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/cntlm \
				${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/doc/cntlm.1 \
				${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
	${INSTALL_DATA} ${WRKSRC}/doc/cntlm.conf \
				${DESTDIR}${EGDIR}/cntlm.conf

.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"