updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / groupvpn / PKGBUILD
blob8619236861d823f699b0fe3fa23233fa88f20219
1 # Maintainer: Shanto <shanto@hotmail.com>
2 # NOTE: Please refer to the official website before installing this. You need a config file generated from the website in addition to this package.
4 pkgname=groupvpn
5 pkgver=9.6.0
6 pkgrel=1
7 pkgdesc="Group based implementation of the ACIS P2P stack (a.k.a Brunet/IPOP). Like Hamachi, Tinc or n2n."
8 arch=('i686' 'x86_64')
9 url="https://www.grid-appliance.org/wiki/index.php/GroupVPN"
10 license=('GPL')
11 depends=('mono' 'uml_utilities' 'cronolog' 'python2')
12 #optdepends=()
13 makedepends=('unzip')
14 conflicts=()
15 provides=()
16 install=${pkgname}.install
17 source=(
18         http://www.grid-appliance.org/files/ipop/acisp2p.${pkgver}.zip
19         groupvpn.patch
21 build() {
22         cd $srcdir/acisp2p
23         
24         patch -p1 -i ${srcdir}/groupvpn.patch
25         
26         mkdir -p ${pkgdir}/opt/${pkgname}/{bin,etc,lib,var}
27         cp ./bin/*.exe ${pkgdir}/opt/${pkgname}/bin/
28         cp ./bin/*.dll ${pkgdir}/opt/${pkgname}/lib/
29         cp ./bin/*.py ${pkgdir}/opt/${pkgname}/bin/
30         cp ./bin/*.sh ${pkgdir}/opt/${pkgname}/bin/
31         cp ./config/ipop.vpn.config ${pkgdir}/opt/${pkgname}/etc/
32         cp ./config/Log.config ${pkgdir}/opt/${pkgname}/bin/DhtIpopNode.exe.config
33         
34         mkdir -p ${pkgdir}/{etc/rc.d,usr/sbin}
35         ln -sf /opt/${pkgname}/bin/groupvpn_prepare.sh ${pkgdir}/usr/sbin/groupvpn-prepare
36         ln -sf /opt/${pkgname}/bin/groupvpn.sh ${pkgdir}/etc/rc.d/groupvpn
37         ln -sf /opt/${pkgname}/bin/groupvpn_bootstrap.sh ${pkgdir}/etc/rc.d/groupvpn-bootstrap
38         ln -sf /opt/${pkgname}/etc/ipop.vpn.config ${pkgdir}/etc/
40 md5sums=(
41         '09fb52a5c0ab707f552847930a7fdb01'
42         '96d28ac191a7f2edbef3bac440e0715d'