Lines 2-28
Link Here
|
2 |
# Date created: 1.12.2001 |
2 |
# Date created: 1.12.2001 |
3 |
# Whom: Lars Köller <Lars.Koeller@Uni-Bielefeld.DE> |
3 |
# Whom: Lars Köller <Lars.Koeller@Uni-Bielefeld.DE> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/sysutils/apcupsd/Makefile,v 1.43 2006/01/28 15:54:02 pav Exp $ |
5 |
# $FreeBSD: ports/sysutils/apcupsd/Makefile,v 1.42 2005/11/30 05:23:09 kuriyama Exp $ |
6 |
# |
6 |
# |
7 |
# $Tecnik: ports/sysutils/apcupsd/Makefile,v 1.2 2006/01/26 00:35:21 itetcu Exp $ |
7 |
# $Tecnik: ports/sysutils/apcupsd/Makefile,v 1.4 2006/03/28 11:47:37 itetcu Exp $ |
8 |
|
8 |
|
9 |
PORTNAME= apcupsd |
9 |
PORTNAME= apcupsd |
10 |
PORTVERSION= 3.10.18 |
10 |
PORTVERSION= 3.12.2 |
11 |
PORTREVISION= 1 |
|
|
12 |
CATEGORIES= sysutils |
11 |
CATEGORIES= sysutils |
13 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}:src \ |
14 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
13 |
http://apcupsd.sourceforge.net/manual/:doc |
|
|
14 |
MASTER_SITE_SUBDIR= ${PORTNAME}:src \ |
15 |
# /manual/:doc |
16 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src \ |
17 |
${PORTNAME}.pdf:doc |
18 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
15 |
|
19 |
|
16 |
MAINTAINER= itetcu@people.tecnik93.com |
20 |
MAINTAINER= itetcu@people.tecnik93.com |
17 |
COMMENT= A daemon for controlling APC UPS |
21 |
COMMENT= A daemon for controlling APC UPS |
18 |
|
22 |
|
19 |
USE_GETTEXT= yes |
23 |
USE_GETTEXT= yes |
20 |
|
24 |
USE_RC_SUBR= apcupsd |
21 |
STARTUP_SCRIPT= apcupsd.sh.sample |
|
|
22 |
PLIST_SUB= STARTUP_SCRIPT=${STARTUP_SCRIPT} |
23 |
|
25 |
|
24 |
HAS_CONFIGURE= yes |
26 |
HAS_CONFIGURE= yes |
25 |
CONFIGURE_ARGS= --prefix=${PREFIX} --sbindir=${PREFIX}/sbin \ |
27 |
CONFIGURE_ARGS= --prefix=${PREFIX} --sbindir=${PREFIX}/sbin \ |
|
|
28 |
--mandir=${MANPREFIX}/man \ |
26 |
--with-nologin=/var/run \ |
29 |
--with-nologin=/var/run \ |
27 |
--disable-install-distdir \ |
30 |
--disable-install-distdir \ |
28 |
--sysconfdir=${PREFIX}/etc/apcupsd \ |
31 |
--sysconfdir=${PREFIX}/etc/apcupsd \ |
Lines 30-38
Link Here
|
30 |
|
33 |
|
31 |
OPTIONS= CLIENT_ONLY "Build apcupsd client only (no network server)" off |
34 |
OPTIONS= CLIENT_ONLY "Build apcupsd client only (no network server)" off |
32 |
OPTIONS+= CGI "Compile with CGI programms to show status" off |
35 |
OPTIONS+= CGI "Compile with CGI programms to show status" off |
33 |
OPTIONS+= USB "Compile with USB Support (READ MANUAL!!!)" off |
36 |
OPTIONS+= USB "Compile with USB Support (READ MANUAL!)" off |
34 |
OPTIONS+= SNMP "Compile with SNMP Support (READ MANUAL!!!)" off |
37 |
OPTIONS+= SNMP "Compile with SNMP Support (READ MANUAL!)" off |
35 |
OPTIONS+= NOPTHREADS "Compile without pthreads support (READ MANUAL!!!)" off |
38 |
OPTIONS+= NOPTHREADS "Compile without pthreads support (READ MANUAL!)" off |
|
|
39 |
|
40 |
PORTDOCS= ${PORTNAME}.pdf |
36 |
|
41 |
|
37 |
.include <bsd.port.pre.mk> |
42 |
.include <bsd.port.pre.mk> |
38 |
|
43 |
|
Lines 69-75
Link Here
|
69 |
|
74 |
|
70 |
# Cause FreeBSD 3.X misses libmenu, libforms and libpanel (curses) |
75 |
# Cause FreeBSD 3.X misses libmenu, libforms and libpanel (curses) |
71 |
.if ${OSVERSION} > 400000 |
76 |
.if ${OSVERSION} > 400000 |
72 |
CONFIGURE_ARGS+=--enable-powerflute --with-libwrap=yes |
77 |
CONFIGURE_ARGS+= --enable-powerflute --with-libwrap=yes |
|
|
78 |
#CONFIGURE_ENV+= POWERLIBS="-lcurses -lmenu" |
79 |
CONFIGURE_ENV+= LIBS="-lcurses -lmenu" |
73 |
PLIST_SUB+= POWERFL="" |
80 |
PLIST_SUB+= POWERFL="" |
74 |
.else |
81 |
.else |
75 |
PLIST_SUB+= POWERFL="@comment " |
82 |
PLIST_SUB+= POWERFL="@comment " |
Lines 77-84
Link Here
|
77 |
|
84 |
|
78 |
MAN8= "apcupsd.8" |
85 |
MAN8= "apcupsd.8" |
79 |
|
86 |
|
80 |
PORTDOCS= manual.pdf |
|
|
81 |
|
82 |
pre-everything:: |
87 |
pre-everything:: |
83 |
@${ECHO_MSG} "" |
88 |
@${ECHO_MSG} "" |
84 |
@${ECHO_MSG} "You may use the following build options:" |
89 |
@${ECHO_MSG} "You may use the following build options:" |
Lines 112-118
Link Here
|
112 |
done |
117 |
done |
113 |
${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} |
118 |
${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} |
114 |
# Install sample startup script |
119 |
# Install sample startup script |
115 |
${INSTALL_SCRIPT} ${FILESDIR}/${STARTUP_SCRIPT} ${PREFIX}/etc/rc.d/${STARTUP_SCRIPT} |
|
|
116 |
${INSTALL_DATA} ${FILESDIR}/apcupsd.conf.net-master.sample ${PREFIX}/etc/apcupsd/ |
120 |
${INSTALL_DATA} ${FILESDIR}/apcupsd.conf.net-master.sample ${PREFIX}/etc/apcupsd/ |
117 |
${INSTALL_DATA} ${FILESDIR}/apcupsd.conf.net-slave.sample ${PREFIX}/etc/apcupsd/ |
121 |
${INSTALL_DATA} ${FILESDIR}/apcupsd.conf.net-slave.sample ${PREFIX}/etc/apcupsd/ |
118 |
# If there is already a config file it is installed as ...new |
122 |
# If there is already a config file it is installed as ...new |
Lines 128-136
Link Here
|
128 |
|
132 |
|
129 |
.if !defined(NOPORTDOCS) |
133 |
.if !defined(NOPORTDOCS) |
130 |
@${MKDIR} ${DOCSDIR} |
134 |
@${MKDIR} ${DOCSDIR} |
131 |
.for filen in ${PORTDOCS} |
135 |
cd ${DISTDIR} && ${INSTALL_DATA} ${PORTNAME}.pdf ${DOCSDIR} |
132 |
${INSTALL_DATA} ${WRKSRC}/doc/texi/${filen} ${DOCSDIR} |
136 |
#.for filen in ${PORTDOCS} |
133 |
.endfor |
137 |
# ${INSTALL_DATA} ${WRKSRC}/doc/texi/${filen} ${DOCSDIR} |
|
|
138 |
#.endfor |
134 |
.endif |
139 |
.endif |
135 |
|
140 |
|
136 |
.include <bsd.port.post.mk> |
141 |
.include <bsd.port.post.mk> |