projects/aports·blob master · refs

55 lines · 1.6 KiB

1# Contributor: Aaron Fischer <[email protected]>
2# Maintainer: Aaron Fischer <[email protected]>
3pkgname=rinetd
4pkgver=0.73
5pkgrel=0
6pkgdesc="TCP/UDP port redirector"
7url="https://github.com/samhocevar/rinetd"
8arch="all"
9license="GPL-2.0-only"
10makedepends="
11 autoconf
12 automake
13 "
14subpackages="
15 $pkgname-doc
16 $pkgname-openrc
17 "
18source="https://github.com/samhocevar/rinetd/releases/download/v$pkgver/rinetd-$pkgver.tar.bz2
19 $pkgname.initd
20 "
21
22build() {
23 ./bootstrap
24 ./configure \
25 --prefix=/usr \
26 --disable-dependency-tracking \
27 --enable-silent-rules
28 make
29}
30
31check() {
32 # There are no tests at the moment, but the makefile includes an empty test
33 # target, so we include it here to be prepared when there are tests to execute.
34 make test
35}
36
37package() {
38 # Binary
39 install -Dm755 "$pkgname" "$pkgdir/usr/sbin/$pkgname"
40
41 # Configuration
42 install -Dm644 "$pkgname.conf" "$pkgdir/etc/$pkgname.conf"
43 install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
44
45 # Documentation
46 install -Dm644 "$pkgname.8" "$pkgdir/usr/share/man/man8/$pkgname.8"
47 install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
48 install -Dm644 index.html "$pkgdir/usr/share/doc/$pkgname/index.html"
49 install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
50}
51
52sha512sums="
53e5d1c7e5826a75c520453032f6e4651700860505dfced625698fc036249b9f585a894e1fee905321878b2d2a265c843f5a746090311929518594263b33b64ed8 rinetd-0.73.tar.bz2
543243341cec80d67f972961efdfead0ada2de0ea5f9c980040e048d3fef5a95eefd0954321887a460ad45e22db8f70f584d827a9baa8e5d09fcb424fd51fb0949 rinetd.initd
55"