introduce /usr/{,local/}libexec directories auto/th/FHS-3.0-2
authorTomasz Pala <gotar@pld-linux.org>
Thu, 6 Jul 2017 09:41:42 +0000 (11:41 +0200)
committerTomasz Pala <gotar@pld-linux.org>
Thu, 6 Jul 2017 09:41:42 +0000 (11:41 +0200)
https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html

Note, that /usr/local/libexec is not mentioned explicitly in
https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#requirements10,
but rationale behind both libexec and local hierarchy allow us to treat
this as lib<qual>.

Since /usr/local/libexec should exist for GNU applications according to
https://www.gnu.org/prep/standards/html_node/Directory-Variables.html,
we must provide /usr/libexec directory as well to met FHS requirements.

FHS.spec

index f92f73720f05aabb335fba24b5446f6901918105..3291fdd6afe2e7e3db0cdd0b1d75beabf48f8923 100644 (file)
--- a/FHS.spec
+++ b/FHS.spec
@@ -12,7 +12,7 @@ Summary(pl.UTF-8):    Podstawowy układ katalogów systemu Linux zgodny z FHS 3.0
 Summary(tr.UTF-8):     Temel dosya sistemi yapısı
 Name:          FHS
 Version:       3.0
-Release:       1
+Release:       2
 License:       GPL
 Group:         Base
 URL:           http://refspecs.linuxfoundation.org/fhs.shtml
@@ -83,10 +83,10 @@ install -d \
        $RPM_BUILD_ROOT/etc/{X11,opt} \
        $RPM_BUILD_ROOT/lib/modules \
        $RPM_BUILD_ROOT/{mnt,media,proc,root/tmp,sbin,tmp} \
-       $RPM_BUILD_ROOT/usr/{bin,games,include,lib,sbin,share,src} \
+       $RPM_BUILD_ROOT/usr/{bin,games,include,lib{,exec},sbin,share,src} \
        $RPM_BUILD_ROOT/usr/share/{color/icc,dict,doc,games,info,misc,ppd,tmac,xml} \
        $RPM_BUILD_ROOT/usr/lib/games \
-       $RPM_BUILD_ROOT/usr/local/{bin,etc,games,include,lib,sbin,share/{color/icc,doc,info,man},src} \
+       $RPM_BUILD_ROOT/usr/local/{bin,etc,games,include,lib{,exec},sbin,share/{color/icc,doc,info,man},src} \
        $RPM_BUILD_ROOT/var/{cache,crash,db,games,lib/{color/icc,misc},local,lock,log,mail,opt,run,spool,tmp,yp}
 
 %if %{with lib64}
@@ -165,6 +165,7 @@ posix.chown("/var/lock", 0, %{gid_uucp})
 %dir /usr/games
 %dir /usr/include
 %dir /usr/lib
+%dir /usr/libexec
 %dir /usr/lib/games
 %dir /usr/sbin
 %dir /usr/share
@@ -187,6 +188,7 @@ posix.chown("/var/lock", 0, %{gid_uucp})
 %dir /usr/local/games
 %dir /usr/local/include
 %dir /usr/local/lib
+%dir /usr/local/libexec
 %dir /usr/local/sbin
 %dir /usr/local/share
 %dir /usr/local/share/color
This page took 0.073059 seconds and 4 git commands to generate.