View | Details | Raw Unified | Return to bug 244128 | Differences between
and this patch

Collapse All | Expand All

(-)./files/patch-scripts_periodic_400.status-pkg.in (+19 lines)
Line 0 Link Here
1
--- scripts/periodic/400.status-pkg.in.orig	2020-10-11 21:57:45 UTC
2
+++ scripts/periodic/400.status-pkg.in
3
@@ -8,6 +8,7 @@ if [ -r /etc/defaults/periodic.conf ]; then
4
     source_periodic_confs
5
 fi
6
 pkgcmd=%prefix%/sbin/pkg
7
+: ${pkg_version_flags:=-vI}
8
 
9
 status_pkg() {
10
     local pkgargs
11
@@ -15,7 +16,7 @@ status_pkg() {
12
 
13
     pkgargs="$1"
14
 
15
-    rc=$(${pkgcmd} ${pkgargs} version -v ${pkg_version_index} |
16
+    rc=$(${pkgcmd} ${pkgargs} version ${pkg_version_flags} ${pkg_version_index} |
17
 	sed -n -e '/up-to-date/d' \
18
 	    -e 's/^\([^[:space:]]*\)[[:space:]]*[<>=!?][[:space:]]*\(.*\)$/\1 \2/p' |
19
 	tee /dev/stderr |
(-)./Makefile (-2 / +2 lines)
Lines 90-97 PKG_BIN= ${WRKSRC}/src/pkg-static Link Here
90
.endif
90
.endif
91
91
92
post-patch:
92
post-patch:
93
	${REINPLACE_CMD} -e "s|-llzma|${LIBLZMA_LIBS}|g" ${WRKSRC}/auto.def \
93
	@${REINPLACE_CMD} 's|-m 755 pkg|-m 755 -s pkg|g' ${WRKSRC}/src/Makefile.autosetup
94
		${WRKSRC}/src/Makefile.autosetup ${WRKSRC}/tests/Makefile.autosetup
94
	@${REINPLACE_CMD} 's|-m 644 lib$$(LIB)$$(LIB|-m 644 -s lib$$(LIB)$$(LIB|' ${WRKSRC}/libpkg/Makefile.autosetup
95
95
96
post-install:
96
post-install:
97
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg
97
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg

Return to bug 244128