diff options
-rwxr-xr-x | bin/fndSession | 66 | ||||
-rw-r--r-- | mandrake_desk.spec | 179 | ||||
-rwxr-xr-x | sbin/fndSession | 67 |
3 files changed, 312 insertions, 0 deletions
diff --git a/bin/fndSession b/bin/fndSession new file mode 100755 index 0000000..baf45da --- /dev/null +++ b/bin/fndSession @@ -0,0 +1,66 @@ +#!/bin/sh +# fndSession (c) MandrakeSoft +# Chmouel Boudjnah <chmouel@mandrakesoft.com> + +LIST="SessionTypes" + +[ -x /usr/bin/kde ] && { +LIST="$LIST=kde"; FIRST=yes +} +[ -x /usr/bin/gnome-session ] && { + if [ "$FIRST" = "yes" ];then + LIST="$LIST;gnome" + else + LIST="$LIST=gnome" + FIRST="yes" + fi +} +[ -e /usr/share/apps/switchdesk/Xclients.anotherlevel ] && { + if [ "$FIRST" = "yes" ];then + LIST="$LIST;anotherlevel" + else + LIST="$LIST=anotherlevel" + FIRST="yes" + fi +} + +[ -x /usr/X11R6/bin/wmaker ] && { + if [ "$FIRST" = "yes" ];then + LIST="$LIST;WindowMaker" + else + LIST="$LIST=WindowMaker" + FIRST="yes" + fi +} +[ -x /usr/X11R6/bin/afterstep ] && { + if [ "$FIRST" = "yes" ];then + LIST="$LIST;AfterStep" + else + LIST="$LIST=AfterStep" + FIRST="yes" + fi +} +[ -x /usr/X11R6/bin/icewm ] && { + if [ "$FIRST" = "yes" ];then + LIST="$LIST;Icewm" + else + LIST="$LIST=Icewm" + FIRST="yes" + fi +} +[ -x /usr/bin/xfce ] && { + if [ "$FIRST" = "yes" ];then + LIST="$LIST;Xfce" + else + LIST="$LIST=Xfce" + FIRST="yes" + fi +} + +if [ $FIRST = "yes" ];then + LIST="$LIST;default;failsafe;" +else + LIST="$LIST=default;failsafe;" +fi +sed "s/^SessionTypes.*/"$LIST"/" /usr/share/config/kdmrc > /tmp/$$.kdmrc && \ +mv /tmp/$$.kdmrc /usr/share/config/kdmrc diff --git a/mandrake_desk.spec b/mandrake_desk.spec new file mode 100644 index 0000000..cac6073 --- /dev/null +++ b/mandrake_desk.spec @@ -0,0 +1,179 @@ +%define version 0.9.8 +%define release 9mdk +%define name mandrake_desk + +Summary: The Desktop configuration files for Linux Mandrake. +Name: %{name} +Version: %{version} +Release: %{release} +Copyright: GPL +Group: Base +Icon: mandrake-small.xpm +BuildRoot: /tmp/%{name}-buildroot +Source: mandrake_desk-%{version}.tar.bz2 +BuildArchitectures: noarch +BuildRequires: ImageMagick + +%description +This package contains useful icons background and .kdelnk files for +the Mandrake desktop. + +%changelog +* Fri Dec 17 1999 Pixel <pixel@mandrakesoft.com> +- add perl script to remove icons pointing to binaries not present + +* Thu Dec 16 1999 Pixel <pixel@mandrakesoft.com> +- new icons + +* Thu Dec 16 1999 François PONS <fpons@mandrakesoft.com> +- removed Cd-Rom.kdelnk and floppy.kdelnk, since handled by DrakX. + +* Mon Dec 13 1999 Pablo Saratxaga <pablo@mandrakesoft.com> +- reordered the mess with the *.kdelnk translations +- put old files in a old/ directory (the translations inside them + can be handy if a similar icon is needed in the future) + +* Fri Dec 10 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Remove my CVS DIR :\. + +* Fri Dec 10 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Remove Hwiz.kdelnk +- Add/Remove icons. +- A lots of new icons (heléne). +- Add the doc. + +* Mon Dec 06 1999 Pablo Saratxaga <pablo@mandrakesoft.com> +- added ca, cs, gl language + +* Mon Nov 15 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Add Hwiz.kdelnk to Autostart kde. + +* Thu Nov 04 1999 Pablo Saratxaga <pablo@mandrakesoft.com> +- changed the type of icons for CD and floppy + +* Mon Oct 25 1999 Pablo Saratxaga <pablo@mandrakesoft.com> +- added da, br, sk, uk translations + +* Mon Oct 04 1999 Pablo Saratxaga <pablo@mandrakesoft.com> +- added lt, ru translations +- added kdelnk/Dos_C.kdelnk icon (will be used as a pattern + by initscripts' kdeicons when creating icons for the FAT partitions) +- the horribly big *.xpm backgrounds are now created at %install time + with 'convert'; that way we avoid the bzip2 taking forever each time + a new version is done. + +* Fri Sep 28 1999 Pablo Saratxaga <pablo@mandrakesoft.com> +- added de, is, it, ro translations + +* Tue Sep 14 1999 Pablo Saratxaga <pablo@mandrakesoft.com> +- added Gaeilge (irish gaelic) translations + +* Thu Sep 02 1999 Pablo Saratxaga <pablo@mandrakesoft.com> +- included translations in several languages (et,hr,hu,id,nl,no) + Currently covered are: es,et,fr,hr,hu,id,nl,no,wa you are welcome + to add descriptions for the missing languages, get in touch with me. + +* Wed Aug 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Launch kpackage with kdesu. +- Add script to launch this fu***ng linuxconf as kdesu (i love to do awfull + thing :-(( ). + +* Fri Aug 20 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Fix another typo :-((. + +* Fri Aug 20 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Move floppy.kdelnk to FLOPPY.kdelnk for backward compatibilities. + +* Fri Aug 20 1999 Pablo Saratxaga <pablo@mandrakesoft.com> +- included norwegian nad indonesian texts for icons + +* Wed Aug 18 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Rebuild with defattr(root,root). (Thanks to Michael Irving <laric@laric.com>) + +* Wed Aug 18 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Reinsert {FLOPPY,CDROM} and remove from kdesupport. + +* Tue Aug 03 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Remove {FLOPPY,CDROM} (already in kdesupport). + +* Mon Aug 02 1999 Pablo Saratxaga <pablo@mandrakesoft.com> +- desktop-links/* for gmc are installed through gmc package +- put an icon for the rpm + +* Wed Jul 21 1999 Pablo Saratxaga <pablo@mandrakesoft.com> +- added some stuff for Gnome + +* Wed Jul 21 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Relifting of kde link. +- Add link for gnome. + +* Tue Jul 20 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Add new icons. + +* Mon Jul 19 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Add mandrake backgrounds xpm. + +* Mon Jul 12 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Fix background to backgrounds. +- Add mandrake background images. + +* Sat May 22 1999 Gaël Duval <gael@linux-mandrake.com> +- fixed bad owner/group files +- added PRINTER.kdelnk + +* Wed May 12 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Fix url of kde links. + +* Sat May 01 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> +- Add new icons. + +%prep +rm -rf $RPM_BUILD_ROOT + +%setup + +%build + +%install + +mkdir -p $RPM_BUILD_ROOT/usr/bin/ +cp -af bin/* $RPM_BUILD_ROOT/usr/bin + +mkdir -p $RPM_BUILD_ROOT/usr/sbin/ +cp -af sbin/* $RPM_BUILD_ROOT/usr/sbin + +mkdir -p $RPM_BUILD_ROOT/usr/share/icons/ +cp -arf icons/*.xpm $RPM_BUILD_ROOT/usr/share/icons/ + +mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/backgrounds/ +cp -arf backgrounds $RPM_BUILD_ROOT/usr/share/pixmaps/backgrounds/mandrake +pushd $RPM_BUILD_ROOT/usr/share/pixmaps/backgrounds/mandrake && { + for i in *.jpg ; do convert $i `basename $i .jpg`.xpm ; done +} && popd + +mkdir -p $RPM_BUILD_ROOT/etc/skel/Desktop +cp -avrf kdelnk/* $RPM_BUILD_ROOT/etc/skel/Desktop/ +rm -f $RPM_BUILD_ROOT/etc/skel/Desktop/floppy.kdelnk +rm -f $RPM_BUILD_ROOT/etc/skel/Desktop/Cd-Rom.kdelnk + +# for Gnome +mkdir -p $RPM_BUILD_ROOT/usr/share/gnome/apps/Internet +mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/mdk + +install -m 655 icons/magic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/mdk +install -m 655 icons/mandrake* $RPM_BUILD_ROOT/usr/share/pixmaps/mdk +install -m 655 gnome/Netscape.desktop $RPM_BUILD_ROOT/usr/share/gnome/apps/Internet + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc TRANSLATORS special/* +/usr/bin/* +/usr/sbin/* +/usr/share/icons/* +/usr/share/pixmaps/backgrounds/mandrake +/etc/skel/Desktop/ +/usr/share/pixmaps/mdk +/usr/share/gnome/apps/Internet/*.desktop diff --git a/sbin/fndSession b/sbin/fndSession new file mode 100755 index 0000000..23c142c --- /dev/null +++ b/sbin/fndSession @@ -0,0 +1,67 @@ +#!/bin/sh +# fndSession (c) MandrakeSoft +# Chmouel Boudjnah <chmouel@mandrakesoft.com> + +LIST="SessionTypes" +TMP=`mktemp /tmp/.kdm.XXXXXX` + +[ -x /usr/bin/kde ] && { +LIST="$LIST=kde"; FIRST=yes +} +[ -x /usr/bin/gnome-session ] && { + if [ "$FIRST" = "yes" ];then + LIST="$LIST;gnome" + else + LIST="$LIST=gnome" + FIRST="yes" + fi +} +[ -e /usr/share/apps/switchdesk/Xclients.anotherlevel ] && { + if [ "$FIRST" = "yes" ];then + LIST="$LIST;anotherlevel" + else + LIST="$LIST=anotherlevel" + FIRST="yes" + fi +} + +[ -x /usr/X11R6/bin/wmaker ] && { + if [ "$FIRST" = "yes" ];then + LIST="$LIST;WindowMaker" + else + LIST="$LIST=WindowMaker" + FIRST="yes" + fi +} +[ -x /usr/X11R6/bin/afterstep ] && { + if [ "$FIRST" = "yes" ];then + LIST="$LIST;AfterStep" + else + LIST="$LIST=AfterStep" + FIRST="yes" + fi +} +[ -x /usr/X11R6/bin/icewm ] && { + if [ "$FIRST" = "yes" ];then + LIST="$LIST;Icewm" + else + LIST="$LIST=Icewm" + FIRST="yes" + fi +} +[ -x /usr/bin/xfce ] && { + if [ "$FIRST" = "yes" ];then + LIST="$LIST;Xfce" + else + LIST="$LIST=Xfce" + FIRST="yes" + fi +} + +if [ $FIRST = "yes" ];then + LIST="$LIST;default;failsafe;" +else + LIST="$LIST=default;failsafe;" +fi +sed "s/^SessionTypes.*/"$LIST"/" /usr/share/config/kdmrc > $TMP && \ +mv $TMP /usr/share/config/kdmrc |