blob: 196d42b59ffce778265ed9bf033c7e6d8baed044 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: Alexandr Boiko <4le34n at gmail dot com>
# Contributor: Brian F.G. <bidulock@openss7.org>
pkgname=accel-ppp
pkgver=1.13.0
pkgrel=3
pkgdesc="High performance PPTP/L2TP/PPPoE/IPoE server"
arch=('i686' 'x86_64')
url="http://sourceforge.net/apps/trac/accel-ppp/"
license=('GPL')
depends=('openssl>=1.0.0' 'pcre>=8.30' 'lua51')
makedepends=('cmake>=2.6' 'net-snmp>=5.x')
optdepends=('accel-ppp-ipoe-dkms' 'accel-ppp-vlanmon-dkms' 'logrotate')
conflicts=('accel-ppp-git')
install='accel-ppp.install'
options=('docs')
backup=('etc/accel-ppp.conf' 'etc/accel-ppp.lua' 'etc/snmp/accel-ppp.conf' 'usr/share/accel-ppp/radius/dictionary')
source=("$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/refs/tags/$pkgver.tar.gz"
'accel-ppp.logrotate'
'accel-ppp.lua'
'accel-ppp.tmpfiles'
'accel-pppd.service'
'dictionary.abills'
'dictionary.accel_ipoe')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
# Fix error build:
#patch -p1 <../shaper.patch
sed -i 's|RUNTIME DESTINATION sbin|RUNTIME DESTINATION bin|' \
"accel-pppd/CMakeLists.txt"
if [ -d "build" ]; then
rm -fr "build"
mkdir "build"
else
mkdir "build"
fi
}
build() {
cd "$srcdir/$pkgname-$pkgver/build"
cmake \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_BUILD_TYPE=Release \
-DLOG_FILE=TRUE \
-DLOG_PGSQL=FALSE \
-DSHAPER=TRUE \
-DRADIUS=TRUE \
-DNETSNMP=FALSE \
-DLUA=TRUE \
-DLUA_INCLUDE_DIR="/usr/include/lua5.1" \
-DLIB_SUFFIX='' \
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
"$srcdir/$pkgname-$pkgver"
make || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver/build"
make DESTDIR="$pkgdir" install || return 1
[ -d "$pkgdir/usr/lib64" ] && mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib"
install -dm0755 "$pkgdir/etc/logrotate.d/"
install -dm0755 "$pkgdir/etc/snmp/"
touch "$pkgdir/etc/snmp/$pkgname.conf"
install -Dm0644 "$srcdir/$pkgname-$pkgver/README" "$pkgdir/usr/share/doc/$pkgname/README"
install -Dm0644 "$srcdir/accel-pppd.service" "$pkgdir/usr/lib/systemd/system/accel-pppd.service"
install -Dm0644 "$srcdir/$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
install -Dm0644 "$srcdir/$pkgname.lua" "$pkgdir/etc/$pkgname.lua"
install -Dm0644 "$srcdir/$pkgname.logrotate" "$pkgdir/etc/logrotate.d/$pkgname"
install -Dm0644 "$srcdir/dictionary.accel_ipoe" "$pkgdir/usr/share/accel-ppp/radius/dictionary.accel_ipoe"
install -Dm0644 "$srcdir/dictionary.abills" "$pkgdir/usr/share/accel-ppp/radius/dictionary.abills"
install -Dm0644 "$pkgdir/etc/$pkgname.conf.dist" "$pkgdir/etc/$pkgname.conf"
install -Dm0644 "$srcdir/$pkgname-$pkgver/accel-pppd/extra/net-snmp/ACCEL-PPP-MIB.txt" "$pkgdir/usr/share/snmp/mibs/ACCEL-PPP-MIB.txt"
install -Dm0644 "$srcdir/$pkgname-$pkgver/COPYING" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
md5sums=('239f03b9e3b81d6a156950dd3e983b28'
'0536dd60960e76cf5a6cdbf0518782d8'
'1faebf39e7a665d756cae3e0e33831a9'
'312fd63b9688a05b71a6b33ddd3a9f4b'
'2cc98daa5fbd5b1163e5613e49fc9ef4'
'4e0d4fc5975ea8794ea286e8fbfa56cd'
'7e58716f1249f924ce218bd348d4c03a')
|