From ed7204cce5f031784200acb8e5af53f07d65bf10 Mon Sep 17 00:00:00 2001 From: jervis Date: Thu, 18 May 2017 14:15:02 +0800 Subject: [PATCH] add ant-spk configure file --- ant-spk/app/dsm/images/icon_256.png | Bin 0 -> 10485 bytes ant-spk/app/dsm/images/icon_72.png | Bin 0 -> 1781 bytes ant-spk/build.xml | 40 +++++++++++++++ ant-spk/spk/scripts/postinst | 37 ++++++++++++++ ant-spk/spk/scripts/postuninst | 6 +++ ant-spk/spk/scripts/postupgrade | 4 ++ ant-spk/spk/scripts/preinst | 4 ++ ant-spk/spk/scripts/preuninst | 4 ++ ant-spk/spk/scripts/preupgrade | 4 ++ ant-spk/spk/scripts/start-stop-status | 68 ++++++++++++++++++++++++++ 10 files changed, 167 insertions(+) create mode 100644 ant-spk/app/dsm/images/icon_256.png create mode 100644 ant-spk/app/dsm/images/icon_72.png create mode 100644 ant-spk/build.xml create mode 100644 ant-spk/spk/scripts/postinst create mode 100644 ant-spk/spk/scripts/postuninst create mode 100644 ant-spk/spk/scripts/postupgrade create mode 100644 ant-spk/spk/scripts/preinst create mode 100644 ant-spk/spk/scripts/preuninst create mode 100644 ant-spk/spk/scripts/preupgrade create mode 100644 ant-spk/spk/scripts/start-stop-status diff --git a/ant-spk/app/dsm/images/icon_256.png b/ant-spk/app/dsm/images/icon_256.png new file mode 100644 index 0000000000000000000000000000000000000000..b70e258839b9508aeadfd4f699a407650781c683 GIT binary patch literal 10485 zcmZ{JRZyKxu~?fDa7-1cd>>)5lWKApp3u0l={d0Pz0+06gdHHdVoo4Jb1O8A$-Bh@<5A z&=8$vbzMJ@>;KQzqQrm?0p3kcQ40Pq2!x78#z$Qz0|2x+a*|>iUaM#Rp3a6#-UptJ z{+(SB5u2b8vL2&;7OjkAeBIH^tx>csGA5LOY83$RP_S&ljjyf_p5ak zQgYaubV-HF$g;syvQSh$@J4+nXKAkY=onO&&VPLI$f7-Ht+^<#uhafKpI`VL2pG3V zcE1;e>e&JBfn>DbVN@i-YEZ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15H4CXy3VwTQP)#Y^4+R5;83>faXBhput|D`9oD|!?YJ)^TIg;;D7sGPzx z-r!eaav@r-Y}-vob~nh&xr{YS{doI=yM{W&+3Dc#FU%P~|CEO&B{*suTK5@bYZk_}zebH*%JDtl=s$-$P3k z*4Jp&Wc0{Qhjsbm)cnVlYzbjpBEzi&9YnOMO;dXw6F>%BI?Xz+YgzwiO zLH@s42W3Z>icw4*zg=Ma--hdf9yBK+qBO3%3Ix>zLv^;JJ)8poKbsnT`Ep zXs~ngvvcutaxk*-^0Tq2v2>XJFM@-Ug{_tM|4pEDh1vKZi2T13Ts^G$%}iY_nccy* zfR*i6OMX^XR!vt+uq&&bCD_B(l~vNo)A6g5sf8=6n}ai}s+6Lpv7)J~xsw~q2bV1{ RDDlG-ASb0HSuJi7@;?f~{d@ob literal 0 HcmV?d00001 diff --git a/ant-spk/app/dsm/images/icon_72.png b/ant-spk/app/dsm/images/icon_72.png new file mode 100644 index 0000000000000000000000000000000000000000..a1a6b7115ca40bf52a96ae8ddc49df0df3f23f17 GIT binary patch literal 1781 zcmZ`)c{~*Q7XKMDS(4=$vgM8~<6;&JW#5LGjIj*Tjm9p^ATxMFWx_?dgA%emA}+F| zkZ`+0R%8f@ig1wd2Q@qJ$yUnBepu8si2p9X-H0>B=>#aaL$1_QvN4*}>(4Wvl7&l}Hrf0-ev||Hav*(AWGzh(UD33w;(4I3bQWtMS+# z09Xmp*2<00$IcHU!Oz3{j@HM$^St{Z14$74Ez~E$+;Y~YR7-2f=v#Zjm`7dn>Fdts z%{8|R3qMp9HixiV+`~v+4@Byl9BE%F+>_zXh;knp8F(oIse{h%(=nm%`NqZu=T8MX z>HV-$vdcA_pImRtS4mOtsXlfU+4HI1e~_`XarqClb#`XB-L{g^wRJ5Q2Y z^G&=_lNjMA4Tp$g`Jv4e>TS2YYC(FlUqNaHp*T-Dc-7NvS(=TyUp=%xv|geRda=>z zaA70)u&Zl2k81d`W`z8mH`&v8U^PPw+nrwYDfX)RS0m9tMg zn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#{2sHMO4&)Qi!(fec zF<5@MVfBr%2FCh&+L$xO7>p~b)AxT2w8(&vAm;x!sL`QQe1pY*F3@9xjs1M-fx0o# zAs{FuJkS`8M!VAkqv`0-!06ZzI@&feE+RbAH-L_2(4x>Tct>}tqc7b*l7ZrTF^Q~f P{whGklWiNUeUknL(TNp) literal 0 HcmV?d00001 diff --git a/ant-spk/build.xml b/ant-spk/build.xml new file mode 100644 index 0000000..812f58c --- /dev/null +++ b/ant-spk/build.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ant-spk/spk/scripts/postinst b/ant-spk/spk/scripts/postinst new file mode 100644 index 0000000..fb29445 --- /dev/null +++ b/ant-spk/spk/scripts/postinst @@ -0,0 +1,37 @@ +#!/bin/sh +# Copyright (C) 2000-2016 Synology Inc. All rights reserved. + +p_dir() +{ + [ -d "$1" ] || mkdir -p $1 +} + +p_dir /usr/local/bin +p_dir /usr/local/sbin +p_dir /usr/local/lib +p_dir /usr/local/libexec +p_dir /usr/local/share +p_dir /usr/local/etc +p_dir /usr/local/var +p_dir /usr/local/etc/logrotate.d +p_dir /usr/local/var/cache/ +p_dir /usr/local/var/lib/ +p_dir /usr/local/var/log +p_dir /usr/local/var/run + + +ln -sf $SYNOPKG_PKGDEST/bin/* /usr/local/bin +ln -sf $SYNOPKG_PKGDEST/sbin/* /usr/local/sbin +ln -sf $SYNOPKG_PKGDEST/lib/* /usr/local/lib/ +ln -sf $SYNOPKG_PKGDEST/libexec/* /usr/local/libexec/ +ln -sf $SYNOPKG_PKGDEST/share/* /usr/local/share/ + +ln -sf $SYNOPKG_PKGDEST/etc/libvirt /usr/local/etc/ +ln -sf $SYNOPKG_PKGDEST/etc/sasl2 /usr/local/etc/ +ln -sf $SYNOPKG_PKGDEST/etc/logrotate.d/libvirtd /usr/local/etc/logrotate.d/ + +ln -sf $SYNOPKG_PKGDEST/var/cache/* /usr/local/var/cache/ +ln -sf $SYNOPKG_PKGDEST/var/lib/* /usr/local/var/lib/ +ln -sf $SYNOPKG_PKGDEST/var/log/* /usr/local/var/log/ +ln -sf $SYNOPKG_PKGDEST/var/run/* /usr/local/var/run/ +exit 0 diff --git a/ant-spk/spk/scripts/postuninst b/ant-spk/spk/scripts/postuninst new file mode 100644 index 0000000..7effaa5 --- /dev/null +++ b/ant-spk/spk/scripts/postuninst @@ -0,0 +1,6 @@ +#!/bin/sh +# Copyright (C) 2000-2016 Synology Inc. All rights reserved. + +find /usr/local/ -type l -ls |grep synokvm |awk -F"->" '{print $1}'|awk '{print $NF}'|xargs rm -f + +exit 0 diff --git a/ant-spk/spk/scripts/postupgrade b/ant-spk/spk/scripts/postupgrade new file mode 100644 index 0000000..9f04343 --- /dev/null +++ b/ant-spk/spk/scripts/postupgrade @@ -0,0 +1,4 @@ +#!/bin/sh +# Copyright (C) 2000-2016 Synology Inc. All rights reserved. + +exit 0 diff --git a/ant-spk/spk/scripts/preinst b/ant-spk/spk/scripts/preinst new file mode 100644 index 0000000..9f04343 --- /dev/null +++ b/ant-spk/spk/scripts/preinst @@ -0,0 +1,4 @@ +#!/bin/sh +# Copyright (C) 2000-2016 Synology Inc. All rights reserved. + +exit 0 diff --git a/ant-spk/spk/scripts/preuninst b/ant-spk/spk/scripts/preuninst new file mode 100644 index 0000000..9f04343 --- /dev/null +++ b/ant-spk/spk/scripts/preuninst @@ -0,0 +1,4 @@ +#!/bin/sh +# Copyright (C) 2000-2016 Synology Inc. All rights reserved. + +exit 0 diff --git a/ant-spk/spk/scripts/preupgrade b/ant-spk/spk/scripts/preupgrade new file mode 100644 index 0000000..9f04343 --- /dev/null +++ b/ant-spk/spk/scripts/preupgrade @@ -0,0 +1,4 @@ +#!/bin/sh +# Copyright (C) 2000-2016 Synology Inc. All rights reserved. + +exit 0 diff --git a/ant-spk/spk/scripts/start-stop-status b/ant-spk/spk/scripts/start-stop-status new file mode 100644 index 0000000..facdd1e --- /dev/null +++ b/ant-spk/spk/scripts/start-stop-status @@ -0,0 +1,68 @@ +#!/bin/sh +# Copyright (C) 2000-2016 Synology Inc. All rights reserved. + +insert_kernel_modules() +{ + insmod /lib/modules/kvm.ko + it=`grep vmx /proc/cpuinfo` + amd=`grep svm /proc/cpuinfo` + if [ ! -z "${it}" ]; then + insmod /lib/modules/kvm-intel.ko + elif [ ! -z "${amd}" ]; then + insmod /lib/modules/kvm-amd.ko + else + echo 0 + fi + insmod /lib/modules/tun.ko + insmod /lib/modules/vhost_net.ko +} +remove_kernel_modules() +{ + rmmod vhost_net + rmmod tun + it=`grep vmx /proc/cpuinfo` + amd=`grep svm /proc/cpuinfo` + if [ ! -z "${it}" ]; then + rmmod kvm_intel + elif [ ! -z "${amd}" ]; then + rmmod kvm_amd + else + echo 0 + fi + rmmod kvm +} + +case $1 in + start) + ret=`insert_kernel_modules` + if [ "$ret" != "0" ]; then + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib + virtlogd -d + libvirtd -l -d -f /usr/local/etc/libvirt/libvirtd.conf + exit 0 + else + exit 1 + fi + ;; + stop) + killall libvirtd + killall virtlogd + remove_kernel_modules + exit 0 + ;; + status) + if [ -f "/usr/local/var/run/virtlogd.pid" -a -f "/usr/local/var/run/libvirtd.pid" ]; then + exit 0 + else + exit 1 + fi + ;; + killall) + killall libvirtd + killall virtlogd + remove_kernel_modules + ;; + log) + exit 0 + ;; +esac