aboutsummaryrefslogtreecommitdiffstats
path: root/main/ser2net/APKBUILD
blob: 7318d6eeb030e1187319e97ae18b8027d9f0f809 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ser2net
pkgver=2.9.1
pkgrel=0
pkgdesc="A proxy that allows telnet/tcp connections to be made to serial ports"
url="http://sourceforge.net/projects/ser2net"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://heanet.dl.sourceforge.net/project/ser2net/ser2net/ser2net-$pkgver.tar.gz
	${pkgname}.confd
	${pkgname}.initd"

_builddir="$srcdir"/ser2net-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	update_config_sub || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
        install -D -m755 "$srcdir"/ser2net.initd \
		"$pkgdir"/etc/init.d/ser2net
	install -D -m644 "$srcdir"/ser2net.confd \
		"$pkgdir"/etc/conf.d/ser2net
	install -D -m644 ser2net.conf \
		"$pkgdir"/etc/ser2net.conf
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="80011ac0e60bbdcb65f1d7a86251e3f3  ser2net-2.9.1.tar.gz
100fc9cc68a766afde182d14a26bfec0  ser2net.confd
d57ce51bc3d70cf66d3837bdc0a7df7c  ser2net.initd"
sha256sums="fdee1e69903cf409bdc6f32403a566cbc6006aa9e2a4d6f8f12b90dfd5ca0d0e  ser2net-2.9.1.tar.gz
3058368970e77b8b7fcf6fca9f3530b683d9e9c27c431531f8566dde01dab849  ser2net.confd
6993e7965e17d0498b50ac09be772da436447bb7ed07520818a70b82b3a6ef80  ser2net.initd"
sha512sums="9fd0efc853993b70c0c632a7059df7a04c832f85491194c49dd8b384e1bb1a576ed9cfe28088cc181a2f7084c88dc6ef6dabbc4ead5ad9339a7becebaa6fb8e7  ser2net-2.9.1.tar.gz
15054f7aa604f93bd5a54c2bb96c9a3168905be5ace50bcd2ebeeaf9dc9ae19426388e6118e9e4850125349090ee29542c24487e64c349593a76366be4a5e501  ser2net.confd
a1dac24c0a379b8deaef66a3e53717c59a11c94e10048ed810d2c673d79cd382671d19364b33de9dd676d19c0275dd22d66e102be0c2e644d959654fd5dbeeea  ser2net.initd"