Use PKG_SYSCONFDIR instead of PREFIX/etc Construct the comment in the spirot of the examplediff -r1.42 -r1.43 pkgsrc/www/viewvc/Makefile
(hauke)
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.42 2023/08/17 19:59:00 hauke Exp $ | 1 | # $NetBSD: Makefile,v 1.43 2023/08/17 21:26:49 hauke Exp $ | |
2 | 2 | |||
3 | DISTNAME= viewvc-1.2.3 | 3 | DISTNAME= viewvc-1.2.3 | |
4 | PKGREVISION= 1 | |||
4 | CATEGORIES= devel www | 5 | CATEGORIES= devel www | |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=viewvc/} | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=viewvc/} | |
6 | 7 | |||
7 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
8 | HOMEPAGE= http://www.viewvc.org/ | 9 | HOMEPAGE= http://www.viewvc.org/ | |
9 | COMMENT= Viewing the content of CVS/SVN repositories with a Webbrowser | 10 | COMMENT= Viewing the content of CVS/SVN repositories with a Webbrowser | |
10 | LICENSE= 2-clause-bsd | 11 | LICENSE= 2-clause-bsd | |
11 | 12 | |||
12 | REPLACE_PYTHON= viewvc-install bin/* bin/cgi/*.cgi lib/*.py | 13 | REPLACE_PYTHON= viewvc-install bin/* bin/cgi/*.cgi lib/*.py | |
13 | # https://github.com/viewvc/viewvc/issues/138 | 14 | # https://github.com/viewvc/viewvc/issues/138 | |
14 | PYTHON_VERSIONS_ACCEPTED= 27 # not yet ported as of 1.1.27 | 15 | PYTHON_VERSIONS_ACCEPTED= 27 # not yet ported as of 1.1.27 | |
15 | 16 | |||
16 | .if !exists(/usr/bin/rlog) | 17 | .if !exists(/usr/bin/rlog) | |
@@ -25,27 +26,28 @@ VIEWVCDIR= share/viewvc | @@ -25,27 +26,28 @@ VIEWVCDIR= share/viewvc | |||
25 | PLIST_SUBST+= VIEWVCDIR=${VIEWVCDIR:Q} | 26 | PLIST_SUBST+= VIEWVCDIR=${VIEWVCDIR:Q} | |
26 | 27 | |||
27 | CONF_FILES= ${PREFIX}/share/examples/viewvc/viewvc.conf \ | 28 | CONF_FILES= ${PREFIX}/share/examples/viewvc/viewvc.conf \ | |
28 | ${PREFIX}/${VIEWVCDIR:Q}/viewvc.conf | 29 | ${PREFIX}/${VIEWVCDIR:Q}/viewvc.conf | |
29 | CONF_FILES+= ${PREFIX}/share/examples/viewvc/cvsgraph.conf \ | 30 | CONF_FILES+= ${PREFIX}/share/examples/viewvc/cvsgraph.conf \ | |
30 | ${PREFIX}/${VIEWVCDIR:Q}/cvsgraph.conf | 31 | ${PREFIX}/${VIEWVCDIR:Q}/cvsgraph.conf | |
31 | 32 | |||
32 | .include "options.mk" | 33 | .include "options.mk" | |
33 | 34 | |||
34 | SUBST_CLASSES+= conf | 35 | SUBST_CLASSES+= conf | |
35 | SUBST_STAGE.conf= pre-configure | 36 | SUBST_STAGE.conf= pre-configure | |
36 | SUBST_MESSAGE.conf= Fixing configuration files. | 37 | SUBST_MESSAGE.conf= Fixing configuration files. | |
37 | SUBST_FILES.conf= conf/viewvc.conf.dist | 38 | SUBST_FILES.conf= conf/viewvc.conf.dist | |
38 | SUBST_VARS.conf= VIEWVCDIR PREFIX PHP_OPT CVSGRAPH_OPT | 39 | SUBST_VARS.conf= PREFIX PKG_SYSCONFDIR | |
40 | SUBST_VARS.conf+= VIEWVCDIR PHP_OPT CVSGRAPH_OPT | |||
39 | .if defined(RCS_PKG) && ${RCS_PKG} == "YES" | 41 | .if defined(RCS_PKG) && ${RCS_PKG} == "YES" | |
40 | SUBST_SED.conf+= -e "s|@RCS_PREFIX@|${PREFIX}|g" | 42 | SUBST_SED.conf+= -e "s|@RCS_PREFIX@|${PREFIX}|g" | |
41 | .else | 43 | .else | |
42 | SUBST_SED.conf+= -e "s|@RCS_PREFIX@|/usr|g" | 44 | SUBST_SED.conf+= -e "s|@RCS_PREFIX@|/usr|g" | |
43 | .endif | 45 | .endif | |
44 | 46 | |||
45 | CHECK_PORTABILITY_SKIP= tools/make-release | 47 | CHECK_PORTABILITY_SKIP= tools/make-release | |
46 | 48 | |||
47 | INSTALLATION_DIRS= share/examples/viewvc | 49 | INSTALLATION_DIRS= share/examples/viewvc | |
48 | 50 | |||
49 | do-install: | 51 | do-install: | |
50 | (cd ${WRKSRC} && \ | 52 | (cd ${WRKSRC} && \ | |
51 | ${PYTHONBIN} \ | 53 | ${PYTHONBIN} \ |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.21 2023/08/17 19:59:00 hauke Exp $ | 1 | $NetBSD: distinfo,v 1.22 2023/08/17 21:26:49 hauke Exp $ | |
2 | 2 | |||
3 | BLAKE2s (viewvc-1.2.3.tar.gz) = 4efe844e1fedca51c40245d61c96e951b30db0fb9081e54230459a508be19144 | 3 | BLAKE2s (viewvc-1.2.3.tar.gz) = 4efe844e1fedca51c40245d61c96e951b30db0fb9081e54230459a508be19144 | |
4 | SHA512 (viewvc-1.2.3.tar.gz) = dd5fd1d01629e7e6894e3bd244579a3581883ffb18f66e4ca44b911a5bc41810fcdd1176bfdbf0b88c943780b61c1af2a35c4dd8d757b9e10ff00d560eee0a0f | 4 | SHA512 (viewvc-1.2.3.tar.gz) = dd5fd1d01629e7e6894e3bd244579a3581883ffb18f66e4ca44b911a5bc41810fcdd1176bfdbf0b88c943780b61c1af2a35c4dd8d757b9e10ff00d560eee0a0f | |
5 | Size (viewvc-1.2.3.tar.gz) = 361272 bytes | 5 | Size (viewvc-1.2.3.tar.gz) = 361272 bytes | |
6 | SHA1 (patch-aa) = ff0a6e52ea66c838ba3ab7b1d055c27bf561a376 | 6 | SHA1 (patch-aa) = ff0a6e52ea66c838ba3ab7b1d055c27bf561a376 | |
7 | SHA1 (patch-ab) = 20a2c3c168914ce11b1580434c960e0d8e25f4ed | 7 | SHA1 (patch-ab) = 5be3c5eb60e58341510a96c5a2cab230beec956e |
@@ -1,52 +0,0 @@ | @@ -1,52 +0,0 @@ | |||
1 | $NetBSD: patch-ab,v 1.4 2020/03/17 22:14:15 wiz Exp $ | |||
2 | ||||
3 | --- conf/viewvc.conf.dist.orig 2020-03-17 18:04:41.000000000 +0000 | |||
4 | +++ conf/viewvc.conf.dist | |||
5 | @@ -219,6 +219,7 @@ | |||
6 | ## /usr/local/apache2/conf/mime.types | |||
7 | ## | |||
8 | #mime_types_files = mimetypes.conf | |||
9 | +#mime_types_file = @PREFIX@/etc/httpd/mime.types | |||
10 | ||||
11 | ## address: The address of the local repository maintainer. (This | |||
12 | ## option is provided only as a convenience for ViewVC installations | |||
13 | @@ -313,6 +314,7 @@ | |||
14 | ## rcs_dir = /usr/bin/ | |||
15 | ## | |||
16 | #rcs_dir = | |||
17 | +rcs_dir = @RCS_PREFIX@/bin/ | |||
18 | ||||
19 | ## cvsnt: Location of cvsnt program. ViewVC can use CVSNT (www.cvsnt.org) | |||
20 | ## instead of the RCS utilities to retrieve information from CVS | |||
21 | @@ -335,6 +337,7 @@ | |||
22 | ## diff = /usr/bin/diff | |||
23 | ## | |||
24 | #diff = | |||
25 | +svn = @PREFIX@/bin/ | |||
26 | ||||
27 | ## cvsgraph: Location of the CvsGraph program, a graphical CVS version | |||
28 | ## graph generator (see options.use_cvsgraph). | |||
29 | @@ -342,7 +345,7 @@ | |||
30 | ## Example: | |||
31 | ## cvsgraph = /usr/local/bin/cvsgraph | |||
32 | ## | |||
33 | -#cvsgraph = | |||
34 | +cvsgraph = @PREFIX@/bin/ | |||
35 | ||||
36 | ||||
37 | ##--------------------------------------------------------------------------- | |||
38 | @@ -754,12 +757,14 @@ | |||
39 | ## use_cvsgraph: Use CvsGraph to offer visual graphs of CVS revision history. | |||
40 | ## | |||
41 | #use_cvsgraph = 0 | |||
42 | +use_cvsgraph = @CVSGRAPH_OPT@ | |||
43 | ||||
44 | ## cvsgraph_conf: Location of the customized cvsgraph configuration file. | |||
45 | ## May be specified as an absolute path or as a path relative to this | |||
46 | ## configuration file. | |||
47 | ## | |||
48 | #cvsgraph_conf = cvsgraph.conf | |||
49 | +cvsgraph_conf = @PREFIX@/@VIEWVCDIR@/cvsgraph.conf | |||
50 | ||||
51 | ## allowed_cvsgraph_useropts: A list of settings used for cvsgraph's | |||
52 | ## user-modifiable behavior which can be changed in the graph display. |