4 pkgdesc='A lightweight IRC daemon'
6 url='http://www.inspircd.org/'
8 depends=('perl' 'gnutls' 'openssl')
9 makedepends=('pkg-config' 'mysql' 'postgresql' 'sqlite3' 'libldap' 'geoip' 'tre')
10 optdepends=('mysql: m_mysql'
14 'libldap: m_ldapoper and m_ldapauth'
17 install=inspircd.install
19 source=(http://www.inspircd.org/downloads/InspIRCd-$pkgver.tar.bz2 inspircd.rcd)
20 md5sums=('60dec04bdc8f8c473f3c7bd774a1f153'
21 'f4f32d944401b1602ab6716476892afd')
24 cd "${srcdir}/inspircd"
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
37 --prefix=/usr/lib/inspircd \
38 --binary-dir=/usr/sbin \
39 --module-dir=/usr/lib/inspircd/modules \
40 --config-dir=/etc/inspircd \
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