# $NetBSD: Makefile,v 1.25 2013/11/26 20:36:22 drochner Exp $ DISTNAME= duplicity-0.6.22 CATEGORIES= sysutils net MASTER_SITES= http://code.launchpad.net/duplicity/0.6-series/${PKGVERSION_NOREV}/+download/ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.nongnu.org/duplicity/ COMMENT= Remote encrypting incremental backup utility LICENSE= gnu-gpl-v2 USE_PKGLOCALEDIR= yes PKG_OPTIONS_VAR= PKG_OPTIONS.duplicity PKG_SUPPORTED_OPTIONS= gnupg2 .include "../../mk/bsd.options.mk" .if !empty(PKG_OPTIONS:Mgnupg2) DEPENDS+= gnupg2-[0-9]*:../../security/gnupg2 GPGPATH= ${LOCALBASE}/bin/gpg2 .else DEPENDS+= gnupg>=1.0.0:../../security/gnupg GPGPATH= ${LOCALBASE}/bin/gpg .endif REPLACE_PYTHON+= bin/* SUBST_CLASSES+= fix-paths SUBST_STAGE.fix-paths= pre-configure SUBST_MESSAGE.fix-paths= fixing hard coded dirs SUBST_FILES.fix-paths= setup.py SUBST_SED.fix-paths= -e 's,share/man/man1,${PKGMANDIR}/man1,' SUBST_SED.fix-paths+= -e 's,share/locale,${PKGLOCALEDIR}/locale,' SUBST_CLASSES+= gpgpath SUBST_STAGE.gpgpath= pre-configure SUBST_FILES.gpgpath= duplicity/gpginterface.py SUBST_VARS.gpgpath= GPGPATH # XXX in 0.6.21, doc files are mode 0600 post-extract: cd ${WRKSRC} && ${CHMOD} go+r * BUILDLINK_API_DEPENDS.librsync+= librsync>=0.9.6 .include "../../devel/librsync/buildlink3.mk" .include "../../lang/python/distutils.mk" .include "../../lang/python/application.mk" .include "../../mk/bsd.pkg.mk"