rendered paste bodyThis occurs during make install DESTDIR=/tmp/apc:
Slackware distribution installation
mkdir -p /tmp/apc/etc/rc.d
/bin/ginstall -c -m 744 apcupsd /tmp/apc/etc/rc.d/rc.apcupsd
/bin/ginstall -c -d -m 755 /tmp/apc//var/lock/subsys
grep -q /etc/apcupsd/apccontrol /etc/rc.d/rc.6; \
if [ $? -ne 0 ]; then \
echo "Creating /etc/rc.d/rc.6.new"; \
cp -p /etc/rc.d/rc.6 rc.6.new; \
patch -s rc.6.new rc6.patch; \
if [ $? -ne 0 ]; then \
echo; \
echo "There was a problem creating a modified /etc/rc.d/rc.6 init script."; \
echo "Please check /etc/rc.d/rc.6 and edit it manually using information"; \
echo "from platforms/slackware/rc6.patch."; \
echo; \
exit 1; \
fi; \
/bin/ginstall -c -m 744 rc.6.new /tmp/apc/etc/rc.d/rc.6.new
/bin/sh: -c: line 14: syntax error: unexpected end of file
gmake[2]: *** [install] Error 2
Relevant part of $src/platforms/slackware/Makefile.in:
install:
@echo "Slackware distribution installation"
mkdir -p $(DESTDIR)/etc/rc.d
$(INSTALL_PROGRAM) -m 744 apcupsd $(DESTDIR)/etc/rc.d/rc.apcupsd
$(INSTALL_PROGRAM) -d -m 755 $(DESTDIR)/@LOCKDIR@/subsys
grep -q @sysconfdir@/apccontrol /etc/rc.d/rc.6; \
if [ $$? -ne 0 ]; then \
echo "Creating /etc/rc.d/rc.6.new"; \
cp -p /etc/rc.d/rc.6 rc.6.new; \
patch -s rc.6.new rc6.patch; \
if [ $$? -ne 0 ]; then \
echo; \
echo "There was a problem creating a modified /etc/rc.d/rc.6 init script."; \
echo "Please check /etc/rc.d/rc.6 and edit it manually using information"; \
echo "from platforms/slackware/rc6.patch."; \
echo; \
exit 1; \
fi; \
$(INSTALL_PROGRAM) -m 744 rc.6.new $(DESTDIR)/etc/rc.d/rc.6.new
fi