From 4e3ceaccd9dc2b6e6a20e938d82af1ebaa2c43c8 Mon Sep 17 00:00:00 2001 From: Stephan Wiesand Date: Thu, 21 Nov 2013 10:44:05 +0100 Subject: [PATCH] redhat: don't package kpasswd While kpasswd was in the separate openafs-kpasswd package to avoid clashing with the krb5 executable, openafs-debuginfo still conflicted with krb5-debuginfo. Don't package kpasswd at all. Package the renamed executable, kapasswd, in openafs-kpasswd instead of openafs, together with the renamed man page. Once we're here, provide the man page for the other executable in there too. FIXES 131771 Change-Id: I0d7af82072847a19f0e1ce34dbeeb34623d2ef38 Reviewed-on: http://gerrit.openafs.org/10481 Tested-by: BuildBot Reviewed-by: Ken Dreyer Reviewed-by: D Brashear --- src/packaging/RedHat/openafs.spec.in | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/packaging/RedHat/openafs.spec.in b/src/packaging/RedHat/openafs.spec.in index 5b3ba11df..ba7ebbe54 100644 --- a/src/packaging/RedHat/openafs.spec.in +++ b/src/packaging/RedHat/openafs.spec.in @@ -509,8 +509,8 @@ allowing cross-platform sharing of files among multiple computers. Facilities are provided for access control, authentication, backup and administrative management. -This package provides the compatibility symlink for kpasswd, in case -you are using KAserver instead of Krb5. +This package provides the kpasswd executable, renamed to kapasswd to avoid +clashes, for sites still using KAserver instead of Krb5. %if %{krb5support} %package krb5 @@ -1054,8 +1054,8 @@ chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so* # any user in /usr/bin mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/restorevol $RPM_BUILD_ROOT%{_bindir}/restorevol -# Link kpasswd to kapasswd -ln -f $RPM_BUILD_ROOT%{_bindir}/kpasswd $RPM_BUILD_ROOT%{_bindir}/kapasswd +# Rename kpasswd to kapasswd +mv -f $RPM_BUILD_ROOT%{_bindir}/kpasswd $RPM_BUILD_ROOT%{_bindir}/kapasswd # Copy root.client config files install -m 755 src/packaging/RedHat/openafs.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/openafs @@ -1156,7 +1156,7 @@ gzip -9 $RPM_BUILD_ROOT%{_mandir}/man*/* # create list of man pages that go in the 'openafs' package /bin/ls $RPM_BUILD_ROOT%{_mandir}/man1 \ - |egrep '^afs|^fs|^kas|^klog|kapasswd|pagsh|^pts|^restorevol|^rxdebug|scout|^sys|tokens|translate|^xstat|udebug|unlog|^uss|^vos' \ + |egrep '^afs|^fs|^kas|^klog|pagsh|^pts|^restorevol|^rxdebug|scout|^sys|tokens|translate|^xstat|udebug|unlog|^uss|^vos' \ |egrep -v '^afs_compile_et' \ >openafs-man1files @@ -1175,7 +1175,6 @@ grep -v "^#" >openafs-file-list <