updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / inspircd / PKGBUILD
blob5862d456e2ddf25759cf4e8027d56de38ab71c10
1 pkgname=inspircd
2 pkgver=2.0.5
3 pkgrel=1
4 pkgdesc='A lightweight IRC daemon'
5 arch=('x86_64' 'i686')
6 url='http://www.inspircd.org/'
7 license=('GPL2')
8 depends=('perl' 'gnutls' 'openssl')
9 makedepends=('pkg-config' 'mysql' 'postgresql' 'sqlite3' 'libldap' 'geoip' 'tre')
10 optdepends=('mysql: m_mysql'
11             'pcre: m_regex_pcre'
12             'postgresql: m_pgsql'
13             'sqlite3: m_sqlite3'
14             'libldap: m_ldapoper and m_ldapauth'
15             'geoip: m_geoip'
16             'tre: m_regex_tre')
17 install=inspircd.install
19 source=(http://www.inspircd.org/downloads/InspIRCd-$pkgver.tar.bz2 inspircd.rcd)
20 md5sums=('60dec04bdc8f8c473f3c7bd774a1f153'
21          'f4f32d944401b1602ab6716476892afd')
23 build() {
24   cd "${srcdir}/inspircd"
25   ./configure \
26     --enable-extras=m_geoip.cpp \
27     --enable-extras=m_ldapauth.cpp \
28     --enable-extras=m_ldapoper.cpp \
29     --enable-extras=m_mysql.cpp \
30     --enable-extras=m_pgsql.cpp \
31     --enable-extras=m_regex_pcre.cpp \
32     --enable-extras=m_regex_posix.cpp \
33     --enable-extras=m_regex_tre.cpp \
34     --enable-extras=m_sqlite3.cpp
36   ./configure \
37     --prefix=/usr/lib/inspircd \
38     --binary-dir=/usr/sbin \
39     --module-dir=/usr/lib/inspircd/modules \
40     --config-dir=/etc/inspircd \
41     --enable-gnutls \
42     --enable-openssl \
43     --enable-epoll
44   make
47 package() {
48   install -Dm755 "${srcdir}"/inspircd.rcd "${pkgdir}"/etc/rc.d/inspircd
49   install -o141 -g141 -dm750 "${pkgdir}/var/log/inspircd"
50   install -o141 -g141 -dm750 "${pkgdir}/var/run/inspircd"
52   cd "${srcdir}/inspircd"
53   make DESTDIR="$pkgdir" INSTUID=141 install
55   rm -rf "${pkgdir}"/usr/lib/inspircd/logs
56   rm -rf "${pkgdir}"/usr/lib/inspircd/data