Edit

IABSD.fr/ports/misc/openhab/Makefile.inc

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2025-11-19 09:14:36
    Hash : 26ec942a
    Message : update to openhab-4.3.8, and rearrange for future addition of 5.x from Chaz Kettleson (maintainer), PLIST tweaks from me

  • misc/openhab/Makefile.inc
  • COMMENT=	integration platform for home automation
    
    V=		${OH_VERSION}
    DISTNAME=	openhab-${V}
    
    CATEGORIES=	misc
    
    HOMEPAGE=	https://www.openhab.org/
    
    MAINTAINER=	Chaz Kettleson <chaz@pyr3x.com>
    
    # EPL-2.0
    PERMIT_PACKAGE=	Yes
    
    SITES=		https://github.com/openhab/openhab-distro/releases/download/${V}/
    
    MODULES=	java
    
    DESCR=		${.CURDIR}/../pkg/DESCR
    FILESDIR=	${.CURDIR}/../files
    
    RUN_DEPENDS=	java/javaPathHelper
    
    NO_BUILD=	Yes
    NO_TEST=	Yes
    
    SUBST_VARS=	V
    
    TAR=		tar -C ${WRKDIST}
    
    pre-extract:
    	mkdir ${WRKDIST}
    
    do-install:
    	${SUBST_CMD} -c -m 555 ${.CURDIR}/../pkg/openhab.rc ${WRKINST}${RCDIR}/openhab
    	${SUBST_DATA} ${.CURDIR}/../pkg/README \
    		${WRKINST}${LOCALBASE}/share/doc/pkg-readmes/${PKGSTEM}
    	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openhab/
    	${INSTALL_DATA} ${FILESDIR}/openhab.conf \
    		${PREFIX}/share/examples/openhab/
    	${INSTALL_DATA_DIR} ${PREFIX}/libexec/openhab/
    	cd ${WRKDIST} && pax -rw . ${PREFIX}/libexec/openhab/
    	mv ${PREFIX}/libexec/openhab/conf ${PREFIX}/share/examples/openhab/
    	mv ${PREFIX}/libexec/openhab/userdata ${PREFIX}/share/examples/openhab/