View | Details | Raw Unified | Return to bug 191552 | Differences between
and this patch

Collapse All | Expand All

(-)/home/cyberleo/scm/svn/CyberLeo/sysutils/apcupsd/distinfo (-1 lines)
Lines 1-3 Link Here
1
SHA256 (apcupsd-3.14.10.tar.gz) = 0707b5ec9916fbde9e44eb8d18037c8d8f75dfd6aeef51aba5487e189eef2032
1
SHA256 (apcupsd-3.14.10.tar.gz) = 0707b5ec9916fbde9e44eb8d18037c8d8f75dfd6aeef51aba5487e189eef2032
2
SIZE (apcupsd-3.14.10.tar.gz) = 1336852
2
SIZE (apcupsd-3.14.10.tar.gz) = 1336852
3
SHA256 (apcupsd.pdf) = IGNORE
(-)/home/cyberleo/scm/svn/CyberLeo/sysutils/apcupsd/Makefile (-35 / +5 lines)
Lines 9-23 Link Here
9
		http://T32.TecNik93.com/FreeBSD/ports/${PORTNAME}/sources/:src_bk \
9
		http://T32.TecNik93.com/FreeBSD/ports/${PORTNAME}/sources/:src_bk \
10
		http://apcupsd.sourceforge.net/manual/:doc_sf \
10
		http://apcupsd.sourceforge.net/manual/:doc_sf \
11
		http://T32.TecNik93.com/FreeBSD/ports/${PORTNAME}/sources/:doc_bk
11
		http://T32.TecNik93.com/FreeBSD/ports/${PORTNAME}/sources/:doc_bk
12
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:src_sf,src_bk \
12
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:src_sf,src_bk
13
		${PORTNAME}.pdf:doc_sf,doc_bk
14
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
13
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
15
14
16
MAINTAINER=	itetcu@FreeBSD.org
15
MAINTAINER=	itetcu@FreeBSD.org
17
COMMENT=	Set of programs for controlling APC UPS
16
COMMENT=	Set of programs for controlling APC UPS
18
17
19
BROKEN=		no distinfo provided for some of the distfiles
20
21
USE_RC_SUBR=	apcupsd
18
USE_RC_SUBR=	apcupsd
22
SUB_FILES=	pkg-message
19
SUB_FILES=	pkg-message
23
20
Lines 33-43 Link Here
33
CPPFLAGS+=	-I${LOCALBASE}/include
30
CPPFLAGS+=	-I${LOCALBASE}/include
34
LIBS+=		-L${LOCALBASE}/lib
31
LIBS+=		-L${LOCALBASE}/lib
35
32
36
MAN5=		apcupsd.conf.5
37
MAN8=		apcaccess.8 apccontrol.8 apctest.8 apcupsd.8
38
39
OPTIONS_DEFINE=	APCSMART_DRV APCDUMB_DRV CLIENT_ONLY CGI PCNET_DRV USB SNMP_DRV \
33
OPTIONS_DEFINE=	APCSMART_DRV APCDUMB_DRV CLIENT_ONLY CGI PCNET_DRV USB SNMP_DRV \
40
		SNMP_DRV_OLD TCP_WRAPPERS TEST_DRV GAPCMON DOCS
34
		SNMP_DRV_OLD TCP_WRAPPERS TEST_DRV GAPCMON
41
OPTIONS_DEFAULT=	APCSMART_DRV APCDUMB_DRV PCNET_DRV USB TCP_WRAPPERS
35
OPTIONS_DEFAULT=	APCSMART_DRV APCDUMB_DRV PCNET_DRV USB TCP_WRAPPERS
42
APCSMART_DRV_DESC=	Compile APC SmartUPS serial driver
36
APCSMART_DRV_DESC=	Compile APC SmartUPS serial driver
43
APCDUMB_DRV_DESC=	Compile dumb UPS driver
37
APCDUMB_DRV_DESC=	Compile dumb UPS driver
Lines 51-59 Link Here
51
TEST_DRV_DESC=		Compile TEST driver
45
TEST_DRV_DESC=		Compile TEST driver
52
GAPCMON_DESC=		Build GTK GUI front-end
46
GAPCMON_DESC=		Build GTK GUI front-end
53
47
54
PORTDOCS=	${PORTNAME}.pdf
55
56
NO_STAGE=	yes
57
.include <bsd.port.options.mk>
48
.include <bsd.port.options.mk>
58
49
59
.if ${PORT_OPTIONS:MAPCSMART_DRV}
50
.if ${PORT_OPTIONS:MAPCSMART_DRV}
Lines 138-169 Link Here
138
.endif
129
.endif
139
130
140
post-install:
131
post-install:
141
#	If the files presaved are identical with the new one, include them in
142
#	the package list, so the port can be removed without problems
143
	for na in apccontrol commfailure mainsback mastertimeout \
