Changeset 2089 for trunk/server/fedora/specs
- Timestamp:
- Dec 11, 2011, 4:33:10 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/fedora/specs/openafs-systemd.spec.patch
r2066 r2089 1 --- rpmbuild/SPECS/openafs.spec.orig 2011-10-17 23:46:35.000000000 -04002 +++ rpmbuild/SPECS/openafs.spec 2011-10-17 23:48:41.000000000 -04001 --- openafs.spec.orig 2011-12-11 03:16:10.725175932 -0500 2 +++ openafs.spec 2011-12-11 04:22:10.313676135 -0500 3 3 @@ -224,7 +224,7 @@ 4 4 BuildRoot: %{_tmppath}/%{name}-%{version}-root … … 10 10 BuildRequires: perl-devel perl-ExtUtils-Embed 11 11 %endif 12 @@ -32 3,6 +323,12 @@12 @@ -326,6 +326,12 @@ 13 13 %package client 14 14 Provides: scripts-openafs-client … … 23 23 %if %{fedorakmod} 24 24 Requires: %{name}-kmod >= %{version} 25 @@ -3 47,6 +353,12 @@25 @@ -350,6 +356,12 @@ 26 26 Requires: openafs = %{version} 27 27 Summary: OpenAFS Filesystem Server … … 36 36 %description server 37 37 The AFS distributed filesystem. AFS is a distributed filesystem 38 @@ - 999,7 +1011,12 @@38 @@ -1005,7 +1017,12 @@ 39 39 mkdir -p $RPM_BUILD_ROOT%{_sbindir} 40 40 mkdir -p $RPM_BUILD_ROOT%{_libdir} … … 49 49 mkdir -p $RPM_BUILD_ROOT%{pamdir} 50 50 mkdir -p $RPM_BUILD_ROOT%{_prefix}/afs/etc 51 @@ -10 29,8 +1046,14 @@51 @@ -1035,8 +1052,14 @@ 52 52 53 53 # Copy root.client config files … … 64 64 # Copy PAM modules 65 65 install -m 755 ${sysname}/dest/lib/pam* $RPM_BUILD_ROOT%{pamdir} 66 @@ -131 0,7 +1333,14 @@66 @@ -1318,7 +1341,14 @@ 67 67 fi 68 68 … … 79 79 mkdir /afs 80 80 chown root.root /afs 81 @@ -13 27,10 +1357,17 @@81 @@ -1335,10 +1365,17 @@ 82 82 83 83 %post server … … 97 97 %if %{build_authlibs} 98 98 %post authlibs 99 @@ -13 46,16 +1383,45@@99 @@ -1354,16 +1391,37 @@ 100 100 fi 101 101 … … 129 129 +%postun client 130 130 +/bin/systemctl daemon-reload >/dev/null 2>&1 || : 131 +if [ $1 -ge 1 ] ; then132 + # Package upgrade, not uninstall133 + /bin/systemctl try-restart openafs-client.service >/dev/null 2>&1 || :134 +fi135 131 + 136 132 +%postun server 137 133 +/bin/systemctl daemon-reload >/dev/null 2>&1 || : 138 +if [ $1 -ge 1 ] ; then139 + # Package upgrade, not uninstall140 + /bin/systemctl try-restart openafs-server.service >/dev/null 2>&1 || :141 +fi142 134 143 135 %if %{build_dkmspkg} 144 136 %post -n dkms-%{name} 145 @@ -14 13,6 +1479,32@@137 @@ -1421,6 +1479,24 @@ 146 138 %endif 147 139 %endif … … 153 145 +/usr/bin/systemd-sysv-convert --save openafs-client >/dev/null 2>&1 ||: 154 146 + 155 +# If the package is allowed to autostart: 156 +/bin/systemctl --no-reload enable openafs-client.service >/dev/null 2>&1 ||: 157 + 158 +# Run these because the SysV package being removed won't do them 147 +# Run this because the SysV package being removed won't do it 159 148 +/sbin/chkconfig --del openafs-client >/dev/null 2>&1 || : 160 +/bin/systemctl try-restart openafs-client.service >/dev/null 2>&1 || :161 149 + 162 150 +%triggerun -- openafs-server < 1.6.0-1 … … 166 154 +/usr/bin/systemd-sysv-convert --save openafs-server >/dev/null 2>&1 ||: 167 155 + 168 +# If the package is allowed to autostart: 169 +/bin/systemctl --no-reload enable openafs-server.service >/dev/null 2>&1 ||: 170 + 171 +# Run these because the SysV package being removed won't do them 156 +# Run this because the SysV package being removed won't do it 172 157 +/sbin/chkconfig --del openafs-server >/dev/null 2>&1 || : 173 +/bin/systemctl try-restart openafs-server.service >/dev/null 2>&1 || :174 158 + 175 159 ############################################################################## 176 160 ### 177 161 ### file lists 178 @@ -145 0,7 +1542,12 @@162 @@ -1458,7 +1534,12 @@ 179 163 %{pamdir}/pam_afs.krb.so 180 164 %{pamdir}/pam_afs.so.1 … … 189 173 %{_mandir}/man1/copyauth.* 190 174 %{_mandir}/man1/up.* 191 @@ -1 498,7 +1595,11 @@175 @@ -1506,7 +1587,11 @@ 192 176 %{_sbindir}/vldb_check 193 177 %{_sbindir}/vldb_convert
Note: See TracChangeset
for help on using the changeset viewer.