aboutsummaryrefslogtreecommitdiffstats
path: root/testing/uucp/APKBUILD
blob: 741b13f7432831970fd59ad4118db0bf62a8a9f7 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Mathew Meins <mathewm@sdf.lonestar.org>
# Maintainer: Mathew Meins <mathewm@sdf.lonestar.org>
pkgname=uucp
pkgver=1.07
pkgrel=2
pkgdesc="Taylor UUCP is a free implementation of UUCP" 
url="http://airs.com/ian/uucp.html"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
options="suid"
pkgusers="uucp"
pkggroups="uucp"
source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--with-newconfigdir=/etc/uucp \
		--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 -m4555 -o uucp -g uucp "$builddir"/uuxqt "$pkgdir"/usr/sbin/uuxqt
	install -m4555 -o uucp -g uucp "$builddir"/uucico "$pkgdir"/usr/sbin/uucico
	install -m4555 -o uucp -g uucp "$builddir"/uux "$pkgdir"/usr/bin/uux
	install -m4555 -o uucp -g uucp "$builddir"/uucp "$pkgdir"/usr/bin/uucp
	install -m4555 -o uucp -g uucp "$builddir"/uuname "$pkgdir"/usr/bin/uuname
	install -m4555 -o uucp -g uucp "$builddir"/cu "$pkgdir"/usr/bin/cu
	install -m4555 -o uucp -g uucp "$builddir"/uustat "$pkgdir"/usr/bin/uustat

	install -m755 -D -o root -g root -d "$pkgdir"/etc/uucp
	install -m755 -D -o uucp -g uucp -d "$pkgdir"/var/spool/uucp
	install -m755 -D -o uucp -g uucp -d "$pkgdir"/var/spool/uucppublic
	install -m755 -D -o uucp -g uucp -d "$pkgdir"/var/log/uucp

	touch "$pkgdir"/etc/uucp/call "$pkgdir"/etc/uucp/dial \
		"$pkgdir"/etc/uucp/dialcode \
		"$pkgdir"/etc/uucp/passwd \
		"$pkgdir"/etc/uucp/port \
		"$pkgdir"/etc/uucp/sys || return 1
	chown root:uucp "$pkgdir"/etc/uucp/call \
		"$pkgdir"/etc/uucp/passwd || return 1
	chmod 640 "$pkgdir"/etc/uucp/call \
		"$pkgdir"/etc/uucp/passwd || return 1
}

md5sums="64c54d43787339a7cced48390eb3e1d0  uucp-1.07.tar.gz"
sha256sums="060c15bfba6cfd1171ad81f782789032113e199a5aded8f8e0c1c5bd1385b62c  uucp-1.07.tar.gz"
sha512sums="13d215890234e638bed53dce7bab6eb78e0ce6b658f23ac1d7f8abc6e1d97963bef76aa4148ca644f450d5a1678fac940b73fbcd5845d7f5bea3afbd8055229b  uucp-1.07.tar.gz"