|
|
@@ -40,13 +40,13 @@ Distribution: OpenPKG [JUNK]
|
|
|
Group: Filesystem
|
|
|
License: BSD
|
|
|
Version: %{V_opkg}
|
|
|
-Release: 20030721
|
|
|
+Release: 20031001
|
|
|
|
|
|
# package options
|
|
|
%option with_fsl yes
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: http://www.magnicomp.com/download/rdist/rdist-%{V_base}-%{V_pl}.tar.gz
|
|
|
+Source0: ftp://ftp.rge.com/download/rdist/rdist-%{V_base}-%{V_pl}.tar.gz
|
|
|
Source1: rc.rdist
|
|
|
Source2: fsl.rdist
|
|
|
|
|
|
@@ -63,10 +63,9 @@ AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
%description
|
|
|
- RDist is an open source program to maintain identical copies of
|
|
|
- files over multiple hosts. It preserves the owner, group, mode,
|
|
|
- and mtime of files if possible and can update programs that are
|
|
|
- executing.
|
|
|
+ RDist maintains identical copies of files over multiple hosts.
|
|
|
+ It preserves the owner, group, mode, and mtime of files if
|
|
|
+ possible and can update programs that are executing.
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n rdist-%{V_base}-%{V_pl}
|
|
|
@@ -124,3 +123,17 @@ AutoReqProv: no
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+%post
|
|
|
+ # after upgrade, restart service
|
|
|
+ [ $1 -eq 2 ] || exit 0
|
|
|
+ eval `%{l_rc} rdist status 2>/dev/null`
|
|
|
+ [ ".$rdist_active" = .yes ] && %{l_rc} rdist restart
|
|
|
+ exit 0
|
|
|
+
|
|
|
+%preun
|
|
|
+ # before erase, stop service and remove log files
|
|
|
+ [ $1 -eq 0 ] || exit 0
|
|
|
+ %{l_rc} rdist stop 2>/dev/null
|
|
|
+ rm -f $RPM_INSTALL_PREFIX/var/rdist/rdist.log* >/dev/null 2>&1 || true
|
|
|
+ exit 0
|
|
|
+
|