Magellan Linux

Diff of /trunk/include/systemd.sminc

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

revision 19668 by niro, Wed Oct 9 13:09:29 2013 UTC revision 31745 by niro, Thu Dec 6 14:12:13 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   >= dev-util/pkgconfig-0.27"   >= dev-util/pkgconfig-0.27"
# Line 27  mget-systemd-unit-dir() Line 27  mget-systemd-unit-dir()
27   pkg-config systemd --variable=systemdsystemunitdir   pkg-config systemd --variable=systemdsystemunitdir
28  }  }
29    
30    mget-systemd-user-unit-dir()
31    {
32     pkg-config systemd --variable=systemduserunitdir
33    }
34    
35  mget-systemd-util-dir()  mget-systemd-util-dir()
36  {  {
37   pkg-config systemd --variable=systemdutildir   pkg-config systemd --variable=systemdutildir
# Line 37  mget-systemd-preset-dir() Line 42  mget-systemd-preset-dir()
42   pkg-config systemd --variable=systemdsystempresetdir   pkg-config systemd --variable=systemdsystempresetdir
43  }  }
44    
45    mget-systemd-tmpfilesdir()
46    {
47     pkg-config systemd --variable=tmpfilesdir
48    }
49    
50    mget-systemd-sysusersdir()
51    {
52     pkg-config systemd --variable=sysusersdir
53    }
54    
55    mget-systemd-sysctldir()
56    {
57     pkg-config systemd --variable=sysctldir
58    }
59    
60  # installs systemd units  # installs systemd units
61  # minstallunit /path/to/unit-file {destfilename}  # minstallunit /path/to/unit-file {destfilename}
62  minstallunit()  minstallunit()
# Line 75  minstalltmp() Line 95  minstalltmp()
95  {  {
96   local tmpdfile   local tmpdfile
97   local file   local file
98     local tmpfilesdir="$(mget-systemd-tmpfilesdir)"
99    
100   [[ -z "$1" ]] && die "No tmpd file given"   [[ -z "$1" ]] && die "No tmpd file given"
101    
# Line 94  minstalltmp() Line 115  minstalltmp()
115   fi   fi
116    
117   # needed directory   # needed directory
118   minstalldir /etc/tmpfiles.d || die   minstalldir ${tmpfilesdir} || die
119    
120   # install our tmpdfile   # install our tmpdfile
121   minstallfile ${file} /etc/tmpfiles.d/${tmpdfile} || die   minstallfile ${file} ${tmpfilesdir}/${tmpdfile} || die
122  }  }

Legend:
Removed from v.19668  
changed lines
  Added in v.31745