head 1.97; access; symbols pkgsrc-2023Q4:1.97.0.2 pkgsrc-2023Q4-base:1.97 pkgsrc-2023Q3:1.95.0.4 pkgsrc-2023Q3-base:1.95 pkgsrc-2023Q2:1.95.0.2 pkgsrc-2023Q2-base:1.95 pkgsrc-2023Q1:1.94.0.2 pkgsrc-2023Q1-base:1.94 pkgsrc-2022Q4:1.92.0.20 pkgsrc-2022Q4-base:1.92 pkgsrc-2022Q3:1.92.0.18 pkgsrc-2022Q3-base:1.92 pkgsrc-2022Q2:1.92.0.16 pkgsrc-2022Q2-base:1.92 pkgsrc-2022Q1:1.92.0.14 pkgsrc-2022Q1-base:1.92 pkgsrc-2021Q4:1.92.0.12 pkgsrc-2021Q4-base:1.92 pkgsrc-2021Q3:1.92.0.10 pkgsrc-2021Q3-base:1.92 pkgsrc-2021Q2:1.92.0.8 pkgsrc-2021Q2-base:1.92 pkgsrc-2021Q1:1.92.0.6 pkgsrc-2021Q1-base:1.92 pkgsrc-2020Q4:1.92.0.4 pkgsrc-2020Q4-base:1.92 pkgsrc-2020Q3:1.92.0.2 pkgsrc-2020Q3-base:1.92 pkgsrc-2020Q2:1.90.0.2 pkgsrc-2020Q2-base:1.90 pkgsrc-2020Q1:1.89.0.2 pkgsrc-2020Q1-base:1.89 pkgsrc-2019Q4:1.89.0.4 pkgsrc-2019Q4-base:1.89 pkgsrc-2019Q3:1.86.0.8 pkgsrc-2019Q3-base:1.86 pkgsrc-2019Q2:1.86.0.6 pkgsrc-2019Q2-base:1.86 pkgsrc-2019Q1:1.86.0.4 pkgsrc-2019Q1-base:1.86 pkgsrc-2018Q4:1.86.0.2 pkgsrc-2018Q4-base:1.86 pkgsrc-2018Q3:1.85.0.6 pkgsrc-2018Q3-base:1.85 pkgsrc-2018Q2:1.85.0.4 pkgsrc-2018Q2-base:1.85 pkgsrc-2018Q1:1.85.0.2 pkgsrc-2018Q1-base:1.85 pkgsrc-2017Q4:1.84.0.10 pkgsrc-2017Q4-base:1.84 pkgsrc-2017Q3:1.84.0.8 pkgsrc-2017Q3-base:1.84 pkgsrc-2017Q2:1.84.0.4 pkgsrc-2017Q2-base:1.84 pkgsrc-2017Q1:1.84.0.2 pkgsrc-2017Q1-base:1.84 pkgsrc-2016Q4:1.83.0.4 pkgsrc-2016Q4-base:1.83 pkgsrc-2016Q3:1.83.0.2 pkgsrc-2016Q3-base:1.83 pkgsrc-2016Q2:1.82.0.4 pkgsrc-2016Q2-base:1.82 pkgsrc-2016Q1:1.82.0.2 pkgsrc-2016Q1-base:1.82 pkgsrc-2015Q4:1.79.0.2 pkgsrc-2015Q4-base:1.79 pkgsrc-2015Q3:1.78.0.2 pkgsrc-2015Q3-base:1.78 pkgsrc-2015Q2:1.76.0.14 pkgsrc-2015Q2-base:1.76 pkgsrc-2015Q1:1.76.0.12 pkgsrc-2015Q1-base:1.76 pkgsrc-2014Q4:1.76.0.10 pkgsrc-2014Q4-base:1.76 pkgsrc-2014Q3:1.76.0.8 pkgsrc-2014Q3-base:1.76 pkgsrc-2014Q2:1.76.0.6 pkgsrc-2014Q2-base:1.76 pkgsrc-2014Q1:1.76.0.4 pkgsrc-2014Q1-base:1.76 pkgsrc-2013Q4:1.76.0.2 pkgsrc-2013Q4-base:1.76 pkgsrc-2013Q3:1.75.0.2 pkgsrc-2013Q3-base:1.75 pkgsrc-2013Q2:1.74.0.2 pkgsrc-2013Q2-base:1.74 pkgsrc-2013Q1:1.71.0.2 pkgsrc-2013Q1-base:1.71 pkgsrc-2012Q4:1.69.0.2 pkgsrc-2012Q4-base:1.69 pkgsrc-2012Q3:1.68.0.4 pkgsrc-2012Q3-base:1.68 pkgsrc-2012Q2:1.68.0.2 pkgsrc-2012Q2-base:1.68 pkgsrc-2012Q1:1.67.0.2 pkgsrc-2012Q1-base:1.67 pkgsrc-2011Q4:1.65.0.2 pkgsrc-2011Q4-base:1.65 pkgsrc-2011Q3:1.64.0.2 pkgsrc-2011Q3-base:1.64 pkgsrc-2011Q2:1.61.0.2 pkgsrc-2011Q2-base:1.61 pkgsrc-2011Q1:1.60.0.10 pkgsrc-2011Q1-base:1.60 pkgsrc-2010Q4:1.60.0.8 pkgsrc-2010Q4-base:1.60 pkgsrc-2010Q3:1.60.0.6 pkgsrc-2010Q3-base:1.60 pkgsrc-2010Q2:1.60.0.4 pkgsrc-2010Q2-base:1.60 pkgsrc-2010Q1:1.60.0.2 pkgsrc-2010Q1-base:1.60 pkgsrc-2009Q4:1.59.0.10 pkgsrc-2009Q4-base:1.59 pkgsrc-2009Q3:1.59.0.8 pkgsrc-2009Q3-base:1.59 pkgsrc-2009Q2:1.59.0.6 pkgsrc-2009Q2-base:1.59 pkgsrc-2009Q1:1.59.0.4 pkgsrc-2009Q1-base:1.59 pkgsrc-2008Q4:1.59.0.2 pkgsrc-2008Q4-base:1.59 pkgsrc-2008Q3:1.58.0.8 pkgsrc-2008Q3-base:1.58 cube-native-xorg:1.58.0.6 cube-native-xorg-base:1.58 pkgsrc-2008Q2:1.58.0.4 pkgsrc-2008Q2-base:1.58 cwrapper:1.58.0.2 pkgsrc-2008Q1:1.56.0.4 pkgsrc-2008Q1-base:1.56 pkgsrc-2007Q4:1.56.0.2 pkgsrc-2007Q4-base:1.56 pkgsrc-2007Q3:1.54.0.2 pkgsrc-2007Q3-base:1.54 pkgsrc-2007Q2:1.52.0.2 pkgsrc-2007Q2-base:1.52 pkgsrc-2007Q1:1.49.0.2 pkgsrc-2007Q1-base:1.49 pkgsrc-2006Q4:1.47.0.2 pkgsrc-2006Q4-base:1.47 pkgsrc-2006Q3:1.44.0.2 pkgsrc-2006Q3-base:1.44 pkgsrc-2006Q2:1.43.0.2 pkgsrc-2006Q2-base:1.43 pkgsrc-2006Q1:1.42.0.2 pkgsrc-2006Q1-base:1.42 pkgsrc-2005Q4:1.40.0.2 pkgsrc-2005Q4-base:1.40 pkgsrc-2005Q3:1.38.0.2 pkgsrc-2005Q3-base:1.38 pkgsrc-2005Q2:1.35.0.2 pkgsrc-2005Q2-base:1.35 pkgsrc-2005Q1:1.33.0.2 pkgsrc-2005Q1-base:1.33 pkgsrc-2004Q4:1.31.0.2 pkgsrc-2004Q4-base:1.31 pkgsrc-2004Q3:1.28.0.4 pkgsrc-2004Q3-base:1.28 pkgsrc-2004Q2:1.28.0.2 pkgsrc-2004Q2-base:1.28 pkgsrc-2004Q1:1.26.0.2 pkgsrc-2004Q1-base:1.26 pkgsrc-2003Q4:1.25.0.2 pkgsrc-2003Q4-base:1.25 netbsd-1-6-1:1.20.0.2 netbsd-1-6-1-base:1.20 netbsd-1-6:1.15.0.8 netbsd-1-6-RELEASE-base:1.15 pkgviews:1.15.0.4 pkgviews-base:1.15 buildlink2:1.15.0.2 buildlink2-base:1.15 netbsd-1-5-PATCH003:1.15 netbsd-1-5-PATCH001:1.9 netbsd-1-5-RELEASE:1.2 netbsd-1-4-PATCH003:1.2 netbsd-1-4-PATCH002:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.97 date 2023.11.12.13.23.28; author wiz; state Exp; branches; next 1.96; commitid SjpNXQIV5XeZ3kME; 1.96 date 2023.10.21.17.11.24; author gdt; state Exp; branches; next 1.95; commitid Sr0Nb6aaZLDw2wJE; 1.95 date 2023.05.22.11.39.03; author wiz; state Exp; branches; next 1.94; commitid wHwCxvZphlIb6XpE; 1.94 date 2023.01.29.21.17.43; author ryoon; state Exp; branches; next 1.93; commitid QL7aBXsBGmQvUtbE; 1.93 date 2023.01.03.17.38.11; author wiz; state Exp; branches; next 1.92; commitid vvAqE6UmuqFFx78E; 1.92 date 2020.09.19.13.50.48; author taca; state Exp; branches; next 1.91; commitid 5Wq8qcCEfJ2taFoC; 1.91 date 2020.08.17.20.20.02; author leot; state Exp; branches; next 1.90; commitid ybGS4iX9Fz8imskC; 1.90 date 2020.05.01.19.51.18; author rillig; state Exp; branches; next 1.89; commitid f0FYVyHIqtK3Hz6C; 1.89 date 2019.12.22.15.57.36; author jmcneill; state Exp; branches; next 1.88; commitid m55UhwMzrKW6CIPB; 1.88 date 2019.11.04.21.28.41; author rillig; state Exp; branches; next 1.87; commitid P8zvC5DaquV1ZzJB; 1.87 date 2019.10.12.21.06.48; author rillig; state Exp; branches; next 1.86; commitid 2pBjorTHXo5BBCGB; 1.86 date 2018.11.12.14.40.22; author jperkin; state Exp; branches; next 1.85; commitid BBk8moWpfq6zcFZA; 1.85 date 2018.03.12.11.17.31; author wiz; state Exp; branches; next 1.84; commitid Mv60lx3Uo1UqW9uA; 1.84 date 2017.02.28.15.20.09; author ryoon; state Exp; branches; next 1.83; commitid VGStpD9ALmxKpJHz; 1.83 date 2016.08.03.10.23.21; author adam; state Exp; branches; next 1.82; commitid AsJCxHnjaXbduQgz; 1.82 date 2016.03.22.18.56.36; author joerg; state Exp; branches; next 1.81; commitid nWF5nJLpfxnyDFZy; 1.81 date 2016.02.26.10.24.10; author jperkin; state Exp; branches; next 1.80; commitid HAQLapcZyQ1MBpWy; 1.80 date 2016.01.28.15.51.34; author prlw1; state Exp; branches; next 1.79; commitid uSnTCggSe1eSjISy; 1.79 date 2015.11.18.14.19.54; author ryoon; state Exp; branches; next 1.78; commitid xxkPK0OWudQL7AJy; 1.78 date 2015.08.18.07.31.17; author wiz; state Exp; branches; next 1.77; commitid UPpMIsB3AWu1PIxy; 1.77 date 2015.06.30.09.57.41; author ryoon; state Exp; branches; next 1.76; commitid jeIUM6gvNqaTcrry; 1.76 date 2013.12.11.11.55.17; author jperkin; state Exp; branches; next 1.75; commitid GLQp2B2i7eqg3Igx; 1.75 date 2013.09.04.12.31.26; author obache; state Exp; branches; next 1.74; commitid NW7BZOzY687vo74x; 1.74 date 2013.06.04.22.17.03; author tron; state Exp; branches; next 1.73; commitid wB5zURIqYs6HAlSw; 1.73 date 2013.06.03.10.05.56; author wiz; state Exp; branches; next 1.72; commitid kGMtnUPdN4amz9Sw; 1.72 date 2013.05.04.12.52.29; author joerg; state Exp; branches; next 1.71; 1.71 date 2013.02.16.11.24.23; author wiz; state Exp; branches; next 1.70; 1.70 date 2013.01.26.21.38.49; author adam; state Exp; branches; next 1.69; 1.69 date 2012.10.23.19.50.51; author asau; state Exp; branches; next 1.68; 1.68 date 2012.05.07.12.55.23; author shattered; state Exp; branches; next 1.67; 1.67 date 2012.02.18.21.10.48; author bouyer; state Exp; branches; next 1.66; 1.66 date 2012.01.22.09.07.50; author shattered; state Exp; branches; next 1.65; 1.65 date 2011.11.01.06.11.58; author sbd; state Exp; branches; next 1.64; 1.64 date 2011.08.14.21.42.14; author shattered; state Exp; branches; next 1.63; 1.63 date 2011.08.07.17.27.24; author bouyer; state Exp; branches; next 1.62; 1.62 date 2011.08.01.14.54.51; author bouyer; state Exp; branches; next 1.61; 1.61 date 2011.04.22.13.44.39; author obache; state Exp; branches 1.61.2.1; next 1.60; 1.60 date 2010.02.19.19.05.26; author joerg; state Exp; branches; next 1.59; 1.59 date 2008.12.07.22.54.00; author bouyer; state Exp; branches; next 1.58; 1.58 date 2008.06.20.01.09.35; author joerg; state Exp; branches; next 1.57; 1.57 date 2008.04.28.08.28.05; author sborrill; state Exp; branches; next 1.56; 1.56 date 2007.10.29.12.44.56; author sborrill; state Exp; branches; next 1.55; 1.55 date 2007.10.29.12.40.58; author sborrill; state Exp; branches; next 1.54; 1.54 date 2007.10.09.19.19.15; author martti; state Exp; branches; next 1.53; 1.53 date 2007.09.18.19.24.07; author bouyer; state Exp; branches; next 1.52; 1.52 date 2007.06.19.22.22.55; author bouyer; state Exp; branches; next 1.51; 1.51 date 2007.06.15.21.15.38; author bouyer; state Exp; branches; next 1.50; 1.50 date 2007.06.15.19.05.56; author bouyer; state Exp; branches; next 1.49; 1.49 date 2007.03.24.19.21.32; author joerg; state Exp; branches; next 1.48; 1.48 date 2007.03.07.20.47.05; author joerg; state Exp; branches; next 1.47; 1.47 date 2006.12.20.20.49.12; author bouyer; state Exp; branches; next 1.46; 1.46 date 2006.11.17.19.51.20; author bouyer; state Exp; branches; next 1.45; 1.45 date 2006.11.15.21.46.24; author bouyer; state Exp; branches; next 1.44; 1.44 date 2006.08.04.08.05.54; author ghen; state Exp; branches; next 1.43; 1.43 date 2006.04.13.18.23.37; author jlam; state Exp; branches; next 1.42; 1.42 date 2006.02.05.23.10.48; author joerg; state Exp; branches; next 1.41; 1.41 date 2005.12.29.06.22.16; author jlam; state Exp; branches; next 1.40; 1.40 date 2005.12.05.23.55.19; author rillig; state Exp; branches; next 1.39; 1.39 date 2005.12.05.20.50.59; author rillig; state Exp; branches; next 1.38; 1.38 date 2005.08.19.18.12.38; author jlam; state Exp; branches; next 1.37; 1.37 date 2005.06.24.19.09.41; author kristerw; state Exp; branches; next 1.36; 1.36 date 2005.06.23.21.13.01; author kristerw; state Exp; branches; next 1.35; 1.35 date 2005.05.22.20.08.31; author jlam; state Exp; branches; next 1.34; 1.34 date 2005.04.11.21.47.22; author tv; state Exp; branches; next 1.33; 1.33 date 2004.12.29.15.42.38; author minskim; state Exp; branches; next 1.32; 1.32 date 2004.12.28.02.47.50; author reed; state Exp; branches; next 1.31; 1.31 date 2004.12.05.17.26.47; author bouyer; state Exp; branches; next 1.30; 1.30 date 2004.10.11.22.14.51; author reed; state Exp; branches; next 1.29; 1.29 date 2004.10.03.00.18.14; author tv; state Exp; branches; next 1.28; 1.28 date 2004.04.27.20.31.08; author reed; state Exp; branches; next 1.27; 1.27 date 2004.04.25.09.14.00; author snj; state Exp; branches; next 1.26; 1.26 date 2004.01.24.15.06.57; author grant; state Exp; branches; next 1.25; 1.25 date 2003.09.28.09.13.58; author jlam; state Exp; branches; next 1.24; 1.24 date 2003.09.27.17.07.38; author grant; state Exp; branches; next 1.23; 1.23 date 2003.07.17.22.53.27; author grant; state Exp; branches; next 1.22; 1.22 date 2003.07.13.13.53.13; author wiz; state Exp; branches; next 1.21; 1.21 date 2003.03.27.20.01.22; author bouyer; state Exp; branches; next 1.20; 1.20 date 2003.01.28.22.04.15; author jlam; state Exp; branches 1.20.2.1; next 1.19; 1.19 date 2002.12.23.16.31.29; author cjep; state Exp; branches; next 1.18; 1.18 date 2002.12.01.22.32.25; author bouyer; state Exp; branches; next 1.17; 1.17 date 2002.10.23.10.44.38; author wiz; state Exp; branches; next 1.16; 1.16 date 2002.10.02.22.20.49; author dillo; state Exp; branches; next 1.15; 1.15 date 2001.10.27.07.00.53; author jlam; state Exp; branches; next 1.14; 1.14 date 2001.09.27.23.18.42; author jlam; state Exp; branches; next 1.13; 1.13 date 2001.09.27.12.55.40; author lukem; state Exp; branches; next 1.12; 1.12 date 2001.08.27.14.35.14; author tron; state Exp; branches; next 1.11; 1.11 date 2001.08.01.16.55.38; author wiz; state Exp; branches; next 1.10; 1.10 date 2001.06.11.06.34.49; author jlam; state Exp; branches; next 1.9; 1.9 date 2001.04.02.20.06.16; author wiz; state Exp; branches; next 1.8; 1.8 date 2001.03.27.03.20.16; author hubertf; state Exp; branches; next 1.7; 1.7 date 2001.02.17.17.42.10; author wiz; state Exp; branches; next 1.6; 1.6 date 2001.02.06.03.17.00; author fredb; state Exp; branches; next 1.5; 1.5 date 2001.02.05.09.01.04; author tron; state Exp; branches; next 1.4; 1.4 date 2001.01.23.19.56.45; author dmcmahill; state Exp; branches; next 1.3; 1.3 date 2001.01.04.17.42.04; author wiz; state Exp; branches; next 1.2; 1.2 date 2000.08.05.07.31.15; author jlam; state Exp; branches; next 1.1; 1.1 date 2000.01.21.19.15.59; author bouyer; state Exp; branches 1.1.1.1; next ; 1.61.2.1 date 2011.08.07.09.39.48; author tron; state Exp; branches; next 1.61.2.2; 1.61.2.2 date 2011.08.08.19.56.37; author spz; state Exp; branches; next ; 1.20.2.1 date 2003.04.20.11.36.31; author grant; state Exp; branches; next ; 1.1.1.1 date 2000.01.21.19.15.59; author bouyer; state Exp; branches; next ; desc @@ 1.97 log @*: revebump for new brotli option for freetype2 Addresses PR 57693 @ text @# $NetBSD: Makefile,v 1.96 2023/10/21 17:11:24 gdt Exp $ DISTNAME= apcupsd-3.14.14 PKGREVISION= 5 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=apcupsd/} MAINTAINER= bouyer@@NetBSD.org HOMEPAGE= http://www.apcupsd.org/ COMMENT= UPS power management for APCC Products LICENSE= gnu-gpl-v2 USE_TOOLS+= gmake msgfmt sh makedepend USE_LANGUAGES= c c++ GNU_CONFIGURE= yes PKG_SYSCONFSUBDIR= apcupsd CTF_SUPPORTED= no # https://smartos.org/bugview/OS-6533 BUILD_DEFS+= VARBASE .include "options.mk" # Thread support is needed to compile powerflute, which has a curses # interface (apparently needing ncurses), but pthreads isn't very # efficient and is less preferred. # #.include "../../devel/ncurses/buildlink3.mk" #CONFIGURE_ARGS+= --enable-threads # compile threading code #CONFIGURE_ARGS+= --enable-powerflute # compile powerflute program #CONFIGURE_ARGS+= --with-net-port=${APCUPSD_NET_PORT} # un-registered port is 7000 #CONFIGURE_ARGS+= --with-nis-port=${APCUPSD_NIS_PORT} # registered port is 3551 #CONFIGURE_ARGS+= --with-upscable=${APCUPSD_UPS_CABLE} #CONFIGURE_ARGS+= --with-upscable=${APCUPSD_UPS_TYPE} CONFIGURE_ARGS+= --enable-net # enable NIS network driver CONFIGURE_ARGS+= --enable-usb # enable USB network driver CONFIGURE_ARGS+= --enable-snmp # enable SNMP driver CONFIGURE_ARGS+= --with-lock-dir=${VARBASE}/spool/lock # XXX is this supposed to be the full filename? CONFIGURE_ARGS+= --with-log-dir=${VARBASE}/db/apcupsd.events # NOTE: You want the /dev/ttyXX for smart cables such as 940-0024C, # but probably the /dev/dtyXX for a basic smart-custom cable CONFIGURE_ARGS+= --with-serial-dev=/dev/tty01 CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} # configure sets sbindir to '${prefix}/sbin' without expanding $prefix # this breaks .in files that uses @@sbindir@@ CONFIGURE_ARGS+= --sbindir=${PREFIX}/sbin CONFIGURE_ENV+= SCRIPTSHELL=${TOOLS_SH:Q} CONFIGURE_ENV+= ac_cv_path_MAKE=${MAKE:Q} LD=${CXX} CONFIGURE_ARGS.NetBSD+= ac_cv_path_SHUTDOWN=/sbin/shutdown EGDIR= ${PREFIX}/share/examples/apcupsd CONF_FILES_PERMS+= ${EGDIR}/apcupsd.conf ${PKG_SYSCONFDIR}/apcupsd.conf ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 644 CONF_FILES_PERMS+= ${EGDIR}/apcupsd.css ${PKG_SYSCONFDIR}/apcupsd.css ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 644 CONF_FILES_PERMS+= ${EGDIR}/changeme ${PKG_SYSCONFDIR}/changeme ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/commfailure ${PKG_SYSCONFDIR}/commfailure ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/commok ${PKG_SYSCONFDIR}/commok ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/multimon.conf ${PKG_SYSCONFDIR}/multimon.conf ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/hosts.conf ${PKG_SYSCONFDIR}/hosts.conf ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/offbattery ${PKG_SYSCONFDIR}/offbattery ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/onbattery ${PKG_SYSCONFDIR}/onbattery ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/apccontrol ${PKG_SYSCONFDIR}/apccontrol ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 RCD_SCRIPTS= apcupsd OPSYSVARS+= PLATFORM_SUBDIR PLATFORM_SUBDIR.DragonFly= netbsd PLATFORM_SUBDIR.SunOS= sun PLATFORM_SUBDIR.*= ${OPSYS:tl} RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/platforms/${PLATFORM_SUBDIR}/apcupsd EGFILES= ${PLATFORM_SUBDIR}/apccontrol etc/changeme etc/commfailure etc/commok \ etc/offbattery etc/onbattery etc/multimon.conf etc/hosts.conf INSTALLATION_DIRS= share/examples/apcupsd share/examples/rc.d \ share/doc/apcupsd share/doc/apcupsd/manual SUBST_CLASSES+= strip SUBST_STAGE.strip= pre-configure SUBST_FILES.strip= autoconf/install-sh autoconf/targets.mak SUBST_SED.strip= -e "s|STRIP|STRIPFLAG|g" SUBST_MESSAGE.strip= Fixing conflicting STRIP variable name # XXX we should probably allow the tty to be set in /etc/mk.conf too # HTMLDOCS= manual.html apcupsd.png charging.png commlost.png \ main_configs.png multimon.png onbatt.png online.png \ status.png thanks.png wininstall6.png post-install: ${INSTALL_DATA} ${WRKSRC}/platforms/etc/apcupsd.conf \ ${DESTDIR}${PREFIX}/share/examples/apcupsd ${INSTALL_DATA} ${WRKSRC}/src/cgi/apcupsd.css \ ${DESTDIR}${PREFIX}/share/examples/apcupsd .for file in ${EGFILES} ${INSTALL_SCRIPT} ${WRKSRC}/platforms/${file} \ ${DESTDIR}${PREFIX}/share/examples/apcupsd .endfor .for file in ${HTMLDOCS} ${INSTALL_DATA} ${WRKSRC}/doc/manual/${file} \ ${DESTDIR}${PREFIX}/share/doc/apcupsd .endfor .include "../../devel/gettext-lib/buildlink3.mk" .include "../../mk/libusb.buildlink3.mk" .include "../../mk/bsd.pkg.mk" @ 1.96 log @recursive revbump for tiff update @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.95 2023/05/22 11:39:03 wiz Exp $ d4 1 a4 1 PKGREVISION= 4 @ 1.95 log @*: recursive bump for libimagequant 4.x @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.94 2023/01/29 21:17:43 ryoon Exp $ d4 1 a4 1 PKGREVISION= 3 @ 1.94 log @*: Recursive revbup from graphics/freetype2 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.93 2023/01/03 17:38:11 wiz Exp $ d4 1 a4 1 PKGREVISION= 2 @ 1.93 log @*: recursive bump for tiff shlib major bump @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.92 2020/09/19 13:50:48 taca Exp $ d4 1 a4 1 PKGREVISION= 1 @ 1.92 log @sysutils/apcupsd: update to 3.14.14 Update apcupsd package to 3.14.14. 3.14.14 -- 31 May 2016 BUG FIXES * win32: Fix missing DLLs when installing only apctray * Fixes for socket error handling. Resolves apcaccess crash when connection fails as well as several other theoretical issues. * MODBUS/USB error handling (COMMLOST) improvements for faulty USB links * Fix hiddev binding when usbfs is mounted on /dev/bus/usb instead of /proc/bus/usb. This is necessary for switching between MODBUS/USB and USB/HID on Linux. * Update GPLv2 text and FSF address to match current versions from FSF. * Various fixes for potential issues suggested by Coverity Scan * MacOS X port support for El Capitan System Integrity Protection (SIP) aka "rootless" * Fix shutdown failure on Windows when UPSNAME includes spaces * Fix building bsd-usb driver (This was broken when modbus-usb support was added.) FEATURES * Add status display for output current as well as apparent power @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.91 2020/08/17 20:20:02 leot Exp $ d4 1 @ 1.91 log @*: revbump after fontconfig bl3 changes (libuuid removal) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.90 2020/05/01 19:51:18 rillig Exp $ d3 1 a3 2 DISTNAME= apcupsd-3.14.13r2365 PKGREVISION= 6 d5 1 a5 2 #MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=apcupsd/} MASTER_SITES= ${MASTER_SITE_LOCAL} a17 1 WRKSRC= ${WRKDIR}/apcupsd d21 2 d96 2 a97 2 main_configs.png multimon.png onbatt.png online.png status.png \ thanks.png wininstall6.png @ 1.90 log @sysutils/apcupsd: remove nonexistent files from SUBST_FILES @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.89 2019/12/22 15:57:36 jmcneill Exp $ d4 1 a4 1 PKGREVISION= 5 @ 1.89 log @Honour LIBUSB_TYPE @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.88 2019/11/04 21:28:41 rillig Exp $ a89 2 SUBST_FILES.strip+= src/gapcmon/Makefile.in src/cgi/Makefile.in SUBST_FILES.strip+= src/Makefile.in @ 1.88 log @sysutils: align variable assignments pkglint -Wall -F --only aligned --only indent -r Manually excluded consolekit and dc-tools since pkglint didn't get the formatting correct. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.87 2019/10/12 21:06:48 rillig Exp $ d4 1 a4 1 PKGREVISION= 4 d117 1 a117 1 .include "../../devel/libusb/buildlink3.mk" @ 1.87 log @sysutils/apcupsd: fix location of HTML documentation @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.86 2018/11/12 14:40:22 jperkin Exp $ d61 10 a70 10 CONF_FILES_PERMS+= ${EGDIR}/apcupsd.conf ${PKG_SYSCONFDIR}/apcupsd.conf ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 644 CONF_FILES_PERMS+= ${EGDIR}/apcupsd.css ${PKG_SYSCONFDIR}/apcupsd.css ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 644 CONF_FILES_PERMS+= ${EGDIR}/changeme ${PKG_SYSCONFDIR}/changeme ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/commfailure ${PKG_SYSCONFDIR}/commfailure ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/commok ${PKG_SYSCONFDIR}/commok ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/multimon.conf ${PKG_SYSCONFDIR}/multimon.conf ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/hosts.conf ${PKG_SYSCONFDIR}/hosts.conf ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/offbattery ${PKG_SYSCONFDIR}/offbattery ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/onbattery ${PKG_SYSCONFDIR}/onbattery ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/apccontrol ${PKG_SYSCONFDIR}/apccontrol ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755 d81 2 a82 2 EGFILES= ${PLATFORM_SUBDIR}/apccontrol etc/changeme etc/commfailure etc/commok \ etc/offbattery etc/onbattery etc/multimon.conf etc/hosts.conf @ 1.86 log @*: Add CTF_SUPPORTED/CTF_FILES_SKIP where necessary. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.85 2018/03/12 11:17:31 wiz Exp $ d4 1 a4 1 PKGREVISION= 3 d85 1 a85 1 share/doc/html/apcupsd share/doc/html/apcupsd/manual d113 1 a113 1 ${DESTDIR}${PREFIX}/share/doc/html/apcupsd @ 1.85 log @Recursive bumps for fontconfig and libzip dependency changes. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.84 2017/02/28 15:20:09 ryoon Exp $ d22 2 @ 1.84 log @Recursive revbump from graphics/libwebp @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.83 2016/08/03 10:23:21 adam Exp $ d4 1 a4 1 PKGREVISION= 2 @ 1.83 log @Revbump after graphics/gd update @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.82 2016/03/22 18:56:36 joerg Exp $ d4 1 a4 1 PKGREVISION= 1 @ 1.82 log @Help configure to find shutdown on NetBSD where PATH might not contain /sbin. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.81 2016/02/26 10:24:10 jperkin Exp $ d4 1 @ 1.81 log @Use OPSYSVARS. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.80 2016/01/28 15:51:34 prlw1 Exp $ d54 2 @ 1.80 log @Update apcupsd to 3.14 branch revision r2365 3.14.14 was tagged but not released, 3.14.13 is the last release, hence apcupsd-3.14.13r2365. - Remove use of BSD USB driver; all platforms except Linux use generic-usb now - i18n support removed 3.14.14 -- 30 May 2015 BUG FIXES * win32: Fix missing DLLs when installing only apctray * Fixes for socket error handling. Resolves apcaccess crash when connection fails as well as several other theoretical issues. * MODBUS/USB error handling (COMMLOST) improvements for faulty USB links * Fix hiddev binding when usbfs is mounted on /dev/bus/usb instead of /proc/bus/usb. This is necessary for switching between MODBUS/USB and USB/HID on Linux. * Update GPLv2 text and FSF address to match current versions from FSF. * Various fixes for potential issues suggested by Coverity Scan 3.14.13 -- 02 February 2015 NEW FEATURES * MODBUS USB support Previous releases supported MODBUS serial (RS232). This release adds support for MODBUS over USB. This protocol is preferable to the normal USB HID driver because it offers access to more UPS data readouts and controls. The only configuration file change needed versus MODBUS serial is to change UPSCABLE to usb and use an empty DEVICE setting. See the MODBUS section of the apcupsd manual for more details. * Support for Apple Notification Center on Mac OS X (replaces Growl) * Apple install packages and binaries are signed with an Apple Developer key for compatibility with Gate Keeper * Windows USB driver has been updated with additional USB identifiers to support future APC products. BUG FIXES * Use launchd for startup on Mac OS X as the old Startup Items mechanism is no longer supported in 10.10 and above * Fix apcaccess on ARM systems where char is unsigned by default * Fix several potential issues identified by Coverity static analysis * Numerous other fixes and improvements all over the code, many of them submitted by users...Thank you! MISC * Windows port now builds with the same configure and make system as the other targets, no need to maintain a special hardcoded Makefile. * Many cleanups to the Windows port codebase * Prebuilt binaries for Mac OS X no longer support PowerPC systems or Mac OS X 10.4 and older 3.14.12 -- 29 March 2014 (Maintenance Release) NEW FEATURES * apcaccess and apcupsd status format updates to ease parsing by scripts * UPS name is included in subject line of emails in default scripts * Default event scripts pull SYSADMIN and APCUPSD_MAIL definitions from a common config file so they can easily be configured in one place BUG FIXES * Fix issue with certain Back-UPS USB models repeatedly cycling power on/off after killpower is issued * Fix display of battery level during MODBUS calibration * Fix apctest EEPROM setting on various models * Close and reopen serial port during extended COMMLOST in apcsmart driver (helps recover connection when USB serial port dongles are reconnected) * Avoid probing non-APC USB devices as it can cause lockups * Fix issue with service failing to start on Windows during boot with USB UPS * Fix bogus lock file error when config file error forces early termination * Fix MODBUS NOMOUTV reading for voltages other than 120VAC * Fix LOADPCT (CI_LOAD) on MODBUS driver * Fix issue with net driver not reporting MODEL value 3.14.11 -- 31 January 2014 (Maintenance Release) NEW FEATURES * MODBUS protocol support Over the summer, APC publicly released documentation[1] on a new UPS control and monitoring protocol, loosely referred to as MODBUS (after the historic industrial control protocol it is based on). The new protocol operates over RS232 serial lines as well as USB connections and is intended to supplement APC's proprietary Microlink protocol. Microlink is not going away, but APC has realized that third parties require access to UPS status and control information. Rather than publicly open Microlink, they have created another protocol to operate along side it. Many existing Microlink UPSes can be upgraded to support MODBUS via a firmware update. See [2]. Certain older models are not upgradeable. APC support will be your best contact for determining if your UPS supports a MODBUS upgrade the information linked below does not make it clear. For now, apcupsd supports MODBUS over RS232 serial only. It DOES NOT yet support MODBUS over USB. See the apcupsd manual[3] for information on setting up apcupsd.conf for MODBUS UPSes. [1] http://www.apc.com/whitepaper/?an=176 [2] http://www.schneider-electric.us/support/index?page=content&country=ITB&lang=EN&id=FA164737 [3] http://www.apcupsd.com/manual/manual.html * Windows USB driver is now digitally signed thanks to Jernej Simoncic 3.14.10 -- 13 September 2011 (Maintenance Release) BUG FIXES * Fix missing status and spurrious incorrect status on newer BackUPS CS models using USB interface. * USB compatibility fixes for Mac OS X Lion * USB driver support for newer Microlink models on Mac OS X Lion and Windows * Ignore transitions to battery due to calibration (possible if user initiates calibration, then exits apctest and starts apcupsd before calibration completes. * Fix truncation of long UPS model names such as "Smart-UPS RT 5000 XL" * Fix MODEL vs. APCMODEL confusion. Remove APCMODEL and rename old MODEL aka 'mode' to DRIVER. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.79 2015/11/18 14:19:54 ryoon Exp $ d68 6 a73 7 PLATFORM_SUBDIR=${OPSYS:tl} .if ${OPSYS} == "DragonFly" PLATFORM_SUBDIR=netbsd .endif .if ${OPSYS} == "SunOS" PLATFORM_SUBDIR=sun .endif @ 1.79 log @Recursive revbump from multimedia/libvpx @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.78 2015/08/18 07:31:17 wiz Exp $ d3 1 a3 2 DISTNAME= apcupsd-3.14.9 PKGREVISION= 12 d5 2 a6 1 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=apcupsd/} d11 1 d19 1 a38 2 CONFIGURE_ARGS+= --with-catgets # use catgets functions CONFIGURE_ARGS+= --enable-nls # i18n support d94 1 a94 3 HTMLDOCS= apcupsd.gif bclogo.gif bugs.html index.html license.html \ lists.html mail16d.png support.html systems.html HTMLMANUALS= manual.html apcupsd.png charging.png commlost.png \ d108 1 a108 1 ${INSTALL_DATA} ${WRKSRC}/doc/home-page/${file} \ a110 4 .for file in ${HTMLMANUALS} ${INSTALL_DATA} ${WRKSRC}/doc/manual/${file} \ ${DESTDIR}${PREFIX}/share/doc/html/apcupsd/manual .endfor @ 1.78 log @Bump all packages that depend on curses.bui* or terminfo.bui* since they might incur ncurses dependencies on some platforms, and ncurses just bumped its shlib. Some packages were bumped twice now, sorry for that. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.77 2015/06/30 09:57:41 ryoon Exp $ d4 1 a4 1 PKGREVISION= 11 @ 1.77 log @Recursive revbump from pkgsrc/multimedia/libvpx. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.76 2013/12/11 11:55:17 jperkin Exp $ d4 1 a4 1 PKGREVISION= 10 @ 1.76 log @Package requires libusb. Patch from Sebastian Wiedenroth. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.75 2013/09/04 12:31:26 obache Exp $ d4 1 a4 1 PKGREVISION= 9 @ 1.75 log @recursive bump from graphics/gd shlib major bump. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.74 2013/06/04 22:17:03 tron Exp $ d119 1 @ 1.74 log @Try to fix the fallout caused by the fix for PR pkg/47882. Part 3: Recursively bump package revisions again after the "freetype2" and "fontconfig" handling was fixed. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.73 2013/06/03 10:05:56 wiz Exp $ d4 1 a4 1 PKGREVISION= 8 @ 1.73 log @Bump freetype2 and fontconfig dependencies to current pkgsrc versions, to address issues with NetBSD-6(and earlier)'s fontconfig not being new enough for pango. While doing that, also bump freetype2 dependency to current pkgsrc version. Suggested by tron in PR 47882 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.72 2013/05/04 12:52:29 joerg Exp $ d4 1 a4 1 PKGREVISION= 7 @ 1.72 log @Link C++ code with the C++ compiler. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.71 2013/02/16 11:24:23 wiz Exp $ d4 1 a4 1 PKGREVISION= 6 @ 1.71 log @Recursive bump for png-1.6. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.70 2013/01/26 21:38:49 adam Exp $ d52 1 a52 1 CONFIGURE_ENV+= ac_cv_path_MAKE=${MAKE:Q} @ 1.70 log @Revbump after graphics/jpeg and textproc/icu @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.69 2012/10/23 19:50:51 asau Exp $ d4 1 a4 1 PKGREVISION= 5 @ 1.69 log @Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.68 2012/05/07 12:55:23 shattered Exp $ d4 1 a4 1 PKGREVISION= 4 @ 1.68 log @Proofread apccontrol's messages. Raise syslog severity for 'emergency' message to 'crit'. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.67 2012/02/18 21:10:48 bouyer Exp $ a11 2 PKG_DESTDIR_SUPPORT= user-destdir @ 1.67 log @Fix build on OpenSolaris, from MASUDA Hideo in PR pkg/46043 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.66 2012/01/22 09:07:50 shattered Exp $ d4 1 a4 1 PKGREVISION= 3 @ 1.66 log @Actually install the manual (manual.html), but don't install WML-formatted docs. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.65 2011/11/01 06:11:58 sbd Exp $ d74 3 d79 1 a79 1 EGFILES= netbsd/apccontrol etc/changeme etc/commfailure etc/commok \ @ 1.65 log @Recursive bump for graphics/freetype2 buildlink addition. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.64 2011/08/14 21:42:14 shattered Exp $ d4 1 a4 1 PKGREVISION= 2 d19 1 a19 1 PKG_SYSCONFSUBDIR= apcupsd d56 1 a56 1 EGDIR= ${PREFIX}/share/examples/apcupsd d68 1 a77 1 MANFILES= apcupsd apctest d80 1 a80 1 share/doc/html/apcupsd d93 5 a97 3 HTMLDOCS= apcupsd.gif bclogo.gif bugs.html bugs.wml index.html index.wml \ license.html license.wml lists.html lists.wml mail16d.png menu.inc \ publishsite support.html support.wml systems.html systems.wml template.inc d112 4 @ 1.64 log @PR/38104 - remove conflict with nut: rename upsimage.cgi to apcupsimage.cgi OK by maintainer. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.63 2011/08/07 17:27:24 bouyer Exp $ d4 1 a4 1 PKGREVISION= 1 a6 1 PKGREVISION= 1 @ 1.63 log @Apply patch from PR pkg/45171, fixing rc.d script on DragonFly. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.62 2011/08/01 14:54:51 bouyer Exp $ d4 1 @ 1.62 log @Update to 3.14.9. Dragonfly users, please test that is still builds ! pkgsrc change: as snmp support doesn't depend on net-snmp anymore, remove snmp option and always build snmp support. cgi option now depend on graphics/gd/ User-visible changes sinces 3.14.3: 2010-08-30 14:18 adk0212 * src/drivers/snmplite/: mge-mib.cpp, mge-oids.h, mibs.cpp: Add support for MGE SNMP MIB. Contributed by Lars Täer 2010-07-30 18:04 adk0212 * src/drivers/snmplite/: apc-mib.cpp, apc-oids.h, mib.cpp, oids.h, rfc1628-mib.cpp, rfc1628-oids.h, snmplite.cpp, snmplite.h: Add support for RFC1628 SNMP MIB. Refactor APC MIB and create MibStrategy struct for associating MIB/CI mapping with corresponding processing function. RFC1628 strategy is coded per the MIB but untested. 2010-01-10 10:29 adk0212 * include/defines.h, src/apctest.c, src/drivers/usb/usb.c: Add apctest support for reading/setting self-test interval on USB. Also show current setting in UPS status. Contributed by James Belleau 2009-10-25 11:03 adk0212 * configure, autoconf/config.h.in, autoconf/configure.in, autoconf/variables.mak.in, include/struct.h, platforms/etc/apcupsd.conf.in, src/drivers/Makefile, src/drivers/drivers.c, src/drivers/snmplite/Makefile, src/drivers/snmplite/asn.cpp, src/drivers/snmplite/asn.h, src/drivers/snmplite/mib.cpp, src/drivers/snmplite/snmp.cpp, src/drivers/snmplite/snmp.h, src/drivers/snmplite/snmplite.cpp, src/drivers/snmplite/snmplite.h, src/lib/apcconfig.c, src/lib/apcstatus.c: Add SNMP Lite driver which does not depend on net-snmp library. This makes it more portable and eliminates need to move libsnmp.so to /lib in order to do a killpower on systems where /usr is unmounted. 2009-09-01 20:30 adk0212 * src/apctest.c: Implement battery calibration in apctest for USB models. Thanks to James Belleau for the original implementation which has been modified somewhat in this commit. 2009-05-02 10:30 adk0212 * src/action.c: Change log level of UPS self-test messages to WARNING from ALERT. Given that self-test messages are routine, they do not belong at LOG_ALERT. Contributed by Dave Ewart . 2009-04-25 10:58 adk0212 * src/lib/apcconfig.c: Remove EVENTFILE, EVENTFILEMAX config directives. These were replaced by the plural versions that are in use today (EVENTSFILE, EVENTSFILEMAX) almost 10 years ago. It's time to kill the old names. (h/t Trevor Roydhouse ) 2009-03-02 17:48 adk0212 * doc/apcupsd.man, include/drivers.h, include/extern.h, src/action.c, src/apctest.c, src/apcupsd.c, src/device.c, src/options.c, src/drivers/drivers.c, src/drivers/apcsmart/apcsmart.h, src/drivers/apcsmart/smart.c, src/drivers/apcsmart/smartoper.c, src/drivers/usb/usb.c, src/drivers/usb/usb.h, src/lib/apclock.c: Add support for turning the UPS off completely. This complements existing hibernate (aka killpower) functionality. Turn-off is implemented for apcsmart and USB drivers, subject to support for the relevant commands in the UPS itself. Contributed by Keith Campbell . 2008-06-29 11:12 adk0212 * src/action.c: Fix bug in LOWBATT glitch handling. We must examine LOWBATT for changes every time thru the status loop, not just during the OnBattery state. Otherwise we can miss the initial LOWBATT assertion, which defeats the glitch rejection logic. 2008-05-06 20:16 skoona * src/gapcmon/gapcmon.c: Corrected the use of NOMPOWER and the calc of current usage amount 2008-05-04 11:13 adk0212 * src/drivers/usb/usb.c: Add a heuristic to fix up incorrect NOMINV or NOMOUTV. Some UPSes (RS 500) report decivolts instead of volts. Reported by Kirill S. Bychkov . 2008-01-27 12:00 adk0212 * include/struct.h, platforms/etc/apcupsd.conf.in, platforms/mingw/apcupsd.conf.in, src/device.c, src/drivers/net/net.c, src/drivers/snmp/drv_powernet.c, src/lib/apcconfig.c: Add POLLTIME directive to control UPS polling interval. NETTIME is accepted as a synonym for compatibility with old config files. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.61 2011/04/22 13:44:39 obache Exp $ d6 1 d69 5 a73 1 RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/platforms/${OPSYS:tl}/apcupsd @ 1.61 log @recursive bump from gettext-lib shlib bump. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.60 2010/02/19 19:05:26 joerg Exp $ d3 1 a3 2 DISTNAME= apcupsd-3.14.3 PKGREVISION= 3 d13 1 a13 1 USE_TOOLS+= msgfmt sh makedepend d40 1 a86 6 post-build: .for file in ${MANFILES} ${SED} -e 's|@@@@PREFIX@@@@|${PREFIX}|'\ -e 's|@@@@SYSCONFDIR@@@@|${PKG_SYSCONFDIR}|' \ ${WRKSRC}/doc/${file}.man > ${WRKSRC}/doc/${file}.8 .endfor @ 1.61.2.1 log @Pullup ticket #3493 - requested by bouyer sysutils/apcupsd: build fix Revisions pulled up: - sysutils/apcupsd/Makefile 1.62 - sysutils/apcupsd/PLIST 1.13 - sysutils/apcupsd/distinfo 1.15 - sysutils/apcupsd/options.mk 1.3 - sysutils/apcupsd/patches/patch-aa deleted - sysutils/apcupsd/patches/patch-ae 1.7 - sysutils/apcupsd/patches/patch-af 1.7 - sysutils/apcupsd/patches/patch-ag 1.5 - sysutils/apcupsd/patches/patch-ai 1.5 - sysutils/apcupsd/patches/patch-aj 1.8 - sysutils/apcupsd/patches/patch-al 1.5 - sysutils/apcupsd/patches/patch-an 1.6 - sysutils/apcupsd/patches/patch-ao 1.7 --- Module Name: pkgsrc Committed By: bouyer Date: Mon Aug 1 14:54:51 UTC 2011 Modified Files: pkgsrc/sysutils/apcupsd: Makefile PLIST distinfo options.mk pkgsrc/sysutils/apcupsd/patches: patch-ae patch-af patch-ag patch-ai patch-aj patch-al patch-an patch-ao Removed Files: pkgsrc/sysutils/apcupsd/patches: patch-aa Log Message: Update to 3.14.9. Dragonfly users, please test that is still builds ! pkgsrc change: as snmp support doesn't depend on net-snmp anymore, remove snmp option and always build snmp support. cgi option now depend on graphics/gd/ User-visible changes sinces 3.14.3: 2010-08-30 14:18 adk0212 * src/drivers/snmplite/: mge-mib.cpp, mge-oids.h, mibs.cpp: Add support for MGE SNMP MIB. Contributed by Lars Täer 2010-07-30 18:04 adk0212 * src/drivers/snmplite/: apc-mib.cpp, apc-oids.h, mib.cpp, oids.h, rfc1628-mib.cpp, rfc1628-oids.h, snmplite.cpp, snmplite.h: Add support for RFC1628 SNMP MIB. Refactor APC MIB and create MibStrategy struct for associating MIB/CI mapping with corresponding processing function. RFC1628 strategy is coded per the MIB but untested. 2010-01-10 10:29 adk0212 * include/defines.h, src/apctest.c, src/drivers/usb/usb.c: Add apctest support for reading/setting self-test interval on USB. Also show current setting in UPS status. Contributed by James Belleau 2009-10-25 11:03 adk0212 * configure, autoconf/config.h.in, autoconf/configure.in, autoconf/variables.mak.in, include/struct.h, platforms/etc/apcupsd.conf.in, src/drivers/Makefile, src/drivers/drivers.c, src/drivers/snmplite/Makefile, src/drivers/snmplite/asn.cpp, src/drivers/snmplite/asn.h, src/drivers/snmplite/mib.cpp, src/drivers/snmplite/snmp.cpp, src/drivers/snmplite/snmp.h, src/drivers/snmplite/snmplite.cpp, src/drivers/snmplite/snmplite.h, src/lib/apcconfig.c, src/lib/apcstatus.c: Add SNMP Lite driver which does not depend on net-snmp library. This makes it more portable and eliminates need to move libsnmp.so to /lib in order to do a killpower on systems where /usr is unmounted. 2009-09-01 20:30 adk0212 * src/apctest.c: Implement battery calibration in apctest for USB models. Thanks to James Belleau for the original implementation which has been modified somewhat in this commit. 2009-05-02 10:30 adk0212 * src/action.c: Change log level of UPS self-test messages to WARNING from ALERT. Given that self-test messages are routine, they do not belong at LOG_ALERT. Contributed by Dave Ewart . 2009-04-25 10:58 adk0212 * src/lib/apcconfig.c: Remove EVENTFILE, EVENTFILEMAX config directives. These were replaced by the plural versions that are in use today (EVENTSFILE, EVENTSFILEMAX) almost 10 years ago. It's time to kill the old names. (h/t Trevor Roydhouse ) 2009-03-02 17:48 adk0212 * doc/apcupsd.man, include/drivers.h, include/extern.h, src/action.c, src/apctest.c, src/apcupsd.c, src/device.c, src/options.c, src/drivers/drivers.c, src/drivers/apcsmart/apcsmart.h, src/drivers/apcsmart/smart.c, src/drivers/apcsmart/smartoper.c, src/drivers/usb/usb.c, src/drivers/usb/usb.h, src/lib/apclock.c: Add support for turning the UPS off completely. This complements existing hibernate (aka killpower) functionality. Turn-off is implemented for apcsmart and USB drivers, subject to support for the relevant commands in the UPS itself. Contributed by Keith Campbell . 2008-06-29 11:12 adk0212 * src/action.c: Fix bug in LOWBATT glitch handling. We must examine LOWBATT for changes every time thru the status loop, not just during the OnBattery state. Otherwise we can miss the initial LOWBATT assertion, which defeats the glitch rejection logic. 2008-05-06 20:16 skoona * src/gapcmon/gapcmon.c: Corrected the use of NOMPOWER and the calc of current usage amount 2008-05-04 11:13 adk0212 * src/drivers/usb/usb.c: Add a heuristic to fix up incorrect NOMINV or NOMOUTV. Some UPSes (RS 500) report decivolts instead of volts. Reported by Kirill S. Bychkov . 2008-01-27 12:00 adk0212 * include/struct.h, platforms/etc/apcupsd.conf.in, platforms/mingw/apcupsd.conf.in, src/device.c, src/drivers/net/net.c, src/drivers/snmp/drv_powernet.c, src/lib/apcconfig.c: Add POLLTIME directive to control UPS polling interval. NETTIME is accepted as a synonym for compatibility with old config files. @ text @d1 1 a1 1 # $NetBSD$ d3 2 a4 1 DISTNAME= apcupsd-3.14.9 d14 1 a14 1 USE_TOOLS+= gmake msgfmt sh makedepend a40 1 CONFIGURE_ARGS+= --enable-snmp # enable SNMP driver d87 6 @ 1.61.2.2 log @Pullup ticket #3494 - requested by bouyer sysutils/apcupsd: Dragonfly fix Revisions pulled up: - sysutils/apcupsd/Makefile 1.63 ------------------------------------------------------------------- Module Name: pkgsrc Committed By: bouyer Date: Sun Aug 7 17:27:24 UTC 2011 Modified Files: pkgsrc/sysutils/apcupsd: Makefile Log Message: Apply patch from PR pkg/45171, fixing rc.d script on DragonFly. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 pkgsrc/sysutils/apcupsd/Makefile @ text @a5 1 PKGREVISION= 1 d68 1 a68 5 PLATFORM_SUBDIR=${OPSYS:tl} .if ${OPSYS} == "DragonFly" PLATFORM_SUBDIR=netbsd .endif RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/platforms/${PLATFORM_SUBDIR}/apcupsd @ 1.60 log @Really use root for the config files. Bump revision. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.59 2008/12/07 22:54:00 bouyer Exp $ d4 1 a6 1 PKGREVISION= 2 @ 1.59 log @pkg/40112: don't hardcode "netbsd" in RCD_SCRIPT_SRC.apcupsd bump PKGREVISION @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.58 2008/06/20 01:09:35 joerg Exp $ d6 1 a6 1 PKGREVISION= 1 d57 10 a66 10 CONF_FILES_PERMS+= ${EGDIR}/apcupsd.conf ${PKG_SYSCONFDIR}/apcupsd.conf ${ROOT_USER} ${ROOT_GROUP} 644 CONF_FILES_PERMS+= ${EGDIR}/apcupsd.css ${PKG_SYSCONFDIR}/apcupsd.css ${ROOT_USER} ${ROOT_GROUP} 644 CONF_FILES_PERMS+= ${EGDIR}/changeme ${PKG_SYSCONFDIR}/changeme ${ROOT_USER} ${ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/commfailure ${PKG_SYSCONFDIR}/commfailure ${ROOT_USER} ${ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/commok ${PKG_SYSCONFDIR}/commok ${ROOT_USER} ${ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/multimon.conf ${PKG_SYSCONFDIR}/multimon.conf ${ROOT_USER} ${ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/hosts.conf ${PKG_SYSCONFDIR}/hosts.conf ${ROOT_USER} ${ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/offbattery ${PKG_SYSCONFDIR}/offbattery ${ROOT_USER} ${ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/onbattery ${PKG_SYSCONFDIR}/onbattery ${ROOT_USER} ${ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/apccontrol ${PKG_SYSCONFDIR}/apccontrol ${ROOT_USER} ${ROOT_GROUP} 755 @ 1.58 log @Add DESTDIR support. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.57 2008/04/28 08:28:05 sborrill Exp $ d6 1 d68 1 a68 1 RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/platforms/netbsd/apcupsd @ 1.57 log @Update to 2.14.3: 3.14.3 -- 20 January 2008 (Maintenance Release) NEW FEATURES * A HAL policy file is automatically installed on Linux systems to disable the hald-addon-hid-ups module which conflicts with apcupsd's control of USB UPSes. The file is automatically removed when apcupsd is uninstalled. BUG FIXES * Add support for Nominal Power (aka Configured Active Power) reading. Credit to Lars Randers for most of the code. * Add units to NOMINV, NOMOUTV, and NOMBATTV stats. * Eliminate "warning: deprecated conversion from string constant to 'char*'" warnings emitted from gcc-4.2.1 (earlier versions with -Wwrite-strings). Contributed by Steve Yarmie . * Fix killpower and eeprom settings bug on USB modules introduced when INPUT reports were prioritized over FEATURE reports. * Fix bugs that could cause NIS-net driver to get stuck waiting for comms to be restored instead of shutting down. 3.14.2 -- 15 September 2007 (Maintenance Release) NEW FEATURES * Tray icon support on Vista. Vista does not allow background services to interact with the user's desktop, so winapcupsd's built-in tray icon did not work. * Tray icon is now a standalone application "apctray" which is capable of monitoring multiple Apcupsd instances via Apcupsd's NIS. Any Apcupsd running NIS can be monitored. By default the icon monitors a single apcupsd at 127.0.0.1:3551. See command line options below for adding additional monitors. * Tray icon can be installed individually (disable other packages in the installer) for users who want to use the icon only. * Apctray command line options: apctray.exe - No parameters: Start any instances listed in registry. If no instances in reg, start a default instance monitoring the local machine (127.0.0.1:3551). apctray.exe /host foo /port 3551 /add - Add a monitor for the given host and port. apctray.exe /host foo /port 3551 /del - Remove the given monitor. apctray.exe /del - Remove all monitors. apctray.exe /install - Configure apctray to start automatically. apctray.exe /remove - Do not start automatically. apctray.exe /kill - Shut down apctray BUG FIXES * The win32 portions of winapcupsd have been almost entirely rewritten. The code is cleaner (mostly) and lots of unused baggage has been removed. * USB fix for BackUPS LCD series. This fix carries a risk of breaking other models, but test results are positive so far. * Fix linux-usb device detection bug when multiple hiddev nodes are present. Fixes Fedora Bugzilla #245864: * Fix SNMP port selection when using SNMP driver * Add workaround for broken BackUPS Pro model that returns certain reports encoded in ASCII. Based on a patch from David Fries . * apcsmart: Wait 20 seconds before declaring COMMLOST. This is necessary when using a smart serial cable on an UPS with an SNMP monitoring card installed. The SNMP card appears to disrupt serial comms for several seconds when interesting events are in progress. * Documentation updates: Fix up udev info for modern Linux distros. Update Windows section for apctray. * Don't leak unnecessary descriptors to child when execing apccontrol. * Fix bug with multi-threaded net_open() calls. net_open() was using a global buffer for the destination address. Yikes! Bug manifestied itself in apctray with multiple monitors occasionally (and timing-dependently) pointing to the wrong UPS. * Correct multimon.conf humidity monitoring. Problem fixed by Patrick Frei. Reference: https://bugzilla.novell.com/show_bug.cgi?id=199834 * Fix race between attach_ups() and detach_ups() which could result in the UPSINFO structure being freed prematurely. Thanks to James Abbott for running many tests to help me find this bug. * Remove dependency on libc++ (again). Must use gcc as linker when using libsupc++ since g++ automatically links against full libc++. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.56 2007/10/29 12:44:56 sborrill Exp $ d11 2 d73 2 a74 1 INSTALLATION_DIRS= share/examples/apcupsd share/examples/rc.d d99 1 a99 1 ${PREFIX}/share/examples/apcupsd d101 1 a101 1 ${PREFIX}/share/examples/apcupsd d104 1 a104 1 ${PREFIX}/share/examples/apcupsd a105 1 ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/apcupsd d108 1 a108 1 ${PREFIX}/share/doc/html/apcupsd @ 1.56 log @Don't need to bump PKGREVISION as by default, options as on (i.e. same as before) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.55 2007/10/29 12:40:58 sborrill Exp $ d3 1 a3 2 DISTNAME= apcupsd-3.14.1 PKGREVISION= 2 @ 1.55 log @Add cgi and snmp options (on by default) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.54 2007/10/09 19:19:15 martti Exp $ d4 1 a4 1 PKGREVISION= 3 @ 1.54 log @Remove trailing spaces. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.53 2007/09/18 19:24:07 bouyer Exp $ d4 1 a4 1 PKGREVISION= 2 d19 2 a28 3 # XXX this should be an option... CONFIGURE_ARGS+= --enable-cgi # include CGI support CONFIGURE_ARGS+= --with-cgi-bin=${PREFIX}/libexec/cgi-bin a36 3 # XXX this should be an option... .include "../../net/net-snmp/buildlink3.mk" CONFIGURE_ARGS+= --enable-snmp # enable SNMP driver @ 1.53 log @Fix path in RCD_SCRIPT_SRC, and let RCD_SCRIPT install it in share/example/rc.d/. Based on patch from MASUDA Hideo in pkg/36970, and advise from Joerg Sonnenber. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.52 2007/06/19 22:22:55 bouyer Exp $ d76 1 a76 1 INSTALLATION_DIRS= share/examples/apcupsd share/examples/rc.d @ 1.52 log @Properly handle config files in $PREFIX/etc. Not sure how this worked with the previous version of the package ... Pointed out by Bernd Ernesti. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.51 2007/06/15 21:15:38 bouyer Exp $ d70 1 a70 1 RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/distributions/netbsd/apcupsd a107 2 ${INSTALL_SCRIPT} ${WRKSRC}/platforms/netbsd/apcupsd \ ${PREFIX}/share/examples/rc.d @ 1.51 log @Use a more up-to-date config file as example Add rc.d keywords to the startup script both suggested by Bernd Ernesti. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.50 2007/06/15 19:05:56 bouyer Exp $ d4 1 a4 1 PKGREVISION= 1 d60 1 d102 2 @ 1.50 log @Update to 3.14.1, based on patches sent in PR pkg/35594 and pkg/36246. As a side effect this should make apcupsd build on netbsd-4 and current. pkgsrc changes: cgi and snmp are now enabled by default. Relevant changes since 3.12.4: Unreliable MASTER/SLAVE networking mode is removed PowerChute Network Shutdown driver (protocol available in the AP9617 family of smart slot modules) New configuration directives to set paths at runtime @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.49 2007/03/24 19:21:32 joerg Exp $ d4 1 d59 1 a59 1 CONF_FILES_PERMS+= ${EGDIR}/apcupsd.master.conf ${PKG_SYSCONFDIR}/apcupsd.conf ${ROOT_USER} ${ROOT_GROUP} 644 a87 6 ${SED} -e 's|@@@@PREFIX@@@@|${PREFIX}|' \ ${WRKSRC}/examples/apcupsd.master.conf > \ ${WRKDIR}/apcupsd.master.conf ${SED} -e 's|@@@@PREFIX@@@@|${PREFIX}|' \ ${WRKSRC}/examples/apcupsd.slave.conf > \ ${WRKDIR}/apcupsd.slave.conf d99 1 a99 3 ${INSTALL_DATA} ${WRKDIR}/apcupsd.master.conf \ ${PREFIX}/share/examples/apcupsd ${INSTALL_DATA} ${WRKDIR}/apcupsd.slave.conf \ @ 1.49 log @Prepare for switching to NO_MTREE=yes. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.48 2007/03/07 20:47:05 joerg Exp $ d3 1 a3 1 DISTNAME= apcupsd-3.12.4 a5 1 PKGREVISION= 1 d11 1 a11 1 USE_TOOLS+= gmake msgfmt sh makedepend d16 1 a16 1 PKG_SYSCONFSUBDIR= apcupsd d18 3 a20 2 # Thread support is needed to for http support, and to compile powerflute, # which has a curses interface a21 1 #CONFIGURE_ARGS+= --enable-http # include http support d26 9 d37 3 a39 1 #CONFIGURE_ARGS+= --enable-snmp # enable SNMP driver d43 4 d54 1 d62 2 a63 2 CONF_FILES_PERMS+= ${EGDIR}/masterconnect ${PKG_SYSCONFDIR}/masterconnect ${ROOT_USER} ${ROOT_GROUP} 755 CONF_FILES_PERMS+= ${EGDIR}/mastertimeout ${PKG_SYSCONFDIR}/mastertimeout ${ROOT_USER} ${ROOT_GROUP} 755 d71 1 a71 1 etc/masterconnect etc/mastertimeout etc/offbattery etc/onbattery d76 9 a84 1 # we should probably allow the tty to be set in /etc/mk.conf too @ 1.48 log @Allow this to build on DragonFly. Complete untested, feedback is welcome. If it is provided, it might be worth to fix the distribution name :-) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.47 2006/12/20 20:49:12 bouyer Exp $ d59 2 a80 1 ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/apcupsd @ 1.47 log @Enable USB by default, it works fine once uhidev is disabled in kernel and doesn't hurt serial connections. Bump pkgrevision. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.46 2006/11/17 19:51:20 bouyer Exp $ d12 1 a12 1 USE_TOOLS+= gmake msgfmt sh @ 1.46 log @Change 'USE_LANGUAGES+= c++' to 'USE_LANGUAGES= c c++'. It seems that 'c' isn't in USE_LANGUAGES by default, and this cause the configure script to fail (I still don't know why it works for me). Pointed out by Martti Kuparinen in private mail, and Robert Elz in PR pkg/35064. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.45 2006/11/15 21:46:24 bouyer Exp $ d6 1 d28 1 @ 1.45 log @Update to 3.12.4. Summary of changes since 3.8.6: * Support for USB UPSe (not enabled in pkgsrc) * new networking driver (net) that uses the NIS interface rather than the older master/slave networking * The apctest program has been enhanced to do EEPROM programming in a much more interactive way than the prior versions. * Added a ONBATTERYDELAY config, time to switch to onbattery state after a power failure. New event "offbattery", which is the same as mainsback but only sent if we got to state onbattery * new snmp driver, with trap support. * Battery disconnect and reconnect events @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.44 2006/08/04 08:05:54 ghen Exp $ d12 1 a12 1 USE_LANGUAGES+= c++ @ 1.44 log @The Apcupsd homepage has moved to http://www.apcupsd.org. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.43 2006/04/13 18:23:37 jlam Exp $ d3 1 a3 2 DISTNAME= apcupsd-3.8.6 PKGREVISION= 5 d12 1 d26 2 d45 3 a48 1 CONF_FILES_PERMS+= ${EGDIR}/mainsback ${PKG_SYSCONFDIR}/mainsback ${ROOT_USER} ${ROOT_GROUP} 755 d53 4 d66 1 d69 2 a70 1 ${WRKSRC}/doc/apcupsd.man > ${WRKSRC}/doc/apcupsd.8 d72 3 a74 29 DOCS= README.BackUPS \ README.BackUPS-Pro \ README.NewerBackUPS-Pro \ README.Share-UPS \ README.SmartUPS-VS \ README.apcaccess \ README.autoconfig \ README.cable \ Statement.APCC \ apcupsd-bug-1 \ apcupsd-bug-2 \ minicom.txt \ port.gif HTMLDOCS= apcaccess.html apcnisd.html apctest.html apcupsd-styles.css \ apcupsd.book apcupsd.gif apcupsd.html batteries.html bugs.html \ cables.html cgiprogs.html charging.gif config-examples.html \ configure.html data.html eprom.html events.html faq.html index.html \ install.html invoking.html kernel_config.html license.html \ logging.html master-slave.html multiUPS.html multimon.gif \ new_features_3_7_0.html new_features_3_8_0.html \ new_features_3_8_1.html new_features_3_8_2.html \ new_features_3_8_3.html new_features_3_8_4.html \ new_features_3_8_5.html oldversions.html onbatt.gif online.gif \ security.html shutdown.html status.gif status.html stopping.html \ testing.html thanks.gif thanks.html troubles.html \ upgrading_to_3_7_0.html upsbible.html usb.html win32.html \ wininstall1.gif wininstall2.gif wininstall3.gif wininstall4.gif \ wininstall5.gif wininstall6.gif wininstall7.gif d77 1 d82 3 a84 3 ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/apcupsd .for file in ${DOCS} ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/apcupsd d86 2 d90 1 a90 1 ${INSTALL_DATA} ${WRKSRC}/doc/manual/${file} \ @ 1.43 log @BUILD_USE_MSGFMT and USE_MSGFMT_PLURALS are obsolete. Replace with USE_TOOLS+=msgfmt. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.42 2006/02/05 23:10:48 joerg Exp $ d9 1 a9 1 HOMEPAGE= http://www.sibbald.com/apcupsd/ @ 1.42 log @Recursive revision bump / recommended bump for gettext ABI change. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.41 2005/12/29 06:22:16 jlam Exp $ d12 1 a12 3 BUILD_USES_MSGFMT= yes USE_TOOLS+= gmake sh @ 1.41 log @Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk automatically detects whether we want the pkginstall machinery to be used by the package Makefile. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.40 2005/12/05 23:55:19 rillig Exp $ d4 1 a4 1 PKGREVISION= 4 @ 1.40 log @Ran "pkglint --autofix", which corrected some of the quoting issues in CONFIGURE_ARGS. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.39 2005/12/05 20:50:59 rillig Exp $ a13 1 USE_PKGINSTALL= yes @ 1.39 log @Fixed pkglint warnings. The warnings are mostly quoting issues, for example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some other changes are outlined in http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.38 2005/08/19 18:12:38 jlam Exp $ d33 1 a33 1 CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} @ 1.38 log @Merge CONF_FILES/SUPPORT_FILES and CONF_FILES_PERMS/SUPPORT_FILES_PERMS as the INSTALL and DEINSTALL scripts no longer distinguish between the two types of files. Drop SUPPORT_FILES{,_PERMS} and modify the packages in pkgsrc accordingly. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.37 2005/06/24 19:09:41 kristerw Exp $ d38 1 a38 1 CONFIGURE_ENV+= SCRIPTSHELL="${TOOLS_SH}" @ 1.37 log @Change the CONFIGURE_ENV to use the variables users are supposed to set, rather than the autoconf cache variables. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.36 2005/06/23 21:13:01 kristerw Exp $ d42 1 a42 1 CONF_FILES_PERMS+= ${EGDIR}/apcupsd.master.conf ${PKG_SYSCONFDIR}/apcupsd.conf ${ROOT_USER} ${ROOT_GROUP} 644 d48 1 a48 1 SUPPORT_FILES_PERMS= ${EGDIR}/apccontrol ${PKG_SYSCONFDIR}/apccontrol ${ROOT_USER} ${ROOT_GROUP} 755 @ 1.36 log @Prevent paths to the build directories from being included in the package. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.35 2005/05/22 20:08:31 jlam Exp $ d38 1 a38 1 CONFIGURE_ENV+= ac_cv_path_SCRIPTSHELL="${TOOLS_SH}" @ 1.35 log @Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions: USE_GNU_TOOLS -> USE_TOOLS awk -> gawk m4 -> gm4 make -> gmake sed -> gsed yacc -> bison @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.34 2005/04/11 21:47:22 tv Exp $ d4 1 a4 1 PKGREVISION= 3 d15 1 a15 1 USE_TOOLS+= gmake d38 2 @ 1.34 log @Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.33 2004/12/29 15:42:38 minskim Exp $ d15 1 a15 1 USE_GNU_TOOLS+= make @ 1.33 log @Use VARBASE. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.32 2004/12/28 02:47:50 reed Exp $ a13 1 USE_BUILDLINK3= yes @ 1.32 log @The default location of the pkgsrc-installed rc.d scripts is now under share/examples/rc.d. The variable name already was named RCD_SCRIPTS_EXAMPLEDIR. This is from ideas from Greg Woods and others. Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism (as requested by wiz). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.31 2004/12/05 17:26:47 bouyer Exp $ d32 1 a32 1 CONFIGURE_ARGS+= --with-lock-dir=/var/spool/lock @ 1.31 log @Kill manual use of RCD_SCRIPTS_EXAMPLEDIR, set RCD_SCRIPT_SRC.apcupsd to the appropriate path instead. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.30 2004/10/11 22:14:51 reed Exp $ d4 1 a4 1 PKGREVISION= 2 @ 1.30 log @RCD_SCRIPTS_EXAMPLEDIR was just changed to be a relative directory under ${PREFIX} instead of being an absolute path. So fix the references using RCD_SCRIPTS_EXAMPLEDIR to be ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}. This should have no changes to use before. Please note that the MESSAGE files in most cases are wrong in the first place. We have automated mechanisms and could have an automated message for explaining rc.d script usage. (This is something to do!) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.29 2004/10/03 00:18:14 tv Exp $ d49 1 a98 2 ${INSTALL_SCRIPT} ${WRKSRC}/distributions/netbsd/apcupsd \ ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR} @ 1.29 log @Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10 in the process. (More information on tech-pkg.) Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and installing .la files. Bump PKGREVISION (only) of all packages depending directly on the above via a buildlink3 include. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.28 2004/04/27 20:31:08 reed Exp $ d99 1 a99 1 ${RCD_SCRIPTS_EXAMPLEDIR} @ 1.28 log @The RCD_SCRIPTS mechanism expects the rc.d script to be installed to ${RCD_SCRIPTS_EXAMPLEDIR} instead of ${PREFIX}/etc/rc.d. (Okay'd by bouyer@@.) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.27 2004/04/25 09:14:00 snj Exp $ d4 1 a4 1 PKGREVISION= 1 @ 1.27 log @Convert to buildlink3. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.26 2004/01/24 15:06:57 grant Exp $ d99 1 a99 1 ${PREFIX}/etc/rc.d @ 1.26 log @replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.25 2003/09/28 09:13:58 jlam Exp $ d14 1 a14 1 USE_BUILDLINK2= yes d26 1 a26 1 #.include "../../devel/ncurses/buildlink2.mk" d110 1 a110 1 .include "../../devel/gettext-lib/buildlink2.mk" @ 1.25 log @Back out last change related to moving ncurses/buildlink2.mk to curses.buildlink2.mk. This was wrong because we _really_ do want to express that we want _n_curses when we include the buildlink2.mk file. We should have a better way to say that the NetBSD curses doesn't quite work well enough. In fact, it's far better to depend on ncurses by default, and exceptionally note when it's okay to use NetBSD curses for specific packages. We will look into this again in the future. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.24 2003/09/27 17:07:38 grant Exp $ d16 1 a16 1 USE_GMAKE= yes @ 1.24 log @move ncurses/buildlink2.mk to mk/curses.buildlink2.mk, as it provides support for base system curses/ncurses as well as ncurses itself. suggested by wiz. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.23 2003/07/17 22:53:27 grant Exp $ d26 1 a26 1 #.include "../../mk/curses.buildlink2.mk" @ 1.23 log @s/netbsd.org/NetBSD.org/ @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2003/07/13 13:53:13 wiz Exp $ d26 1 a26 1 #.include "../../devel/ncurses/buildlink2.mk" @ 1.22 log @PKGREVISION bump for libiconv update. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2003/03/27 20:01:22 bouyer Exp $ d8 1 a8 1 MAINTAINER= bouyer@@netbsd.org @ 1.21 log @Update to 3.8.6 Changelog: Fixed root exploit of slave machines If you use the network features of apcupsd, you probably want to upgrade. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2003/01/28 22:04:15 jlam Exp $ d4 1 @ 1.20 log @Instead of including bsd.pkg.install.mk directly in a package Makefile, have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set to "YES". This enforces the requirement that bsd.pkg.install.mk be included at the end of a package Makefile. Idea suggested by Julio M. Merino Vidal . @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2002/12/23 16:31:29 cjep Exp $ d3 1 a3 1 DISTNAME= apcupsd-3.8.5 d5 1 a5 1 MASTER_SITES= ftp://ftp.oasi.gpa.it/pub/apcupsd/stable/tar/ @ 1.20.2.1 log @Pull up revision 1.6 (requested by bouyer in ticket #1235): Update to 3.8.6. Changelog: Fixed root exploit of slave machines If you use the network features of apcupsd, you probably want to upgrade. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2003/03/27 20:01:22 bouyer Exp $ d3 1 a3 1 DISTNAME= apcupsd-3.8.6 d5 1 a5 1 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=apcupsd/} @ 1.19 log @Whitespace fix @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2002/12/01 22:32:25 bouyer Exp $ d13 3 a15 2 USE_BUILDLINK2= # defined USE_GMAKE= # defined d17 1 a17 1 GNU_CONFIGURE= # defined a109 2 .include "../../mk/bsd.pkg.install.mk" @ 1.18 log @Update to 3.8.5. Summary of changes since 3.6.2: . New network interface to publish to clients the UPS status . New master/server network code that is more fault tolerant . Internationalization . Use GNU getopt . Logging on syslog . Events logged in a file like APC's PowerChute . Sync code removed: now only async processes are used . Updated documentation (HTTP version) . Bug fixes and enhancements: too many to tell them all . no more powersc script, is has been remplaced with apccontrol . In master/slave configurations, all masters and slaves must be updated at the same time. Version 3.8.0 is not compatible with versions prior to 3.8.0-pre4. . Support for the Back-UPS Office series of UPSes . Fixed dumb UPSes working with the Custom Simple cable. . Correction of a buffer overflow on certain newer UPSes. . More fault tolerant on startup in master/slave configuration. . Additional STATUS variables (number of times on battery, amount of time on batteries, time/date of last transfer to batteries, apcupsd start time/date). . apctest program for testing serial ports. . Automatic notification of certain events by email. . Detects Self Test and reports it as such rather than a Power Failure. . For SmartUPSes, apcupsd does a much better job of adapting to the actual features of the UPS and is more efficient. . Add Battery Runtime Calibration to apctest . UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name from UPS, if not found, uses hostname, finally "default". . Added Ambient Temperature and Humidity to multimon (Carl Erhorn) A number of the configuration statements have changed since versions 3.6.2. You should either take the new apcupsd.conf file and modify it, or update your existing file. In general, we recommend starting with the new file. If you have used a prior version of apcupsd, the CONTROL script file (/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol. Consequently, the CONTROL configuration statement is obsolete. The following configuration statements have been replaced by scripts called from SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete: BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD. If you use the master/slave networking code, please be aware that the @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2002/10/23 10:44:38 wiz Exp $ a47 1 a89 1 a106 1 @ 1.17 log @buildlink1 -> buildlink2. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2002/10/02 22:20:49 dillo Exp $ d3 1 a3 1 DISTNAME= apcupsd-3.6.2 d18 2 d30 18 d52 9 a60 6 ${SED} -e 's|@@@@PREFIX@@@@|${PREFIX}|' ${WRKSRC}/examples/apcupsd.conf > \ ${WRKDIR}/apcupsd.conf ${SED} -e 's|@@@@PREFIX@@@@|${PREFIX}|' ${FILESDIR}/apcupsd > \ ${WRKDIR}/apcupsd ${SED} -e 's|@@@@PREFIX@@@@|${PREFIX}|' ${WRKSRC}/doc/apcupsd.man > \ ${WRKSRC}/doc/apcupsd.8 d62 2 a63 2 DOCS= README.BackUPS-Pro \ README.NEW \ a69 1 README.developers \ d71 3 a73 1 minicom.apcupsd \ d76 17 d94 6 a99 3 ${INSTALL_DATA_DIR} ${PREFIX}/share/examples ${INSTALL_DATA} ${WRKDIR}/apcupsd.conf ${PREFIX}/share/examples ${INSTALL_SCRIPT} ${WRKDIR}/apcupsd ${PREFIX}/etc/rc.d d104 6 d112 2 @ 1.16 log @get rid of autoconf build dependency by patching configure @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2001/10/27 07:00:53 jlam Exp $ d13 1 d22 1 a22 1 #DEPENDS+= ncurses-[0-9]*:../../devel/ncurses d61 1 a61 1 .include "../../devel/gettext-lib/buildlink.mk" @ 1.15 log @Remove commented USE_LIBINTL definitions ... we already use the gettext-lib/buildlink.mk file. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2001/09/27 23:18:42 jlam Exp $ a10 1 BUILD_DEPENDS+= autoconf>=2.13:../../devel/autoconf a26 3 pre-configure: cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf --force @ 1.14 log @Mechanical changes to 375 files to change dependency patterns of the form foo-* to foo-[0-9]*. This is to cause the dependencies to match only the packages whose base package name is "foo", and not those named "foo-bar". A concrete example is p5-Net-* matching p5-Net-DNS as well as p5-Net. Also change dependency examples in Packages.txt to reflect this. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2001/09/27 12:55:40 lukem Exp $ a14 1 #USE_LIBINTL= # defined @ 1.13 log @http support also needs threads, so disable http for now as well @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2001/08/27 14:35:14 tron Exp $ d23 1 a23 1 #DEPENDS+= ncurses-*:../../devel/ncurses @ 1.12 log @Use wildcard dependence on "autoconf" package. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2001/08/01 16:55:38 wiz Exp $ a17 1 CONFIGURE_ARGS+= --enable-http # include http support d19 2 a20 1 # Thread support is needed to compile powerflute, which has a curses interface d22 1 @ 1.11 log @Use gettext-lib buildlink.mk instead of USE_LIBINTL. Fixes problem noted in recent bulk build. @ text @d1 1 a1 2 # $NetBSD: Makefile,v 1.10 2001/06/11 06:34:49 jlam Exp $ # d11 1 a11 1 BUILD_DEPENDS+= autoconf-2.13:../../devel/autoconf @ 1.10 log @CPPFLAGS is now passed to MAKE_ENV and CONFIGURE_ENV by bsd.pkg.mk, so adapt by moving CPPFLAGS settings to top-level, and removing explicit inclusion of CPPFLAGS into MAKE_ENV and CONFIGURE_ENV. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2001/04/02 20:06:16 wiz Exp $ d16 1 a16 1 USE_LIBINTL= # defined d65 1 @ 1.9 log @Move BUILD_USES_MSGFMT in DEPENDS block, mostly by removing empty lines. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2001/03/27 03:20:16 hubertf Exp $ a28 2 CONFIGURE_ENV+= CPFLAGS="${CPPFLAGS}" # make sure libintl.h is found @ 1.8 log @Change BUILD_DEPENDS semantics: first component is now a package name+version/pattern, no more executable/patchname/whatnot. While there, introduce BUILD_USES_MSGFMT as shorthand to pull in devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current). Patch by Alistair Crooks @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2001/02/17 17:42:10 wiz Exp $ a12 1 @ 1.7 log @Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2001/02/06 03:17:00 fredb Exp $ d12 3 a14 2 BUILD_DEPENDS+= ${LOCALBASE}/bin/autoconf:../../devel/autoconf BUILD_DEPENDS+= msgfmt:../../devel/gettext @ 1.6 log @Make that "autoreconf" -- there is no "autoremake". @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2001/02/05 09:01:04 tron Exp $ d10 1 @ 1.5 log @Use full pathname "${LOCALBASE}/bin/auto..." in dependences and make targets. This includes a fix for PR pkg/12125 by Tomasz Luchowski. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2001/01/23 19:56:45 dmcmahill Exp $ d11 1 a11 1 BUILD_DEPENDS+= ${LOCALBASE}/bin/autoremake:../../devel/autoconf d32 1 a32 1 cd ${WRKSRC} && ${LOCALBASE}/bin/autoremake --force @ 1.4 log @set CPFLAGS (no thats not a typo) in CONFIGURE_ENV to make sure libintl.h is found. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2001/01/04 17:42:04 wiz Exp $ d11 1 a11 1 BUILD_DEPENDS+= autoreconf:../../devel/autoconf d32 1 a32 1 cd ${WRKSRC} && autoreconf --force @ 1.3 log @USE_LIBINTL and BUILD_DEPENDS instead of DEPENDS on gettext; fix PLIST. Update HOMEPAGE and MASTER_SITE. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2000/08/05 07:31:15 jlam Exp $ d28 2 @ 1.2 log @Update apcupsd to 3.6.2. Package provided by Greg Woods in pkg/10552. Changes from version 3.5.8: Network is fully functional under non-threaded compile. Possible fix for "pipe_master_status" calls on slaves. Added 940-1524C smart signal cable support. Added internationalization support. There is _only_ the support but no current code is written for the intl package. It can be compiled in, but intl strings have still to be translated (to be done in the future). Added new configuration options to reduce init time of daemon. powersc CONFIG powersc NAME powersc BATTERY Fixes a FIFO error @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1.1.1 2000/01/21 19:15:59 bouyer Exp $ d6 1 a6 1 MASTER_SITES= http://www.brisse.dk/dlarea/ d9 1 a9 1 HOMEPAGE= http://www.brisse.dk/site/apcupsd/ d12 1 a12 1 DEPENDS+= gettext>=0.10.35nb1:../../devel/gettext d15 1 a27 3 CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" CPPFLAGS+= -I${LOCALBASE}/include # libintl.h CFLAGS+= -I${LOCALBASE}/include # libintl.h @ 1.1 log @Initial revision @ text @d1 1 a1 1 # $NetBSD$ d4 62 a65 25 DISTNAME= apcupsd-3.5.8.src PKGNAME= apcupsd-3.5.8 CATEGORIES= sysutils MASTER_SITES= ftp://sunsite.unc.edu/pub/linux/system/ups/ MAINTAINER= bouyer@@netbsd.org HOMEPAGE= http://www.brisse.dk/site/apcupsd/ USE_GMAKE= yes do-install: ${INSTALL_PROGRAM} ${WRKSRC}/apcupsd-netbsd ${PREFIX}/sbin/apcupsd ${INSTALL_PROGRAM} ${WRKSRC}/apcaccess-netbsd ${PREFIX}/bin/apcaccess ${SED} -e 's|@@@@PREFIX@@@@|${PREFIX}|' ${WRKSRC}/installs/powersc > \ ${WRKDIR}/powersc ${INSTALL_SCRIPT} ${WRKDIR}/powersc ${PREFIX}/sbin/ ${SED} -e 's|@@@@PREFIX@@@@|${PREFIX}|' ${WRKSRC}/installs/apcupsd.conf > \ ${WRKDIR}/apcupsd.conf.sample ${INSTALL_DATA} ${WRKDIR}/apcupsd.conf.sample ${PREFIX}/etc/ @@${MKDIR} ${PREFIX}/share/doc/apcupsd ${INSTALL_DATA} ${WRKSRC}/readmes/README* \ ${WRKSRC}/readmes/minicom.apcupsd ${PREFIX}/share/doc/apcupsd/ ${SED} -e 's|@@@@PREFIX@@@@|${PREFIX}|' ${WRKSRC}/docs/apcupsd.man8 > \ ${WRKDIR}/apcupsd.8 ${INSTALL_MAN} ${WRKDIR}/apcupsd.8 ${PREFIX}/man/man8/ @ 1.1.1.1 log @apcupsd, a daemon to manage and monitor APC UPSes. @ text @@