View | Details | Raw Unified | Return to bug 111253
Collapse All | Expand All

(-)/home/jnlin/ports/apcupsd/Makefile (-5 / +2 lines)
Lines 7-14 Link Here
7
# $Tecnik: ports/sysutils/apcupsd/Makefile,v 1.9 2006/04/30 11:36:52 itetcu Exp $
7
# $Tecnik: ports/sysutils/apcupsd/Makefile,v 1.9 2006/04/30 11:36:52 itetcu Exp $
8
8
9
PORTNAME=	apcupsd
9
PORTNAME=	apcupsd
10
PORTVERSION=	3.12.4
10
PORTVERSION=	3.14.0
11
PORTREVISION=	1
12
CATEGORIES=	sysutils
11
CATEGORIES=	sysutils
13
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:S/$/:src_sf/g} \
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:S/$/:src_sf/g} \
14
		http://sce-tindy.tecnik93.com/FreeBSD/ports/${PORTNAME}/sources/:src_bk \
13
		http://sce-tindy.tecnik93.com/FreeBSD/ports/${PORTNAME}/sources/:src_bk \
Lines 31-37 Link Here
31
		--with-nologin=/var/run \
30
		--with-nologin=/var/run \
32
		--disable-install-distdir \
31
		--disable-install-distdir \
33
		--sysconfdir=${PREFIX}/etc/apcupsd \
32
		--sysconfdir=${PREFIX}/etc/apcupsd \
34
		--with-serial-dev=/dev/usv
33
		--with-serial-dev=/dev/usv \
35
34
36
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \
35
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \
37
		CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib"   \
36
		CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib"   \
Lines 92-99 Link Here
92
	done
91
	done
93
	@${ECHO_CMD} "@unexec if [ -d %D/etc/apcupsd ]; then ${ECHO_CMD} \"If you are permanently removing this port, you should do a ``rm -rf ${PREFIX}/etc/apcupsd`` to remove config files left.\" | ${FMT} ; fi" >> ${TMPPLIST}
92
	@${ECHO_CMD} "@unexec if [ -d %D/etc/apcupsd ]; then ${ECHO_CMD} \"If you are permanently removing this port, you should do a ``rm -rf ${PREFIX}/etc/apcupsd`` to remove config files left.\" | ${FMT} ; fi" >> ${TMPPLIST}
94
#	Install sample startup script
93
#	Install sample startup script
95
	${INSTALL_DATA} ${FILESDIR}/apcupsd.conf.net-master.sample ${PREFIX}/etc/apcupsd/
96
	${INSTALL_DATA} ${FILESDIR}/apcupsd.conf.net-slave.sample ${PREFIX}/etc/apcupsd/
97
#	If there is already a config file it is installed as ...new
94
#	If there is already a config file it is installed as ...new
98
	for na in apcupsd.conf apcupsd.css hosts.conf multimon.conf; do \
95
	for na in apcupsd.conf apcupsd.css hosts.conf multimon.conf; do \
99
		if [ -f ${PREFIX}/etc/apcupsd/$$na ]; then \
96
		if [ -f ${PREFIX}/etc/apcupsd/$$na ]; then \
