pks_walk

これはなに?

  • 2010.1.11 いろいろ改変。
  • 使いかた

    pkgsrcの上で動くサポートユーティリティです。依存関係を再帰的に読みながら、使いたいコマンドを実行できます。

    デフォルトではすでに依存関係を調べたパッケージには再帰しないようにしています。

    Download

    pks_walk.sh

    使い方

    pkgsrcのパッケージディリクトリ(www/firefoxなど)の上で、

    pks_walk.sh "使用したいコマンド"
    

    環境変数

    DO_REVERSE
    依存関係の底から再帰します。
    NO_REMOVE_DUP
    すでに依存関係を調べたパッケージも再帰します。
    NO_MESSAGE
    pks_walk自身のメッセージを抑制します。
    設定例
    DO_REVERSE=YES sh /root/pks_walk.sh make show-options
    

    使用例

    # cd /usr/pkgsrc/www/firefox
    # sh /root/pks_walk.sh make show-options
    
    =========== Walking into ../../www/firefox
    Any of the following general options may be selected:
            debug    Enable debugging facilities in the package.
            mozilla-single-profile  Enable single profiles on mozilla browsers
            official-mozilla-branding       Use official Mozilla reg. trademarks and logos.
    
    These options are enabled by default:
    
    These options are currently enabled:
    
    You can select which build options to use by setting PKG_DEFAULT_OPTIONS
    or PKG_OPTIONS.gecko.
    =========== Walking into ../../graphics/jpeg
    This package does not use the options framework.
    =========== Walking into ../../net/libIDL
    This package does not use the options framework.
    =========== Walking into ../../devel/glib2
    Any of the following general options may be selected:
            fam      Support using File Alteration Monitor (FAM).
    
    These options are enabled by default:
            fam
    
    These options are currently enabled:
            fam
    
    You can select which build options to use by setting PKG_DEFAULT_OPTIONS
    or PKG_OPTIONS.glib2.
    =========== Walking into ../../lang/perl5
    Any of the following general options may be selected:
            debug    Enable debugging facilities in the package.
            threads  Enable threads support.
    
    These options are enabled by default:
            threads
    
    These options are currently enabled:
            threads
    
    You can select which build options to use by setting PKG_DEFAULT_OPTIONS
    or PKG_OPTIONS.perl.
    =========== Walking into ../../sysutils/fam
    Any of the following general options may be selected:
            kqueue   Enable support for kernel event notification mechanism
    
    These options are enabled by default:
    
    These options are currently enabled:
    
    You can select which build options to use by setting PKG_DEFAULT_OPTIONS
    or PKG_OPTIONS.fam.
    =========== Walking into ../../devel/pcre
    This package does not use the options framework.
    =========== Walking into ../../x11/gtk2
    Any of the following general options may be selected:
            cups     Enable cups (Common UNIX Printing System) support.
            debug    Enable debugging facilities in the package.
    Exactly one of the following gdk-target options is required:
            x11      Enable X11 support.
    
    These options are enabled by default:
            x11
    
    These options are currently enabled:
            x11
    
    You can select which build options to use by setting PKG_DEFAULT_OPTIONS
    or PKG_OPTIONS.gtk2.
    =========== Walking into ../../misc/xdg-dirs
    This package does not use the options framework.
    =========== Walking into ../../x11/xcursor
    This package does not use the options framework.
    =========== Walking into ../../x11/Xfixes
    This package does not use the options framework.
    =========== Walking into ../../x11/Xrender
    This package does not use the options framework.
    =========== Walking into ../../x11/liboldXrandr
    This package does not use the options framework.
    =========== Walking into ../../devel/atk
    This package does not use the options framework.
    =========== Walking into ../../devel/pango
    Any of the following general options may be selected:
            x11      Enable X11 support.
    
    These options are enabled by default:
            x11
    
    These options are currently enabled:
            x11
    
    You can select which build options to use by setting PKG_DEFAULT_OPTIONS
    or PKG_OPTIONS.pango.
    =========== Walking into ../../fonts/Xft2
    This package does not use the options framework.
    =========== Walking into ../../fonts/fontconfig
    This package does not use the options framework.
    =========== Walking into ../../graphics/freetype2
    Any of the following general options may be selected:
            subpixel        
            truetype        
    
    These options are enabled by default:
    
    These options are currently enabled:
    
    You can select which build options to use by setting PKG_DEFAULT_OPTIONS
    or PKG_OPTIONS.freetype2.
    =========== Walking into ../../textproc/expat
    This package does not use the options framework.
    =========== Walking into ../../graphics/cairo
    Any of the following general options may be selected:
            x11      Enable X11 support.
    
    These options are enabled by default:
            x11
    
    These options are currently enabled:
            x11
    
    You can select which build options to use by setting PKG_DEFAULT_OPTIONS
    or PKG_OPTIONS.cairo.
    =========== Walking into ../../graphics/MesaLib
    Any of the following general options may be selected:
            i386    
    
    These options are enabled by default:
            i386
    
    These options are currently enabled:
            i386
    
    You can select which build options to use by setting PKG_DEFAULT_OPTIONS
    or PKG_OPTIONS.MesaLib.
    =========== Walking into ../../graphics/glitz
    Any of the following general options may be selected:
            x11      Enable X11 support.
    
    These options are enabled by default:
            x11
    
    These options are currently enabled:
            x11
    
    You can select which build options to use by setting PKG_DEFAULT_OPTIONS
    or PKG_OPTIONS.glitz.
    =========== Walking into ../../graphics/png
    This package does not use the options framework.
    =========== Walking into ../../x11/pixman
    This package does not use the options framework.
    =========== Walking into ../../graphics/tiff
    Any of the following general options may be selected:
            lzw      Enable LZW (De)compression support
    
    These options are enabled by default:
            lzw
    
    These options are currently enabled:
            lzw
    
    You can select which build options to use by setting PKG_DEFAULT_OPTIONS
    or PKG_OPTIONS.tiff.
    

    注意

    1. なにかにそっくりと言わないでください。
    2. なにがあっても知りません。(As is)
    3. オプションは付ける予定はありません。環境変数にしたほうがなにかと便利だから