blob: 9406ff7a987cd3c8fef94e35c1d179a387e9bee0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile,v 1.29 2015/04/09 10:16:35 hiramatsu Exp $
DISTNAME= duplicity-0.6.25
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
DEPENDS+= ${PYPKGPREFIX}-lockfile>=0.9.1:../../devel/py-lockfile
.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/*
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 0.6.22
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/egg.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
|