Browse Source

apcupsd: Preset binaries used on target system

apcupsd's configure script looks up paths to sh, wall and mail on the
host system, but intends to use them on the target system. OpenWrt
replaces apcupsd's scripts by its own versions, so those paths don't
really matter, however, if the host system doesn't have wall installed,
the build fails. This is the case on Gentoo when util-linux is built
with USE=-tty-helpers (default). Prevent such failures by providing
explicit stub paths to sh, wall and mail to configure script.

Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
lilik-openwrt-22.03
Maxim Mikityanskiy 5 years ago
parent
commit
4a3b1ee42a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      net/apcupsd/Makefile

+ 2
- 2
net/apcupsd/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=apcupsd PKG_NAME:=apcupsd
PKG_VERSION:=3.14.14 PKG_VERSION:=3.14.14
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch> PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
PKG_LICENSE:=GPL-2.0 PKG_LICENSE:=GPL-2.0
@ -40,7 +40,7 @@ define Package/apcupsd-cgi
URL:=http://www.apcupsd.org/ URL:=http://www.apcupsd.org/
endef endef
CONFIGURE_VARS += SHUTDOWN=/sbin/halt
CONFIGURE_VARS += SHUTDOWN=/sbin/halt SCRIPTSHELL=/bin/sh WALL=/bin/true APCUPSD_MAIL=/bin/true
define Build/Configure define Build/Configure
$(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/autoconf/ $(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/autoconf/


Loading…
Cancel
Save