aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2002-07-11 19:58:54 +0000
committerFritz Elfert <felfert@to.com>2002-07-11 19:58:54 +0000
commit9a94583b37fd04459ee617513651c24847c28d60 (patch)
tree7378cde87f8a15ecdb0809bd2ea48fd31360f895 /etc
parent316e6579b44080c5f7815fe991ccebedd9b04570 (diff)
downloadplptools-9a94583b37fd04459ee617513651c24847c28d60.tar.gz
plptools-9a94583b37fd04459ee617513651c24847c28d60.tar.bz2
plptools-9a94583b37fd04459ee617513651c24847c28d60.zip
- Added missing icon
- RPM fixes for SuSE
Diffstat (limited to 'etc')
-rw-r--r--etc/plptools.spec.in34
1 files changed, 29 insertions, 5 deletions
diff --git a/etc/plptools.spec.in b/etc/plptools.spec.in
index f8989a5..6c43776 100644
--- a/etc/plptools.spec.in
+++ b/etc/plptools.spec.in
@@ -1,7 +1,9 @@
+%define myrelease 1
%define srel /etc/SuSE-release
%define rrel /etc/redhat-release
%define isSUSE %(test -f %{srel} && echo 1 || echo 0)
%define isRH %(test -f %{rrel} && echo 1 || echo 0)
+%define distro ""
%if "%{isSUSE}" > "0"
%define REL %(grep VERSION %{srel} | sed -e 's/VERSION = //')
@@ -11,16 +13,19 @@
%else
%define _initrddir %{_sysconfdir}/init.d
%endif
+%define distro SuSE%{REL}
%endif
%if "%{isRH}" > "0"
%define REL %(rpm -q --queryformat '%%{version}' redhat-release)
+%define distro RH%{REL}
%endif
+%define realrelease %{myrelease}%{distro}
Summary: Connectivity for psion series 5.
Name: plptools
%define version @VERSION@
Version: %{version}
-Release: 1
+Release: %{realrelease}
Vendor: The plptools project
Packager: Fritz Elfert <fritz.elfert@to.com>
URL: http://plptools.sourceforge.net/
@@ -200,9 +205,24 @@ test ! -d /mnt/psion && mkdir -p /mnt/psion
/sbin/chkconfig --add psion
%else
(
- grep -v START_PSION /etc/rc.config
- echo '# Set START_PSION to yes to start Psion support'
- echo 'START_PSION=yes'
+ grep -v START_PSION /etc/rc.config | \
+ grep -v NCPD_ARGS | grep -v START_PLPNFSD | \
+ grep -v PLPNFSD_ARGS | grep -v START_PLPPRINTD | \
+ grep -v PLPPRINTD_ARGS
+ cat<<-EOF
+ # Set START_PSION to yes to start Psion support
+ START_PSION=yes
+ # Specify parameters for ncpd in NCPD_ARGS (if any)
+ NCPD_ARGS=
+ # Set START_PLPNFSD to yes to start plpnfsd
+ START_PLPNFSD=yes
+ # Specify parameters for plpnfsd in PLPNFSD_ARGS (if any)
+ PLPNFSD_ARGS=
+ # Set START_PLPPRINTD to yes to start plpprintd
+ START_PLPPRINTD=yes
+ # Specify parameters for plpprintd in PLPPRINTD_ARGS (if any)
+ PLPPRINTD_ARGS=
+ EOF
) > /etc/rc.config.$$
cp /etc/rc.config /etc/rc.config.old && mv /etc/rc.config.$$ /etc/rc.config
/sbin/insserv -d psion
@@ -229,6 +249,9 @@ fi
if [ "$1" = 0 ]
then
%{_initrddir}/psion stop >/dev/null 2>&1
+ KONQRC=`kde-config --expandvars --install config`/konquerorrc
+ grep -v 'askSaveinode/x-psion-drive=' $KONQRC > /tmp/$$
+ mv /tmp/$$ $KONQRC
%if "%{isSUSE}" > "0"
%if "%{REL}" >= "8.0"
/sbin/chkconfig --del psion
@@ -242,7 +265,7 @@ then
fi
%files
-%doc COPYING INSTALL CHANGES README* TODO etc/*magic patches
+%doc COPYING INSTALL CHANGES ChangeLog README TODO etc/*magic patches
%{_bindir}/plpftp
%{_bindir}/plpbackup
%{_bindir}/sisinstall
@@ -275,6 +298,7 @@ fi
%{_datadir}/services/*
%{_datadir}/icons/*/*/mimetypes/*
%{_datadir}/icons/*/*/devices/*
+%{_datadir}/icons/*/*/apps/psion*
%{_datadir}/locale/*/LC_MESSAGES/libplpprops.mo
%{_datadir}/mimelnk/*/*