pkgsrc/sysutils/etcutils/Makefile

32 lines
750 B
Makefile

# $NetBSD: Makefile,v 1.3 2012/10/23 19:51:00 asau Exp $
#
DISTNAME= etcutils-0.1
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/jmmv/etcutils/0.1/
MAINTAINER= jmmv@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/~jmmv/etcutils/
COMMENT= Utilities to programmatically edit configuration files
LICENSE= 2-clause-bsd
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=/etc SH=${SH}
PKG_OPTIONS_VAR= PKG_OPTIONS.etcutils
PKG_SUPPORTED_OPTIONS= tests
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mtests)
CONFIGURE_ARGS+= --with-atf
DEPENDS+= atf-[0-9]*:../../devel/atf
PLIST_SUBST+= TESTS=
.else
CONFIGURE_ARGS+= --without-atf
PLIST_SUBST+= TESTS="@comment"
.endif
.include "../../mk/bsd.pkg.mk"