Magellan Linux

Diff of /smage/trunk/include/systemd.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 11795 by niro, Wed Mar 18 09:52:05 2015 UTC revision 11796 by niro, Wed Aug 8 13:39:48 2018 UTC
# Line 5  Line 5 
5  INHERITS+=" systemd"  INHERITS+=" systemd"
6    
7  DEPEND="${DEPEND}  DEPEND="${DEPEND}
8   >= sys-apps/systemd-208"   >= sys-apps/systemd-230"
9    
10  SDEPEND="${SDEPEND}  SDEPEND="${SDEPEND}
11   >= sys-apps/systemd-dev-208   >= sys-apps/systemd-dev-230
12   >= dev-util/pkgconfig-0.27"   >= dev-util/pkgconfig-0.27"
13    
14  sminclude mtools  sminclude mtools
# Line 38  mget-systemd-preset-dir() Line 38  mget-systemd-preset-dir()
38   pkg-config systemd --variable=systemdsystempresetdir   pkg-config systemd --variable=systemdsystempresetdir
39  }  }
40    
41    mget-systemd-tmpfilesdir()
42    {
43     pkg-config systemd --variable=tmpfilesdir
44    }
45    
46    mget-systemd-sysusersdir()
47    {
48     pkg-config systemd --variable=sysusersdir
49    }
50    
51    mget-systemd-sysctldir()
52    {
53     pkg-config systemd --variable=sysctldir
54    }
55    
56  # installs systemd units  # installs systemd units
57  # minstallunit /path/to/unit-file {destfilename}  # minstallunit /path/to/unit-file {destfilename}
58  minstallunit()  minstallunit()
# Line 76  minstalltmp() Line 91  minstalltmp()
91  {  {
92   local tmpdfile   local tmpdfile
93   local file   local file
94     local tmpfilesdir="$(mget-systemd-tmpfilesdir)"
95    
96   [[ -z "$1" ]] && die "No tmpd file given"   [[ -z "$1" ]] && die "No tmpd file given"
97    
# Line 95  minstalltmp() Line 111  minstalltmp()
111   fi   fi
112    
113   # needed directory   # needed directory
114   minstalldir /etc/tmpfiles.d || die   minstalldir ${tmpfilesdir} || die
115    
116   # install our tmpdfile   # install our tmpdfile
117   minstallfile ${file} /etc/tmpfiles.d/${tmpdfile} || die   minstallfile ${file} ${tmpfilesdir}/${tmpdfile} || die
118  }  }

Legend:
Removed from v.11795  
changed lines
  Added in v.11796