I am trying to convert the "MegaRAID Storage Manager" RPM packages to debian dep packages. I'm using the alien package therefor as explained here:
https://hosting-tutorials.co.uk/tutorials/linux/installing-megaraid-storage-manager-on-debian
This is the package I try to convert: https://docs.broadcom.com/docs-and-downloads/17.05.06.00_MSM_Linux-x64.zip
The package "lib-utils2_1.00-12_all" converts fine to .deb but the "MegaRAID_Storage_Manager-17.05.06-00.noarch.rpm" not:
# alien --scripts *.rpm
lib-utils2_1.00-12_all.deb generated
Package build failed. Here's the log:
dh binary
dh_update_autotools_config
dh_autoreconf
create-stamp debian/debhelper-build-stamp
dh_testroot
dh_prep
debian/rules override_dh_auto_install
make[1]: Entering directory '/root/MSM/disk/MegaRAID_Storage_Manager-17.05.06'
mkdir -p debian/megaraid-storage-manager
# Copy the packages's files.
find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \
sed -e s#'./'##g | \
xargs -0 -r -i cp -a ./{} debian/megaraid-storage-manager/{}
make[1]: Leaving directory '/root/MSM/disk/MegaRAID_Storage_Manager-17.05.06'
dh_installdocs
dh_installchangelogs
dh_perl
dh_usrlocal
dh_usrlocal: error: Cannot generate a correct shell script for /usr/local/MegaRAID Storage Manager due to shell metacharacters
make: *** [debian/rules:7: binary] Error 25
I don't know how to fix the error "Cannot generate a correct shell script for /usr/local/MegaRAID Storage Manager due to shell metacharacters" and will be appreciate for any help.
The hosts I tried are Debian 10 and Debian 11, all amd64 arch and running the "bash" shell. I also tried the "sh" shell.