blob: 57c319bfd5b205fa6edea5ce0e6dd6d9609d5258 (
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
|
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Julien Sopena <jsopena.archlinux@free.fr>
# Contributor: Adam Nielsen <malvineous@shikadi.net>
pkgname=smcroute
pkgver=2.5.7
pkgrel=1
pkgdesc="command line tool to manipulate kernel multicast routing"
arch=('i686' 'x86_64')
url="https://troglobit.com/smcroute.html"
license=('GPL2')
provides=('smcroute' 'mcsender')
backup=('etc/smcroute.conf')
depends=('libcap' 'bash' 'libsystemd.so')
source=("https://github.com/troglobit/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
'smcroute.conf'
'smcroute.default')
md5sums=('464a84186067fe9e0536b0bf8e9486a5'
'c230266bb9ba2a0d399f658ec2e46d88'
'5ad63a25952f8b6f368c61111cf15967')
sha256sums=('7d2c83e11908fe37844fa9b49ae50924555c4e1bb440fb059a95c94e442ea8a5'
'f0e3f8651b3b5ba5490a16b5ad21d19a2a641cb61d80742bc0b07ba97eef0b63'
'92ad598fed09f8b4211f66929b16111f8bc6436d2f0d36d6325f7bf37425f159')
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--runstatedir=/run \
--localstatedir=/var
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir/" install
# Make our config the main one, so /etc/smcroute.d is used by default.
install -Dm644 "${srcdir}/smcroute.conf" "${pkgdir}/etc/smcroute.conf"
# Put the upstream example config into /etc/smcroute.d but disable it by
# ensuring it doesn't match *.conf
install -Dm644 "smcroute.conf" "${pkgdir}/etc/smcroute.d/20-main.conf.example"
# Copy our template for adjusting smcroute command line parameters.
install -Dm644 "${srcdir}/smcroute.default" "${pkgdir}/etc/default/smcroute"
# nothing useful here
rm -fr "${pkgdir}/usr/share/doc"
# Remove reference to /usr/share/doc from systemd service.
sed -i '/\/usr\/share\/doc/ { D }' "${pkgdir}/usr/lib/systemd/system/smcroute.service"
}
# vim:set ts=2 sw=2 et:
|