Defer tests until TEST_TARGET.diff -r1.5 -r1.6 pkgsrc/sysutils/daemontools-encore/Makefile
(schmonz)
@@ -1,23 +1,24 @@ | @@ -1,23 +1,24 @@ | |||
1 | # $NetBSD: Makefile,v 1.5 2020/06/25 05:42:40 schmonz Exp $ | 1 | # $NetBSD: Makefile,v 1.6 2020/11/16 10:51:43 schmonz Exp $ | |
2 | 2 | |||
3 | DISTNAME= daemontools-encore-1.11 | 3 | DISTNAME= daemontools-encore-1.11 | |
4 | PKGREVISION= 2 | 4 | PKGREVISION= 2 | |
5 | CATEGORIES= sysutils | 5 | CATEGORIES= sysutils | |
6 | MASTER_SITES= ${HOMEPAGE} | 6 | MASTER_SITES= ${HOMEPAGE} | |
7 | 7 | |||
8 | MAINTAINER= schmonz@NetBSD.org | 8 | MAINTAINER= schmonz@NetBSD.org | |
9 | HOMEPAGE= https://untroubled.org/daemontools-encore/ | 9 | HOMEPAGE= https://untroubled.org/daemontools-encore/ | |
10 | COMMENT= Collection of tools for managing UNIX services | 10 | COMMENT= Collection of tools for managing UNIX services | |
11 | LICENSE= mit | 11 | LICENSE= mit | |
12 | 12 | |||
13 | CONFLICTS+= daemontools-[0-9]* | 13 | CONFLICTS+= daemontools-[0-9]* | |
14 | 14 | |||
15 | DJB_RESTRICTED= no | 15 | DJB_RESTRICTED= no | |
16 | 16 | |||
17 | MAKE_ENV+= PKGSRC_SHELL=${TOOLS_PLATFORM.sh} | 17 | MAKE_ENV+= PKGSRC_SHELL=${TOOLS_PLATFORM.sh} | |
18 | TEST_TARGET= rts | |||
18 | INSTALL_TARGET= install | 19 | INSTALL_TARGET= install | |
19 | 20 | |||
20 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man8 | 21 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man8 | |
21 | 22 | |||
22 | .include "../../mk/djbware.mk" | 23 | .include "../../mk/djbware.mk" | |
23 | .include "../../mk/bsd.pkg.mk" | 24 | .include "../../mk/bsd.pkg.mk" |
@@ -1,11 +1,11 @@ | @@ -1,11 +1,11 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2020/01/25 11:17:31 schmonz Exp $ | 1 | $NetBSD: distinfo,v 1.4 2020/11/16 10:51:43 schmonz Exp $ | |
2 | 2 | |||
3 | SHA1 (daemontools-encore-1.11.tar.gz) = 23f8dc5cf2d063c481b328fce523fc8a0349b693 | 3 | SHA1 (daemontools-encore-1.11.tar.gz) = 23f8dc5cf2d063c481b328fce523fc8a0349b693 | |
4 | RMD160 (daemontools-encore-1.11.tar.gz) = 518f85f1502bf969ee60d5169642089752bd2d52 | 4 | RMD160 (daemontools-encore-1.11.tar.gz) = 518f85f1502bf969ee60d5169642089752bd2d52 | |
5 | SHA512 (daemontools-encore-1.11.tar.gz) = 1e1a96a948d551bfc38496740eaa85b7cae0d2469419293b133533da75ca03657fe6108129703ad7b773925c58ce84a4f242eb612133fb0c499f47ae50423a8a | 5 | SHA512 (daemontools-encore-1.11.tar.gz) = 1e1a96a948d551bfc38496740eaa85b7cae0d2469419293b133533da75ca03657fe6108129703ad7b773925c58ce84a4f242eb612133fb0c499f47ae50423a8a | |
6 | Size (daemontools-encore-1.11.tar.gz) = 94917 bytes | 6 | Size (daemontools-encore-1.11.tar.gz) = 94917 bytes | |
7 | SHA1 (patch-MAN) = 7c361a3365a43a992d7a0ccf938b79dc2a8691bc | 7 | SHA1 (patch-MAN) = 7c361a3365a43a992d7a0ccf938b79dc2a8691bc | |
8 | SHA1 (patch-Makefile) = b1bc2500071491280a02f158bf4d8ed4e0aa369e | 8 | SHA1 (patch-Makefile) = 5deabb7526190b4c1e0f7092b8822a225c317751 | |
9 | SHA1 (patch-rts.tests_supervise-downtime.sh) = c6415e1c0adce32e5ad57ad5457fd1be98c53958 | 9 | SHA1 (patch-rts.tests_supervise-downtime.sh) = c6415e1c0adce32e5ad57ad5457fd1be98c53958 | |
10 | SHA1 (patch-rts.tests_supervise-lock.sh) = 1f2e036adb93a0f872ae2a3f2d7fd89ea0a9809a | 10 | SHA1 (patch-rts.tests_supervise-lock.sh) = 1f2e036adb93a0f872ae2a3f2d7fd89ea0a9809a | |
11 | SHA1 (patch-sleeper.c) = cdae9837bb8a5cc268c8e86e97e03d11f8e9d32d | 11 | SHA1 (patch-sleeper.c) = cdae9837bb8a5cc268c8e86e97e03d11f8e9d32d |
@@ -1,27 +1,37 @@ | @@ -1,27 +1,37 @@ | |||
1 | $NetBSD: patch-Makefile,v 1.1 2020/01/21 21:54:25 schmonz Exp $ | 1 | $NetBSD: patch-Makefile,v 1.2 2020/11/16 10:51:44 schmonz Exp $ | |
2 | 2 | |||
3 | Use a pkgsrc-capable shell on all platforms. | 3 | Use a pkgsrc-capable shell on all platforms. | |
4 | Support DESTDIR. | 4 | Support DESTDIR. | |
5 | Defer tests until TEST_TARGET. | |||
5 | 6 | |||
6 | --- Makefile.orig 2018-10-14 00:48:50.000000000 +0000 | 7 | --- Makefile.orig 2018-10-14 00:48:50.000000000 +0000 | |
7 | +++ Makefile | 8 | +++ Makefile | |
8 | @@ -227,8 +227,8 @@ choose compile haswaitp.h1 haswaitp.h2 l | 9 | @@ -227,8 +227,8 @@ choose compile haswaitp.h1 haswaitp.h2 l | |
9 | 10 | |||
10 | install: \ | 11 | install: \ | |
11 | installer BIN conf-bin MAN conf-man | 12 | installer BIN conf-bin MAN conf-man | |
12 | - ./installer `head -n 1 conf-bin` <BIN | 13 | - ./installer `head -n 1 conf-bin` <BIN | |
13 | - ./installer `head -n 1 conf-man` <MAN | 14 | - ./installer `head -n 1 conf-man` <MAN | |
14 | + ./installer ${DESTDIR}`head -n 1 conf-bin` <BIN | 15 | + ./installer ${DESTDIR}`head -n 1 conf-bin` <BIN | |
15 | + ./installer ${DESTDIR}`head -n 1 conf-man` <MAN | 16 | + ./installer ${DESTDIR}`head -n 1 conf-man` <MAN | |
16 | 17 | |||
17 | installer: \ | 18 | installer: \ | |
18 | load installer.o getln.a unix.a byte.a | 19 | load installer.o getln.a unix.a byte.a | |
20 | @@ -247,7 +247,7 @@ compile iopause.c taia.h tai.h uint64.h | |||
21 | ./compile iopause.c | |||
22 | ||||
23 | it: \ | |||
24 | -rts sysdeps man | |||
25 | +programs sysdeps man | |||
26 | ||||
27 | load: \ | |||
28 | conf-ld print-ld.sh systype warn-auto.sh | |||
19 | @@ -357,7 +357,7 @@ compile readproctitle.c error.h | 29 | @@ -357,7 +357,7 @@ compile readproctitle.c error.h | |
20 | 30 | |||
21 | rts: \ | 31 | rts: \ | |
22 | programs rts.sh rts.exp | 32 | programs rts.sh rts.exp | |
23 | - env - /bin/sh rts.sh 2>&1 | cat -v > rts | 33 | - env - /bin/sh rts.sh 2>&1 | cat -v > rts | |
24 | + env - ${PKGSRC_SHELL} rts.sh 2>&1 | cat -v > rts | 34 | + env - ${PKGSRC_SHELL} rts.sh 2>&1 | cat -v > rts | |
25 | diff -u rts.exp rts | 35 | diff -u rts.exp rts | |
26 | 36 | |||
27 | rts.exp: \ | 37 | rts.exp: \ |