blob: a08d32b1fec1f9ceedfe92417cbbaf44050db58c (
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
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=rancid
pkgver=2.3.8
pkgrel=1
pkgdesc="Really Awesome New Cisco confIg Differ"
url="http://www.shrubbery.net/rancid/"
arch="all"
license="BSD with advertising"
depends="expect perl logrotate"
depends_dev=""
makedepends="$depends_dev openssh-client cvs subversion"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
pkgusers="rancid"
pkggroups="netadm"
source="ftp://ftp.shrubbery.net/pub/rancid/rancid-$pkgver.tar.gz
rancid-2.3.2-conf.patch
rancid.logrotate"
_builddir="$srcdir"/rancid-$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"
./configure --prefix=/usr \
--sysconfdir=/etc/rancid \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-conf-install \
--with-svn \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
install -D -m644 "$srcdir"/rancid.logrotate \
"$pkgdir"/etc/logrotate.d/rancid || return 1
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
}
md5sums="8cdfdfd8ab989e924dae2560d81457a0 rancid-2.3.8.tar.gz
bd2e1e80348d88a11ee838ff40270039 rancid-2.3.2-conf.patch
97c733c7420fe140b51a75d676431daf rancid.logrotate"
sha256sums="44e44c87a22968d5229c01d60aa46960da023a24846eef43f9e3c8d70fd5b3fb rancid-2.3.8.tar.gz
c98a96e0c3a16a228a83e7570ca1adc27e73cdcd4cc718aa0e2956454b564e9f rancid-2.3.2-conf.patch
5459497b88b9bfef122608a9a7fd70b23cfdf558617b62ab40cac5bc32226ad0 rancid.logrotate"
sha512sums="cd071670e160f2e8268e676ae92b0d982719a2bc306aef3ef8fdbbaae398854178613eee2a139f206e799eba6c0b49dce2094db69ea57ef938e5d0c2c294a3cc rancid-2.3.8.tar.gz
dbebdecb80483fff45cfdd7a541805f45ee4e180d47a79ce9b71c5aad012d6e782c9a9d29f1de0fc2b89642aeecfc90dfddb86a1e11564e30683fa55e7009d76 rancid-2.3.2-conf.patch
aefbdeb99acd6840ab7fe75602b4cec2ed07a4eb24d073a951feef22ab7e56aff098bed7e0ca042c977218a2311465780aa5e6203507da8ab43e132df9a21795 rancid.logrotate"
|