hns - 日記自動生成システム - Version 2.19.9

先月 2010年04月 来月
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2010年04月17日() 旧暦 [n年日記] [更新:"2010/04/19 00:07:05"]

#1 [Emacs] emacs22 と emacs23 の関数の違い


#2 [pkgsrc] SU_CMD= ${LOCALBASE}/bin/sudo /bin/sh -c

In It is written as:
9.12. Using 'sudo' with pkgsrc

When installing packages as non-root user and using the just-in-time su(1) feature of pkgsrc, it can become annoying to type in the root password for each required package installed. To avoid this, the sudo package can be used, which does password caching over a limited time. To use it, install sudo (either as binary package or from security/sudo) and then put the following into your mk.conf, somewhere after the definition of the LOCALBASE variable:

.if exists(${LOCALBASE}/bin/sudo)
SU_CMD=        ${LOCALBASE}/bin/sudo /bin/sh -c
.endif
But I could not confirm this. Am I still wrong or the document is obsolete ?
.if exists(/usr/pkg/bin/sudo)
SU_CMD= ${LOCALBASE}/bin/sudo /bin/sh -c
.endif
Now it works. I don't know really why.

Comments related this article

Re: SU_CMD= ${LOCALBASE}/bin/sudo /bin/sh -c by obache    2010/04/18 18:46
${LOCALBASE} が定義される前に mk.conf が読み込まれてるからですな。


最近の日記
2025年01月15日
今更 advent calendar
2025年01月12日
金柑収穫
2025年01月07日
sh: 1: not found
sh: 1: not found
2025年01月02日
geography/R-s2
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)