New package: apcupsd-3.14.14
This commit is contained in:
parent
cc27e8e6f7
commit
b8a467f6ef
3
srcpkgs/apcupsd/files/apcupsd/run
Normal file
3
srcpkgs/apcupsd/files/apcupsd/run
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
[ -r conf] && . ./conf
|
||||
exec apcupsd -b ${OPTS}
|
40
srcpkgs/apcupsd/template
Normal file
40
srcpkgs/apcupsd/template
Normal file
@ -0,0 +1,40 @@
|
||||
# Template file for 'apcupsd'
|
||||
pkgname=apcupsd
|
||||
version=3.14.14
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
configure_args="
|
||||
--disable-install-distdir
|
||||
--enable-modbus-usb
|
||||
--enable-usb
|
||||
--sysconfdir=/etc/apcupsd
|
||||
--with-dev=
|
||||
--with-halpolicydir=
|
||||
--with-pwrfail-dir=/etc/apcupsd
|
||||
--with-upscable=usb
|
||||
--with-upstype=usb"
|
||||
hostmakedepends="autoconf automake pkg-config"
|
||||
makedepends="libusb-compat-devel net-snmp-devel"
|
||||
depends="libusb-compat net-snmp nullmailer"
|
||||
conf_files="/etc/apcupsd/*"
|
||||
short_desc="APC UPS daemon with integrated tcp/ip remote shutdown"
|
||||
maintainer="Bas Ploeger <s.c.w.ploeger@gmail.com>"
|
||||
license="GPL-2.0-only"
|
||||
homepage="http://www.apcupsd.org/"
|
||||
distfiles="${SOURCEFORGE_SITE}/apcupsd/apcupsd-${version}.tar.gz"
|
||||
checksum="db7748559b6b4c3784f9856561ef6ac6199ef7bd019b3edcd7e0a647bf8f9867"
|
||||
|
||||
# Avoid passing an invalid arg 'strip' to the install command for the binaries.
|
||||
make_install_args="STRIP="
|
||||
|
||||
pre_configure() {
|
||||
export SHUTDOWN=/usr/bin/shutdown
|
||||
export WALL=/usr/bin/wall
|
||||
export APCUPSD_MAIL=/usr/bin/mail
|
||||
}
|
||||
|
||||
post_install() {
|
||||
# This binary is not needed and conflicts with a binary from an other package.
|
||||
rm ${DESTDIR}/usr/bin/smtp
|
||||
vsv apcupsd
|
||||
}
|
Loading…
Reference in New Issue
Block a user