blob: 474ae04a692d0e3c585e28178722a3b3ab890d7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Christian Hesse <mail@eworm.de>
pkgname=dhcpcd-hook-openvpn
pkgver=0.2.0.r2.gdf48c35
pkgrel=1
pkgdesc="Hook for dhcpcd to send SIGUSR1 to openvpn and reestablish connection"
arch=('any')
depends=('openvpn' 'dhcpcd')
makedepends=('git')
url="https://github.com/eworm-de/dhcpcd-hook-openvpn"
license=('GPL')
source=('git://github.com/eworm-de/dhcpcd-hook-openvpn.git')
sha256sums=('SKIP')
pkgver() {
cd dhcpcd-hook-openvpn/
if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
else
echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
fi
}
package() {
cd dhcpcd-hook-openvpn/
make DESTDIR="${pkgdir}" install
}
|