144
		  changeme commok masterconnect onbattery; do \
145
		if [ -f ${ETCDIR}/$$na.orig ]; then \
146
			if cmp -s ${ETCDIR}/$$na ${ETCDIR}/$$na.orig; then \
147
				${ECHO_CMD} "%%ETCDIR%%/$$na.orig" >> ${TMPPLIST}; \
148
			fi \
149
		fi; \
150
	done
151
	@${ECHO_CMD} "@unexec if [ -d %D/${ETCDIR_REL} ]; then ${ECHO_CMD} \"If you are permanently removing this port, you should do a ``rm -rf ${ETCDIR}`` to remove config files left.\" | ${FMT} ; fi" >> ${TMPPLIST}
152
#	Install sample startup script
153
#	If there is already a config file it is installed as ...new
154
	for na in apcupsd.conf apcupsd.css hosts.conf multimon.conf; do \
132
	for na in apcupsd.conf apcupsd.css hosts.conf multimon.conf; do \
155
		if [ -f ${ETCDIR}/$$na ]; then \
133
		if [ -f ${STAGEDIR}${ETCDIR}/%%na]; then \
156
			if [ -f ${ETCDIR}/$$na.new ]; then \
134
			${MV} ${STAGEDIR}${ETCDIR}/%%na ${STAGEDIR}${ETCDIR}/%%na.sample \
157
				${MV} ${ETCDIR}/$$na.new ${ETCDIR}/$$na.sample; \
158
			else \
159
				${CP} ${ETCDIR}/$$na ${ETCDIR}/$$na.sample; \
160
			fi; \
161
		fi; \
135
		fi; \
162
	done
136
	done
163
.if ${PORT_OPTIONS:MDOCS}
137
	@${ECHO_CMD} "@unexec if [ -d %D/${ETCDIR_REL} ]; then ${ECHO_CMD} \"If you are permanently removing this port, you should do a ``rm -rf ${ETCDIR}`` to remove config files left.\" | ${FMT} ; fi" >> ${TMPPLIST}
164
	@${MKDIR} ${DOCSDIR}
165
	${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.pdf ${DOCSDIR}
166
.endif
167
	@${CAT} ${PKGMESSAGE}
168
138
169
.include <bsd.port.mk>
139
.include <bsd.port.mk>
(-)/home/cyberleo/scm/svn/CyberLeo/sysutils/apcupsd/pkg-plist (+5 lines)
Lines 2-7 Link Here
2
sbin/apcaccess
2
sbin/apcaccess
3
sbin/apctest
3
sbin/apctest
4
sbin/smtp
4
sbin/smtp
5
man/man5/apcupsd.conf.5.gz
6
man/man8/apcaccess.8.gz
7
man/man8/apccontrol.8.gz
8
man/man8/apctest.8.gz
9
man/man8/apcupsd.8.gz
5
@unexec if cmp -s %D/%%ETCDIR%%/apcupsd.conf.sample %D/%%ETCDIR%%/apcupsd.conf; then rm -f %D/%%ETCDIR%%/apcupsd.conf; fi
10
@unexec if cmp -s %D/%%ETCDIR%%/apcupsd.conf.sample %D/%%ETCDIR%%/apcupsd.conf; then rm -f %D/%%ETCDIR%%/apcupsd.conf; fi
6
%%ETCDIR%%/apcupsd.conf.sample
11
%%ETCDIR%%/apcupsd.conf.sample
7
%%ETCDIR%%/apccontrol
12
%%ETCDIR%%/apccontrol

Return to bug 191552