[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / ports / sysutils / apcupsd

Annotation of ports/sysutils/apcupsd/Makefile, Revision 1.8

1.1       yason       1: # $OpenBSD$
                      2:
                      3: COMMENT-main =         daemon for controlling APC UPSes
                      4: COMMENT-cgi =          CGI scripts for web monitoring
                      5: COMMENT-x11 =          gapcmon - GUI for apcupsd
                      6:
1.7       yason       7: DISTNAME =             apcupsd-3.14.7
1.1       yason       8: PKGNAME-main =         ${DISTNAME}
                      9: PKGNAME-cgi =          ${DISTNAME:S/-/-cgi-/}
                     10: PKGNAME-x11 =          ${DISTNAME:S/-/-x11-/}
                     11:
                     12: CATEGORIES =           sysutils
                     13:
                     14: HOMEPAGE =             http://www.apcupsd.com
                     15:
1.4       yason      16: MAINTAINER =           Kirill Bychkov <yason@linklevel.net>
1.1       yason      17:
                     18: # GPLv2
                     19:
                     20: PERMIT_PACKAGE_CDROM = Yes
                     21: PERMIT_PACKAGE_FTP =   Yes
                     22: PERMIT_DISTFILES_CDROM = Yes
                     23: PERMIT_DISTFILES_FTP=  Yes
                     24:
                     25: WANTLIB-main =         c pthread
                     26:
1.3       yason      27: MASTER_SITES =         ${MASTER_SITE_SOURCEFORGE:=apcupsd/}
1.1       yason      28:
                     29: CONFIGURE_STYLE =      gnu old
                     30: USE_GMAKE =            Yes
                     31: MAKE_FLAGS =           VERBOSE=2
                     32:
                     33: WEB_ROOT =             /var/www
                     34:
                     35: CONFIGURE_ARGS =       --mandir=${LOCALBASE}/man \
                     36:                        --sbindir=${LOCALBASE}/sbin \
                     37:                        --sysconfdir=${SYSCONFDIR}/apcupsd \
                     38:                        --disable-install-distdir \
                     39:                        --with-cgi-bin=${WEB_ROOT}/cgi-bin/apcupsd \
                     40:                        --with-lock-dir=/var/run \
                     41:                        --with-nisip=127.0.0.1 \
                     42:                        --enable-usb
                     43:
                     44: PSEUDO_FLAVORS =       no_x11
                     45: FLAVORS =              snmp
                     46: FLAVOR ?=
                     47:
                     48: MULTI_PACKAGES =       -main
                     49:
                     50: MULTI_PACKAGES +=      -cgi
                     51: PREFIX-cgi =           ${WEB_ROOT}
                     52: CONFIGURE_ARGS +=      --enable-cgi
                     53: WANTLIB-cgi =          c pthread
                     54: LIB_DEPENDS-cgi =      gd::graphics/gd
                     55:
                     56: .if !${FLAVOR:L:Mno_x11}
                     57: MULTI_PACKAGES +=      -x11
                     58: USE_X11 =              Yes
                     59: CONFIGURE_ARGS +=      --enable-gapcmon
                     60: WANTLIB-x11 =          ORBit-2 X11 Xau Xcomposite Xcursor Xdamage \
                     61:                        Xdmcp Xext Xfixes Xi Xinerama Xrandr Xrender \
1.2       yason      62:                        c dbus-1 expat fontconfig freetype gdk-x11-2.0 \
1.1       yason      63:                        gdk_pixbuf-2.0 gtk-x11-2.0 glitz iconv intl m \
                     64:                        pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 \
1.8     ! yason      65:                        png pthread pthread-stubs xcb z
1.1       yason      66: LIB_DEPENDS-x11 =      glib-2.0.>=1400.0,gmodule-2.0.>=1400.0::devel/glib2 \
                     67:                        gobject-2.0.>=1400.0,gthread-2.0.>=1400::devel/glib2 \
1.2       yason      68:                        gio-2.0.>=1800::devel/glib2 \
1.1       yason      69:                        atk-1.0.>=2009::devel/atk \
                     70:                        cairo.>=7::graphics/cairo \
                     71:                        gconf-2.>=6::devel/gconf2
                     72: .endif
                     73:
                     74: .if ${FLAVOR:L:Msnmp}
                     75: CONFIGURE_ARGS +=      --enable-net-snmp
                     76: LIB_DEPENDS-main +=    netsnmp::net/net-snmp
                     77: WANTLIB-main +=        crypto
                     78: .endif
                     79:
                     80: pre-configure:
                     81:        @perl -pi -e 's|_PREFIX_|${PREFIX}|g' \
                     82:        ${WRKSRC}/src/gapcmon/gapcmon.c
                     83: post-install:
                     84: .for i in apcupsd apcupsd/status apcupsd/rpt apcupsd/etc
                     85:        ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/$i
                     86: .endfor
                     87:        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/apcupsd
                     88:        ${INSTALL_DATA} ${WRKSRC}/examples/status/* \
                     89:                ${PREFIX}/share/examples/apcupsd/status
                     90:        ${INSTALL_DATA} ${WRKSRC}/examples/rpt/* \
                     91:                ${PREFIX}/share/examples/apcupsd/rpt
                     92:        ${INSTALL_DATA} ${WRKSRC}/platforms/openbsd/apccontrol \
                     93:                ${PREFIX}/share/examples/apcupsd/etc
                     94:        ${INSTALL_SCRIPT} ${WRKSRC}/platforms/openbsd/apcupsd \
                     95:                ${PREFIX}/sbin/apcupsctl
1.5       yason      96: .for i in apcupsd.conf changeme commfailure commok hosts.conf \
                     97:                multimon.conf offbattery onbattery
                     98:        ${INSTALL_DATA} ${WRKSRC}/platforms/etc/$i \
1.1       yason      99:                ${PREFIX}/share/examples/apcupsd/etc
1.5       yason     100: .endfor
1.1       yason     101:        ${INSTALL_DATA} ${WRKSRC}/c ${PREFIX}/share/doc/apcupsd/COPYRIGHT
                    102:        ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/apcupsd
                    103:        ${INSTALL_DATA} ${WRKSRC}/DISCLAIMER ${PREFIX}/share/doc/apcupsd
                    104:        ${INSTALL_DATA} ${WRKSRC}/platforms/openbsd/README \
                    105:                ${PREFIX}/share/doc/apcupsd/README.openbsd
                    106:        ${INSTALL_DATA} ${WRKSRC}/src/cgi/apcupsd.css \
                    107:                ${PREFIX}/share/examples/apcupsd/etc
                    108:        ${INSTALL_DATA} ${WRKSRC}/src/cgi/README \
                    109:                ${WRKINST}/${WEB_ROOT}/cgi-bin/apcupsd/README.CGI
                    110:
                    111: .include <bsd.port.mk>

CVSweb