mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
5f4cfd5c07
controller daemon, is supported following UPS series: FREQUPS FW-F series FREQUPS FW-A series FREQUPS FW-V series PowerUPS AX-M series Sponsored by: Ensure Technology Ltd Reviewed by: ume
62 lines
1.8 KiB
Makefile
62 lines
1.8 KiB
Makefile
# New ports collection makefile for: freqsdwn
|
|
# Date created: 2005/11/20
|
|
# Whom: n-shigemura@ensure.jp
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= freqsdwn
|
|
PORTVERSION= 2.00
|
|
CATEGORIES= sysutils japanese
|
|
MASTER_SITES= http://www.mitsubishielectric.co.jp/frequps/down/
|
|
DISTNAME= ${PORTNAME:C/freq//}_${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
DIST_SUBDIR= freqship
|
|
|
|
MAINTAINER= nork@FreeBSD.org
|
|
COMMENT= FREQSHIP-mini Mitsubishi Electric UPS controller daemon
|
|
|
|
RESTRICTED= See http://www.mitsubishielectric.co.jp/frequps/keiyaku.html
|
|
NO_CDROM= ${RESTRICTED}
|
|
NO_PACKAGE= ${RESTRICTED}
|
|
|
|
USE_RC_SUBR= freqshpd.sh 000.freqshpk.sh
|
|
PLIST_SUB= PORTNAME=${PORTNAME} CONFDIR=${CONFDIR}
|
|
SUB_LIST= PORTNAME=${PORTNAME} CONFDIR=${CONFDIR}
|
|
|
|
WRKSRC= ${WRKDIR}/freqship
|
|
PORTDOCS= README
|
|
|
|
CONFDIR?= ${PREFIX}/etc/freqship
|
|
|
|
pre-fetch::
|
|
@[ -f ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} ] || ( \
|
|
${ECHO} "Please read and accept following LICENSE:"; \
|
|
${ECHO} "http://www.mitsubishielectric.co.jp/frequps/keiyaku.html"; \
|
|
${ECHO} "Please 'make do-fetch' manually, if you accept it."; \
|
|
${FALSE})
|
|
|
|
post-extract:
|
|
@${CP} ${WRKSRC}/common/freqship.org ${WRKSRC}/common/freqship.h
|
|
@${CP} ${FILESDIR}/UPSFILE ${WRKSRC}/initdata/
|
|
.for dir in subdir daemon upsdown
|
|
@${CP} ${FILESDIR}/Makefile.${dir} ${WRKSRC}/${dir:subdir=}/Makefile
|
|
.endfor
|
|
|
|
post-install:
|
|
@${MKDIR} ${CONFDIR}
|
|
.for FILE in UPSFILE UPSSTAT PMSGERR PMSGOK DELAY
|
|
@${INSTALL_DATA} ${WRKSRC}/initdata/${FILE} ${PREFIX}/etc/freqship/${FILE}-dist
|
|
@[ -f ${PREFIX}/etc/freqship/${FILE} ] || \
|
|
${CP} ${WRKSRC}/initdata/${FILE} ${PREFIX}/etc/freqship/${FILE}
|
|
.endfor
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for FILE in ${PORTDOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|