1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/www/orangehrm/Makefile
Wen Heping a387eff394 www/orangehrm: Update to 5.0
Add missing PHP modules
2022-05-03 01:06:15 +00:00

36 lines
1.0 KiB
Makefile

# Created by: Wen Heping <wenheping@gmail.com>
PORTNAME= orangehrm
PORTVERSION= 5.0
CATEGORIES= www misc
MASTER_SITES= SF/${PORTNAME}/stable/${PORTVERSION}
MAINTAINER= wen@FreeBSD.org
COMMENT= Open Source Human Resource Management
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cpe php zip
USE_PHP= ctype curl filter iconv json \
mbstring pdo_mysql xml session \
simplexml tokenizer zip
NO_BUILD= yes
PLIST= ${WRKDIR}/plist
SUB_FILES= pkg-message
HRMDIR= www/orangehrm
pre-install:
@${ECHO_CMD} -e '@owner ${WWWOWN}\n@group ${WWWGRP}' > ${PLIST}
@${ECHO_CMD} "@mode 755" >> ${PLIST}
@${FIND} -s -d ${WRKSRC} -type l | ${SED} "s#${WRKSRC}#${HRMDIR}#g" >>${PLIST}
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s#${WRKSRC}#${HRMDIR}#g" >>${PLIST}
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s#${WRKSRC}#@dir ${HRMDIR}#g" >> ${PLIST}
@${ECHO_CMD} "@mode" >> ${PLIST}
@${ECHO_CMD} -e '@owner root\n@group wheel' >> ${PLIST}
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${HRMDIR}
.include <bsd.port.mk>