Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= apcupsd |
4 |
PORTNAME= apcupsd |
5 |
PORTVERSION= 3.14.14 |
5 |
PORTVERSION= 3.14.14 |
6 |
PORTREVISION= 1 |
6 |
PORTREVISION= 2 |
7 |
CATEGORIES= sysutils |
7 |
CATEGORIES= sysutils |
8 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20-%20Stable/${PORTVERSION} |
8 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20-%20Stable/${PORTVERSION} |
9 |
|
9 |
|
Lines 11-16
MAINTAINER= ports@FreeBSD.org
Link Here
|
11 |
COMMENT= Set of programs for controlling APC UPS |
11 |
COMMENT= Set of programs for controlling APC UPS |
12 |
|
12 |
|
13 |
LICENSE= GPLv2 |
13 |
LICENSE= GPLv2 |
|
|
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
14 |
|
15 |
|
15 |
USES= gmake |
16 |
USES= gmake |
16 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
Lines 28-36
SUB_FILES= pkg-message
Link Here
|
28 |
|
29 |
|
29 |
OPTIONS_DEFINE= APCSMART_DRV APCDUMB_DRV CLIENT_ONLY CGI PCNET_DRV USB_DRV \ |
30 |
OPTIONS_DEFINE= APCSMART_DRV APCDUMB_DRV CLIENT_ONLY CGI PCNET_DRV USB_DRV \ |
30 |
SNMP_DRV SNMP_DRV_OLD TCP_WRAPPERS TEST_DRV GAPCMON \ |
31 |
SNMP_DRV SNMP_DRV_OLD TCP_WRAPPERS TEST_DRV GAPCMON \ |
31 |
DOCS MODBUS |
32 |
DOCS MODBUS MODBUS_USB |
32 |
OPTIONS_DEFAULT= APCSMART_DRV APCDUMB_DRV PCNET_DRV SNMP_DRV USB_DRV \ |
33 |
OPTIONS_DEFAULT= APCSMART_DRV APCDUMB_DRV PCNET_DRV SNMP_DRV USB_DRV \ |
33 |
TCP_WRAPPERS MODBUS |
34 |
TCP_WRAPPERS MODBUS MODBUS_USB |
34 |
OPTIONS_SUB= yes |
35 |
OPTIONS_SUB= yes |
35 |
|
36 |
|
36 |
APCSMART_DRV_DESC= APC SmartUPS serial driver support |
37 |
APCSMART_DRV_DESC= APC SmartUPS serial driver support |
Lines 45-52
TCP_WRAPPERS_DESC= ${LIBWRAP_DESC}
Link Here
|
45 |
TEST_DRV_DESC= Test driver support |
46 |
TEST_DRV_DESC= Test driver support |
46 |
GAPCMON_DESC= Build GTK GUI front-end |
47 |
GAPCMON_DESC= Build GTK GUI front-end |
47 |
MODBUS_DESC= MODBUS driver support |
48 |
MODBUS_DESC= MODBUS driver support |
48 |
|
49 |
MODBUS_USB_DESC= MODBUS USB driver support |
49 |
#PORTDOCS= ${PORTNAME}.pdf |
|
|
50 |
|
50 |
|
51 |
APCSMART_DRV_CONFIGURE_ENABLE= apcsmart |
51 |
APCSMART_DRV_CONFIGURE_ENABLE= apcsmart |
52 |
APCDUMB_DRV_CONFIGURE_ENABLE= dumb |
52 |
APCDUMB_DRV_CONFIGURE_ENABLE= dumb |
Lines 64-78
PCNET_DRV_CONFIGURE_ENABLE= pcnet
Link Here
|
64 |
USB_DRV_CONFIGURE_ENABLE= usb |
64 |
USB_DRV_CONFIGURE_ENABLE= usb |
65 |
SNMP_DRV_CONFIGURE_ENABLE= snmp |
65 |
SNMP_DRV_CONFIGURE_ENABLE= snmp |
66 |
MODBUS_CONFIGURE_ENABLE= modbus |
66 |
MODBUS_CONFIGURE_ENABLE= modbus |
|
|
67 |
MODBUS_USB_CONFIGURE_ENABLE= modbus-usb |
67 |
SNMP_DRV_OLD_CONFIGURE_ENABLE= net-snmp |
68 |
SNMP_DRV_OLD_CONFIGURE_ENABLE= net-snmp |
68 |
SNMP_DRV_OLD_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp |
69 |
SNMP_DRV_OLD_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp |
69 |
TCP_WRAPPERS_CONFIGURE_WITH= libwrap=yes |
70 |
TCP_WRAPPERS_CONFIGURE_WITH= libwrap=yes |
70 |
TEST_DRV_CONFIGURE_ENABLE= test |
71 |
TEST_DRV_CONFIGURE_ENABLE= test |
71 |
|
72 |
|
72 |
#CONFIGURE_ARGS+= --with-libwrap=yes |
|
|
73 |
#CONFIGURE_ENV+= LIBS="-lcurses -lmenu" |
74 |
#PLIST_SUB+= POWERFL="" |
75 |
|
76 |
.include <bsd.port.options.mk> |
73 |
.include <bsd.port.options.mk> |
77 |
|
74 |
|
78 |
pre-configure: |
75 |
pre-configure: |
Lines 86-89
pre-configure:
Link Here
|
86 |
@${FALSE} |
83 |
@${FALSE} |
87 |
.endif |
84 |
.endif |
88 |
|
85 |
|
|
|
86 |
pre-install: |
87 |
${MKDIR} ${STAGEDIR}/${ETCDIR} |
88 |
${CP} ${WRKSRC}/platforms/freebsd/apccontrol\ |
89 |
${STAGEDIR}${ETCDIR}/apccontrol.sample |
90 |
.for a in changeme commfailure commok offbattery onbattery |
91 |
${CP} ${WRKSRC}/platforms/etc/${a} ${STAGEDIR}${ETCDIR}/${a}.sample |
92 |
.endfor |
93 |
|
89 |
.include <bsd.port.mk> |
94 |
.include <bsd.port.mk> |