(-)/home/jnlin/ports/apcupsd/distinfo (-3 / +3 lines)
Lines 1-5 Link Here
1
MD5 (apcupsd-3.12.4.tar.gz) = 669c833ec02a2bc29fa98f845e5f5de5
1
MD5 (apcupsd-3.14.0.tar.gz) = 334fe3413c08f14acec0226e71e98e0a
2
SHA256 (apcupsd-3.12.4.tar.gz) = e2c789089a71f8bafc2812a5e20b73f5420e4c234961afb53a30f6ff891640ba
2
SHA256 (apcupsd-3.14.0.tar.gz) = 3d30e5234115b466b97434d8c74f0cfc96c3735add7eb725066e5043ffbd66aa
3
SIZE (apcupsd-3.12.4.tar.gz) = 4223158
3
SIZE (apcupsd-3.14.0.tar.gz) = 4356614
4
MD5 (apcupsd.pdf) = IGNORE
4
MD5 (apcupsd.pdf) = IGNORE
5
SHA256 (apcupsd.pdf) = IGNORE
5
SHA256 (apcupsd.pdf) = IGNORE
(-)/home/jnlin/ports/apcupsd/files/apcupsd.conf.net-master.sample (-35 lines)
Lines 1-35 Link Here
1
## apcupsd.conf v1.1 ##
2
#
3
# apcupsd 3.10.X master configuration
4
#
5
UPSCABLE 940-1524C
6
UPSTYPE smartups
7
DEVICE /dev/usv
8
LOCKFILE /var/spool/lock
9
BATTERYLEVEL 5
10
MINUTES 3
11
TIMEOUT 0
12
ANNOY 300
13
ANNOYDELAY 60
14
NOLOGON disable
15
KILLDELAY 0
16
NETSERVER on
17
#NISIP 0.0.0.0
18
NISPORT 3551
19
EVENTSFILE /var/log/apcupsd.events
20
EVENTSFILEMAX 10
21
UPSCLASS netmaster
22
UPSMODE net
23
STATTIME 0
24
STATFILE /var/log/apcupsd.status
25
LOGSTATS off
26
DATATIME 0
27
UPSNAME LK-SMART
28
BATTDATE 11/20/01
29
WAKEUP 60
30
SLEEP 180
31
LOTRANSFER  208
32
HITRANSFER 253
33
BEEPSTATE 0
34
OUTPUTVOLTS 230
35
SELFTEST 168
(-)/home/jnlin/ports/apcupsd/files/apcupsd.conf.net-slave.sample (-18 lines)
Lines 1-18 Link Here
1
## apcupsd.conf v1.1 ##
2
#
3
#  apcupsd 3.10.X
4
#
5
# "apcupsd" netslave file
6
#
7
UPSCABLE ether
8
UPSTYPE net
9
DEVICE usv.koellers.net:3551
10
LOCKFILE /var/spool/lock
11
EVENTSFILE /var/log/apcupsd.events
12
UPSCLASS standalone
13
UPSMODE disable
14
NISPORT		3551
15
#
16
# Use this to control the poll time.
17
# the default is 60 or 1 minute
18
NETTIME 30
(-)/home/jnlin/ports/apcupsd/pkg-plist (-4 lines)
Lines 3-18 Link Here
3
sbin/apctest
3
sbin/apctest
4
sbin/smtp
4
sbin/smtp
5
%%POWERFL%%sbin/powerflute
5
%%POWERFL%%sbin/powerflute
6
etc/apcupsd/apcupsd.conf.net-master.sample
7
etc/apcupsd/apcupsd.conf.net-slave.sample
8
@unexec if cmp -s %D/etc/apcupsd/apcupsd.conf.sample %D/etc/apcupsd/apcupsd.conf; then rm -f %D/etc/apcupsd/apcupsd.conf; fi
6
@unexec if cmp -s %D/etc/apcupsd/apcupsd.conf.sample %D/etc/apcupsd/apcupsd.conf; then rm -f %D/etc/apcupsd/apcupsd.conf; fi
9
etc/apcupsd/apcupsd.conf.sample
7
etc/apcupsd/apcupsd.conf.sample
10
etc/apcupsd/apccontrol
8
etc/apcupsd/apccontrol
11
etc/apcupsd/changeme
9
etc/apcupsd/changeme
12
etc/apcupsd/commfailure
10
etc/apcupsd/commfailure
13
etc/apcupsd/commok
11
etc/apcupsd/commok
14
etc/apcupsd/masterconnect
15
etc/apcupsd/mastertimeout
16
etc/apcupsd/onbattery
12
etc/apcupsd/onbattery
17
etc/apcupsd/offbattery
13
etc/apcupsd/offbattery
18
%%CGI%%@unexec if cmp -s %D/etc/apcupsd/apcupsd.css.sample %D/etc/apcupsd/apcupsd.css; then rm -f %D/etc/apcupsd/apcupsd.css; fi
14
%%CGI%%@unexec if cmp -s %D/etc/apcupsd/apcupsd.css.sample %D/etc/apcupsd/apcupsd.css; then rm -f %D/etc/apcupsd/apcupsd.css; fi

Return to bug 111253