aboutsummaryrefslogtreecommitdiffstats
path: root/misc/freeswitch-scripts-devel/Makefile
blob: dd286edb848f5e3a549156fe4b1c097b5eaa72da (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
# Created by: Richard Neese <r.neese@gmail.com>
# $FreeBSD$

PORTNAME=   freeswitch
DISTVERSION=    1.2.3
CATEGORIES= misc
MASTER_SITES=   http://files.freeswitch.org/
PKGNAMESUFFIX=  -scripts-devel
DIST_SUBDIR=    ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    FreeSwitch Scripts

DEPRECATED= No more public distfiles
EXPIRATION_DATE=    2014-03-10

RUN_DEPENDS=    freeswitch:${PORTSDIR}/net/freeswitch-core-devel

CONFLICTS=  freeswitch-scripts-[0-9]*

USE_BZIP2=  yes
NO_BUILD=   yes

FREESWITCH_USER=    freeswitch
FREESWITCH_GROUP=   ${FREESWITCH_USER}

WRKSRC=     ${WRKDIR}/${PORTNAME}-${DISTVERSION}/scripts/

EXAMPLESDIR=    ${PREFIX}/share/examples/${PORTNAME}
PORTEXAMPLES=   *

NO_STAGE=   yes
pre-su-install:
    @${RM} ${WRKSRC}/javascript/ps_pizza.js
    @${RM} ${WRKSRC}/javascript/pizza.js
    @${RM} -rf ${WRKSRC}/javascript/js_modules
    @${MKDIR} ${EXAMPLESDIR}/scripts
    @${CHOWN} ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${EXAMPLESDIR}/scripts
    @${TOUCH} ${EXAMPLESDIR}/scripts/.freeswitch-scripts
    @${CHOWN} ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${EXAMPLESDIR}/scripts/.freeswitch-scripts

do-install:
    (cd ${WRKSRC} && ${COPYTREE_SHARE} . \
        ${EXAMPLESDIR}/scripts/)

    @${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} \
        ${EXAMPLESDIR}/scripts/

.include <bsd.port.mk>