Date: Sat, 26 May 2012 10:20:09 -0400 From: Rich Neese <r.neese@gmail.com> To: crees@FreeBSD.org Cc: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/167876: update of misc/freeswitch-scripts Message-ID: <4FC0E699.3030300@gmail.com> In-Reply-To: <201205231752.q4NHqM9d007937@freefall.freebsd.org> References: <201205231752.q4NHqM9d007937@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------070607010003090703080500 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 5/23/2012 1:52 PM, crees@FreeBSD.org wrote: > Synopsis: update of misc/freeswitch-scripts > > State-Changed-From-To: open->feedback > State-Changed-By: crees > State-Changed-When: Wed May 23 17:52:21 UTC 2012 > State-Changed-Why: > 1) Just use PORTNAME instead of BASE_PORTNAME, 2) Redefine SHAREOWN and > SHAREGRP and use COPYTREE_SHARE rather than FIND | CPIO 3) Use ETCDIR > instead of PREFIX/etc/PORTNAME 4) Use DATADIR 5) SH PKGINSTALL PKGNAME > PRE-INSTALL :) > > http://www.freebsd.org/cgi/query-pr.cgi?pr=167876 rewrite of freeswitch-scripts-devel port --------------070607010003090703080500 Content-Type: text/plain; charset=windows-1252; name="freeswitch-scripts-devel.shar" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="freeswitch-scripts-devel.shar" # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # freeswitch-scripts-devel # freeswitch-scripts-devel/files # freeswitch-scripts-devel/files/pkg-install.in # freeswitch-scripts-devel/Makefile # freeswitch-scripts-devel/distinfo # freeswitch-scripts-devel/pkg-descr # freeswitch-scripts-devel/pkg-plist # echo c - freeswitch-scripts-devel mkdir -p freeswitch-scripts-devel > /dev/null 2>&1 echo c - freeswitch-scripts-devel/files mkdir -p freeswitch-scripts-devel/files > /dev/null 2>&1 echo x - freeswitch-scripts-devel/files/pkg-install.in sed 's/^X//' >freeswitch-scripts-devel/files/pkg-install.in << '4de8dcf7e7cba234dd2b68b9a79b4499' X#!/bin/sh X# $FreeBSD: ports/misc/freeswitch-scripts/files/pkg-install.in,v 1.1 2010/12/17 21:42:33 jpaetzel Exp $ X# X Xif [ "$2" != "PRE-INSTALL" ]; then X exit 0 Xfi X XFREESWITCHUSER=freeswitch XFREESWITCHGROUP=${FREESWITCHUSER} XFREESWITCHUID=610 XFREESWITCHGID=${FREESWITCHUID} X Xif ! pw groupshow "${FREESWITCHGROUP}" 2>/dev/null 1>&2; then X if pw groupadd ${FREESWITCHGROUP} -g ${FREESWITCHGID}; then X echo "Added group \"${FREESWITCHGROUP}\"." X else X echo "Adding group \"${FREESWITCHGROUP}\" failed..." X exit 1 X fi Xfi X Xif ! pw usershow "${FREESWITCHUSER}" 2>/dev/null 1>&2; then X if pw useradd ${FREESWITCHUSER} -u ${FREESWITCHUID} -g ${FREESWITCHGROUP} -h - \ X -s "/sbin/nologin" -d "/nonexistent" \ X -c "FREESWITCH Owner"; \ X then X echo "Added user \"${FREESWITCHUSER}\"." X else X echo "Adding user \"${FREESWITCHUSER}\" failed..." X exit 1 X fi Xfi X Xexit 0 4de8dcf7e7cba234dd2b68b9a79b4499 echo x - freeswitch-scripts-devel/Makefile sed 's/^X//' >freeswitch-scripts-devel/Makefile << '483149b44510a763b192c2057833b07c' X# Ports collection makefile for: freeswitch scripts X# Date created: september , 2009 X# Whom: Richard Neese <r.neese@gmail.com> X# X# $FreeBSD: ports/misc/freeswitch-scripts/Makefile,v 1.6 2011/10/29 20:01:07 crees Exp $ X# X XPORTNAME= freeswitch XDISTVERSION= 1.2.rc2 XPORTEPOCH= 1 XCATEGORIES= misc XMASTER_SITES= http://files.freeswitch.org/ XPKGNAMESUFFIX= -scripts XDIST_SUBDIR= ${PORTNAME} X XMAINTAINER= r.neese@gmail.com XCOMMENT= FreeSwitch Scripts X X#RUN_DEPENDS= freeswitch:${PORTSDIR}/net/freeswitch-core-devel X XUSE_BZIP2= yes XNO_BUILD= yes X XSUB_FILES= pkg-install X XFREESWITCH_USER= freeswitch XFREESWITCH_GROUP= ${FREESWITCH_USER} X XWRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}/scripts/ X XEXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME} XPORTEXAMPLES= * X Xpre-install: X @${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL X @${RM} ${WRKSRC}/javascript/ps_pizza.js X @${RM} ${WRKSRC}/javascript/pizza.js X @${RM} -rf ${WRKSRC}/javascript/js_modules X @${MKDIR} ${EXAMPLESDIR}/scripts X @${CHOWN} ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${EXAMPLESDIR}/scripts X @${TOUCH} ${EXAMPLESDIR}/scripts/.freeswitch-scripts X @${CHOWN} ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${EXAMPLESDIR}/scripts/.freeswitch-scripts X Xdo-install: X (cd ${WRKSRC} && ${COPYTREE_SHARE} . \ X ${EXAMPLESDIR}/scripts/) X X @${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${EXAMPLESDIR}/scripts/ X X.include <bsd.port.mk> 483149b44510a763b192c2057833b07c echo x - freeswitch-scripts-devel/distinfo sed 's/^X//' >freeswitch-scripts-devel/distinfo << 'f19cab37620c77b598e72bad9be88ed6' XSHA256 (freeswitch/freeswitch-1.2.rc2.tar.bz2) = bbf9b3f6e7a7569b9594b5852d1b8a95266ef3276df222776ac84667adb6cc08 XSIZE (freeswitch/freeswitch-1.2.rc2.tar.bz2) = 38075354 f19cab37620c77b598e72bad9be88ed6 echo x - freeswitch-scripts-devel/pkg-descr sed 's/^X//' >freeswitch-scripts-devel/pkg-descr << 'b04a48874522111657edc6a1d5e9d6a6' Xport for Various Freeswitch scripts . b04a48874522111657edc6a1d5e9d6a6 echo x - freeswitch-scripts-devel/pkg-plist sed 's/^X//' >freeswitch-scripts-devel/pkg-plist << '9a807375418d6afa33a42d00c22f5d9f' X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/.freeswitch-scripts X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/applescript/FreeSWITCH Dialer.scpt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/build_freeswitch_svn X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/c/socket2me/Makefile X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/c/socket2me/README X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/c/socket2me/socket2me.c X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/check-gitignore.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/ci/common.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/ci/debsrcbuilder.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/ci/erlang-rpm.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/ci/extras/erlang.spec X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/ci/extras/erlangbuilder.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/ci/extras/otp-R14B-00-0001-Do-not-format-man-pages.patch X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/ci/get_extra_sources.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/ci/rpmbuilder.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/ci/sounds-en-us-callie.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/ci/sounds-music.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/ci/sounds-ru-ru-elena.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/ci/src_tarball.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/dailys.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/deb_test_build.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/debug_sofia.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/freeswitch-gcore X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/freeswitch-reporter X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/freeswitch.pkg_deps.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/freeswitch.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/fsxs.in X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/gentls_cert.in X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/javascript/aadir/README X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/javascript/aadir/aadir.js X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/javascript/api.js X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/javascript/dtmftest.js X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/lua/api.lua X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/lua/callback.lua X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/lua/helloworld.lua X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/lua/mwi_event.lua X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/lua/originate.lua X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/lua/sound_test.lua X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/lua/zrtp_agent.lua X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/lua/zrtp_proxy_media.lua X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/m4a-to-wav.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/FreeSWITCH-GizmoConfig.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/FreeSWITCH/ChangeLog X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/FreeSWITCH/Client.pm X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/FreeSWITCH/Makefile.PL X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/FreeSWITCH/README X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/FreeSWITCH/debian/changelog X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/FreeSWITCH/debian/compat X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/FreeSWITCH/debian/control X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/FreeSWITCH/debian/copyright X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/FreeSWITCH/debian/rules X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/CHANGES X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/INSTALL X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/LICENSE X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/Makefile.PL X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/README X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/TODO X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/examples/fsconsole.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/examples/poetest.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/lib/POE/Filter/FSSocket.pm X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/t/01_basic.t X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/add_user X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/blacklist.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/call.cgi X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/combineconf.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/dhcp-inform.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/extract_log_range.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/fs.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/fsconsole.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/honeypot.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/multicast/recv.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/multicast/send.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/mwi_event.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/originate.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/randomize-passwords.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/rpc.cgi X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/scenario/attended_transfer.button X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/scenario/blind_transfer.button X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/scenario/offhook.button X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/scenario/phones.cfg X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/scenario/runscenario.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/sendmail X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/snom-pnpd.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/sock.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/tonegen/rtttl2tgml.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/perl/wplookup.cgi X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/php/call.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/py_modules/__init__.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/py_modules/speechtools.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/INSTALL X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/README X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/__init__.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/apirequest.sm X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/apirequest_sm.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/bgapirequest.sm X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/bgapirequest_sm.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/fseventlistener.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/fshelper.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/globals.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/loginrequest.sm X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/loginrequest_sm.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/models.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/freepy/request.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/mytest.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/python/recipewizard.py X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/rss/rss2ivr.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/rss/syncrss.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/setup-git.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/sql/cdr.sql X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/sql/easyroute_mysql.sql X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/tagscript.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/trace/sipgrep X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts/yes_no.gram X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/trace X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/sql X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/rss X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/python/freepy X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/python X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/py_modules X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/php X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/perl/tonegen X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/perl/scenario X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/perl/multicast X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/t X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/lib/POE/Filter X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/lib/POE X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/lib X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket/examples X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/perl/POE-Filter-FSSocket X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/perl/FreeSWITCH/debian X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/perl/FreeSWITCH X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/perl X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/lua X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/javascript/aadir X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/javascript X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/ci/extras X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/ci X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/c/socket2me X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/c X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts/applescript X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scripts 9a807375418d6afa33a42d00c22f5d9f exit --------------070607010003090703080500--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FC0E699.3030300>