1 # Contributor: David Brown <davidb AT davidb DOT org>
6 pkgdesc="A transaction-based software configuration management system"
8 url="http://aegis.sourceforge.net/"
10 depends=('zlib' 'bzip2' 'libxml2' 'curl' 'file' 'openssl')
13 source=(http://downloads.sourceforge.net/sourceforge/aegis/aegis-$pkgver.tar.gz
14 0001-Workaround-for-memchr-const-problem.patch
15 aegis-stable-fix-aecp-ind.patch)
16 md5sums=('b313cfacc9e3fc8536f186f6b796d429'
17 '4118737a6d2b0128a7ff652a4063cd8e'
18 'c2a902d1662904578b98d99d19b5d2ce')
21 cd $srcdir/$pkgname-$pkgver
23 patch -p1 < ../0001-Workaround-for-memchr-const-problem.patch || return 1
24 patch -p0 < ../aegis-stable-fix-aecp-ind.patch || return 1
25 ./configure --prefix=/usr --sharedstatedir=/var/lib/aegis || return 1
27 # Fix up Makefile to pass -D to install.
28 sed -i 's|^INSTALL = .*install.*|& -D|' ./Makefile
32 make DESTDIR=$pkgdir install || return 1
34 # Fix the profiles up.
35 mv $pkgdir/usr/etc $pkgdir/etc