File:  [cvs.NetBSD.org] / pkgsrc / net / userppp / Makefile
Revision 1.25: download - view: text, annotated - select for diffs
Tue Oct 23 17:19:16 2012 UTC (12 years, 1 month ago) by asau
Branches: MAIN
CVS tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, 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.25 2012/10/23 17:19:16 asau Exp $

DISTNAME=		ppp-001107.src
PKGNAME=		userppp-001107
PKGREVISION=		2
CATEGORIES=		net
MASTER_SITES=		http://www.NetBSD.org/~ad/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.awfulhak.org/~brian/
COMMENT=		User-PPP package as found in FreeBSD and OpenBSD

ONLY_FOR_PLATFORM=	NetBSD-*-*

WRKSRC=			${WRKDIR}/${DISTNAME:S/.src//}
MANCOMPRESSED_IF_MANZ=	YES

PKG_SYSCONFSUBDIR=	ppp

CFLAGS+=	-fno-strict-aliasing
# fix build on -current for wrong is* arguments (char instead of unsigned char)
BUILDLINK_TRANSFORM+=	rm:-Werror

SUBST_CLASSES+=		cfgdir
SUBST_STAGE.cfgdir=	do-configure
SUBST_FILES.cfgdir=	ppp/ppp.8 pppctl/pppctl.8
SUBST_SED.cfgdir= 	-e "s,/etc/ppp,${PKG_SYSCONFDIR},"
SUBST_SED.cfgdir+=	-e "s,/usr/share,${PREFIX}/share,"

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

SPECIAL_PERMS+=	sbin/ppp ${REAL_ROOT_USER} ${USERPPP_GROUP} 04554

USERPPP_GROUP?=	network
MAKE_ENV+=	USERPPP_GROUP=${USERPPP_GROUP:Q} BINOWN=${ROOT_USER}

PKG_GROUPS=	${USERPPP_GROUP}

PKG_GROUPS_VARS+=	USERPPP_GROUP
BUILD_DEFS+=		USERPPP_GROUP

USE_BSD_MAKEFILE=	yes

INSTALLATION_DIRS=	${PKGMANDIR}/cat8 ${PKGMANDIR}/man8 sbin
INSTALLATION_DIRS+=	share/examples/ppp

.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>