# New ports collection makefile for: apcupsd # Date created: 1.12.2001 # Whom: Lars Köller # # $FreeBSD$ # # $Tecnik: ports/sysutils/apcupsd/Makefile,v 1.9 2006/04/30 11:36:52 itetcu Exp $ PORTNAME= apcupsd PORTVERSION= 3.12.4 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:src_sf/g} \ http://sce-tindy.tecnik93.com/FreeBSD/ports/${PORTNAME}/sources/:src_bk \ http://apcupsd.sourceforge.net/manual/:doc_sf \ http://sce-tindy.tecnik93.com/FreeBSD/ports/${PORTNAME}/sources/:doc_bk MASTER_SITE_SUBDIR= ${PORTNAME}/:src_sf DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src_sf,src_bk \ ${PORTNAME}.pdf:doc_sf,doc_bk EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= itetcu@FreeBSD.org COMMENT= A daemon for controlling APC UPS USE_GETTEXT= yes USE_RC_SUBR= apcupsd HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} --sbindir=${PREFIX}/sbin \ --mandir=${MANPREFIX}/man \ --with-nologin=/var/run \ --disable-install-distdir \ --sysconfdir=${PREFIX}/etc/apcupsd \ --with-serial-dev=/dev/usv CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \ CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \ LDFLAGS="-L${LOCALBASE}/lib" MAN8= apcupsd.8 OPTIONS= CLIENT_ONLY "Build apcupsd client only (no network server)" off \ CGI "Compile with CGI programms to show status" off \ USB "Compile with USB Support (READ MANUAL!)" on \ SNMP "Compile with SNMP Support (READ MANUAL!)" on IGNOREFILES= ${PORTNAME}.pdf PORTDOCS= ${PORTNAME}.pdf .include .if defined(WITH_CLIENT_ONLY) CONFIGURE_ARGS+= --enable-net .else CONFIGURE_ARGS+= --enable-master-slave .endif .if defined(WITH_CGI) CONFIGURE_ARGS+= --enable-cgi --with-cgi-bin=${PREFIX}/etc/apcupsd/cgi LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd PLIST_SUB+= CGI="" .else PLIST_SUB+= CGI="@comment " .endif .if !defined(WITHOUT_USB) CONFIGURE_ARGS+= --enable-usb .endif .if !defined(WITHOUT_SNMP) LIB_DEPENDS+= netsnmp.9:${PORTSDIR}/net-mgmt/net-snmp CONFIGURE_ARGS+= --enable-snmp .endif CONFIGURE_ARGS+= --enable-powerflute --with-libwrap=yes CONFIGURE_ENV+= LIBS="-lcurses -lmenu" PLIST_SUB+= POWERFL="" post-configure: @${REINPLACE_CMD} -e "s|%PREFIX%|${PREFIX}|g" ${WRKSRC}/doc/apcupsd.man post-install: # If the files presaved are identical with the new one, include then in # the package list. So the port could be removed without problems for na in apccontrol commfailure mainsback mastertimeout \ changeme commok masterconnect onbattery; do \ if [ -f ${PREFIX}/etc/apcupsd/$$na.orig ]; then \ if cmp -s ${PREFIX}/etc/apcupsd/$$na ${PREFIX}/etc/apcupsd/$$na.orig; then \ ${ECHO_CMD} "etc/apcupsd/$$na.orig" >> ${TMPPLIST}; \ fi \ fi; \ done @${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} # Install sample startup script ${INSTALL_DATA} ${FILESDIR}/apcupsd.conf.net-master.sample ${PREFIX}/etc/apcupsd/ ${INSTALL_DATA} ${FILESDIR}/apcupsd.conf.net-slave.sample ${PREFIX}/etc/apcupsd/ # If there is already a config file it is installed as ...new for na in apcupsd.conf apcupsd.css hosts.conf multimon.conf; do \ if [ -f ${PREFIX}/etc/apcupsd/$$na ]; then \ if [ -f ${PREFIX}/etc/apcupsd/$$na.new ]; then \ ${MV} ${PREFIX}/etc/apcupsd/$$na.new ${PREFIX}/etc/apcupsd/$$na.sample; \ else \ ${CP} ${PREFIX}/etc/apcupsd/$$na ${PREFIX}/etc/apcupsd/$$na.sample; \ fi; \ fi; \ done .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} cd ${DISTDIR} && ${INSTALL_DATA} ${PORTNAME}.pdf ${DOCSDIR} .endif .include -wallet/tree/ui/app/components?h=version-1.2.7&id=ef61ef2ce885635862bb242612dd821cb3a65b6b'>components/pages/settings/info.js
blob: adb2fdfcd53d5683d43815db00ea58a995c52d85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
const { Component } = require('react')
const PropTypes = require('prop-types')
const h = require('react-hyperscript')
const connect = require('../../../metamask-connect')

class Info extends Component {
  renderLogo () {
    return (
      h('div.settings__info-logo-wrapper', [
        h('img.settings__info-logo', { src: 'images/info-logo.png' }),
      ])
    )
  }

  renderInfoLinks () {
    return (
      h('div.settings__content-item.settings__content-item--without-height', [
        h('div.settings__info-link-header', this.props.t('links')),
        h('div.settings__info-link-item', [
          h('a', {
            href: 'https://metamask.io/privacy.html',
            target: '_blank',
          }, [
            h('span.settings__info-link', this.props.t('privacyMsg')),
          ]),
        ]),
        h('div.settings__info-link-item', [
          h('a', {
            href: 'https://metamask.io/terms.html',
            target: '_blank',
          }, [
            h('span.settings__info-link', this.props.t('terms')),
          ]),
        ]),
        h('div.settings__info-link-item', [
          h('a', {
            href: 'https://metamask.io/attributions.html',
            target: '_blank',
          }, [
            h('span.settings__info-link', this.props.t('attributions')),
          ]),
        ]),
        h('hr.settings__info-separator'),
        h('div.settings__info-link-item', [
          h('a', {
            href: 'https://support.metamask.io',
            target: '_blank',
          }, [
            h('span.settings__info-link', this.props.t('supportCenter')),
          ]),
        ]),
        h('div.settings__info-link-item', [
          h('a', {
            href: 'https://metamask.io/',
            target: '_blank',
          }, [
            h('span.settings__info-link', this.props.t('visitWebSite')),
          ]),
        ]),
        h('div.settings__info-link-item', [
          h('a', {
            target: '_blank',
            href: 'mailto:help@metamask.io?subject=Feedback',
          }, [
            h('span.settings__info-link', this.props.t('emailUs')),
          ]),
        ]),
      ])
    )
  }

  render () {
    return (
      h('div.settings__content', [
        h('div.settings__content-row', [
          h('div.settings__content-item.settings__content-item--without-height', [
            this.renderLogo(),
            h('div.settings__info-item', [
              h('div.settings__info-version-header', 'MetaMask Version'),
              h('div.settings__info-version-number', '4.0.0'),
            ]),
            h('div.settings__info-item', [
              h(
                'div.settings__info-about',
                this.props.t('builtInCalifornia')
              ),
            ]),
          ]),
          this.renderInfoLinks(),
        ]),
      ])
    )
  }
}

Info.propTypes = {
  tab: PropTypes.string,
  metamask: PropTypes.object,
  setCurrentCurrency: PropTypes.func,
  setRpcTarget: PropTypes.func,
  displayWarning: PropTypes.func,
  revealSeedConfirmation: PropTypes.func,
  warning: PropTypes.string,
  location: PropTypes.object,
  history: PropTypes.object,
  t: PropTypes.func,
}

module.exports = connect()(Info)