diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-02-09 15:44:39 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-02-09 15:45:24 +0000 |
commit | 5d7de72d132d0c0747f1ec375c9aa606f4c50644 (patch) | |
tree | 1b8990682e1c1b724e476606af1c2e5fcc19b6e4 /main | |
parent | 739ba0a8dac2de0b7a114297c9bcff6642baaa8c (diff) | |
download | aports-5d7de72d132d0c0747f1ec375c9aa606f4c50644.tar.bz2 aports-5d7de72d132d0c0747f1ec375c9aa606f4c50644.tar.xz |
main/acf-provisioning-polycom: upgrade to 4.0.8
Diffstat (limited to 'main')
-rw-r--r-- | main/acf-provisioning-polycom/000000000000.cfg.patch | 53 | ||||
-rw-r--r-- | main/acf-provisioning-polycom/APKBUILD | 58 |
2 files changed, 76 insertions, 35 deletions
diff --git a/main/acf-provisioning-polycom/000000000000.cfg.patch b/main/acf-provisioning-polycom/000000000000.cfg.patch index 964176971f..4ece809ecd 100644 --- a/main/acf-provisioning-polycom/000000000000.cfg.patch +++ b/main/acf-provisioning-polycom/000000000000.cfg.patch @@ -1,26 +1,27 @@ ---- old/000000000000.cfg -+++ new/000000000000.cfg -@@ -4,14 +4,14 @@ - <!-- Configuration File Management white paper available from: -->
- <!-- http://www.polycom.com/common/documents/whitepapers/configuration_file_management_on_soundpoint_ip_phones.pdf -->
- <!-- $RCSfile: 000000000000.cfg,v $ $Revision: 1.23.8.5 $ -->
--<APPLICATION APP_FILE_PATH="sip.ld" CONFIG_FILES="" MISC_FILES="" LOG_FILE_DIRECTORY="" OVERRIDES_DIRECTORY="" CONTACTS_DIRECTORY="" LICENSE_DIRECTORY="">
-+<APPLICATION APP_FILE_PATH="sip.ld" CONFIG_FILES="Polycom/[PHONE_MAC_ADDRESS]-default.cfg, Polycom/initial.cfg" MISC_FILES="" LOG_FILE_DIRECTORY="log" OVERRIDES_DIRECTORY="Polycom" CONTACTS_DIRECTORY="Polycom" LICENSE_DIRECTORY="Polycom">
-
--<APPLICATION_SPIP300 APP_FILE_PATH_SPIP300="sip_213.ld" CONFIG_FILES_SPIP300="phone1_213.cfg, sip_213.cfg"/>
--<APPLICATION_SPIP500 APP_FILE_PATH_SPIP500="sip_213.ld" CONFIG_FILES_SPIP500="phone1_213.cfg, sip_213.cfg"/>
--<APPLICATION_SPIP301 APP_FILE_PATH_SPIP301="sip_316.ld" CONFIG_FILES_SPIP301="phone1_316.cfg, sip_316.cfg"/>
--<APPLICATION_SPIP501 APP_FILE_PATH_SPIP501="sip_316.ld" CONFIG_FILES_SPIP501="phone1_316.cfg, sip_316.cfg"/>
--<APPLICATION_SPIP430 APP_FILE_PATH_SPIP430="sip_323.ld" CONFIG_FILES_SPIP430="phone1_323.cfg, sip_323.cfg"/>
--<APPLICATION_SPIP600 APP_FILE_PATH_SPIP600="sip_316.ld" CONFIG_FILES_SPIP600="phone1_316.cfg, sip_316.cfg"/>
--<APPLICATION_SPIP601 APP_FILE_PATH_SPIP601="sip_316.ld" CONFIG_FILES_SPIP601="phone1_316.cfg, sip_316.cfg"/>
--<APPLICATION_SSIP4000 APP_FILE_PATH_SSIP4000="sip_316.ld" CONFIG_FILES_SSIP4000="phone1_316.cfg, sip_316.cfg"/>
-+<APPLICATION_SPIP300 APP_FILE_PATH_SPIP300="sip_213.ld" CONFIG_FILES_SPIP300="Polycom/phone1_213.cfg, Polycom/sip_213.cfg"/>
-+<APPLICATION_SPIP500 APP_FILE_PATH_SPIP500="sip_213.ld" CONFIG_FILES_SPIP500="Polycom/phone1_213.cfg, Polycom/sip_213.cfg"/>
-+<APPLICATION_SPIP301 APP_FILE_PATH_SPIP301="sip_316.ld" CONFIG_FILES_SPIP301="Polycom/phone1_316.cfg, Polycom/sip_316.cfg"/>
-+<APPLICATION_SPIP501 APP_FILE_PATH_SPIP501="sip_316.ld" CONFIG_FILES_SPIP501="Polycom/phone1_316.cfg, Polycom/sip_316.cfg"/>
-+<APPLICATION_SPIP430 APP_FILE_PATH_SPIP430="sip_323.ld" CONFIG_FILES_SPIP430="Polycom/phone1_323.cfg, Polycom/sip_323.cfg"/>
-+<APPLICATION_SPIP600 APP_FILE_PATH_SPIP600="sip_316.ld" CONFIG_FILES_SPIP600="Polycom/phone1_316.cfg, Polycom/sip_316.cfg"/>
-+<APPLICATION_SPIP601 APP_FILE_PATH_SPIP601="sip_316.ld" CONFIG_FILES_SPIP601="Polycom/phone1_316.cfg, Polycom/sip_316.cfg"/>
-+<APPLICATION_SSIP4000 APP_FILE_PATH_SSIP4000="sip_316.ld" CONFIG_FILES_SSIP4000="Polycom/phone1_316.cfg, Polycom/sip_316.cfg"/>
- </APPLICATION>
+--- src/000000000000.cfg ++++ src/000000000000.cfg.new +@@ -4,15 +4,15 @@ + <!-- Configuration File Management white paper available from: --> + <!-- http://www.polycom.com/common/documents/whitepapers/configuration_file_management_on_soundpoint_ip_phones.pdf --> + <!-- $RCSfile$ $Revision: 155255 $ --> +-<APPLICATION APP_FILE_PATH="sip.ld" CONFIG_FILES="" MISC_FILES="" LOG_FILE_DIRECTORY="" OVERRIDES_DIRECTORY="" CONTACTS_DIRECTORY="" LICENSE_DIRECTORY="" USER_PROFILES_DIRECTORY="" CALL_LISTS_DIRECTORY=""> +- <APPLICATION_SPIP300 APP_FILE_PATH_SPIP300="sip_213.ld" CONFIG_FILES_SPIP300="phone1_213.cfg, sip_213.cfg"/> +- <APPLICATION_SPIP500 APP_FILE_PATH_SPIP500="sip_213.ld" CONFIG_FILES_SPIP500="phone1_213.cfg, sip_213.cfg"/> +- <APPLICATION_SPIP301 APP_FILE_PATH_SPIP301="sip_318.ld" CONFIG_FILES_SPIP301="phone1_318.cfg, sip_318.cfg"/> ++<APPLICATION APP_FILE_PATH="sip.ld" CONFIG_FILES="Polycom/[PHONE_MAC_ADDRESS]-default.cfg, Polycom/initial.cfg" MISC_FILES="" LOG_FILE_DIRECTORY="log" OVERRIDES_DIRECTORY="Polycom" CONTACTS_DIRECTORY="Polycom" LICENSE_DIRECTORY="Polycom" USER_PROFILES_DIRECTORY="Polycom" CALL_LISTS_DIRECTORY="Polycom"> ++ <APPLICATION_SPIP300 APP_FILE_PATH_SPIP300="sip_213.ld" CONFIG_FILES_SPIP300="Polycom/phone1_213.cfg, Polycom/sip_213.cfg"/> ++ <APPLICATION_SPIP500 APP_FILE_PATH_SPIP500="sip_213.ld" CONFIG_FILES_SPIP500="Polycom/phone1_213.cfg, Polycom/sip_213.cfg"/> ++ <APPLICATION_SPIP301 APP_FILE_PATH_SPIP301="sip_318.ld" CONFIG_FILES_SPIP301="Polycom/phone1_318.cfg, Polycom/sip_318.cfg"/> + <APPLICATION_SPIP320 APP_FILE_PATH_SPIP320="sip_335.ld" CONFIG_FILES_SPIP320=""/> + <APPLICATION_SPIP330 APP_FILE_PATH_SPIP330="sip_335.ld" CONFIG_FILES_SPIP330=""/> +- <APPLICATION_SPIP430 APP_FILE_PATH_SPIP430="sip_327.ld" CONFIG_FILES_SPIP430="phone1_327.cfg, sip_327.cfg"/> +- <APPLICATION_SPIP501 APP_FILE_PATH_SPIP501="sip_318.ld" CONFIG_FILES_SPIP501="phone1_318.cfg, sip_318.cfg"/> +- <APPLICATION_SPIP600 APP_FILE_PATH_SPIP600="sip_318.ld" CONFIG_FILES_SPIP600="phone1_318.cfg, sip_318.cfg"/> +- <APPLICATION_SPIP601 APP_FILE_PATH_SPIP601="sip_318.ld" CONFIG_FILES_SPIP601="phone1_318.cfg, sip_318.cfg"/> +- <APPLICATION_SSIP4000 APP_FILE_PATH_SSIP4000="sip_318.ld" CONFIG_FILES_SSIP4000="phone1_318.cfg, sip_318.cfg"/> ++ <APPLICATION_SPIP430 APP_FILE_PATH_SPIP430="sip_327.ld" CONFIG_FILES_SPIP430="Polycom/phone1_327.cfg, Polycom/sip_327.cfg"/> ++ <APPLICATION_SPIP501 APP_FILE_PATH_SPIP501="sip_318.ld" CONFIG_FILES_SPIP501="Polycom/phone1_318.cfg, Polycom/sip_318.cfg"/> ++ <APPLICATION_SPIP600 APP_FILE_PATH_SPIP600="sip_318.ld" CONFIG_FILES_SPIP600="Polycom/phone1_318.cfg, Polycom/sip_318.cfg"/> ++ <APPLICATION_SPIP601 APP_FILE_PATH_SPIP601="sip_318.ld" CONFIG_FILES_SPIP601="Polycom/phone1_318.cfg, Polycom/sip_318.cfg"/> ++ <APPLICATION_SSIP4000 APP_FILE_PATH_SSIP4000="sip_318.ld" CONFIG_FILES_SSIP4000="Polycom/phone1_318.cfg, Polycom/sip_318.cfg"/> + </APPLICATION> diff --git a/main/acf-provisioning-polycom/APKBUILD b/main/acf-provisioning-polycom/APKBUILD index b186c483fa..eb4c400d32 100644 --- a/main/acf-provisioning-polycom/APKBUILD +++ b/main/acf-provisioning-polycom/APKBUILD @@ -1,25 +1,51 @@ # Contributor: Ted Trask <ttrask01@yahoo.com> # Maintainer: Ted Trask <ttrask01@yahoo.com> pkgname=acf-provisioning-polycom -pkgver=3.3.1f -pkgrel=1 +pkgver=4.0.8 +pkgrel=0 pkgdesc="Files for provisioning Polycom IP phones" url="http://www.polycom.com/products/voice/index.html" arch="noarch" license="AS IS" depends="" makedepends="" -source="http://downloads.polycom.com/voice/voip/uc/UC_Software_3_3_1F_release_sig_split.zip -http://downloads.polycom.com/voice/voip/sp_ss_bootrom/spip_ssip_BootROM_4_3_0_release_sig.zip +source="http://downloads.polycom.com/voice/voip/uc/Polycom_UC_Software_4_0_8_release_sig_split.zip +http://downloads.polycom.com/voice/voip/uc/SoundPoint_IP_BootROM_4_4_0B_Upgrader_release_sig.zip 000000000000.cfg.patch 000000000000-phone.cfg 000000000000-web.cfg 000000000000-directory.xml" subpackages="" +_builddir="$srcdir/" + +link_dupes() { + local dir= + local old_pwd="$PWD" + for dir; do + echo "Creating links of duplicate files at '$dir'" + cd "$dir" || break + prevsum= + prevfile= + md5sum *.ld | sort | while read sum file; do + if [ "$sum" = "$prevsum" ]; then + echo "* Creating link of '$file'" + rm $file && ln -s $prevfile $file || break + else + prevsum=$sum + prevfile=$file + fi + done || break + done + local ret=$? + cd "$old_pwd" + return $ret +} + prepare() { local i - cd "$srcdir" + cd "$_builddir" + sed -i -e 's/\r//' 000000000000.cfg for i in $source; do case $i in *.patch) msg "Applying ${i}"; patch -p1 -i $i || return 1;; @@ -28,16 +54,30 @@ prepare() { } package() { - cd "$srcdir" + cd "$_builddir" + link_dupes "$_builddir" || return 1 mkdir -p "$pkgdir"/var/www/provisioning/htdocs/Polycom mkdir -p "$pkgdir"/var/www/provisioning/htdocs/log + echo "$pkgname-$pkgver-r$pkgrel" > "$pkgdir"/var/www/provisioning/htdocs/Polycom/package-version cp -r *.ld *.wav SoundPointIPLocalization 000000000000.cfg "$pkgdir"/var/www/provisioning/htdocs cp 000000000000-directory.xml 000000000000-phone.cfg 000000000000-web.cfg "$pkgdir"/var/www/provisioning/htdocs/Polycom } -md5sums="33884c6f8741c2024bf56f3e9d3a6063 UC_Software_3_3_1F_release_sig_split.zip -f1a7ba343c83bffff9dd0484e6ad5c7d spip_ssip_BootROM_4_3_0_release_sig.zip -db8c82b74bf00f3bd92fa193707d2ed0 000000000000.cfg.patch +md5sums="e8ef63fdfd7ef72fc218d4658d0b015d Polycom_UC_Software_4_0_8_release_sig_split.zip +b5ac28a1b4ede82fca226675c0b6981d SoundPoint_IP_BootROM_4_4_0B_Upgrader_release_sig.zip +4c1fb1bc907a5039f83380052877350c 000000000000.cfg.patch 2c32486b7c9d692326fd6270664eac01 000000000000-phone.cfg 2c32486b7c9d692326fd6270664eac01 000000000000-web.cfg 4a6ff93b944a710da0c3eb99938f42cc 000000000000-directory.xml" +sha256sums="c24178962cac12fa6743499b16f9fbbb91eaeafcf45fd39ae975f56932be6387 Polycom_UC_Software_4_0_8_release_sig_split.zip +4565248f354321901323d01b1aeed8bb6e00beedc331a3f7545cbae83d194113 SoundPoint_IP_BootROM_4_4_0B_Upgrader_release_sig.zip +7cbc6cdafd6fefcf3630eab6b8012a94f6b5921752fcffb3c55f07fec8c205a3 000000000000.cfg.patch +e2f3dcd842d6eb44a98140e7fb60487ca70e519d5d09872a54ce1372d5a432b4 000000000000-phone.cfg +e2f3dcd842d6eb44a98140e7fb60487ca70e519d5d09872a54ce1372d5a432b4 000000000000-web.cfg +875f5bbec057d29508bcd671a203d8e2852cd959aeaeb937443cedbe824e0a41 000000000000-directory.xml" +sha512sums="98219414fea55ca7946ca1917507a18f19e20336928f52463690b77498ee76a4be088e548f24795ebbff37cf877ef36bfd7bcc7f533263d85c3da6eb89a59d21 Polycom_UC_Software_4_0_8_release_sig_split.zip +b624b6618af41c21de016ead0746be9702834632e32de1bd62a5b47ad2308f0fb9def72fcfb35259731b7431d00a958e9c4ad3ad7d7257a29bba9e976dc70c4c SoundPoint_IP_BootROM_4_4_0B_Upgrader_release_sig.zip +20bfb505c1d4656868921ca4304da52bcbe8ee6d2c91377e796de4c4c0432299ae5d2c1f1479e3684d4ff5c2decc070370dcd564b501276fc528461485552ba9 000000000000.cfg.patch +db2da0f4c393bdea773f3e5a7daa581a58caca738538db6153b223383176aae30e2081c198291d78c44eddd446a1cab9cffef78646360847ce4955c59f288300 000000000000-phone.cfg +db2da0f4c393bdea773f3e5a7daa581a58caca738538db6153b223383176aae30e2081c198291d78c44eddd446a1cab9cffef78646360847ce4955c59f288300 000000000000-web.cfg +9adc73d02aa4f545aca893c335284d77099c56fcc17a48f61003ede8713e96aeb8f467896f4dfbf7db67255cc3d60faf353b76ab86c5881d0ba884d1c0acffb3 000000000000-directory.xml" |