aboutsummaryrefslogtreecommitdiffstats
path: root/community/rancid/APKBUILD
blob: 5f98e93362392941b3c2a6c045c4c067affabe08 (plain) (blame)
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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=rancid
pkgver=3.12
pkgrel=0
pkgdesc="A Cisco config Differ"
url="http://www.shrubbery.net/rancid/"
arch="all"
license="BSD-3-Clause-No-Nuclear-License-2014"
depends="expect perl logrotate iputils"
makedepends="openssh-client cvs subversion"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
pkgusers="rancid"
pkggroups="netadm"
options="!check"
source="ftp://ftp.shrubbery.net/pub/rancid/rancid-$pkgver.tar.gz
	rancid-2.3.2-conf.patch
	rancid.logrotate"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc/rancid \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-conf-install \
		--with-svn
	make
}

# does actually nothing
check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -D -m644 "$srcdir"/rancid.logrotate \
		"$pkgdir"/etc/logrotate.d/rancid
	install -d -m 0755 -o rancid -g netadm "$pkgdir"/var/rancid
	install -d -m 0755 -o rancid -g netadm "$pkgdir"/var/log/rancid
	install -d -m 0755 -o rancid -g netadm "$pkgdir"/var/log/rancid/old
}

sha512sums="0ce58c8cffaa7ddae57fa7c88b81028723b6ad137d87e39ea66c3f533c770654e626826f8bc4d875aabc463c5616811867973ac5e2c64d47a4c9646e255f632a  rancid-3.12.tar.gz
dbebdecb80483fff45cfdd7a541805f45ee4e180d47a79ce9b71c5aad012d6e782c9a9d29f1de0fc2b89642aeecfc90dfddb86a1e11564e30683fa55e7009d76  rancid-2.3.2-conf.patch
aefbdeb99acd6840ab7fe75602b4cec2ed07a4eb24d073a951feef22ab7e56aff098bed7e0ca042c977218a2311465780aa5e6203507da8ab43e132df9a21795  rancid.logrotate"