blob: 25edd271da047b1d93ea8e1d709ce1ec64517ba9 (
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
|
# New ports collection makefile for: orangehrm
# Date created: 06 Dec, 2008
# Whom: Wen Heping <wenheping@gmail.com>
#
# $FreeBSD$
#
PORTNAME= orangehrm
PORTVERSION= 2.6.10
CATEGORIES= www misc
MASTER_SITES= SF/${PORTNAME}/stable/${PORTVERSION}
MAINTAINER= wen@FreeBSD.org
COMMENT= Open Source Human Resource Management
.include <bsd.port.pre.mk>
USE_PHP= mysql
NO_BUILD= yes
PLIST= ${WRKDIR}/plist
SUB_FILES= pkg-message
HRMDIR= www/orangehrm
pre-install:
@${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}#@dirrm ${HRMDIR}#g" >> ${PLIST}
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${HRMDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${HRMDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${HRMDIR}' \
>> ${TMPPLIST}
${CHMOD} -R 755 ${PREFIX}/${HRMDIR}
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${PREFIX}/${HRMDIR}' >> ${TMPPLIST}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|