mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Update to latest version.
Add files to pkg-plist Add needed user and group if installed standalone Smarter handling of magic file installed if used standalone PR: ports/152932 Submitted by: Richard Neese <r.neese@gmail.com>
This commit is contained in:
parent
81832c312f
commit
fb0d968816
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=266528
@ -6,19 +6,22 @@
|
||||
#
|
||||
|
||||
PORTNAME= freeswitch-scripts
|
||||
PORTVERSION= 1.0.6
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 201044
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= http://files.freeswitch.org/
|
||||
MASTER_SITES= ftp://ftp.secure-computing.net/pub/freeswitch/ \
|
||||
ftp://ftp2.secure-computing.net/pub/freeswitch/
|
||||
DISTNAME= ${BASE_PORTNAME}-${PORTVERSION}
|
||||
DIST_SUBDIR= ${BASE_PORTNAME}
|
||||
|
||||
MAINTAINER= r.neese@gmail.com
|
||||
COMMENT= FreeSwitch Scripts
|
||||
|
||||
RUN_DEPENDS+= ${LOCALBASE}/bin/freeswitch:${PORTSDIR}/net/freeswitch-core
|
||||
|
||||
NO_BUILD= yes
|
||||
BASE_PORTNAME= freeswitch
|
||||
SUB_FILES= pkg-install
|
||||
|
||||
FREESWITCH_USER= freeswitch
|
||||
FREESWITCH_GROUP= ${FREESWITCH_USER}
|
||||
|
||||
WRKSRC= ${WRKDIR}/${BASE_PORTNAME}-${PORTVERSION}/scripts/
|
||||
|
||||
@ -39,41 +42,49 @@ PLIST_SUB+= WITH_${i}=""
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
do-install:
|
||||
${TOUCH} ${PREFIX}/etc/${BASE_PORTNAME}/scripts/.freeswitch-scripts
|
||||
pre-install:
|
||||
@${SH} ${PKGINSTALL} ${BASE_PORTNAME} PRE-INSTALL
|
||||
|
||||
.if ! exists(${PREFIX}/etc/${BASE_PORTNAME}/scripts)
|
||||
${MKDIR} ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
${CHOWN} ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
.endif
|
||||
${TOUCH} ${PREFIX}/etc/${BASE_PORTNAME}/scripts/.freeswitch-scripts
|
||||
${CHOWN} ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/etc/${BASE_PORTNAME}/scripts/.freeswitch-scripts
|
||||
|
||||
do-install:
|
||||
.if defined(WITH_JAVASCRIPT)
|
||||
@${RM} ${WRKSRC}/javascript/ps_pizza.js
|
||||
@${RM} ${WRKSRC}/javascript/pizza.js
|
||||
@${RM} -rf ${WRKSRC}/javascript/js_modules
|
||||
@cd ${WRKSRC}; ${FIND} javascript \
|
||||
| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
| ${CPIO} -pdm -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PERL)
|
||||
@cd ${WRKSRC}; ${FIND} perl \
|
||||
| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
| ${CPIO} -pdm -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PYTHON)
|
||||
@cd ${WRKSRC}; ${FIND} python \
|
||||
| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
| ${CPIO} -pdm -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PHP)
|
||||
@cd ${WRKSRC}; ${FIND} php \
|
||||
| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
| ${CPIO} -pdm -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
.endif
|
||||
|
||||
.if defined(WITH_RSS)
|
||||
@cd ${WRKSRC}; ${FIND} rss \
|
||||
| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
| ${CPIO} -pdm -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
.endif
|
||||
|
||||
.if defined(WITH_LUA)
|
||||
@cd ${WRKSRC}; ${FIND} lua \
|
||||
| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
| ${CPIO} -pdm -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/etc/${BASE_PORTNAME}/scripts
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,2 @@
|
||||
MD5 (freeswitch-1.0.6.tar.gz) = 388effee587887a81fe7f411b7350590
|
||||
SHA256 (freeswitch-1.0.6.tar.gz) = 5610f478307b5c06d38e1ea4029298142c2960e426c3297378857d8734770215
|
||||
SIZE (freeswitch-1.0.6.tar.gz) = 36400963
|
||||
SHA256 (freeswitch/freeswitch-201044.tar.gz) = cea3583bcc1febc8b6ad85ca38c991d2d7319945784dd915834c1479b33bbd4b
|
||||
SIZE (freeswitch/freeswitch-201044.tar.gz) = 42320468
|
||||
|
35
misc/freeswitch-scripts/files/pkg-install.in
Normal file
35
misc/freeswitch-scripts/files/pkg-install.in
Normal file
@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD: /tmp/pcvs/ports/misc/freeswitch-scripts/files/pkg-install.in,v 1.1 2010-12-17 21:42:33 jpaetzel Exp $
|
||||
#
|
||||
|
||||
if [ "$2" != "PRE-INSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
FREESWITCHUSER=freeswitch
|
||||
FREESWITCHGROUP=${FREESWITCHUSER}
|
||||
FREESWITCHUID=610
|
||||
FREESWITCHGID=${FREESWITCHUID}
|
||||
|
||||
if ! pw groupshow "${FREESWITCHGROUP}" 2>/dev/null 1>&2; then
|
||||
if pw groupadd ${FREESWITCHGROUP} -g ${FREESWITCHGID}; then
|
||||
echo "Added group \"${FREESWITCHGROUP}\"."
|
||||
else
|
||||
echo "Adding group \"${FREESWITCHGROUP}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! pw usershow "${FREESWITCHUSER}" 2>/dev/null 1>&2; then
|
||||
if pw useradd ${FREESWITCHUSER} -u ${FREESWITCHUID} -g ${FREESWITCHGROUP} -h - \
|
||||
-s "/sbin/nologin" -d "/nonexistent" \
|
||||
-c "FREESWITCH Owner"; \
|
||||
then
|
||||
echo "Added user \"${FREESWITCHUSER}\"."
|
||||
else
|
||||
echo "Adding user \"${FREESWITCHUSER}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
@ -29,12 +29,14 @@ etc/freeswitch/scripts/.freeswitch-scripts
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/POE-Filter-FSSocket/examples/poetest.pl
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/POE-Filter-FSSocket/lib/POE/Filter/FSSocket.pm
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/POE-Filter-FSSocket/t/01_basic.t
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/blacklist.pl
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/call.cgi
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/combineconf.pl
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/dhcp-inform.pl
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/extract_log_range.pl
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/fs.pl
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/fsconsole.pl
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/honeypot.pl
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/multicast/recv.pl
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/multicast/send.pl
|
||||
%%WITH_PERL%%etc/freeswitch/scripts/perl/mwi_event.pl
|
||||
@ -88,3 +90,5 @@ etc/freeswitch/scripts/.freeswitch-scripts
|
||||
%%WITH_LUA%%@dirrm etc/freeswitch/scripts/lua
|
||||
%%WITH_JAVASCRIPT%%@dirrm etc/freeswitch/scripts/javascript/aadir
|
||||
%%WITH_JAVASCRIPT%%@dirrm etc/freeswitch/scripts/javascript
|
||||
@dirrmtry etc/freeswitch/scripts
|
||||
@dirrmtry etc/freeswitch
|
||||
|
Loading…
Reference in New Issue
Block a user