2008-12-18 14:55:24 +01:00
|
|
|
# $NetBSD: Makefile,v 1.24 2008/12/18 13:55:24 joerg Exp $
|
2000-11-07 18:26:58 +01:00
|
|
|
|
2000-11-08 17:04:54 +01:00
|
|
|
DISTNAME= ppp-001107.src
|
|
|
|
PKGNAME= userppp-001107
|
2007-08-25 11:00:45 +02:00
|
|
|
PKGREVISION= 2
|
2000-11-07 18:26:58 +01:00
|
|
|
CATEGORIES= net
|
2003-07-18 00:50:55 +02:00
|
|
|
MASTER_SITES= http://www.NetBSD.org/~ad/
|
2000-11-07 18:26:58 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2000-11-07 18:26:58 +01:00
|
|
|
HOMEPAGE= http://www.awfulhak.org/~brian/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= User-PPP package as found in FreeBSD and OpenBSD
|
2000-11-07 18:26:58 +01:00
|
|
|
|
2008-12-18 14:55:24 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2000-11-08 16:59:16 +01:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-*
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//}
|
2000-11-08 16:26:36 +01:00
|
|
|
MANCOMPRESSED_IF_MANZ= YES
|
2000-11-07 18:26:58 +01:00
|
|
|
|
2007-08-25 11:00:45 +02:00
|
|
|
PKG_SYSCONFSUBDIR= ppp
|
|
|
|
|
2003-06-08 12:36:17 +02:00
|
|
|
CFLAGS+= -fno-strict-aliasing
|
2004-12-04 13:01:39 +01:00
|
|
|
# fix build on -current for wrong is* arguments (char instead of unsigned char)
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-Werror
|
2003-06-08 12:36:17 +02:00
|
|
|
|
2007-08-25 11:00:45 +02:00
|
|
|
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,"
|
2000-11-07 19:11:46 +01:00
|
|
|
|
2002-08-12 14:14:40 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2000-11-07 18:26:58 +01:00
|
|
|
|
2008-12-18 14:55:24 +01:00
|
|
|
SPECIAL_PERMS+= sbin/ppp ${REAL_ROOT_USER} ${USERPPP_GROUP} 04554
|
|
|
|
|
2002-08-12 14:14:40 +02:00
|
|
|
USERPPP_GROUP?= network
|
2008-12-18 14:55:24 +01:00
|
|
|
MAKE_ENV+= USERPPP_GROUP=${USERPPP_GROUP:Q} BINOWN=${ROOT_USER}
|
2002-08-12 14:14:40 +02:00
|
|
|
|
|
|
|
PKG_GROUPS= ${USERPPP_GROUP}
|
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= USERPPP_GROUP
|
2007-08-25 11:00:45 +02:00
|
|
|
BUILD_DEFS+= USERPPP_GROUP
|
|
|
|
|
2008-12-18 14:55:24 +01:00
|
|
|
USE_BSD_MAKEFILE= yes
|
|
|
|
|
2007-08-25 11:00:45 +02:00
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/cat8 ${PKGMANDIR}/man8 sbin
|
|
|
|
INSTALLATION_DIRS+= share/examples/ppp
|
2007-07-04 22:54:31 +02:00
|
|
|
|
2000-11-07 18:26:58 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|