pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ikiwiki Replace unportable su(1) usage with sudo(8...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8e54450aa5ab
branches:  trunk
changeset: 400664:8e54450aa5ab
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sun Sep 01 02:19:37 2019 +0000

description:
Replace unportable su(1) usage with sudo(8). Fix a few perl paths broken
in previous. Bump PKGREVISION.

diffstat:

 www/ikiwiki/Makefile                           |  7 ++++---
 www/ikiwiki/distinfo                           |  4 ++--
 www/ikiwiki/patches/patch-ikiwiki-mass-rebuild |  8 ++++----
 3 files changed, 10 insertions(+), 9 deletions(-)

diffs (64 lines):

diff -r 5ac6f175dd70 -r 8e54450aa5ab www/ikiwiki/Makefile
--- a/www/ikiwiki/Makefile      Sun Sep 01 00:51:46 2019 +0000
+++ b/www/ikiwiki/Makefile      Sun Sep 01 02:19:37 2019 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.166 2019/08/31 21:32:13 schmonz Exp $
+# $NetBSD: Makefile,v 1.167 2019/09/01 02:19:37 schmonz Exp $
 #
 
 DISTNAME=              ikiwiki_3.20190228.orig
 PKGNAME=               ${DISTNAME:S/_/-/:S/.orig//}
-PKGREVISION=           4
+PKGREVISION=           5
 CATEGORIES=            www textproc
 MASTER_SITES=          ${MASTER_SITE_DEBIAN:=pool/main/i/ikiwiki/}
 EXTRACT_SUFX=          .tar.xz
@@ -38,7 +38,8 @@
 USE_TOOLS+=            gmake msgfmt perl:run xgettext
 
 REPLACE_PYTHON+=       plugins/proxy.py plugins/pythondemo plugins/rst
-REPLACE_PERL+=         pm_filter
+REPLACE_PERL+=         pm_filter ikiwiki.in ikiwiki-comment.in
+REPLACE_PERL+=         ikiwiki-transition.in ikiwiki-calendar.in
 
 MAKE_FLAGS+=           W3M_CGI_BIN=${PREFIX:Q}/libexec/w3m/cgi-bin
 MAKE_FLAGS+=           SYSCONFDIR=${PKG_SYSCONFDIR:Q}
diff -r 5ac6f175dd70 -r 8e54450aa5ab www/ikiwiki/distinfo
--- a/www/ikiwiki/distinfo      Sun Sep 01 00:51:46 2019 +0000
+++ b/www/ikiwiki/distinfo      Sun Sep 01 02:19:37 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.135 2019/08/31 21:32:13 schmonz Exp $
+$NetBSD: distinfo,v 1.136 2019/09/01 02:19:37 schmonz Exp $
 
 SHA1 (ikiwiki_3.20190228.orig.tar.xz) = 46f5b0a1498c1e098fe248eae1f2e3f56b25dc2f
 RMD160 (ikiwiki_3.20190228.orig.tar.xz) = f47968a69528aea864ad412c8508a8c5063edb9d
@@ -6,5 +6,5 @@
 Size (ikiwiki_3.20190228.orig.tar.xz) = 2672244 bytes
 SHA1 (patch-IkiWiki_Plugin_highlight.pm) = 14a2d8e1d3eb671863cdef4a936ebbb7b09ce3b9
 SHA1 (patch-Makefile.PL) = 44324917c22ec3cd2aa216439e2ae5a3dc2f9787
-SHA1 (patch-ikiwiki-mass-rebuild) = b8d5785d77736508de9cfc0f059cc36e0e607bce
+SHA1 (patch-ikiwiki-mass-rebuild) = eb03ac0ec83078be593f76968f5a1f9080ea50b9
 SHA1 (patch-po_Makefile) = 468b500da41c606c6af6b65c8080d692acb69336
diff -r 5ac6f175dd70 -r 8e54450aa5ab www/ikiwiki/patches/patch-ikiwiki-mass-rebuild
--- a/www/ikiwiki/patches/patch-ikiwiki-mass-rebuild    Sun Sep 01 00:51:46 2019 +0000
+++ b/www/ikiwiki/patches/patch-ikiwiki-mass-rebuild    Sun Sep 01 02:19:37 2019 +0000
@@ -1,15 +1,15 @@
-$NetBSD: patch-ikiwiki-mass-rebuild,v 1.1 2018/03/22 17:08:31 schmonz Exp $
+$NetBSD: patch-ikiwiki-mass-rebuild,v 1.2 2019/09/01 02:19:38 schmonz Exp $
 
-Attempt to make su(1) usage more portable.
+Replace unportable su(1) usage with sudo(8).
 
---- ikiwiki-mass-rebuild.orig  2018-03-11 15:54:34.000000000 +0000
+--- ikiwiki-mass-rebuild.orig  2019-02-26 23:01:54.000000000 +0000
 +++ ikiwiki-mass-rebuild
 @@ -32,7 +32,7 @@ sub processuser {
        my $user=shift;
        return if $user=~/^-/ || $users{$user};
        $users{$user}=1;
 -      my $ret=system("su", $user, "-s", "/bin/sh", "-c", "--", "$0 --nonglobal @ARGV");
-+      my $ret=system("su", "-", $user, "-c", "/bin/sh -c -- '$0 --nonglobal @ARGV'");
++      my $ret=system("sudo", "-n", "-s", "-u", $user, "/bin/sh", "-c", "--", "$0", "--nonglobal", @ARGV);
        if ($ret != 0) {
                print STDERR "warning: processing for $user failed with code $ret\n";
        }



Home | Main Index | Thread Index | Old Index