| @@ -1,23 +1,22 @@ | | | @@ -1,23 +1,22 @@ |
1 | # $NetBSD: Makefile,v 1.51 2013/07/12 10:44:53 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.52 2013/08/29 23:14:38 jnemeth Exp $ |
2 | # | | 2 | # |
3 | # NOTE: when updating this package, there are two places that sound | | 3 | # NOTE: when updating this package, there are two places that sound |
4 | # tarballs need to be checked | | 4 | # tarballs need to be checked |
5 | | | 5 | |
6 | DISTNAME= asterisk-10.12.2 | | 6 | DISTNAME= asterisk-10.12.3 |
7 | DIST_SUBDIR= ${PKGNAME_NOREV} | | 7 | DIST_SUBDIR= ${PKGNAME_NOREV} |
8 | DISTFILES= ${DEFAULT_DISTFILES} | | 8 | DISTFILES= ${DEFAULT_DISTFILES} |
9 | EXTRACT_ONLY= ${DISTNAME}.tar.gz | | 9 | EXTRACT_ONLY= ${DISTNAME}.tar.gz |
10 | PKGREVISION= 7 | | | |
11 | CATEGORIES= comms net audio | | 10 | CATEGORIES= comms net audio |
12 | MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \ | | 11 | MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \ |
13 | http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ \ | | 12 | http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ \ |
14 | http://downloads.asterisk.org/pub/telephony/sounds/releases/ | | 13 | http://downloads.asterisk.org/pub/telephony/sounds/releases/ |
15 | | | 14 | |
16 | OWNER= jnemeth@NetBSD.org | | 15 | OWNER= jnemeth@NetBSD.org |
17 | HOMEPAGE= http://www.asterisk.org/ | | 16 | HOMEPAGE= http://www.asterisk.org/ |
18 | COMMENT= The Asterisk Software PBX | | 17 | COMMENT= The Asterisk Software PBX |
19 | LICENSE= gnu-gpl-v2 | | 18 | LICENSE= gnu-gpl-v2 |
20 | | | 19 | |
21 | # known to have issues on i386, block the package until the bug is fixed | | 20 | # known to have issues on i386, block the package until the bug is fixed |
22 | NOT_FOR_PLATFORM= NetBSD-*-i386 | | 21 | NOT_FOR_PLATFORM= NetBSD-*-i386 |
23 | | | 22 | |
| @@ -124,32 +123,38 @@ SUBST_FILES.configs+= configs/http.conf. | | | @@ -124,32 +123,38 @@ SUBST_FILES.configs+= configs/http.conf. |
124 | SUBST_FILES.configs+= configs/iax.conf.sample | | 123 | SUBST_FILES.configs+= configs/iax.conf.sample |
125 | SUBST_FILES.configs+= configs/musiconhold.conf.sample | | 124 | SUBST_FILES.configs+= configs/musiconhold.conf.sample |
126 | SUBST_FILES.configs+= configs/osp.conf.sample | | 125 | SUBST_FILES.configs+= configs/osp.conf.sample |
127 | SUBST_FILES.configs+= configs/phoneprov.conf.sample | | 126 | SUBST_FILES.configs+= configs/phoneprov.conf.sample |
128 | SUBST_FILES.configs+= configs/res_config_sqlite.conf.sample | | 127 | SUBST_FILES.configs+= configs/res_config_sqlite.conf.sample |
129 | SUBST_FILES.configs+= configs/sla.conf.sample | | 128 | SUBST_FILES.configs+= configs/sla.conf.sample |
130 | SUBST_SED.configs+= -e 's|doc/|${PREFIX}/share/doc/${PKGBASE}/|' | | 129 | SUBST_SED.configs+= -e 's|doc/|${PREFIX}/share/doc/${PKGBASE}/|' |
131 | SUBST_SED.configs+= -e 's|/etc/asterisk|${ASTETCDIR}|' | | 130 | SUBST_SED.configs+= -e 's|/etc/asterisk|${ASTETCDIR}|' |
132 | SUBST_SED.configs+= -e 's|/var/lib/asterisk|${ASTVARLIBDIR}|' | | 131 | SUBST_SED.configs+= -e 's|/var/lib/asterisk|${ASTVARLIBDIR}|' |
133 | SUBST_SED.configs+= -e "s|/usr/local/man|${ASTMANDIR}|" | | 132 | SUBST_SED.configs+= -e "s|/usr/local/man|${ASTMANDIR}|" |
134 | SUBST_SED.configs+= -e "s|/usr/local|${PREFIX}|" | | 133 | SUBST_SED.configs+= -e "s|/usr/local|${PREFIX}|" |
135 | SUBST_SED.configs+= -e "s|/var|${VARBASE}|" | | 134 | SUBST_SED.configs+= -e "s|/var|${VARBASE}|" |
136 | | | 135 | |
137 | # XXX gross hack, remove when atomics properly implemented | | | |
138 | .if (${OPSYS} == "NetBSD") | | 136 | .if (${OPSYS} == "NetBSD") |
| | | 137 | # XXX gross hack, remove when atomics properly implemented |
139 | SUBST_CLASSES+= atomics | | 138 | SUBST_CLASSES+= atomics |
140 | SUBST_STAGE.atomics= post-configure | | 139 | SUBST_STAGE.atomics= post-configure |
141 | SUBST_FILES.atomics= include/asterisk/autoconfig.h | | 140 | SUBST_FILES.atomics= include/asterisk/autoconfig.h |
142 | SUBST_SED.atomics= -e "s|^\#define HAVE_GCC_ATOMICS 1|\#undef HAVE_GCC_ATOMICS|" | | 141 | SUBST_SED.atomics= -e "s|^\#define HAVE_GCC_ATOMICS 1|\#undef HAVE_GCC_ATOMICS|" |
| | | 142 | |
| | | 143 | # XXX gross hack, IP_PKTINFO in NetBSD isn't compatible with anything else |
| | | 144 | SUBST_CLASSES+= pktinfo |
| | | 145 | SUBST_STAGE.pktinfo= post-configure |
| | | 146 | SUBST_FILES.pktinfo= include/asterisk/autoconfig.h |
| | | 147 | SUBST_SED.pktinfo= -e "s|^\#define HAVE_PKTINFO 1|\#undef HAVE_PKTINFO|" |
143 | .endif | | 148 | .endif |
144 | | | 149 | |
145 | RCD_SCRIPTS= asterisk | | 150 | RCD_SCRIPTS= asterisk |
146 | OWN_DIRS_PERMS+= ${ASTDBDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 | | 151 | OWN_DIRS_PERMS+= ${ASTDBDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 |
147 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 | | 152 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 |
148 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/dictate ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 | | 153 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/dictate ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 |
149 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/meetme ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 | | 154 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/meetme ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 |
150 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/monitor ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 | | 155 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/monitor ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 |
151 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/outgoing ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 | | 156 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/outgoing ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 |
152 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/system ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 | | 157 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/system ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 |
153 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/tmp ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 | | 158 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/tmp ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 |
154 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 | | 159 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 |
155 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 | | 160 | OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 |