updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / rsyslog-dev / PKGBUILD
blobb8005eda9ca578e011d9bdb54bd89cc268f4a9ef
1 # Maintainer: Brian Knox <taotetek@gmail.com>
3 pkgname=rsyslog-dev
4 pkgbasename=rsyslog
5 pkgver=6.3.6
6 pkgrel=6
7 pkgdesc="development release of rsyslog with liblognorm support"
8 url="http://www.rsyslog.com/"
9 arch=('i686' 'x86_64')
10 license=('GPL3')
11 depends=('zlib' 'liblognorm')
12 replaces=('rsyslog')
13 makedepends=('postgresql-libs>=8.4.1' 'libmysqlclient' 'net-snmp' 'gnutls')
14 optdepends=('postgresql-libs: PostgreSQL Database Support'
15             'libmysqlclient: MySQL Database Support'
16             'net-snmp'
17             'gnutls')
18 backup=('etc/rsyslog.conf' \
19         'etc/logrotate.d/rsyslog'
20         'etc/conf.d/rsyslog')
21 options=('strip' 'zipman' '!libtool')
22 source=("http://www.rsyslog.com/files/download/rsyslog/rsyslog-$pkgver.tar.gz"
23         'rsyslog'
24         'rsyslog.logrotate'
25         'rsyslog.conf.d')
26 md5sums=('758bb56b6f7d46cef49dd70fddf825dc'
27          'a18bbcbb6ebdaa13a6ec6d9f3d9eb2da'
28          '8065db4bef3061a4f000ba58779f6829'
29          '1a0cd4530dd5d1439456d5ae230574d9')
31 build() {
32   cd ${srcdir}/${pkgbasename}-${pkgver}
33   ./configure --prefix=/usr \
34               --enable-mysql \
35               --enable-pgsql \
36               --enable-mail \
37               --enable-imfile \
38               --enable-imtemplate \
39               --enable-snmp \
40               --enable-imptcp \
41               --enable-gnutls \
42               --enable-inet \
43               --enable-mmnormalize \
44               --with-systemdsystemunitdir=/lib/systemd/system
45   make
47 package() {
48   cd ${srcdir}/${pkgbasename}-${pkgver}
49   make install DESTDIR=${pkgdir}
50   # Install Daemons and Configuration Files
51   install -D -m755 ${srcdir}/${pkgbasename} ${pkgdir}/etc/rc.d/${pkgbasename}d
52   install -D -m644 ${pkgbasename}.conf ${pkgdir}/etc/${pkgbasename}.conf
53   install -D -m644 $srcdir/${pkgbasename}.logrotate ${pkgdir}/etc/logrotate.d/${pkgbasename}
54   install -D -m644 ${srcdir}/${pkgbasename}.conf.d ${pkgdir}/etc/conf.d/${pkgbasename}