aboutsummaryrefslogtreecommitdiffstats
path: root/main/acf-provisioning-polycom/APKBUILD
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-02-09 15:44:39 +0000
committerTed Trask <ttrask01@yahoo.com>2015-02-09 15:45:24 +0000
commit5d7de72d132d0c0747f1ec375c9aa606f4c50644 (patch)
tree1b8990682e1c1b724e476606af1c2e5fcc19b6e4 /main/acf-provisioning-polycom/APKBUILD
parent739ba0a8dac2de0b7a114297c9bcff6642baaa8c (diff)
downloadaports-5d7de72d132d0c0747f1ec375c9aa606f4c50644.tar.bz2
aports-5d7de72d132d0c0747f1ec375c9aa606f4c50644.tar.xz
main/acf-provisioning-polycom: upgrade to 4.0.8
Diffstat (limited to 'main/acf-provisioning-polycom/APKBUILD')
-rw-r--r--main/acf-provisioning-polycom/APKBUILD58
1 files changed, 49 insertions, 9 deletions
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"