| @@ -1,29 +1,30 @@ | | | @@ -1,29 +1,30 @@ |
1 | # $NetBSD: Makefile,v 1.46 2020/09/20 16:44:54 gdt Exp $ | | 1 | # $NetBSD: Makefile,v 1.47 2020/09/20 16:46:08 gdt Exp $ |
2 | | | 2 | |
3 | DISTNAME= bup-0.31 | | 3 | DISTNAME= bup-0.31 |
4 | CATEGORIES= sysutils | | 4 | CATEGORIES= sysutils |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=bup/} | | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=bup/} |
6 | # bup has two problems that make packaging difficult. One is that | | 6 | # bup has two problems that make packaging difficult. One is that |
7 | # building man pages requires non-portable tools (pandoc). The other | | 7 | # building man pages requires non-portable tools (pandoc). The other |
8 | # is that it is hosted on github, which makes hosting tarballs | | 8 | # is that it is hosted on github, which makes hosting tarballs |
9 | # difficult. The combination of this leads to having a branch "man" | | 9 | # difficult. The combination of this leads to having a branch "man" |
10 | # in bup's git which has autogenerated man pages. The third problem | | 10 | # in bup's git which has autogenerated man pages. The third problem |
11 | # is that github.mk assumes that there is one distfile. | | 11 | # is that github.mk assumes that there is one distfile. |
12 | | | 12 | |
13 | # (Note to future updating self) We would like to fetch the following files: | | 13 | # (Note to future updating self) We would like to fetch the following files: |
14 | # https://github.com/bup/bup/archive/0.30.tar.gz | | 14 | # https://github.com/bup/bup/archive/0.30.tar.gz |
15 | # https://github.com/bup/bup/archive/28876cde4a3dac518e773860aa7969c106f5390d.tar.gz | | 15 | # https://github.com/bup/bup/archive/28876cde4a3dac518e773860aa7969c106f5390d.tar.gz |
16 | | | 16 | |
| | | 17 | # \todo Update man pages to 0.31. |
17 | # EXTRACT_SUFX default value is set too late, so using it in SITES.* fails. | | 18 | # EXTRACT_SUFX default value is set too late, so using it in SITES.* fails. |
18 | EXTRACT_SUFX= .tar.gz | | 19 | EXTRACT_SUFX= .tar.gz |
19 | MAN_TAG= bd52b8fffc37788fc00071a8e46842e60ef30926 | | 20 | MAN_TAG= bd52b8fffc37788fc00071a8e46842e60ef30926 |
20 | MAN_UNPACK= bup-${MAN_TAG} | | 21 | MAN_UNPACK= bup-${MAN_TAG} |
21 | MAN_DISTFILE= bup-man-${MAN_TAG}${EXTRACT_SUFX} | | 22 | MAN_DISTFILE= bup-man-${MAN_TAG}${EXTRACT_SUFX} |
22 | SITES.${MAN_DISTFILE}= -${MASTER_SITE_GITHUB:=bup/bup/archive/}${MAN_TAG}${EXTRACT_SUFX} | | 23 | SITES.${MAN_DISTFILE}= -${MASTER_SITE_GITHUB:=bup/bup/archive/}${MAN_TAG}${EXTRACT_SUFX} |
23 | # Upstream provides html, but we choose not to include it in the package. | | 24 | # Upstream provides html, but we choose not to include it in the package. |
24 | #HTML_TAG= 66eccb7eb49575d006d193276018d9551ac5b4d4 | | 25 | #HTML_TAG= 66eccb7eb49575d006d193276018d9551ac5b4d4 |
25 | DISTFILES= ${DEFAULT_DISTFILES} ${MAN_DISTFILE} | | 26 | DISTFILES= ${DEFAULT_DISTFILES} ${MAN_DISTFILE} |
26 | | | 27 | |
27 | MAINTAINER= gdt@NetBSD.org | | 28 | MAINTAINER= gdt@NetBSD.org |
28 | HOMEPAGE= https://github.com/bup/bup | | 29 | HOMEPAGE= https://github.com/bup/bup |
29 | COMMENT= Highly efficient file backup system based on the git packfile format | | 30 | COMMENT= Highly efficient file backup system based on the git packfile format |
| @@ -69,17 +70,18 @@ REPLACE_BASH+= t/test-rm-between-index- | | | @@ -69,17 +70,18 @@ REPLACE_BASH+= t/test-rm-between-index- |
69 | REPLACE_BASH+= t/test-save-creates-no-unrefs.sh | | 70 | REPLACE_BASH+= t/test-save-creates-no-unrefs.sh |
70 | REPLACE_BASH+= t/test.sh | | 71 | REPLACE_BASH+= t/test.sh |
71 | REPLACE_BASH+= wvtest-bup.sh | | 72 | REPLACE_BASH+= wvtest-bup.sh |
72 | | | 73 | |
73 | INSTALLATION_DIRS+= ${PKGMANDIR}/man1 share/doc/${PKGBASE} | | 74 | INSTALLATION_DIRS+= ${PKGMANDIR}/man1 share/doc/${PKGBASE} |
74 | | | 75 | |
75 | post-install: | | 76 | post-install: |
76 | ${INSTALL_DATA} ${DOCDIR}/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | | 77 | ${INSTALL_DATA} ${DOCDIR}/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 |
77 | ${INSTALL_DATA} ${WRKSRC}/DESIGN ${DESTDIR}${PREFIX}/share/doc/bup | | 78 | ${INSTALL_DATA} ${WRKSRC}/DESIGN ${DESTDIR}${PREFIX}/share/doc/bup |
78 | ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/bup | | 79 | ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/bup |
79 | | | 80 | |
80 | .include "options.mk" | | 81 | .include "options.mk" |
81 | | | 82 | |
| | | 83 | # \todo Investigate "bup ftp" crash with NetBSD editline and resolve. |
82 | READLINE_DEFAULT= readline | | 84 | READLINE_DEFAULT= readline |
83 | .include "../../mk/readline.buildlink3.mk" | | 85 | .include "../../mk/readline.buildlink3.mk" |
84 | .include "../../lang/python/application.mk" | | 86 | .include "../../lang/python/application.mk" |
85 | .include "../../mk/bsd.pkg.mk" | | 87 | .include "../../mk/bsd.pkg.mk" |