[Lunar-commits] <moonbase-core> fhs: added Filesystem Hierarchy Standard
Peter de Ridder
peter at lunar-linux.org
Thu Sep 5 20:03:38 CEST 2013
commit 9fa14df7c7b4c1e0077cff7f08760934656f5ae6
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Thu, 29 Aug 2013 12:16:50 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/9fa14df7c7b4c1e0077cff7f08760934656f5ae6
fhs: added Filesystem Hierarchy Standard
---
filesys/fhs/BUILD | +46/-0
filesys/fhs/DETAILS | +13/-0
filesys/fhs/PRE_BUILD | +1/-0
3 files changed, 60 insertions(+)
--- /dev/null
+++ b/filesys/fhs/BUILD
@@ -0,0 +1,46 @@
+prepare_install &&
+
+# / Requirements
+mkdir -p /{bin,boot,dev,etc,lib,media,mnt,opt,sbin,srv,tmp,usr,var} &&
+
+# / Specific Options
+mkdir -p /{home,root} &&
+
+# /etc Requirements
+mkdir -p /etc/opt &&
+
+# /etc Specific Options
+ln -sf /proc/self/mounts /etc/mtab &&
+
+# /lib Specific Options
+mkdir -p /lib/modules &&
+
+# /usr Requirements
+mkdir -p /usr/{bin,include,lib,local,sbin,share} &&
+
+# /usr Specific Options
+mkdir -p /usr/{games,src} &&
+
+# /usr/local Requirements
+mkdir -p /usr/local/{bin,etc,games,include,lib,man,sbin,share,src} &&
+
+# /usr/share Requirements
+mkdir -p /usr/share/{man,misc} &&
+
+# /usr/share Specific Options
+mkdir -p /usr/share/games &&
+
+# /var Requirements
+mkdir -p /var/{cache,lib,local,log,opt,spool,tmp} &&
+# /var Systemd addition
+ln -sfT ../run /var/run &&
+ln -sfT ../run/lock /var/lock &&
+
+# /var Specific Options
+mkdir -p /var/games &&
+
+# Linux addition
+mkdir -p /{proc,sys} &&
+
+# / Systemd addition
+mkdir -p /run/lock
--- /dev/null
+++ b/filesys/fhs/DETAILS
@@ -0,0 +1,13 @@
+ MODULE=fhs
+ VERSION=2.3
+ WEB_SITE=http://refspecs.linuxfoundation.org/fhs.shtml
+ ENTERED=20130829
+ UPDATED=20130829
+ SHORT="Filesystem Hierarchy Standard"
+
+cat << EOF
+This package contains the directories specified by the Filesystem
+Hierarchy Standard.
+
+Directories required by systemd are also added.
+EOF
--- /dev/null
+++ b/filesys/fhs/PRE_BUILD
@@ -0,0 +1 @@
+:
More information about the Lunar-commits
mailing list