2021-06-17 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in the build system that caused
	consolehelper(8) components to be installed incorrectly on RHEL.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-06-17 10:00:03 -04:00
parent 7fa5490215
commit 8a5080ab85
2 changed files with 14 additions and 4 deletions

View File

@ -21916,3 +21916,6 @@
* Fixed a spelling typo in 'configure.ac'.
2021-06-17 Daniel Bair <daniel@danielbair.com>
* Update to support system dark themes 'rdairplay/loglinebox.cpp'.
2021-06-17 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in the build system that caused
consolehelper(8) components to be installed incorrectly on RHEL.

View File

@ -20,9 +20,14 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
ACTION=$1
DESTDIR=$2
PREFIX=$3
if test "$#" -eq 3 ; then
ACTION=$1
DESTDIR=$2
PREFIX=$3
else
ACTION=$1
PREFIX=$2
fi
if test "@HAVE_USERMODE@" != "yes" ; then
exit 0
@ -35,6 +40,7 @@ if test "$ACTION" = "install" ; then
mkdir -p $DESTDIR/etc/security/console.apps
cp rdalsaconfig-root-consolehelper $DESTDIR/etc/security/console.apps/rdalsaconfig-root
cp rddbconfig-root-consolehelper $DESTDIR/etc/security/console.apps/rddbconfig-root
mkdir -p $DESTDIR$PREFIX/bin
rm -f $DESTDIR$PREFIX/bin/rdalsaconfig-root
ln -s /usr/bin/consolehelper $DESTDIR$PREFIX/bin/rdalsaconfig-root
rm -f $DESTDIR$PREFIX/bin/rddbconfig-root
@ -44,8 +50,9 @@ fi
if test "$ACTION" = "uninstall" ; then
rm -f $DESTDIR/etc/pam.d/rdalsaconfig-root
rm -f $DESTDIR/etc/security/console.apps/rdalsaconfig-root
rm -f $DESTDIR$prefix/bin/rdalsaconfig-root
rm -f $DESTDIR$PREFIX/bin/rdalsaconfig-root
rm -f $DESTDIR/etc/pam.d/rddbconfig-root
rm -f $DESTDIR/etc/security/console.apps/rddbconfig-root
rm -f $DESTDIR$PREFIX/bin/rddbconfig-root
fi