gdm: use make_dirs.
This commit is contained in:
parent
d0fee20d2f
commit
3df6cebd52
2 changed files with 9 additions and 8 deletions
|
@ -3,11 +3,6 @@
|
|||
#
|
||||
case "${ACTION}" in
|
||||
post)
|
||||
if [ ! -d var/log/gdm ]; then
|
||||
mkdir -p var/log/gdm
|
||||
chown root:gdm var/log/gdm
|
||||
fi
|
||||
[ ! -d var/cache/gdm ] && mkdir -p var/cache/gdm
|
||||
chown gdm:gdm var/lib/gdm > /dev/null
|
||||
chown -R gdm:gdm var/lib/gdm/.gconf.mandatory
|
||||
dconf update
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'gdm'
|
||||
pkgname=gdm
|
||||
version=3.2.1.1
|
||||
revision=1
|
||||
revision=2
|
||||
distfiles="${GNOME_SITE}/$pkgname/3.2/$pkgname-$version.tar.xz"
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-schemas-install --disable-scrollkeeper
|
||||
|
@ -36,7 +36,14 @@ conf_files="
|
|||
/etc/pam.d/gdm-smartcard
|
||||
/etc/pam.d/gdm-welcome"
|
||||
|
||||
keep_empty_dirs=yes
|
||||
# Required runtime directories.
|
||||
make_dirs="
|
||||
/var/cache/gdm 1755 root gdm
|
||||
/var/log/gdm 1755 root gdm
|
||||
/var/lib/gdm/.config/dconf 0755 gdm gdm
|
||||
/var/lib/gdm/.local/share/applications 0755 gdm gdm
|
||||
"
|
||||
|
||||
subpackages="gdm-devel"
|
||||
gconf_schemas="gdm.schemas"
|
||||
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
||||
|
@ -108,7 +115,6 @@ post_install()
|
|||
gconf-merge-schema ${DESTDIR}/usr/share/gconf/schemas/${gconf_schemas} \
|
||||
--domain ${pkgname} ${wrksrc}/*.schemas
|
||||
|
||||
rm -rf ${DESTDIR}/var/run ${DESTDIR}/var/gdm
|
||||
chmod 1770 ${DESTDIR}/var/log/gdm
|
||||
chmod 700 ${DESTDIR}/var/lib/gdm/.config/dconf
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue