File:  [cvs.NetBSD.org] / pkgsrc / net / cntlm / Makefile
Revision 1.3: download - view: text, annotated - select for diffs
Tue Oct 23 17:18:14 2012 UTC (12 years, 1 month ago) by asau
Branches: MAIN
CVS tags: pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, HEAD
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.3 2012/10/23 17:18:14 asau Exp $
#

DISTNAME=	cntlm-0.35.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"

CVSweb <webmaster@jp.NetBSD.org>