blob: 497f836d17d86d6e6493518a127cbf85ff6954ea (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
pkgname=inspircd
pkgver=2.0.18
pkgrel=1
pkgdesc='A lightweight IRC daemon'
arch=('x86_64' 'i686' 'mips64el')
url='http://www.inspircd.org/'
license=('GPL2')
depends=('perl')
makedepends=('pkg-config' 'libmysqlclient' 'postgresql' 'sqlite3' 'libldap' 'geoip'
'tre' 'gnutls' 'openssl' 'libgcrypt')
optdepends=('gnutls: m_ssl_gnutls'
'libgcrypt: m_ssl_gnutls'
'openssl: m_ssl_openssl'
'libmysqlclient: m_mysql'
'pcre: m_regex_pcre'
'postgresql: m_pgsql'
'sqlite3: m_sqlite3'
'libldap: m_ldapoper and m_ldapauth'
'geoip: m_geoip'
'tre: m_regex_tre')
install=inspircd.install
source=(https://github.com/inspircd/inspircd/archive/v$pkgver.tar.gz
inspircd.service)
sha1sums=('40039d9be51ad28493be16b27c9f20bc7fe617a4'
'667b28d0d086be6daad7a0c2f110c68e6526264e')
build() {
cd "${srcdir}/inspircd"
./configure \
--enable-extras=m_geoip.cpp \
--enable-extras=m_ldapauth.cpp \
--enable-extras=m_ldapoper.cpp \
--enable-extras=m_mysql.cpp \
--enable-extras=m_pgsql.cpp \
--enable-extras=m_regex_pcre.cpp \
--enable-extras=m_regex_posix.cpp \
--enable-extras=m_regex_tre.cpp \
--enable-extras=m_sqlite3.cpp
./configure \
--prefix=/usr/lib/inspircd \
--binary-dir=/usr/sbin \
--module-dir=/usr/lib/inspircd/modules \
--config-dir=/etc/inspircd \
--enable-gnutls \
--enable-openssl \
--enable-epoll
make
}
package() {
install -Dm644 "${srcdir}"/inspircd.service "${pkgdir}"/usr/lib/systemd/system/inspircd.service
install -o141 -g141 -dm750 "${pkgdir}/var/log/inspircd"
cd "${srcdir}/inspircd"
make DESTDIR="$pkgdir" INSTUID=141 install
mkdir -p "${pkgdir}"/usr/share/inspircd
mv "${pkgdir}"/etc/inspircd/examples "${pkgdir}"/usr/share/inspircd/examples
rm -rf "${pkgdir}"/usr/lib/inspircd/logs
rm -rf "${pkgdir}"/usr/lib/inspircd/data
}
|