summaryrefslogtreecommitdiff
path: root/extra/sysklogd/PKGBUILD
blob: ebd11719358e92418b2d15a83c051ae3c4ec7120 (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
# $Id: PKGBUILD 122666 2011-05-05 23:43:52Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=sysklogd
pkgver=1.5
pkgrel=3
pkgdesc="System and kernel log daemons"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.infodrom.org/projects/sysklogd/"
license=('GPL' 'BSD')
depends=('glibc' 'logrotate')
provides=('logger')
backup=('etc/syslog.conf' 'etc/logrotate.d/syslog')
source=(http://www.infodrom.org/projects/sysklogd/download/${pkgname}-${pkgver}.tar.gz \
        sysklogd-debian.patch syslog.conf syslog.logrotate syslogd klogd LICENSE)
md5sums=('e053094e8103165f98ddafe828f6ae4b'
         '1759e667ecf07ba23297f2c05b8dbe3f'
         'b8bc568494359fa932b7a5e17c4ba4de'
         'fb3fdb03959ff62ede00487c853bb950'
         '92531ee64cdc0ca978bbe9a81c269211'
         'c2fe75c82c35371972b6ceda72d6a861'
         '7930f7ff5038e1318511624e348581cc')
sha1sums=('070cce745b023f2ce7ca7d9888af434d6d61c236'
          '7a7320b8e4e21d85cfc9a5aa478a8b013b8afe96'
          '35b4cb76109a6ffe9269021a6bfb4f8da614a4eb'
          'e67c0f78f13c94507d3f686b4e5b8340db4624fd'
          '848beb23b9ca4de19c6022df03878dbe57e04c0a'
          'f46088f761c033562a59bc13d4888b7343bc02fc'
          'c416bcefd3d3d618139cc7912310caddf34c0c0b')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -p1 -i ../sysklogd-debian.patch
  sed -i "s/-O3/${CFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE/" Makefile
  make
}

package() {
 cd "${srcdir}/${pkgname}-${pkgver}"
  install -d "${pkgdir}/usr/sbin" "${pkgdir}"/usr/share/man/{man5,man8}
  make INSTALL=/bin/install prefix="${pkgdir}" install
  install -D -m644 ../syslog.conf "${pkgdir}/etc/syslog.conf"
  install -D -m644 ../syslog.logrotate "${pkgdir}/etc/logrotate.d/syslog"
  install -D -m755 ../syslogd "${pkgdir}/etc/rc.d/syslogd"
  install -D -m755 ../klogd "${pkgdir}/etc/rc.d/klogd"
  install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}