summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2013-10-31 13:57:15 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-31 14:05:42 +0000
commitcd7249f838507cf1e2e7401451417c0f2879327f (patch)
treeba1c58d0063eeccb295dfed5bfa9350fa2cf6e70
parent1ab341f452d506f87cda17dcdea311697af1e511 (diff)
downloadaports-cd7249f838507cf1e2e7401451417c0f2879327f.tar.bz2
aports-cd7249f838507cf1e2e7401451417c0f2879327f.tar.xz
testing/acf-provisioning-polycom4.0.3f: new aport
-rw-r--r--testing/acf-provisioning-polycom4.0.3f/000000000000-directory.xml4
-rw-r--r--testing/acf-provisioning-polycom4.0.3f/000000000000-phone.cfg5
-rw-r--r--testing/acf-provisioning-polycom4.0.3f/000000000000-web.cfg5
-rw-r--r--testing/acf-provisioning-polycom4.0.3f/000000000000.cfg.patch27
-rw-r--r--testing/acf-provisioning-polycom4.0.3f/APKBUILD91
5 files changed, 132 insertions, 0 deletions
diff --git a/testing/acf-provisioning-polycom4.0.3f/000000000000-directory.xml b/testing/acf-provisioning-polycom4.0.3f/000000000000-directory.xml
new file mode 100644
index 000000000..2c5fecabe
--- /dev/null
+++ b/testing/acf-provisioning-polycom4.0.3f/000000000000-directory.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" standalone="yes"?>
+<directory>
+ <item_list/>
+</directory>
diff --git a/testing/acf-provisioning-polycom4.0.3f/000000000000-phone.cfg b/testing/acf-provisioning-polycom4.0.3f/000000000000-phone.cfg
new file mode 100644
index 000000000..f3fe58334
--- /dev/null
+++ b/testing/acf-provisioning-polycom4.0.3f/000000000000-phone.cfg
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!-- Application SIP Wolverine 3.3.1.0933 02-Feb-11 18:44 -->
+<PHONE_CONFIG>
+ <OVERRIDES />
+</PHONE_CONFIG>
diff --git a/testing/acf-provisioning-polycom4.0.3f/000000000000-web.cfg b/testing/acf-provisioning-polycom4.0.3f/000000000000-web.cfg
new file mode 100644
index 000000000..f3fe58334
--- /dev/null
+++ b/testing/acf-provisioning-polycom4.0.3f/000000000000-web.cfg
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!-- Application SIP Wolverine 3.3.1.0933 02-Feb-11 18:44 -->
+<PHONE_CONFIG>
+ <OVERRIDES />
+</PHONE_CONFIG>
diff --git a/testing/acf-provisioning-polycom4.0.3f/000000000000.cfg.patch b/testing/acf-provisioning-polycom4.0.3f/000000000000.cfg.patch
new file mode 100644
index 000000000..ac9c68405
--- /dev/null
+++ b/testing/acf-provisioning-polycom4.0.3f/000000000000.cfg.patch
@@ -0,0 +1,27 @@
+--- src/000000000000.cfg.org
++++ src/000000000000.cfg
+@@ -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: 130593 $ -->
+-<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_334.ld" CONFIG_FILES_SPIP320=""/>
+ <APPLICATION_SPIP330 APP_FILE_PATH_SPIP330="sip_334.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/testing/acf-provisioning-polycom4.0.3f/APKBUILD b/testing/acf-provisioning-polycom4.0.3f/APKBUILD
new file mode 100644
index 000000000..a89130ac6
--- /dev/null
+++ b/testing/acf-provisioning-polycom4.0.3f/APKBUILD
@@ -0,0 +1,91 @@
+# Contributor: Mika Havela <mika.havela@gmail.com>
+# Maintainer: Mika Havela <mika.havela@gmail.com>
+pkgname=acf-provisioning-polycom4.0.3f
+pkgver=0
+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_4_0_3F_release_sig_split.zip
+http://downloads.polycom.com/voice/voip/uc/SoundPoint_IP_BootROM_4_4_0_Upgrader_release_sig.zip
+000000000000-directory.xml
+000000000000-phone.cfg
+000000000000-web.cfg
+000000000000.cfg.patch
+"
+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 "$_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;;
+ esac
+ done
+}
+
+package() {
+ cd "$_builddir"
+ link_dupes "$_builddir"
+ mkdir -p "$pkgdir"/var/www/provisioning/htdocs
+ cp -r *.ld "$pkgdir"/var/www/provisioning/htdocs
+}
+
+package() {
+ cd "$_builddir"
+ link_dupes "$_builddir" || return 1
+ mkdir -p "$pkgdir"/var/www/provisioning/htdocs/Polycom
+ mkdir -p "$pkgdir"/var/www/provisioning/htdocs/log
+ 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="f2d6c889b6471878427b729988e5ea94 UC_Software_4_0_3F_release_sig_split.zip
+4361b57fbe7534a1170797dc40f21a3c SoundPoint_IP_BootROM_4_4_0_Upgrader_release_sig.zip
+4a6ff93b944a710da0c3eb99938f42cc 000000000000-directory.xml
+2c32486b7c9d692326fd6270664eac01 000000000000-phone.cfg
+2c32486b7c9d692326fd6270664eac01 000000000000-web.cfg
+ad802a8e30d4d816513f7e9132639dd4 000000000000.cfg.patch"
+sha256sums="c061ae619355d429787ddf660cb4136f75636da9b0de632b93126038880b8790 UC_Software_4_0_3F_release_sig_split.zip
+3fbe07e0f2c288d501ab41e711cdb2bdfca0831dbb5a44c63a34a0551f9ed129 SoundPoint_IP_BootROM_4_4_0_Upgrader_release_sig.zip
+875f5bbec057d29508bcd671a203d8e2852cd959aeaeb937443cedbe824e0a41 000000000000-directory.xml
+e2f3dcd842d6eb44a98140e7fb60487ca70e519d5d09872a54ce1372d5a432b4 000000000000-phone.cfg
+e2f3dcd842d6eb44a98140e7fb60487ca70e519d5d09872a54ce1372d5a432b4 000000000000-web.cfg
+c50d37f8bf6cdbf803236c9b2504ae92fa3e32fd794d7c0d43f7c2f9546f8e8d 000000000000.cfg.patch"
+sha512sums="8699f129c8b2f9b96d4578644597725d28875cd6a67391c8f362dace5b31c55619aa04a06f8d3bd0810a908b520ec839c4059110d596fa06c4bbda1b51ca979b UC_Software_4_0_3F_release_sig_split.zip
+17c661fb224269abc8e4a53a9c078cc9f5599e054666842f590d9c5cdfcaa52100463d0dfe826ad9c4f65684e7eb574852b4fe3c2e9d5b0e52890c2b93b07b5e SoundPoint_IP_BootROM_4_4_0_Upgrader_release_sig.zip
+9adc73d02aa4f545aca893c335284d77099c56fcc17a48f61003ede8713e96aeb8f467896f4dfbf7db67255cc3d60faf353b76ab86c5881d0ba884d1c0acffb3 000000000000-directory.xml
+db2da0f4c393bdea773f3e5a7daa581a58caca738538db6153b223383176aae30e2081c198291d78c44eddd446a1cab9cffef78646360847ce4955c59f288300 000000000000-phone.cfg
+db2da0f4c393bdea773f3e5a7daa581a58caca738538db6153b223383176aae30e2081c198291d78c44eddd446a1cab9cffef78646360847ce4955c59f288300 000000000000-web.cfg
+beac1a354cbd7ca6118e801f6cc6941974567c5127bd0489b3f86f01de46b98910da203dadf32e45089c554d0566c36ccfece48c329087f474692113192802d1 000000000000.cfg.patch"