diff options
author | Mika Havela <mika.havela@gmail.com> | 2013-10-31 13:57:15 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-31 14:05:42 +0000 |
commit | cd7249f838507cf1e2e7401451417c0f2879327f (patch) | |
tree | ba1c58d0063eeccb295dfed5bfa9350fa2cf6e70 | |
parent | 1ab341f452d506f87cda17dcdea311697af1e511 (diff) | |
download | alpine_aports-cd7249f838507cf1e2e7401451417c0f2879327f.tar.bz2 alpine_aports-cd7249f838507cf1e2e7401451417c0f2879327f.tar.xz alpine_aports-cd7249f838507cf1e2e7401451417c0f2879327f.zip |
testing/acf-provisioning-polycom4.0.3f: new aport
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 0000000000..2c5fecabea --- /dev/null +++ b/testing/acf-provisioning-polycom4.0.3f/000000000000-directory.xml | |||
@@ -0,0 +1,4 @@ | |||
1 | <?xml version="1.0" standalone="yes"?> | ||
2 | <directory> | ||
3 | <item_list/> | ||
4 | </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 0000000000..f3fe583345 --- /dev/null +++ b/testing/acf-provisioning-polycom4.0.3f/000000000000-phone.cfg | |||
@@ -0,0 +1,5 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
2 | <!-- Application SIP Wolverine 3.3.1.0933 02-Feb-11 18:44 --> | ||
3 | <PHONE_CONFIG> | ||
4 | <OVERRIDES /> | ||
5 | </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 0000000000..f3fe583345 --- /dev/null +++ b/testing/acf-provisioning-polycom4.0.3f/000000000000-web.cfg | |||
@@ -0,0 +1,5 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
2 | <!-- Application SIP Wolverine 3.3.1.0933 02-Feb-11 18:44 --> | ||
3 | <PHONE_CONFIG> | ||
4 | <OVERRIDES /> | ||
5 | </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 0000000000..ac9c68405d --- /dev/null +++ b/testing/acf-provisioning-polycom4.0.3f/000000000000.cfg.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | --- src/000000000000.cfg.org | ||
2 | +++ src/000000000000.cfg | ||
3 | @@ -4,15 +4,15 @@ | ||
4 | <!-- Configuration File Management white paper available from: --> | ||
5 | <!-- http://www.polycom.com/common/documents/whitepapers/configuration_file_management_on_soundpoint_ip_phones.pdf --> | ||
6 | <!-- $RCSfile$ $Revision: 130593 $ --> | ||
7 | -<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=""> | ||
8 | - <APPLICATION_SPIP300 APP_FILE_PATH_SPIP300="sip_213.ld" CONFIG_FILES_SPIP300="phone1_213.cfg, sip_213.cfg"/> | ||
9 | - <APPLICATION_SPIP500 APP_FILE_PATH_SPIP500="sip_213.ld" CONFIG_FILES_SPIP500="phone1_213.cfg, sip_213.cfg"/> | ||
10 | - <APPLICATION_SPIP301 APP_FILE_PATH_SPIP301="sip_318.ld" CONFIG_FILES_SPIP301="phone1_318.cfg, sip_318.cfg"/> | ||
11 | +<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"> | ||
12 | + <APPLICATION_SPIP300 APP_FILE_PATH_SPIP300="sip_213.ld" CONFIG_FILES_SPIP300="Polycom/phone1_213.cfg, Polycom/sip_213.cfg"/> | ||
13 | + <APPLICATION_SPIP500 APP_FILE_PATH_SPIP500="sip_213.ld" CONFIG_FILES_SPIP500="Polycom/phone1_213.cfg, Polycom/sip_213.cfg"/> | ||
14 | + <APPLICATION_SPIP301 APP_FILE_PATH_SPIP301="sip_318.ld" CONFIG_FILES_SPIP301="Polycom/phone1_318.cfg, Polycom/sip_318.cfg"/> | ||
15 | <APPLICATION_SPIP320 APP_FILE_PATH_SPIP320="sip_334.ld" CONFIG_FILES_SPIP320=""/> | ||
16 | <APPLICATION_SPIP330 APP_FILE_PATH_SPIP330="sip_334.ld" CONFIG_FILES_SPIP330=""/> | ||
17 | - <APPLICATION_SPIP430 APP_FILE_PATH_SPIP430="sip_327.ld" CONFIG_FILES_SPIP430="phone1_327.cfg, sip_327.cfg"/> | ||
18 | - <APPLICATION_SPIP501 APP_FILE_PATH_SPIP501="sip_318.ld" CONFIG_FILES_SPIP501="phone1_318.cfg, sip_318.cfg"/> | ||
19 | - <APPLICATION_SPIP600 APP_FILE_PATH_SPIP600="sip_318.ld" CONFIG_FILES_SPIP600="phone1_318.cfg, sip_318.cfg"/> | ||
20 | - <APPLICATION_SPIP601 APP_FILE_PATH_SPIP601="sip_318.ld" CONFIG_FILES_SPIP601="phone1_318.cfg, sip_318.cfg"/> | ||
21 | - <APPLICATION_SSIP4000 APP_FILE_PATH_SSIP4000="sip_318.ld" CONFIG_FILES_SSIP4000="phone1_318.cfg, sip_318.cfg"/> | ||
22 | + <APPLICATION_SPIP430 APP_FILE_PATH_SPIP430="sip_327.ld" CONFIG_FILES_SPIP430="Polycom/phone1_327.cfg, Polycom/sip_327.cfg"/> | ||
23 | + <APPLICATION_SPIP501 APP_FILE_PATH_SPIP501="sip_318.ld" CONFIG_FILES_SPIP501="Polycom/phone1_318.cfg, Polycom/sip_318.cfg"/> | ||
24 | + <APPLICATION_SPIP600 APP_FILE_PATH_SPIP600="sip_318.ld" CONFIG_FILES_SPIP600="Polycom/phone1_318.cfg, Polycom/sip_318.cfg"/> | ||
25 | + <APPLICATION_SPIP601 APP_FILE_PATH_SPIP601="sip_318.ld" CONFIG_FILES_SPIP601="Polycom/phone1_318.cfg, Polycom/sip_318.cfg"/> | ||
26 | + <APPLICATION_SSIP4000 APP_FILE_PATH_SSIP4000="sip_318.ld" CONFIG_FILES_SSIP4000="Polycom/phone1_318.cfg, Polycom/sip_318.cfg"/> | ||
27 | </APPLICATION> | ||
diff --git a/testing/acf-provisioning-polycom4.0.3f/APKBUILD b/testing/acf-provisioning-polycom4.0.3f/APKBUILD new file mode 100644 index 0000000000..a89130ac68 --- /dev/null +++ b/testing/acf-provisioning-polycom4.0.3f/APKBUILD | |||
@@ -0,0 +1,91 @@ | |||
1 | # Contributor: Mika Havela <mika.havela@gmail.com> | ||
2 | # Maintainer: Mika Havela <mika.havela@gmail.com> | ||
3 | pkgname=acf-provisioning-polycom4.0.3f | ||
4 | pkgver=0 | ||
5 | pkgrel=0 | ||
6 | pkgdesc="Files for provisioning Polycom IP phones" | ||
7 | url="http://www.polycom.com/products/voice/index.html" | ||
8 | arch="noarch" | ||
9 | license="AS IS" | ||
10 | depends="" | ||
11 | makedepends="" | ||
12 | source="http://downloads.polycom.com/voice/voip/uc/UC_Software_4_0_3F_release_sig_split.zip | ||
13 | http://downloads.polycom.com/voice/voip/uc/SoundPoint_IP_BootROM_4_4_0_Upgrader_release_sig.zip | ||
14 | 000000000000-directory.xml | ||
15 | 000000000000-phone.cfg | ||
16 | 000000000000-web.cfg | ||
17 | 000000000000.cfg.patch | ||
18 | " | ||
19 | subpackages="" | ||
20 | |||
21 | _builddir="$srcdir/" | ||
22 | |||
23 | link_dupes() { | ||
24 | local dir= | ||
25 | local old_pwd="$PWD" | ||
26 | for dir; do | ||
27 | echo "Creating links of duplicate files at '$dir'" | ||
28 | cd "$dir" || break | ||
29 | prevsum= | ||
30 | prevfile= | ||
31 | md5sum *.ld | sort | while read sum file; do | ||
32 | if [ "$sum" = "$prevsum" ]; then | ||
33 | echo "* Creating link of '$file'" | ||
34 | rm $file && ln -s $prevfile $file || break | ||
35 | else | ||
36 | prevsum=$sum | ||
37 | prevfile=$file | ||
38 | fi | ||
39 | done || break | ||
40 | done | ||
41 | local ret=$? | ||
42 | cd "$old_pwd" | ||
43 | return $ret | ||
44 | } | ||
45 | |||
46 | |||
47 | prepare() { | ||
48 | local i | ||
49 | cd "$_builddir" | ||
50 | sed -i -e 's/\r//' 000000000000.cfg | ||
51 | for i in $source; do | ||
52 | case $i in | ||
53 | *.patch) msg "Applying ${i}"; patch -p1 -i ../$i || return 1;; | ||
54 | esac | ||
55 | done | ||
56 | } | ||
57 | |||
58 | package() { | ||
59 | cd "$_builddir" | ||
60 | link_dupes "$_builddir" | ||
61 | mkdir -p "$pkgdir"/var/www/provisioning/htdocs | ||
62 | cp -r *.ld "$pkgdir"/var/www/provisioning/htdocs | ||
63 | } | ||
64 | |||
65 | package() { | ||
66 | cd "$_builddir" | ||
67 | link_dupes "$_builddir" || return 1 | ||
68 | mkdir -p "$pkgdir"/var/www/provisioning/htdocs/Polycom | ||
69 | mkdir -p "$pkgdir"/var/www/provisioning/htdocs/log | ||
70 | cp -r *.ld *.wav SoundPointIPLocalization 000000000000.cfg "$pkgdir"/var/www/provisioning/htdocs | ||
71 | cp 000000000000-directory.xml 000000000000-phone.cfg 000000000000-web.cfg "$pkgdir"/var/www/provisioning/htdocs/Polycom | ||
72 | } | ||
73 | |||
74 | md5sums="f2d6c889b6471878427b729988e5ea94 UC_Software_4_0_3F_release_sig_split.zip | ||
75 | 4361b57fbe7534a1170797dc40f21a3c SoundPoint_IP_BootROM_4_4_0_Upgrader_release_sig.zip | ||
76 | 4a6ff93b944a710da0c3eb99938f42cc 000000000000-directory.xml | ||
77 | 2c32486b7c9d692326fd6270664eac01 000000000000-phone.cfg | ||
78 | 2c32486b7c9d692326fd6270664eac01 000000000000-web.cfg | ||
79 | ad802a8e30d4d816513f7e9132639dd4 000000000000.cfg.patch" | ||
80 | sha256sums="c061ae619355d429787ddf660cb4136f75636da9b0de632b93126038880b8790 UC_Software_4_0_3F_release_sig_split.zip | ||
81 | 3fbe07e0f2c288d501ab41e711cdb2bdfca0831dbb5a44c63a34a0551f9ed129 SoundPoint_IP_BootROM_4_4_0_Upgrader_release_sig.zip | ||
82 | 875f5bbec057d29508bcd671a203d8e2852cd959aeaeb937443cedbe824e0a41 000000000000-directory.xml | ||
83 | e2f3dcd842d6eb44a98140e7fb60487ca70e519d5d09872a54ce1372d5a432b4 000000000000-phone.cfg | ||
84 | e2f3dcd842d6eb44a98140e7fb60487ca70e519d5d09872a54ce1372d5a432b4 000000000000-web.cfg | ||
85 | c50d37f8bf6cdbf803236c9b2504ae92fa3e32fd794d7c0d43f7c2f9546f8e8d 000000000000.cfg.patch" | ||
86 | sha512sums="8699f129c8b2f9b96d4578644597725d28875cd6a67391c8f362dace5b31c55619aa04a06f8d3bd0810a908b520ec839c4059110d596fa06c4bbda1b51ca979b UC_Software_4_0_3F_release_sig_split.zip | ||
87 | 17c661fb224269abc8e4a53a9c078cc9f5599e054666842f590d9c5cdfcaa52100463d0dfe826ad9c4f65684e7eb574852b4fe3c2e9d5b0e52890c2b93b07b5e SoundPoint_IP_BootROM_4_4_0_Upgrader_release_sig.zip | ||
88 | 9adc73d02aa4f545aca893c335284d77099c56fcc17a48f61003ede8713e96aeb8f467896f4dfbf7db67255cc3d60faf353b76ab86c5881d0ba884d1c0acffb3 000000000000-directory.xml | ||
89 | db2da0f4c393bdea773f3e5a7daa581a58caca738538db6153b223383176aae30e2081c198291d78c44eddd446a1cab9cffef78646360847ce4955c59f288300 000000000000-phone.cfg | ||
90 | db2da0f4c393bdea773f3e5a7daa581a58caca738538db6153b223383176aae30e2081c198291d78c44eddd446a1cab9cffef78646360847ce4955c59f288300 000000000000-web.cfg | ||
91 | beac1a354cbd7ca6118e801f6cc6941974567c5127bd0489b3f86f01de46b98910da203dadf32e45089c554d0566c36ccfece48c329087f474692113192802d1 000000000000.cfg.patch" | ||