chat/anope: fix hard-coded /usr/pkg in patchdiff -r1.30 -r1.31 pkgsrc/chat/anope/Makefile
(rillig)
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.30 2020/03/08 16:48:54 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.31 2020/03/29 06:56:48 rillig Exp $ | |
2 | 2 | |||
3 | DISTNAME= anope-2.0.7-source | 3 | DISTNAME= anope-2.0.7-source | |
4 | PKGNAME= ${DISTNAME:S/-source//1} | 4 | PKGNAME= ${DISTNAME:S/-source//1} | |
5 | PKGREVISION= 2 | 5 | PKGREVISION= 3 | |
6 | CATEGORIES= chat | 6 | CATEGORIES= chat | |
7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=anope/} | 7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=anope/} | |
8 | GITHUB_PROJECT= anope | 8 | GITHUB_PROJECT= anope | |
9 | GITHUB_RELEASE= ${PKGVERSION_NOREV} | 9 | GITHUB_RELEASE= ${PKGVERSION_NOREV} | |
10 | 10 | |||
11 | MAINTAINER= nia@NetBSD.org | 11 | MAINTAINER= nia@NetBSD.org | |
12 | HOMEPAGE= https://www.anope.org/ | 12 | HOMEPAGE= https://www.anope.org/ | |
13 | COMMENT= Modular set of IRC services | 13 | COMMENT= Modular set of IRC services | |
14 | LICENSE= gnu-gpl-v2 | 14 | LICENSE= gnu-gpl-v2 | |
15 | 15 | |||
16 | USE_LANGUAGES= c c++ | 16 | USE_LANGUAGES= c c++ | |
17 | USE_TOOLS+= msgfmt | 17 | USE_TOOLS+= msgfmt | |
18 | USE_CMAKE= yes | 18 | USE_CMAKE= yes | |
@@ -40,29 +40,27 @@ PKG_USERS_VARS= ANOPE_GROUP | @@ -40,29 +40,27 @@ PKG_USERS_VARS= ANOPE_GROUP | |||
40 | 40 | |||
41 | OWN_DIRS_PERMS+= ${PREFIX}/anope ${ANOPE_USER} ${ANOPE_GROUP} 0755 | 41 | OWN_DIRS_PERMS+= ${PREFIX}/anope ${ANOPE_USER} ${ANOPE_GROUP} 0755 | |
42 | OWN_DIRS_PERMS+= ${PREFIX}/anope/data ${ANOPE_USER} ${ANOPE_GROUP} 0755 | 42 | OWN_DIRS_PERMS+= ${PREFIX}/anope/data ${ANOPE_USER} ${ANOPE_GROUP} 0755 | |
43 | OWN_DIRS_PERMS+= ${PREFIX}/anope/logs ${ANOPE_USER} ${ANOPE_GROUP} 0755 | 43 | OWN_DIRS_PERMS+= ${PREFIX}/anope/logs ${ANOPE_USER} ${ANOPE_GROUP} 0755 | |
44 | 44 | |||
45 | FILES_SUBST+= ANOPE_GROUP=${ANOPE_GROUP:Q} | 45 | FILES_SUBST+= ANOPE_GROUP=${ANOPE_GROUP:Q} | |
46 | FILES_SUBST+= ANOPE_USER=${ANOPE_USER:Q} | 46 | FILES_SUBST+= ANOPE_USER=${ANOPE_USER:Q} | |
47 | FILES_SUBST+= PKGLOCALEDIR=${PKGLOCALEDIR} | 47 | FILES_SUBST+= PKGLOCALEDIR=${PKGLOCALEDIR} | |
48 | 48 | |||
49 | SUBST_CLASSES+= conf | 49 | SUBST_CLASSES+= conf | |
50 | SUBST_STAGE.conf= pre-configure | 50 | SUBST_STAGE.conf= pre-configure | |
51 | SUBST_MESSAGE.conf= Set variables in configuration file. | 51 | SUBST_MESSAGE.conf= Set variables in configuration file. | |
52 | SUBST_FILES.conf+= data/example.conf | 52 | SUBST_FILES.conf+= data/example.conf | |
53 | SUBST_VARS.conf= PREFIX | 53 | SUBST_VARS.conf= PREFIX PKG_SYSCONFDIR | |
54 | SUBST_VARS.conf+= PKG_SYSCONFDIR | |||
55 | SUBST_VARS.conf+= PKGLOCALEDIR | |||
56 | 54 | |||
57 | RCD_SCRIPTS= anope | 55 | RCD_SCRIPTS= anope | |
58 | 56 | |||
59 | EGDIR= ${PREFIX}/share/examples/anope | 57 | EGDIR= ${PREFIX}/share/examples/anope | |
60 | DOCDIR= ${PREFIX}/share/doc/anope | 58 | DOCDIR= ${PREFIX}/share/doc/anope | |
61 | 59 | |||
62 | USE_PKGLOCALEDIR= yes | 60 | USE_PKGLOCALEDIR= yes | |
63 | 61 | |||
64 | INSTALLATION_DIRS+= ${EGDIR} | 62 | INSTALLATION_DIRS+= ${EGDIR} | |
65 | INSTALLATION_DIRS+= ${DOCDIR} | 63 | INSTALLATION_DIRS+= ${DOCDIR} | |
66 | 64 | |||
67 | CONF_FILES+= ${EGDIR}/botserv.conf ${PKG_SYSCONFDIR}/botserv.conf | 65 | CONF_FILES+= ${EGDIR}/botserv.conf ${PKG_SYSCONFDIR}/botserv.conf | |
68 | CONF_FILES+= ${EGDIR}/chanserv.conf ${PKG_SYSCONFDIR}/chanserv.conf | 66 | CONF_FILES+= ${EGDIR}/chanserv.conf ${PKG_SYSCONFDIR}/chanserv.conf |
@@ -1,9 +1,9 @@ | @@ -1,9 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.12 2020/01/10 15:27:25 nia Exp $ | 1 | $NetBSD: distinfo,v 1.13 2020/03/29 06:56:48 rillig Exp $ | |
2 | 2 | |||
3 | SHA1 (anope-2.0.7-source.tar.gz) = 298c21edbff18a1d3cc711bf84b55ac06ae10d6b | 3 | SHA1 (anope-2.0.7-source.tar.gz) = 298c21edbff18a1d3cc711bf84b55ac06ae10d6b | |
4 | RMD160 (anope-2.0.7-source.tar.gz) = fdbc31d1bcd902eddc35efbae871af2b0dddc88b | 4 | RMD160 (anope-2.0.7-source.tar.gz) = fdbc31d1bcd902eddc35efbae871af2b0dddc88b | |
5 | SHA512 (anope-2.0.7-source.tar.gz) = 22a9f3e0d9fe7f68304062829a19b693a3414f94c90f8da601ab98995cbff7310dc22ca40749d50d6722dfb4649817d2f4b1dbe4afa3254b28980f03a491de65 | 5 | SHA512 (anope-2.0.7-source.tar.gz) = 22a9f3e0d9fe7f68304062829a19b693a3414f94c90f8da601ab98995cbff7310dc22ca40749d50d6722dfb4649817d2f4b1dbe4afa3254b28980f03a491de65 | |
6 | Size (anope-2.0.7-source.tar.gz) = 1817484 bytes | 6 | Size (anope-2.0.7-source.tar.gz) = 1817484 bytes | |
7 | SHA1 (patch-CMakeLists.txt) = 698034091457fb58de32a43fd701c7ce716f898e | 7 | SHA1 (patch-CMakeLists.txt) = 698034091457fb58de32a43fd701c7ce716f898e | |
8 | SHA1 (patch-data_CMakeLists.txt) = e0d762da4345ded9a080ea6cf216db510c4c1665 | 8 | SHA1 (patch-data_CMakeLists.txt) = e0d762da4345ded9a080ea6cf216db510c4c1665 | |
9 | SHA1 (patch-data_example.conf) = 5d239fdf2362561b860ffbd3b6dfe7a5dd177632 | 9 | SHA1 (patch-data_example.conf) = 6866b154f464ed6072b267f589ee67056bea73ac |
@@ -1,32 +1,32 @@ | @@ -1,32 +1,32 @@ | |||
1 | $NetBSD: patch-data_example.conf,v 1.2 2019/12/08 03:55:05 nia Exp $ | 1 | $NetBSD: patch-data_example.conf,v 1.3 2020/03/29 06:56:48 rillig Exp $ | |
2 | 2 | |||
3 | Fix config file filenames for pkgsrc's CONF_FILES system. | 3 | Fix config file filenames for pkgsrc's CONF_FILES system. | |
4 | 4 | |||
5 | --- data/example.conf.orig 2019-10-14 14:51:20.000000000 +0000 | 5 | --- data/example.conf.orig 2019-10-14 14:51:20.000000000 +0000 | |
6 | +++ data/example.conf | 6 | +++ data/example.conf | |
7 | @@ -235,13 +235,13 @@ serverinfo | 7 | @@ -235,13 +235,13 @@ serverinfo | |
8 | * The filename containing the Services process ID. The path is relative to the | 8 | * The filename containing the Services process ID. The path is relative to the | |
9 | * services root directory. | 9 | * services root directory. | |
10 | */ | 10 | */ | |
11 | - pid = "data/services.pid" | 11 | - pid = "data/services.pid" | |
12 | + pid = "/usr/pkg/anope/anope.pid" | 12 | + pid = "@PREFIX@/anope/anope.pid" | |
13 | 13 | |||
14 | /* | 14 | /* | |
15 | * The filename containing the Message of the Day. The path is relative to the | 15 | * The filename containing the Message of the Day. The path is relative to the | |
16 | * services root directory. | 16 | * services root directory. | |
17 | */ | 17 | */ | |
18 | - motd = "conf/services.motd" | 18 | - motd = "conf/services.motd" | |
19 | + motd = "/usr/pkg/etc/anope/services.motd" | 19 | + motd = "@PKG_SYSCONFDIR@/anope/services.motd" | |
20 | } | 20 | } | |
21 | 21 | |||
22 | /* | 22 | /* | |
23 | @@ -565,7 +565,7 @@ options | 23 | @@ -565,7 +565,7 @@ options | |
24 | include | 24 | include | |
25 | { | 25 | { | |
26 | type = "file" | 26 | type = "file" | |
27 | - name = "botserv.example.conf" | 27 | - name = "botserv.example.conf" | |
28 | + name = "botserv.conf" | 28 | + name = "botserv.conf" | |
29 | } | 29 | } | |
30 | 30 | |||
31 | /* | 31 | /* | |
32 | @@ -578,7 +578,7 @@ include | 32 | @@ -578,7 +578,7 @@ include |