aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/acf-provisioning-polycom4.0.3f/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/acf-provisioning-polycom4.0.3f/APKBUILD')
-rw-r--r--unmaintained/acf-provisioning-polycom4.0.3f/APKBUILD86
1 files changed, 86 insertions, 0 deletions
diff --git a/unmaintained/acf-provisioning-polycom4.0.3f/APKBUILD b/unmaintained/acf-provisioning-polycom4.0.3f/APKBUILD
new file mode 100644
index 0000000000..dfe0f3375f
--- /dev/null
+++ b/unmaintained/acf-provisioning-polycom4.0.3f/APKBUILD
@@ -0,0 +1,86 @@
+# Contributor: Mika Havela <mika.havela@gmail.com>
+# Maintainer: Mika Havela <mika.havela@gmail.com>
+pkgname=acf-provisioning-polycom4.0.3f
+pkgver=0
+pkgrel=2
+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" || 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="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"