aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-02-20 09:44:59 +0800
committermarcus <marcus@FreeBSD.org>2003-02-20 09:44:59 +0800
commit549d11db4ef013aa5eba239f1a01fafaa25dc41c (patch)
tree635c8ef54b37a17573983c4debef67f8247dd225 /x11
parent0e1743abd52240f6d223a513d22971d16d604c47 (diff)
downloadfreebsd-ports-gnome-549d11db4ef013aa5eba239f1a01fafaa25dc41c.tar.gz
freebsd-ports-gnome-549d11db4ef013aa5eba239f1a01fafaa25dc41c.tar.zst
freebsd-ports-gnome-549d11db4ef013aa5eba239f1a01fafaa25dc41c.zip
Properly install the config files when installing from package.
Diffstat (limited to 'x11')
-rw-r--r--x11/gdm/pkg-plist9
-rw-r--r--x11/gdm2/pkg-plist9
2 files changed, 18 insertions, 0 deletions
diff --git a/x11/gdm/pkg-plist b/x11/gdm/pkg-plist
index 6a225e49ec9e..c7e6f4a91977 100644
--- a/x11/gdm/pkg-plist
+++ b/x11/gdm/pkg-plist
@@ -8,22 +8,31 @@ bin/gdmmktemp
bin/gdmphotosetup
@unexec if cmp -s %D/etc/gdm/Init/Default %D/etc/gdm/Init/factory-Default; then rm -f %D/etc/gdm/Init/Default; fi
etc/gdm/Init/factory-Default
+@exec if [ ! -f %B/Default ] && cp %B/%f %B/Default
@unexec if cmp -s %D/etc/gdm/PostSession/Default %D/etc/gdm/PostSession/factory-Default; then rm -f %D/etc/gdm/PostSession/Default; fi
etc/gdm/PostSession/factory-Default
+@exec if [ ! -f %B/Default ] && cp %B/%f %B/Default
@unexec if cmp -s %D/etc/gdm/PreSession/Default %D/etc/gdm/PreSession/factory-Default; then rm -f %D/etc/gdm/PreSession/Default; fi
etc/gdm/PreSession/factory-Default
+@exec if [ ! -f %B/Default ] && cp %B/%f %B/Default
@unexec if cmp -s %D/etc/gdm/Sessions/Gnome %D/etc/gdm/Sessions/factory-Gnome; then rm -f %D/etc/gdm/Sessions/Gnome; fi
etc/gdm/Sessions/factory-Gnome
+@exec if [ ! -f %B/Gnome ] && cp %B/%f %B/Gnome
@unexec if cmp -s %D/etc/gdm/Sessions/Xsession %D/etc/gdm/Sessions/factory-Xsession; then rm -f %D/etc/gdm/Sessions/Xsession; fi
etc/gdm/Sessions/factory-Xsession
+@exec if [ ! -f %B/Xsession ] && cp %B/%f %B/Xsession
@unexec if cmp -s %D/etc/gdm/XKeepsCrashing %D/etc/gdm/factory-XKeepsCrashing; then rm -f %D/etc/gdm/XKeepsCrashing; fi
etc/gdm/factory-XKeepsCrashing
+@exec if [ ! -f %B/XKeepsCrashing ] && cp %B/%f %B/XKeepsCrashing
@unexec if cmp -s %D/etc/gdm/gnomerc %D/etc/gdm/factory-gnomerc; then rm -f %D/etc/gdm/gnomerc; fi
etc/gdm/factory-gnomerc
+@exec if [ ! -f %B/gnomerc ] && cp %B/%f %B/gnomerc
@unexec if cmp -s %D/etc/gdm/gdm.conf %D/etc/gdm/factory-gdm.conf; then rm -f %D/etc/gdm/gdm.conf; fi
etc/gdm/factory-gdm.conf
+@exec if [ ! -f %B/gdm.conf ] && cp %B/%f %B/gdm.conf
@unexec if cmp -s %D/etc/gdm/locale.alias %D/etc/gdm/factory-locale.alias; then rm -f %D/etc/gdm/locale.alias; fi
etc/gdm/factory-locale.alias
+@exec if [ ! -f %B/locale.alias ] && cp %B/%f %B/locale.alias
%%PAM_MISC%%sbin/gdmaskpass
sbin/gdm-restart
sbin/gdm-safe-restart
diff --git a/x11/gdm2/pkg-plist b/x11/gdm2/pkg-plist
index 269c2f7e39ca..4e1fdfd8a133 100644
--- a/x11/gdm2/pkg-plist
+++ b/x11/gdm2/pkg-plist
@@ -12,22 +12,31 @@ bin/gdmsetup
bin/gdmthemetester
@unexec if cmp -s %D/etc/gdm/Init/Default %D/etc/gdm/Init/factory-Default; then rm -f %D/etc/gdm/Init/Default; fi
etc/gdm/Init/factory-Default
+@exec if [ ! -f %B/Default ] && cp %B/%f %B/Default
@unexec if cmp -s %D/etc/gdm/PostSession/Default %D/etc/gdm/PostSession/factory-Default; then rm -f %D/etc/gdm/PostSession/Default; fi
etc/gdm/PostSession/factory-Default
+@exec if [ ! -f %B/Default ] && cp %B/%f %B/Default
@unexec if cmp -s %D/etc/gdm/PreSession/Default %D/etc/gdm/PreSession/factory-Default; then rm -f %D/etc/gdm/PreSession/Default; fi
etc/gdm/PreSession/factory-Default
+@exec if [ ! -f %B/Default ] && cp %B/%f %B/Default
@unexec if cmp -s %D/etc/gdm/Sessions/Gnome %D/etc/gdm/Sessions/factory-Gnome; then rm -f %D/etc/gdm/Sessions/Gnome; fi
etc/gdm/Sessions/factory-Gnome
+@exec if [ ! -f %B/Gnome ] && cp %B/%f %B/Gnome
@unexec if cmp -s %D/etc/gdm/Sessions/Xsession %D/etc/gdm/Sessions/factory-Xsession; then rm -f %D/etc/gdm/Sessions/Xsession; fi
etc/gdm/Sessions/factory-Xsession
+@exec if [ ! -f %B/Xsession ] && cp %B/%f %B/Xsession
@unexec if cmp -s %D/etc/gdm/XKeepsCrashing %D/etc/gdm/factory-XKeepsCrashing; then rm -f %D/etc/gdm/XKeepsCrashing; fi
etc/gdm/factory-XKeepsCrashing
+@exec if [ ! -f %B/XKeepsCrashing ] && cp %B/%f %B/XKeepsCrashing
@unexec if cmp -s %D/etc/gdm/gnomerc %D/etc/gdm/factory-gnomerc; then rm -f %D/etc/gdm/gnomerc; fi
etc/gdm/factory-gnomerc
+@exec if [ ! -f %B/gnomerc ] && cp %B/%f %B/gnomerc
@unexec if cmp -s %D/etc/gdm/gdm.conf %D/etc/gdm/factory-gdm.conf; then rm -f %D/etc/gdm/gdm.conf; fi
etc/gdm/factory-gdm.conf
+@exec if [ ! -f %B/gdm.conf ] && cp %B/%f %B/gdm.conf
@unexec if cmp -s %D/etc/gdm/locale.alias %D/etc/gdm/factory-locale.alias; then rm -f %D/etc/gdm/locale.alias; fi
etc/gdm/factory-locale.alias
+@exec if [ ! -f %B/locale.alias ] && cp %B/%f %B/locale.alias
etc/rc.d/gdm.sh.sample
sbin/gdm-restart
sbin/gdm-safe-restart