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

[debian-devel:13550] Re: Where to put, /usr/share or /usr/lib or...



ä½é‡Žï¼ æµœæ¾ã§ã™ã€‚

In <20010123164915Z.kohda@xxxxxxxxxxxxxxxxxxxx>,
  on "Tue, 23 Jan 2001 16:47:32 +0900',
   with "[debian-devel:13548] Where to put, /usr/share or /usr/lib or...",
 Atsuhito Kohda <kohda@xxxxxxxxxxxxxxxxxxxx> ã•ã‚“ wrote:

> prefix=/usr ã ã¨ /usr/ewb/3.2 ã¨ã‹ã«ãªã£ã¦ lintian ãŒ
> æ–‡å¥è¨€ã„ã¾ã™ã€‚

ã“れ㯠FHS ã«é©åˆã—ãªã„ã®ã§ãƒ€ãƒ¡ã§ã—ょã†ã€‚

No large software packages should use a direct subdirectory under the
/usr hierarchy.  An exception is made for the X Window System because of
considerable precedent and widely-accepted practice.  This section of
the standard specifies the location for most such packages.

> prefix=/usr/share ã ã¨ /usr/share/ewb/3.2/bin ã¨ã‹
> /usr/share/ewb/3.2/share/texmf ã¯å¦™ãªæ°—ãŒã—ã¾ã™ã€‚

 /opt 以下ã«ç½®ãよã†ãªã‚‚ã®ãªã‚‰ã“ã†ã„ã†é…ç½®ã«ãªã‚‹ã®ã§ã—ょã†ãŒã€
 FHS ã«åˆã‚ã›ã¦é…ç½®ã™ã‚‹ãªã‚‰æœ¬æ¥ã¯

 architecture ä¾å­˜ã®ãƒã‚¤ãƒŠãƒªãªã©ã¯ /usr/lib/<package>/ 以下
ãŸã ã—エンドユーザãŒç›´æŽ¥å®Ÿè¡Œã™ã‚‹ã‚³ãƒžãƒ³ãƒ‰ã¯ /usr/bin 以下

 architecture éžä¾å­˜ã®è¨­å®šãƒ•ã‚¡ã‚¤ãƒ«ã€(変更ã•ã‚Œãªã„) データファイル
ãªã©ã¯ /usr/share/<package> 以下

プログラムã®å‹•ä½œã«ã‚ˆã£ã¦å¤‰æ›´ã•ã‚Œã¦ã„ãログファイルやデータファイル
ãªã©ã¯ /var/lib/<package> 以下

ã«ãªã‚‹ã¨æ€ã„ã¾ã™

/usr -- Secondary Hierarchy
|
+-bin       Most user commands
+-lib       Libraries
+-sbin      Non-vital system binaries
+-share     Architecture-independent data

4.5  /usr/lib : Libraries for programming and packages

/usr/lib includes object files, libraries, and internal binaries that
are not intended to be executed directly by users or shell scripts.

Applications may use a single subdirectory under /usr/lib.  If an
application uses a subdirectory, all architecture-dependent data
exclusively used by the application should be placed within that
subdirectory.  For example, the perl5 subdirectory for Perl 5 modules
and libraries.

Miscellaneous architecture-independent application-specific static files
and subdirectories should be placed in /usr/share.

Any program or package which contains or requires data that doesn't need
to be modified should store that data in /usr/share (or
/usr/local/share, if installed locally).  It is recommended that a
subdirectory be used in /usr/share for this purpose.

ã‚㨠/var/cache, /var/lib, /var/spool ãªã©ã‚‚ã‚ã‚Šã¾ã™ã­ã€‚

> prefix=/usr/lib ã ã¨ /usr/lib/ewb/3.2/bin ã¨ã‹
> /usr/lib/ewb/3.2/share/texmf ã«ãªã‚‹è¨³ã§ã™ãŒã€ã“ã‚ŒãŒ
> 良ã„ã¨è¨€ãˆã‚‹ã®ã§ã—ょã†ã‹ï¼Ÿ
> 
> 一体ã©ã†ã„ã†æ§‹æˆã«ã™ã‚‹ã¹ããªã‚“ã§ã—ょã†ï¼Ÿï¼Ÿï¼Ÿ

 prefix= ãŒä½¿ãˆã‚‹ã¨ã„ã†ã“ã¨ã¯ bindir, libdir, etcdir ãªã©ã‚’
ãã‚Œãžã‚ŒæŒ‡å®šã§ããŸã‚Šã—ã¾ã›ã‚“ã‹ ?

 ./configure ã¨ã‹ä½¿ãˆã‚‹ã‚“ã§ã™ã‚ˆã­ ?

ãŸã¶ã‚“ã€æœ›ã¾ã—ã„ã®ã¯

  ãƒã‚¤ãƒŠãƒªã¯ /usr/lib/ewb/3.2/bin ãŸã ã—ユーザãŒç›´æŽ¥å®Ÿè¡Œã™ã‚‹ã‚³ãƒžãƒ³ãƒ‰ã¯
 /usr/bin 以下ã«ç½®ãå¿…è¦ãŒã‚ã‚‹ã®ã§ link ã™ã‚‹ã‹ sh script ã‚’ç½®ãã‹ã€ã€ã€

  manual 㯠/usr/share/man 以下。

 shared file 㯠/usr/share/ewb/3.2/texmf ã«ã—ã¦ã€é‡ãŒå¤šã‘れ㰠_all.deb
ã¨ã—ã¦åˆ¥ãƒ‘ッケージã«ã™ã‚‹

ã¨ã„ã£ãŸæ„Ÿã˜ã˜ã‚ƒãªã„ã‹ã¨æ€ã„ã¾ã™ã€‚ãŒã€å…·ä½“çš„ã«ã©ã†ã™ã‚Œã°ã„ã„ã®ã‹ã¯
見ã¦ãªã„ã‚“ã§ã€‚

ã“ã“ã®ã¨ã“ã‚ sgmltools-lite ã‚„ã£ã¦ã¾ã™ãŒã“ã„ã¤ã¯ Makefile.in ã«

prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
datadir=@datadir@
DOCDIR=@prefix@/doc
mandir=@mandir@
sysconfdir=@sysconfdir@
etcdir=@etcsgml@

ã¨æ›¸ã‹ã‚Œã¦ã„ã¦ã€./configure ã§ãã‚Œãžã‚ŒæŒ‡å®šã§ãã¾ã™ã€‚

ãŒã€ã“ã‚Œã ã‘指定ã§ãã¦ã‚‚ã†ã¾ãã„ã‹ãªã„å ´åˆãŒã‚ã‚‹ã¿ãŸã„ã§ã€
 sgmltools-2 ã®ãƒ‘ッケージを見る㨠make install ã—ãŸå¾Œã«
 debian/rules ã§ã„ã‚ã„ã‚調整ã—ã¦ã¾ã™ã­ã€‚

# sgmltools-lite も何故ã‹ã†ã¾ãã„ã£ã¦ãªã‹ã£ãŸã‚Šã€‚
# ã¾ã‚ã€ã‚ã¾ã‚Šæ™‚é–“ã‚’ã‹ã‘られãªã‹ã£ãŸã‚Šã™ã‚‹ã›ã„ã‚‚ã‚ã‚‹ã¨æ€ã†ã®ã ã‘ã‚Œã©ã€‚

-- 
     # (ã‚ãŸã—ã®ãŠã†ã¡ã¯æµœæ¾å¸‚ã€ã€Œå¤œã®ãŠè“å­ã€ã§æœ‰åã•ã€‚)
    <kgh12351@xxxxxxxxxxx> : Taketoshi Sano (ä½é‡Žã€€æ­¦ä¿Š)